Re: [PATCH v4 4/4] SFH: Create HID report to Enable support of AMD sensor fusion Hub (SFH)

From: Roger Gammans
Date: Mon Mar 30 2020 - 15:53:02 EST


On Mon, 2020-03-30 at 09:53 +0530, Singh, Sandeep wrote:
> Hi Roger,
>
> On 3/30/2020 12:10 AM, Roger Gammans wrote:
> > [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
> >
> > 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

--
Roger Gammans <rgammans@xxxxxxxxxxxxxxxxxx>