Hello team, I set up a COPR [1] for testing kernel with enabled AMD Sensors Fusion HUB (AMD_SFH_HID) [2] straight from the patchwork and also did a scratch build (https://koji.fedoraproject.org/koji/taskinfo?taskID=41333949) . After reboot, it seems the amd_sfh_hid driver failed to get detected. Is there a way to make it work? The SRPM is on the COPR repository.
References --------------- [1] https://copr.fedorainfracloud.org/coprs/luya/kernel-amdsfh/ [2] https://patchwork.kernel.org/project/linux-iio/list/?submitter=175589
The build was successful based on kernel 5.6.0 rc0 git1.9. compiling the AMD Sensors Fusion HUB as modules. From the lsmod:
32768 0 kvm_amd 110592 0 kvm 802816 1 kvm_amd ccp 106496 1 kvm_amd amdgpu 5308416 8 amd_iommu_v2 20480 1 amdgpu gpu_sched 40960 1 amdgpu i2c_algo_bit 16384 1 amdgpu ttm 122880 1 amdgpu drm_kms_helper 233472 1 amdgpu drm 585728 11 gpu_sched,drm_kms_helper,amdgpu,ttm amd_sfhtp_hid 24576 0 pinctrl_amd 32768 1 amd_mp2_pcie 20480 1 amd_sfhtp_hid
One issue is how to enable amd_mp2_pcie from: 03:00.7 Non-VGA unclassified device: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Sensor Fusion Hub Subsystem: Hewlett-Packard Company Device 8497 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin D routed to IRQ 33 Region 2: Memory at fc900000 (32-bit, non-prefetchable) [size=1M] Region 5: Memory at fcd8c000 (32-bit, non-prefetchable) [size=8K] Capabilities: <access denied> Kernel driver in use: pcie_mp2_amd Kernel modules: amd_mp2_pcie
Hi,
On 2/5/20 1:47 AM, Luya Tshimbalanga wrote:
The build was successful based on kernel 5.6.0 rc0 git1.9. compiling the AMD Sensors Fusion HUB as modules. From the lsmod:
32768 0
kvm_amd 110592 0 kvm 802816 1 kvm_amd ccp 106496 1 kvm_amd amdgpu 5308416 8 amd_iommu_v2 20480 1 amdgpu gpu_sched 40960 1 amdgpu i2c_algo_bit 16384 1 amdgpu ttm 122880 1 amdgpu drm_kms_helper 233472 1 amdgpu drm 585728 11 gpu_sched,drm_kms_helper,amdgpu,ttm amd_sfhtp_hid 24576 0 pinctrl_amd 32768 1 amd_mp2_pcie 20480 1 amd_sfhtp_hid
One issue is how to enable amd_mp2_pcie from: 03:00.7 Non-VGA unclassified device: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Sensor Fusion Hub Subsystem: Hewlett-Packard Company Device 8497 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin D routed to IRQ 33 Region 2: Memory at fc900000 (32-bit, non-prefetchable) [size=1M] Region 5: Memory at fcd8c000 (32-bit, non-prefetchable) [size=8K] Capabilities: <access denied> Kernel driver in use: pcie_mp2_amd Kernel modules: amd_mp2_pcie
The kernel driver in use here shows that the new sensor fusion hub driver is loading, I believe it is supposed to work as a HID driver, so I wonder what your output of:
ls /sys/bus/hid/devices
is now?
Regards,
Hans
On 2020-02-05 12:29 a.m., Hans de Goede wrote:
The kernel driver in use here shows that the new sensor fusion hub driver is loading, I believe it is supposed to work as a HID driver, so I wonder what your output of:
ls /sys/bus/hid/devices
is now?
ls /sys/bus/hid/devices/ 0018:04F3:264C.0001
ls -l /sys/bus/hid/devices/ total 0 lrwxrwxrwx. 1 root root 0 FebĀ 4 15:56 0018:04F3:264C.0001 -> ../../../devices/platform/AMDI0010:00/i2c-0/i2c-ELAN0732:00/0018:04F3:264C.0001
It seems the sensors wrongly detect a stylus.
According to the latest patch [1], the sensor should be identifed by "AMDI0080". Apparently, some drivers or modules aren't built: - AMD_SFH_HID_CLIENT : AMD(R) PCIe MP2 Communication Client Driver - AMD_MP2_SENSORS_TRANSPORT : AMD MP2 Sensors transport driver
Test done with with this custom kernel with available SRPM: https://copr.fedorainfracloud.org/coprs/luya/kernel-amdsfh/build/1222280/
References --------------- [1] https://patchwork.kernel.org/patch/11355497/
Hi,
On 2/6/20 7:16 AM, Luya Tshimbalanga wrote:
ls /sys/bus/hid/devices/ 0018:04F3:264C.0001
ls -l /sys/bus/hid/devices/ total 0 lrwxrwxrwx. 1 root root 0 Feb 4 15:56 0018:04F3:264C.0001 -> ../../../devices/platform/AMDI0010:00/i2c-0/i2c-ELAN0732:00/0018:04F3:264C.0001
It seems the sensors wrongly detect a stylus.
That is just an i2c attached HID device, likely your touchscreen and/or pen-digitizer, but what is missing is any HID devices for the sensors (assuming I'm right they will show up as HID devices).
According to the latest patch [1], the sensor should be identifed by "AMDI0080". Apparently, some drivers or modules aren't built:
- AMD_SFH_HID_CLIENT : AMD(R) PCIe MP2 Communication Client Driver
- AMD_MP2_SENSORS_TRANSPORT : AMD MP2 Sensors transport driver
I'm afraid I do not have enough knowledge about the AMD Sensors Fusion HUB stuff to be able to help you with this, you could try reaching out the developers of the patches, or wait for this to land upstream.
Regards,
Hans
Hi,
I'm afraid I do not have enough knowledge about the AMD Sensors Fusion HUB stuff to be able to help you with this, you could try reaching out the developers of the patches, or wait for this to land upstream.
I think the developers are working on an update based on review at this time. It seems the HID components drivers for the sensors hub failed to build for some odd reasons. I will test again once new updated patches come with the fix.
Thanks for the help and assistance.
Sincerely,
Luya
Thanks for looking at the updated patches: https://lore.kernel.org/lkml/1581476197-25854-1-git-send-email-Sandeep.Singh...
I built custom kernel with these patches [1] which confirm the HID sensors are left unused on my HP Envy x360 Ryzen 2500u.
ls -l /sys/bus/hid/devices/ total 0 lrwxrwxrwx. 1 root root 0 Feb 11 17:03 0018:04F3:264C.0001 -> ../../../devices/platform/AMDI0010:00/i2c-0/i2c-ELAN0732:00/0018:04F3:264C.0001
References: [1] https://copr.fedorainfracloud.org/coprs/luya/kernel-amdsfh/build/1237128/.
kernel@lists.fedoraproject.org