Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2632796rwa; Mon, 22 Aug 2022 10:47:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR6/LDxb3yqFyaeb81jFJtl0AIttAIsUVn/ULCB0Tyh7qAaKYk3Kvi2ibxrdlPAsgckpFCcJ X-Received: by 2002:a17:90b:4a82:b0:1f5:5eaa:68a with SMTP id lp2-20020a17090b4a8200b001f55eaa068amr29345986pjb.13.1661190451746; Mon, 22 Aug 2022 10:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661190451; cv=none; d=google.com; s=arc-20160816; b=GXmlW5xzBwFOLI4h1JpTKuNvSsxniRCPJkvXhpMOStFv2EmfwBJLXxPMHtAlpPJXYd A+gd0rUU47oMwXYISFtIQnOFCGcUW/uufZo59Dys6DuqdDTJSM/q8a7p8AoLx8+O3W37 o8nR/eyXYQEoYNDFe70YLMga7CBZdgusL984TL4CBnXWOiHgsThafl511sS+1vnZZ86k Yg98B5s2JsAtUg0KM67LcwS2yWr9voo55oQzOi1DR7lmg2kvwMH1pML1qdNz1c5uQCJS W7QXvCJkqZfYCIOaKxJguZWKyIwnf3s4Lz0aKVZHg/D9g5pwE1UJ7382lNiK+v/LC0SU eJEQ== 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=i9nR6sEUko/Xpi6iVq1ZYNna5QvrQNEN6Fm9xSQ6bPI=; b=t697DfrDxsGcVRiiDRGuWPhV+alzT/RSKY+haf4j9Sq8+ZKRPldCms1aJWB4HQm6hE Sp1+PFTCFeYZVvJSuURtY9kOF83i+ry5qWNCCXLaLhc/iVSwpcKGeAywHNJ7qJeuT3au Bm0SAC3AN3/SWMvPWyzGF+6qwyVPIvEyy8bL5Ct1E7AtAxpIes3LtlQh9d6sC9VAvcMQ nyXBrsfmCvzDzyYqofFUKq9pTLEEs/BDM9Q3HazB1wHMHlIIMO7P04B2KjNJRjcIZCuk yUVpHKUIYWIF/F6Vmdb/IM2n1G8Bt+RUW9yhfZfeGMMorQVDqU+yFNebHaNcaQhQU1AW VQcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=N09sy2at; 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 z11-20020a170902cccb00b00172d4125ef0si7668089ple.69.2022.08.22.10.47.20; Mon, 22 Aug 2022 10:47:31 -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=N09sy2at; 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 S237141AbiHVRmB (ORCPT + 99 others); Mon, 22 Aug 2022 13:42:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237031AbiHVRlp (ORCPT ); Mon, 22 Aug 2022 13:41:45 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBFBA46227; Mon, 22 Aug 2022 10:41:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1661190057; bh=8NqP/LmFNkUsKE+lqDM8Vx1Qa5L+gzbvOwhUVr5t++g=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=N09sy2atR4PkdU5rlHrMkfG5BG2l4uP0Le5tWXlODd2QbCPxWNgkD/SMsCLRIzwoC N5E9af2LcxAJxaN9VgPTRDSHOPXwp2TZULO6Hp7QCU/maBWGW+o0k6migFbvoHTbtG W5t05W3u5F7u94JTNfu6i5sQZ+94JY0tjHPNjX4o= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from esprimo-mx.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N95iH-1pUKGE3TyJ-0165DX; Mon, 22 Aug 2022 19:40:57 +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 v2 1/2] hwmon: (dell-smm) Add FW_BUG to SMM warning message Date: Mon, 22 Aug 2022 19:40:52 +0200 Message-Id: <20220822174053.8750-2-W_Armin@gmx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220822174053.8750-1-W_Armin@gmx.de> References: <20220822174053.8750-1-W_Armin@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Ujim6dMBvYZkQaEGMgdZAwDX17AMjv92ZepvD1xFZ7Ip+eD1x7u f2h1L4fv9YVLJ1xQFX6F1M/i1gmb+cDJ5Pe+94b7sD6KKrLbF1al6/khHhuO+FfjWMhQDcW wzIbHrMao8ubKItC5GAd9/qrjhSjSvWT+Ud7VEx372zVd2WGYt0TDEpP7wMtR8g2UVAGlu7 IHZbRDHsaR9iIHYfE2q9g== X-UI-Out-Filterresults: notjunk:1;V03:K0:ZZ2aeCu8VGE=:X1qtjCMDaP4azV/etqeWSj b9YfX2H2NgwegaAa9aVOvES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lc+c+B/UyNjPn6fkiIW621HzjR0MGqgscjj3Q7WfLM1CwuxA== 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 7f8d95dd2717..9cac80358072 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