All of lore.kernel.org
 help / color / mirror / Atom feed
* AMD SFH sensor discovery
@ 2022-05-25 19:23 Limonciello, Mario
  2022-05-26 11:46 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Limonciello, Mario @ 2022-05-25 19:23 UTC (permalink / raw)
  To: stable

[Public]

Hi,

The firmware on some OEM laptops with AMD SOCs advertise that they have sensors connected to AMD SFH but they really don't
physically have them. In 5.19 a commit has gone in that discovers this case and prevents the driver from advertising this sensor
to userspace.  This might not seem like a big deal to have sensors advertised that aren't really there, but AMD has observed
that specifically on orientation sensors the random garbage data associated can cause userspace to interpret a screen rotation
during resume from suspend.  

As GNOME has a daemon running that interprets these events I've seen first hand that it can cause the display go upside down
without a lot of recourse other than command line tools or rebooting.

Can you please backport this commit to 5.15.y+ and later to fix this:
commit b5d7f43e97dabfa04a4be5ff027ce7da119332be ("HID: amd_sfh: Add support for sensor discovery")

Thanks,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: AMD SFH sensor discovery
  2022-05-25 19:23 AMD SFH sensor discovery Limonciello, Mario
@ 2022-05-26 11:46 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2022-05-26 11:46 UTC (permalink / raw)
  To: Limonciello, Mario; +Cc: stable

On Wed, May 25, 2022 at 07:23:59PM +0000, Limonciello, Mario wrote:
> [Public]
> 
> Hi,
> 
> The firmware on some OEM laptops with AMD SOCs advertise that they have sensors connected to AMD SFH but they really don't
> physically have them. In 5.19 a commit has gone in that discovers this case and prevents the driver from advertising this sensor
> to userspace.  This might not seem like a big deal to have sensors advertised that aren't really there, but AMD has observed
> that specifically on orientation sensors the random garbage data associated can cause userspace to interpret a screen rotation
> during resume from suspend.  
> 
> As GNOME has a daemon running that interprets these events I've seen first hand that it can cause the display go upside down
> without a lot of recourse other than command line tools or rebooting.
> 
> Can you please backport this commit to 5.15.y+ and later to fix this:
> commit b5d7f43e97dabfa04a4be5ff027ce7da119332be ("HID: amd_sfh: Add support for sensor discovery")

How queued up, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-26 11:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-25 19:23 AMD SFH sensor discovery Limonciello, Mario
2022-05-26 11:46 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.