tbsdtv / linux_media

TBS linux open source drivers
https://github.com/tbsdtv/linux_media/wiki
Other
174 stars 80 forks source link

TBS 6903X not recognized #265

Closed ich777 closed 2 years ago

ich777 commented 2 years ago

Hi, got an issue with a TBS6903X that is not recognized on boot.

After issuing modprobe -vvv tbsecp3 I get this output:

modprobe: INFO: custom logging function 0x40be50 registered
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/media/mc/mc.ko.xz 
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/media/v4l2-core/videodev.ko.xz 
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/media/common/videobuf2/videobuf2-common.ko.xz 
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/media/common/videobuf2/videobuf2-memops.ko.xz 
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/media/common/videobuf2/videobuf2-vmalloc.ko.xz 
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/media/dvb-core/dvb-core.ko.xz 
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/i2c/i2c-mux.ko.xz 
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/media/dvb-frontends/tas2101.ko.xz 
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/media/dvb-frontends/gx1133.ko.xz 
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/media/pci/tbsecp3/tbsecp3.ko.xz 
modprobe: INFO: context 0x427500 released

The card is running on Kernel version 5.10.28, this was also tried on a Windows machine and the card is working there, has anyone a guess what could that be?

This is the output from lspci from this card:

07:00.0 Multimedia controller [0480]: TBS Technologies DVB Tuner PCIe Card [544d:6178]
    Subsystem: Device [6903:8888]
crazycat69 commented 2 years ago

wrong subsystem pci id see correct in driver source https://github.com/tbsdtv/linux_media/blob/latest/drivers/media/pci/tbsecp3/tbsecp3-core.c#L340

ich777 commented 2 years ago

@crazycat69 what can I do so that it actually lists the correct subsystem pci id? Nothing was changed on the system or modified, already rebooted a few times and nothing changed.

EDIT: ...and as always thank you for the quick reply... :)

crazycat69 commented 2 years ago

this 6903X V1 or V2 ? try add exntry for your card to tbsecp3_id_table:

TBSECP3_ID(TBSECP3_BOARD_TBS6903X,0x6903,0x8888),

P.S. or give me remote access

ich777 commented 2 years ago

@crazycat69 added the pci id and it is working now and the card is recognized:

08:00.0 Multimedia controller [0480]: TBS Technologies DVB Tuner PCIe Card [544d:6178]
    Subsystem: Device [6903:8888]
    Kernel driver in use: TBSECP3 driver
    Kernel modules: tbsecp3

I've attached two pictures from the card, it is a TBS6903X V2: TBS6903X_2 thumb jpg 464045b6686533c71e4c01d69c8db3e0 : TBS6903X_1 thumb jpg 20673558d17d7568bc617090cdfc7133

Is there a chance you can add this pci id?

crazycat69 commented 2 years ago

Correct id must be 6903:0021 for this card. How windows driver 3.0.0.1 recognize you card ?

ich777 commented 2 years ago

@crazycat69 the same as on Linux: image png 93db7d4cddfaf5716c3753626357fa82

crazycat69 commented 2 years ago

and driver installed without warnings ?

ich777 commented 2 years ago

@crazycat69 I think, I had an "unknown device" in device manager and installed manually, pointing to the directory of the unpacked driver. After this, it installed without any problem. Do you have a guess why it has the "wrong" id?

crazycat69 commented 2 years ago

see tbs6903x.inf, this contain only PCI\VEN_544D&DEV_6178&SUBSYS_00216903

ich777 commented 2 years ago

I just had a Phone Call with TBS distibution in Germany to clarify what the problem with this card is. And indeed, they already knew about the issue. There has been a mistake in the firmware flashing with the last productions series of theese cards. As the very friendly guy at TBS could see by the serial number of my card, my card was the second in this series of cards with the wrong hardware-id. He told me, that there will be a new driver with this hardware-id included. Perhaps there will be also a firmware update, that corrects the id. But this is not sure atm.

Source: Click

crazycat69 commented 2 years ago

tbsecp3 drivers have IOCTL support for SPI flash access (FPGA firmware bitstream). I have FPGA firmare dumps for all 6903x revisions, so if you want dump your current firmare and change to proper 6903x firmware - send me PM or e-mail

ich777 commented 2 years ago

Thank you @crazycat69 wrote a mail to the mail address that is linked in your Github profile, I think this issue can be closed.