Skip to contentSkip to conversation

SFH: Create HID report to Enable support of AMD sensor fusion Hub (SFH)

PATCH Roger Gammans 2 participants 3 messages Mar 29, 2020 – Mar 30, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Review

Quoted 4 lines · Sandeep Singh

From: Sandeep Singh <[email protected]>

(quoted diff) +2 -0
+#include "amd_sfh_hid_report_descriptor.h"
+#include "amd_mp2_pcie.h"

I had to change the last line to

  #include "../amd_mp2_pcie.h"

to make it compile out of tree. After that I got a clean compile.

Also I don't seem to be getting any data through
to monitor-sensor in user space when I do install it, but I am gettting logs of log messages similar to this:

pcie_mp2_amd 0000:04:00.7: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000c address=0x5267f000 flags=0x0020] pcie_mp2_amd 0000:04:00.7: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000c address=0x5267f000 flags=0x0020]

This is compiled against the debian 5.4.0 kernel, on a

     HP ENVY x360 Convertible 15-ds0xxx, SKU 6TD07EA#ABU

I can run other tests or try other kernels if you think it might help, let me know what you need.

Signature · 1 line
Roger Gammans
#1 lore raw

Hi Roger,

Quoted 18 lines · Roger Gammans

[CAUTION: External Email]

Review

Quoted 4 lines · Sandeep Singh

From: Sandeep Singh <[email protected]>

(quoted diff) +2 -0
+#include "amd_sfh_hid_report_descriptor.h"
+#include "amd_mp2_pcie.h"

I had to change the last line to

   #include "../amd_mp2_pcie.h"

to make it compile out of tree. After that I got a clean compile.

Also I don't seem to be getting any data through
to monitor-sensor in user space when I do install it, but I am gettting logs of log messages similar to this:

Quoted 8 lines

pcie_mp2_amd 0000:04:00.7: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000c address=0x5267f000 flags=0x0020] pcie_mp2_amd 0000:04:00.7: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x000c address=0x5267f000 flags=0x0020]

This is compiled against the debian 5.4.0 kernel, on a

      HP ENVY x360 Convertible 15-ds0xxx, SKU 6TD07EA#ABU

I can run other tests or try other kernels if you think it might help, let me know what you need.

Can you disable IOMMU from bios and give a try or if your laptop does not have iommu option you can pass boot parameter "iommu=soft"

Quoted 3 lines

--
Roger Gammans

#2 lore raw
Quoted 17 lines · Sandeep

Hi Roger,

Quoted 14 lines · Roger Gammans

[CAUTION: External Email]

Also I don't seem to be getting any data through
to monitor-sensor in user space when I do install it, but I am gettting logs of log messages similar to this:

pcie_mp2_amd 0000:04:00.7: AMD-Vi: Event logged [IO_PAGE_FAULT
domain=0x000c address=0x5267f000 flags=0x0020]
pcie_mp2_amd 0000:04:00.7: AMD-Vi: Event logged [IO_PAGE_FAULT
domain=0x000c address=0x5267f000 flags=0x0020]

This is compiled against the debian 5.4.0 kernel, on a

      HP ENVY x360 Convertible 15-ds0xxx, SKU 6TD07EA#ABU
Quoted 6 lines
Quoted 3 lines

I can run other tests or try other kernels if you think it might help,
let me know what you need.

Can you disable IOMMU from bios and give a try or if your laptop does
not have iommu option you can pass boot parameter "iommu=soft"

I couldn't find anything useful in the BIOS, so tried iommu=soft on the kernel command line. And that seems to have done the trick, we get rotation info all the way through to the userspace, and the desktop does it auto-rotate magic. Thanks for all your hard work.

On module inserion I have these messages if it is of any concern:-

pcie_mp2_amd 0000:04:00.7: MP2 device found [1022:15e4] (rev 0)
hid-generic 0020:03FE:0001.0003: hidraw2: <UNKNOWN> HID v0.01 Device [hid-amdtp 03FE:0001] on hid-generic 0020:03FE:0001.0004: hidraw3: <UNKNOWN> HID v0.01 Device [hid-amdtp 03FE:0001] on hid-generic 0020:03FE:0001.0005: hidraw4: <UNKNOWN> HID v0.01 Device [hid-amdtp 03FE:0001] on

Signature · 1 line
Roger Gammans <[email protected]>