klogg / fl2000_drm

Linux kernel FL2000DX/IT66121FN dongle DRM driver
GNU General Public License v2.0
110 stars 27 forks source link

not working on Gentoo with kernel 5.10.27 #48

Open mgcyung opened 3 years ago

mgcyung commented 3 years ago

I am trying the driver on Gentoo with kernel 5.10.27. The building was successful. quirks=1D5C:2000:USB_QUIRK_NO_LPM is added to boot params. However, it didn't work. There were errors in the dmesg

[   30.420909] usb 3-2: new high-speed USB device number 3 using xhci_hcd
[   30.549232] usb 3-2: New USB device found, idVendor=14cd, idProduct=8601, bcdDevice= 0.00
[   30.549237] usb 3-2: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[   30.549240] usb 3-2: Product: USB 2.0 Hub
[   30.549242] usb 3-2: Manufacturer: USB Device
[   30.600764] hub 3-2:1.0: USB hub found
[   30.601042] hub 3-2:1.0: 4 ports detected
[   30.661055] usb 4-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[   30.674145] usb 4-2: config 1 interface 1 altsetting 0 has a duplicate endpoint with address 0x81, skipping
[   30.674150] usb 4-2: config 1 interface 1 altsetting 0 has a duplicate endpoint with address 0x1, skipping
[   30.674152] usb 4-2: config 1 interface 1 altsetting 1 has a duplicate endpoint with address 0x81, skipping
[   30.674154] usb 4-2: config 1 interface 1 altsetting 1 has a duplicate endpoint with address 0x1, skipping
[   30.674157] usb 4-2: config 1 interface 1 altsetting 2 has a duplicate endpoint with address 0x81, skipping
[   30.674159] usb 4-2: config 1 interface 1 altsetting 2 has a duplicate endpoint with address 0x1, skipping
[   30.674161] usb 4-2: config 1 interface 1 altsetting 3 has a duplicate endpoint with address 0x81, skipping
[   30.674163] usb 4-2: config 1 interface 1 altsetting 3 has a duplicate endpoint with address 0x1, skipping
[   30.674165] usb 4-2: config 1 interface 1 altsetting 4 has a duplicate endpoint with address 0x81, skipping
[   30.674167] usb 4-2: config 1 interface 1 altsetting 4 has a duplicate endpoint with address 0x1, skipping
[   30.674169] usb 4-2: config 1 interface 1 altsetting 5 has a duplicate endpoint with address 0x81, skipping
[   30.674171] usb 4-2: config 1 interface 1 altsetting 5 has a duplicate endpoint with address 0x1, skipping
[   30.674173] usb 4-2: config 1 interface 1 altsetting 6 has a duplicate endpoint with address 0x81, skipping
[   30.674175] usb 4-2: config 1 interface 1 altsetting 6 has a duplicate endpoint with address 0x1, skipping
[   30.674181] usb 4-2: New USB device found, idVendor=1d5c, idProduct=2000, bcdDevice= 2.00
[   30.674183] usb 4-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   30.680952] usb-storage 4-2:1.3: USB Mass Storage device detected
[   30.681178] scsi host2: usb-storage 4-2:1.3
[   30.887874] usb 3-2.1: new full-speed USB device number 4 using xhci_hcd
[   30.996568] usb 3-2.1: New USB device found, idVendor=2000, idProduct=dd00, bcdDevice=11.16
[   30.996572] usb 3-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   30.996573] usb 3-2.1: Product: HZD100
[   30.996575] usb 3-2.1: Manufacturer: C&T
[   30.996576] usb 3-2.1: SerialNumber: U2dc0z7ws53a79rn
[   31.057962] input: C&T HZD100 as /devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb3/3-2/3-2.1/3-2.1:1.3/0003:2000:DD00.0003/input/input28
[   31.110216] hid-generic 0003:2000:DD00.0003: input,hidraw2: USB HID v1.00 Device [C&T HZD100] on usb-0000:04:00.4-2.1/input3
[   31.236662] mc: Linux media interface: v0.10
[   31.437959] usbcore: registered new interface driver snd-usb-audio
[   31.512210] usbcore: registered new interface driver uas
[   31.708198] scsi 2:0:0:0: Direct-Access                               A001 PQ: 0 ANSI: 4
[   31.708651] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   31.708882] sd 2:0:0:0: [sda] 2047 4096-byte logical blocks: (8.38 MB/8.00 MiB)
[   31.709035] sd 2:0:0:0: [sda] Write Protect is off
[   31.709037] sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00
[   31.709155] sd 2:0:0:0: [sda] No Caching mode page found
[   31.709157] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   31.721323]  sda:
[   31.722453] sd 2:0:0:0: [sda] Attached SCSI disk
[   47.325102] usb 4-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[   62.685101] usb 4-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[   73.445169] usbcore: registered new interface driver fl2000_usb
[   78.044969] usb 4-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[   79.814204] i2c i2c-0: I2C transfer failed (-121)
[   79.814394] i2c i2c-10: Binding FL2000 master
[   79.814968] i2c 0-004c: Binding IT66121 component
[   79.922577] i2c i2c-10: Bridge attached
[   79.922600] i2c i2c-10: bound 0-004c (ops it66121_component_ops [it66121])
[   79.923308] [drm] Initialized fl2000_drm 0.0.1 20181001 for i2c-10 on minor 1
[   79.935645] i2c i2c-10: Cannot get monitor status (-121)
[   79.935793] i2c i2c-10: [drm] Cannot find any crtc or sizes
[   79.956820] i2c i2c-10: Cannot get monitor status (-121)
[   79.956927] i2c i2c-10: [drm] Cannot find any crtc or sizes
[   80.028391] i2c i2c-10: Cannot read interrupt status (-121)
[   91.970773] udevd[2434]: worker [4956] /devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb4/4-2/4-2:1.2 is taking a long time
[   92.521076] udevd[4956]: slow: 'lmt-udev force' [6379]
[   93.287887] usb 4-2: Stopping interrupts
[   93.405234] usb 4-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[   93.421269] i2c i2c-10: Binding FL2000 master
[   93.422121] i2c 0-004c: Binding IT66121 component
[   93.422126] i2c 0-004c: Cannot attach IT66121 bridge (-16)
[   93.422144] i2c i2c-10: failed to bind 0-004c (ops it66121_component_ops [it66121]): -16
[   93.422146] i2c i2c-10: Cannot attach bridge (-16)
[   93.422271] ------------[ cut here ]------------
[   93.422303] WARNING: CPU: 1 PID: 4962 at drivers/gpu/drm/drm_atomic_state_helper.c:172 drm_atomic_helper_crtc_duplicate_state+0x47/0x50 [drm_kms_helper]
[   93.422304] Modules linked in: it66121(OE) fl2000(OE) uas snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device mc ccm rfcomm cmac tun 8021q garp mrp stp llc bnep joydev snd_soc_dmic snd_acp3x_pdm_dma snd_acp3x_rn snd_soc_core rtsx_pci_sdmmc snd_compress ac97_bus mmc_core snd_pcm_dmaengine hp_wmi sparse_keymap wmi_bmof hid_multitouch edac_mce_amd kvm_amd kvm irqbypass crct10dif_pclmul crc32_pclmul btusb iwlmvm crc32c_intel btrtl btbcm btintel ghash_clmulni_intel rapl bluetooth mac80211 ecdh_generic amdgpu pcspkr serio_raw ecc libarc4 snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi gpu_sched iwlwifi ttm snd_hda_intel snd_intel_dspcfg k10temp sp5100_tco binfmt_misc i2c_piix4 snd_hda_codec drm_kms_helper snd_hda_core snd_rn_pci_acp3x snd_pci_acp3x snd_hwdep cec snd_pcm cfg80211 ccp drm snd_timer snd soundcore rtsx_pci rfkill ucsi_acpi typec_ucsi typec wmi vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) video i2c_hid pinctrl_amd acpi_cpufreq acpi_tad virtio_scsi
[   93.422390]  virtio_blk virtio_console virtio_balloon iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ixgb ixgbe tulip cxgb3 cxgb mdio cxgb4 tls vxge bonding vxlan ip6_udp_tunnel udp_tunnel macvlan vmxnet3 virtio_net net_failover failover tg3 sky2 r8169 pcnet32 mii igb i2c_algo_bit dca e1000 bnx2 atl1c fuse overlay xfs nfs lockd grace sunrpc nfs_ssc fscache jfs reiserfs multipath linear raid10 raid1 raid0 dm_raid raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx dm_crypt firewire_core crc_itu_t hid_sunplus hid_sony hid_samsung hid_pl hid_petalynx hid_monterey hid_microsoft hid_logitech ff_memless hid_gyration hid_ezkey hid_cypress hid_chicony hid_cherry hid_belkin hid_apple hid_a4tech sl811_hcd xhci_plat_hcd usb_storage lpfc nvmet_fc nvmet qla2xxx nvme_fc nvme_fabrics megaraid_sas megaraid_mbox megaraid_mm megaraid aacraid sx8 hpsa 3w_9xxx 3w_xxxx mptsas scsi_transport_sas mptfc scsi_transport_fc mptspi mptscsih mptbase atp870u dc395x qla1280 dmx3191d sym53c8xx gdth
[   93.422502]  fdomain initio BusLogic arcmsr aic7xxx aic79xx scsi_transport_spi pdc_adma sata_inic162x sata_mv sata_qstor sata_vsc sata_uli sata_sis sata_sx4 sata_nv sata_via sata_svw sata_
sil24 sata_sil sata_promise pata_sl82c105 pata_via pata_jmicron pata_marvell pata_sis pata_netcell pata_pdc202xx_old pata_triflex pata_atiixp pata_opti pata_amd pata_ali pata_it8213 pata_pcmcia pata_ns87415 pata_ns87410 pata_serverworks pata_oldpiix pata_artop pata_it821x pata_optidma pata_hpt3x2n pata_hpt3x3 pata_hpt37x pata_hpt366 pata_cmd64x pata_efar pata_sil680 pata_pdc2027x pata_mpiix
[   93.422558] CPU: 1 PID: 4962 Comm: usb-storage Tainted: G           OE     5.10.27-gentoo #1
[   93.422560] Hardware name: HP HP ENVY x360 Convertible 13-ay0xxx/876E, BIOS F.13 09/09/2020
[   93.422574] RIP: 0010:drm_atomic_helper_crtc_duplicate_state+0x47/0x50 [drm_kms_helper]
[   93.422577] Code: d4 ba 48 01 00 00 be c0 0c 00 00 e8 93 33 c1 d3 49 89 c4 48 85 c0 74 0b 48 89 c6 48 89 ef e8 f0 fe ff ff 4c 89 e0 5d 41 5c c3 <0f> 0b 4c 89 e0 5d 41 5c c3 0f 1f 44 00 00 48 89 f7 e9 a3 12 c1 d3
[   93.422579] RSP: 0018:ffffa248c1fd7ac0 EFLAGS: 00010246
[   93.422582] RAX: ffffffffc16cdd30 RBX: ffff91dd96289d80 RCX: 0000000000000000
[   93.422583] RDX: ffffa248c1fd7b30 RSI: 0000000000000002 RDI: ffff91ddf3583638
[   93.422585] RBP: ffff91ddf3583638 R08: 00000000ffffff8e R09: ffff91ddb34a2e20
[   93.422586] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
[   93.422587] R13: ffff91ddb52c2800 R14: ffff91ddf3766808 R15: ffff91dd885e9b40
[   93.422590] FS:  0000000000000000(0000) GS:ffff91e07f640000(0000) knlGS:0000000000000000
[   93.422591] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   93.422593] CR2: 00001483b7122010 CR3: 0000000354610000 CR4: 0000000000350ee0
[   93.422594] Call Trace:
[   93.422632]  drm_atomic_get_crtc_state+0x73/0x110 [drm]
[   93.422648]  drm_atomic_helper_disable_all+0x8a/0x190 [drm_kms_helper]
[   93.422660]  drm_atomic_helper_shutdown+0x63/0x100 [drm_kms_helper]
[   93.422669]  ? _dev_err+0x5c/0x5e
[   93.422674]  fl2000_drm_release+0xe/0x20 [fl2000]
[   93.422696]  drm_dev_release+0x23/0x40 [drm]
[   93.422704]  release_nodes+0x22a/0x260
[   93.422711]  try_to_bring_up_master+0x25c/0x280
[   93.422716]  component_master_add_with_match+0xd1/0x110
[   93.422719]  fl2000_probe+0x7f/0x120 [fl2000]
[   93.422726]  usb_probe_interface+0xe0/0x280
[   93.422731]  really_probe+0xf0/0x400
[   93.422735]  driver_probe_device+0xe1/0x150
[   93.422738]  ? driver_allows_async_probing+0x50/0x50
[   93.422741]  bus_for_each_drv+0x6a/0xa0
[   93.422744]  __device_attach+0xc7/0x140
[   93.422748]  rebind_marked_interfaces.isra.0+0x62/0x90
[   93.422753]  usb_reset_device+0x1af/0x250
[   93.422761]  usb_stor_port_reset+0x52/0x70 [usb_storage]
[   93.422767]  usb_stor_invoke_transport+0x20a/0x510 [usb_storage]
[   93.422773]  ? try_to_wake_up+0x1ad/0x4d0
[   93.422777]  ? __prepare_to_swait+0x4b/0x70
[   93.422782]  ? wait_for_completion_interruptible+0xb1/0x120
[   93.422787]  usb_stor_control_thread+0x185/0x280 [usb_storage]
[   93.422791]  ? storage_probe+0x280/0x280 [usb_storage]
[   93.422796]  kthread+0xfe/0x140
[   93.422799]  ? kthread_park+0x90/0x90
[   93.422804]  ret_from_fork+0x22/0x30
[   93.422808] ---[ end trace 8d4c50ab56873abf ]---
[   93.422823] [drm:drm_atomic_helper_shutdown [drm_kms_helper]] *ERROR* Disabling all crtc's during unload failed with -12
[   93.422891] i2c i2c-10: master bind failed: -16
[   93.422905] usb 4-2: Cannot register component master (-16)
[   93.422919] fl2000_usb: probe of 4-2:1.2 failed with error -16
[   93.460110] i2c i2c-10: Cannot get monitor status (-121)
[   93.460364] i2c i2c-10: Cannot get monitor status (-121)
skyEch0 commented 3 years ago

Any update on this? facing the exact issue with Ubuntu 20.10, Kernel 5.8

nikgli commented 2 years ago

Same issue with Kernel 5.10.0

catielanier commented 2 years ago

Seems to be an issue with the kernel api changes from 5.8+

There was a fix for this in a fork from the fresco logic drivers, but needs to be addressed here too.