Received: by 10.213.65.68 with SMTP id h4csp451568imn; Tue, 13 Mar 2018 09:28:25 -0700 (PDT) X-Google-Smtp-Source: AG47ELvemCReKRxhZ7iMqfb27bo8Xyu/urA4k7+YV0tKgalf/4CQJkzdkZJRPscj8+2/BSCZSoPg X-Received: by 2002:a17:902:7007:: with SMTP id y7-v6mr579639plk.275.1520958505075; Tue, 13 Mar 2018 09:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520958505; cv=none; d=google.com; s=arc-20160816; b=bpY3iqxRwid6+IAB0V0cNMw7QIOQfhVLr3/851kxOj4RovLbO5m/dIldgmi0gOnpxZ LATHhMKb0bVs7a4S9G5pvmXJauNPie2lUTzZI0v6vBsJNmCXamf5lLS0ZnAecMbLUbqL ka5q+azjfRS6Uu7MFdo42TJW0kkoet5QpaFOSO/P7wkYtmiVhbEFUsCDw/6gPojuDxSV 2CgJ3QheM59mySvBeRzAG6ZG0qM+tR1n+j4gFX/H7QbNzQZ8N3kH0QU6gMEnIP9g9kYB aeLO+xrgBdWhoLJ1lyvWPdXSWF2JzD6cqh9AiX5Wn+W8gzfpYm3tZ8aH8LinosibQNbm J7Ag== 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=8g9IM5QgRd9b0xIzac/UURQBwb3fh6jOg5rPfgV/F6g=; b=qqCQuSQyS381of56pR+wnmlLmQ3W1MQ4jKMxUVSL1+T/YujvXaV38bT/Nbep483kXy GNTgcbTORFeHNw4dRU0iUs/YfOF29mBM3IwY4IMcdDDyrUXWkGSmuPznaehRmRoEGh83 FYbWbkVaVXxkF4bcfLXkZt0iZdbtvOi/pGuace4AlaHXBWlZmFs+OxqfTpasGB+qm7q3 Bg0YK45ZIktOmmjzeqTvZsMpKdM4NsXEutV/p1jZQKQdH4P7S1fT37Oc6U7L/hJTP3Tn J1bnhfKBlkA1CeysbaOQLl/DgTTl8sMC3GsQftOmF/KnQRuCcBMIAlcrKEaRcduqEfMJ Gupw== 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 e13si339033pff.8.2018.03.13.09.28.10; Tue, 13 Mar 2018 09:28:25 -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 S933632AbeCMPds (ORCPT + 99 others); Tue, 13 Mar 2018 11:33:48 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60790 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933599AbeCMPdk (ORCPT ); Tue, 13 Mar 2018 11:33:40 -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 90A6FFC8; Tue, 13 Mar 2018 15:33: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.15 104/146] watchdog: hpwdt: SMBIOS check Date: Tue, 13 Mar 2018 16:24:31 +0100 Message-Id: <20180313152328.482148900@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@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.15-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; } }