Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1440042rwa; Sun, 21 Aug 2022 08:27:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ImW0R0RhYffXWFXf15MRCZaAhfmDkbwWDyvTFZet9nOFqS8emjZSjC6Ok5RmLL5Rl21jo X-Received: by 2002:a05:6402:332:b0:446:3427:5c62 with SMTP id q18-20020a056402033200b0044634275c62mr10362930edw.141.1661095667435; Sun, 21 Aug 2022 08:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661095667; cv=none; d=google.com; s=arc-20160816; b=nN7ykn6/P+8QBLpd4tpQOvVAU3ubg3hjNszMSpw6pNsGP0RR9/z6BKrzbyNKRcKbB5 YyHvkj14Z6py1CC9QfDUiazMSEVHztmAkmxl6wHH9uEgLOvnmtCmf2C4f31vFBBBKJA/ 6OVDVjBjEw6ptos5EsJtCArZR8+aL309wbYp68UKVL6HBS96yneJVIa2y3sW5ePkO66q XQpDlnF+dn1dhmQKY/T0hujSIlCkpehDZrm7GAmahToWJdKkESM5uhv3fnGgxh0qo7Oz BPEFnFXIwClBQkwq6Xa7Ika+IVyln5n//R9O/9oph5ZeAdieYBxobMnUGQAXp6ZVY/YA lMbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=D77F2UGsQDcEHr3YQpIjdosk2SO119TN39ylv5kaXgQ=; b=NKPf4pf+a6PlhpeyLNtJ06pimYITvVqhzY/LoNFPWS5CgLEjr0lrmHxOUwq26viVWw 7MCO+4oKzGsWpL2t0hpfyQkHCp41qbOPCFrRKuMehcYqdkYopvvr6hOAqqDch+jUsIqT CDglYX8OaTOFYM6ocN70EHACs0GgNLB6O25o4B8beI3CHlsCLhwkju5nkhl/BhyzS5rF +hOA+vP/RXsYKacs4DREq5kfZN0Nl/FCrsc16idw63kqHtBX8wUlB4TJC4Q/gr9C16L+ CLgeML6G2+NEJ2dAF31BlOQCTl1zMX/J/9AhcONFDvXfIblUac8y5HLRNWcPGsN8uYtu c91w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=hJxr8k+4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o8-20020a056402438800b0043cd07cb6e5si8420828edc.78.2022.08.21.08.27.21; Sun, 21 Aug 2022 08:27:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=hJxr8k+4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231406AbiHUPRt (ORCPT + 99 others); Sun, 21 Aug 2022 11:17:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbiHUPRo (ORCPT ); Sun, 21 Aug 2022 11:17:44 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60ED023140; Sun, 21 Aug 2022 08:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1661095042; bh=yqTe4Y/sfP3hHZDfceJU1oV7+HnXjpldjg0d8fZB3gg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=hJxr8k+4MWo+5tocF2jHxZ1seKExMfmazK12eE93Y6RZC5G/32sYAa8Om2RGLJoCB IBCkze8LcAgCLcmvCJ3YNJN90oJ+3i/eNKchp1YcjvsE3QPVZY6cQtn7eSEcqt8W84 WJ5porXcKIRFQNDeinipOxBxBdlY6UYqm6PkmAZc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from esprimo-mx.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MyKHm-1pOLyo2osG-00ylhK; Sun, 21 Aug 2022 17:17:22 +0200 From: Armin Wolf To: pali@kernel.org Cc: jdelvare@suse.com, linux@roeck-us.net, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] hwmon: (dell-smm) Add FW_BUG to SMM warning message Date: Sun, 21 Aug 2022 17:17:12 +0200 Message-Id: <20220821151713.11198-3-W_Armin@gmx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220821151713.11198-1-W_Armin@gmx.de> References: <20220821151713.11198-1-W_Armin@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:D78pjPjKuTFgXHr7SR/GU5h+qtFoQV8lJto1k6IZCd+thIHInq2 g0Va5tdEJ17erfR1WSCAwAkjdEWVfR0BN0RqIeN/Nso6MmXrdMew7raYHCRDKAUrJWbVZTJ sLlAELg7rYf6pgAjkfyfoSU8iLi1nvUnJ/4TVTEMZe6APMYAl3j13NF/Mg4t33A+g+9nUf5 hbnjJVBMWUdICjNloWJsQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:ca9M8rNtz0E=:Vc6UdJeGKvUA64vX+ImCl5 /4lsoEwayIN1BE74j8AZlZANFYeViv42kw7Yed56q3T5e5d/SY3yt1k5jIb9XDLJ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HMwoimyUrFLgTg== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When a SMM call takes very long to execute, then it definitely is a firmware bug which should be marked with FW_BUG. Also add the number of the buggy SMM call to the warning message so BIOS developers, etc immediately know which part of the SMM interface is buggy. Tested on a Dell Inspiron 3505. Signed-off-by: Armin Wolf =2D-- drivers/hwmon/dell-smm-hwmon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon= .c index 1dab7591576a..f7bab1a91b93 100644 =2D-- a/drivers/hwmon/dell-smm-hwmon.c +++ b/drivers/hwmon/dell-smm-hwmon.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -198,7 +199,7 @@ static int i8k_smm_func(void *par) eax, ebx, regs->eax & 0xffff, carry, duration); if (duration > DELL_SMM_MAX_DURATION) - pr_warn_once("SMM call took %lld usecs!\n", duration); + pr_warn_once(FW_BUG "SMM call 0x%.4x took %lld usecs!\n", eax, duration= ); if (carry || (regs->eax & 0xffff) =3D=3D 0xffff || regs->eax =3D=3D eax) return -EINVAL; =2D- 2.30.2