Received: by 10.213.65.68 with SMTP id h4csp530857imn; Fri, 16 Mar 2018 10:33:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELvHbiX3vFtTO3z2rWS+2XqpH+KSf7QHo9EPM8Dt2Xa0oawdPFbIxazhFE7RChq4UDuwbF7p X-Received: by 10.101.73.74 with SMTP id q10mr1606528pgs.323.1521221585908; Fri, 16 Mar 2018 10:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521221585; cv=none; d=google.com; s=arc-20160816; b=eSwUJSRBC9x/CZZaF1i16U5LmiS92S4o9FUO9TfQM6EoNzBQ9XgMBjiB3zQGXuXzC2 gIZu8sNN54HsMDdfH8apjeLvimR6rEGJAR5TorB/AnM5cxifZLua8WEjV7t7tXKc4pUq v91XSMGNnjQtOak6R0f6XnrWSQvaswZ9u6xc3UQ6aLsDxxRYjs1yz+sUAntnc5psWrP2 ptTfp9qP6MaDyJ/L7PcJ2yHz5BMwi1tdqY0+xCR/SBR/eGVDlaOt/MUi7jqFJR0jg5BJ 94m5xFIuaLl7sBFNrT7kwvg63p6GtaBHxpnCoDCvA4Koa1CJ6YRYcKa0W2gEIcc74X3u 1sFA== 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=yMwwu0rRneUVD2l80RC9ZjMbrQXz+3O7sPVujT1BMs8=; b=p5h2ijJXBqff6HjSRgIP87GOxX9FTRbWFTnAqwHBvgcgCLT0S7w4V1sX4o9Ozog3xw 6srxzQhmpynpnDYDuwMaIyuDftcIRJFIdnrZ/uMoCGOuE8RtUH8elJRyvuaRB2puIeDs 15acmibN1i0WDXzQiN/Zk+2Y7zfCrH2XXTXo1WNh9MQk+GIRjXXK62+q4aKVMW2fkym6 XgrTltsIv/l9CebgD/UiAU0F2PxkGh/apa+3OrfCiw+90DMwQrgs0JlgP2wZB6s1w6tx oRuiLjr7FXmUPopFRslmmEwtn71FyxLoNTdprCPKjt/CeDM4gL3X54yYeXn/+nTQPwh/ W2+w== 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 h128si4516353pfb.152.2018.03.16.10.32.50; Fri, 16 Mar 2018 10:33:05 -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 S932652AbeCPP1n (ORCPT + 99 others); Fri, 16 Mar 2018 11:27:43 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34712 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753950AbeCPP1l (ORCPT ); Fri, 16 Mar 2018 11:27:41 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 173F5125C; Fri, 16 Mar 2018 15:27:39 +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.4 27/63] watchdog: hpwdt: SMBIOS check Date: Fri, 16 Mar 2018 16:22:59 +0100 Message-Id: <20180316152303.057655220@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152259.964532775@linuxfoundation.org> References: <20180316152259.964532775@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.4-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; } }