From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D99CC433F5 for ; Thu, 26 May 2022 11:48:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239770AbiEZLsX (ORCPT ); Thu, 26 May 2022 07:48:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347276AbiEZLsO (ORCPT ); Thu, 26 May 2022 07:48:14 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 781C056755 for ; Thu, 26 May 2022 04:46:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 189FEB81D2D for ; Thu, 26 May 2022 11:46:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 526A3C385A9; Thu, 26 May 2022 11:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653565609; bh=oUl/uI1opB2xwlnP4oBPqq50nczn685O/UQhmES9OsU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0Mv7sVyIRo+XPh7tXQimqze3ADO4slqONQf1Q5NpJ7+jO99bqvlqdle/gTDG/iCEb gX/4dkbcm4TEyF1IJASidQfAdXr4rFY4j3gT9esc037paP2ABmRHBAWLoe3fldlH/G XrsMgCS22cKBc2x+VX3w0PupxV9L+wQGTVhMVbY8= Date: Thu, 26 May 2022 13:46:47 +0200 From: Greg KH To: "Limonciello, Mario" Cc: "stable@vger.kernel.org" Subject: Re: AMD SFH sensor discovery Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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