Received: by 10.213.65.68 with SMTP id h4csp446864imn; Tue, 13 Mar 2018 09:19:09 -0700 (PDT) X-Google-Smtp-Source: AG47ELv+1DI8OUPnwGsEaM+qUw/fcl1JtXjRysucnrSwIkrAWbSdrUaDvC40lNLDoWCxx+dsIb59 X-Received: by 2002:a17:902:b903:: with SMTP id bf3-v6mr1102280plb.316.1520957949265; Tue, 13 Mar 2018 09:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520957949; cv=none; d=google.com; s=arc-20160816; b=zANhNd1rvNlU8kT4acsgC2Fodg/jBwjuiccAreiXH7JaSv3lJu5q2Bk22YyVLC68OU WsjXYYHkuCldC8IR5B5s84PIYZuGNlZvQjcsdOaPh6OXO84z3vXDVd7KIH/DxDKNuTSi dj+aTdlPy5j7GT8rb5wCDp2yRJpX9I+Amm4EMLSrVc42ptaCQRMLCWnMM9Cu/CpaEQdy AZ2fVkbdr2JpvnCyk+YYoPycDMvjivazBQWga0Ini+9mFzZLRCe2WtopORBpx1CQQqpr szu6IukiHbLFlIqWDQCksqgEcr2GqautFIEUZ1nrjNKGtdbqSZ7tvzuqJ60LcH95sxQW K6hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=gIVJsblirOuGSy5nj/ehveKZjH3jreUBeO42p4dUaCE=; b=Q/byrWGLlQQKFqJSjjfzUHAFW9ex/JWPUj8tcAgADEEAJAxfVTWr+xTxdMAj3jonec Yf1A4FeXRc748fR45Ce/iJiwUUaApxwc+hsW1ohdV/I9AwRp/MoixRJmObhdkHYr0McX JgM9tNwN+7dUKVxKE2gF91y/yH6l2/0JUdC3oe6Y9nLFur2ev3LQc68JKun2oUzWwFkk +c1HbkSLdibwf7cNag655yPIh6uRIBDPFvFNXn3sNGB86yqvtXu1tZ+G4rjFtIVTfXXg Qvo/8zJBDYMfX9WZZqOPIt32VkkbZNTYJOc33DpasCWL0zj2+eKqn73KzgLokmPmXUI2 Z7kA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c193si346192pfc.356.2018.03.13.09.18.54; Tue, 13 Mar 2018 09:19:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933920AbeCMQRC (ORCPT + 99 others); Tue, 13 Mar 2018 12:17:02 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33080 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933913AbeCMPfM (ORCPT ); Tue, 13 Mar 2018 11:35:12 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 305201080; Tue, 13 Mar 2018 15:35:12 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jerry Hoemann , Guenter Roeck , Wim Van Sebroeck Subject: [PATCH 4.14 002/140] watchdog: hpwdt: SMBIOS check Date: Tue, 13 Mar 2018 16:23:25 +0100 Message-Id: <20180313152458.356548266@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jerry Hoemann commit c42cbe41727a138905a28f8e0b00c147be77ee93 upstream. This corrects: commit cce78da76601 ("watchdog: hpwdt: Add check for UEFI bits") The test on HPE SMBIOS extension type 219 record "Misc Features" bits for UEFI support is incorrect. The definition of the Misc Features bits in the HPE SMBIOS OEM Extensions specification (and related firmware) was changed to use a different pair of bits to represent UEFI supported. Howerver, a corresponding change to Linux was missed. Current code/platform work because the iCRU test is working. But purpose of cce78da766 is to ensure correct functionality on future systems where iCRU isn't supported. Signed-off-by: Jerry Hoemann Reviewed-by: Guenter Roeck Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck Signed-off-by: Greg Kroah-Hartman --- drivers/watchdog/hpwdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/watchdog/hpwdt.c +++ b/drivers/watchdog/hpwdt.c @@ -700,7 +700,7 @@ static void dmi_find_icru(const struct d smbios_proliant_ptr = (struct smbios_proliant_info *) dm; if (smbios_proliant_ptr->misc_features & 0x01) is_icru = 1; - if (smbios_proliant_ptr->misc_features & 0x408) + if (smbios_proliant_ptr->misc_features & 0x1400) is_uefi = 1; } }