Received: by 10.213.65.68 with SMTP id h4csp510775imn; Fri, 16 Mar 2018 09:58:55 -0700 (PDT) X-Google-Smtp-Source: AG47ELsP4zojeiIQI4+TLYcLzN1QJYQaVdDefUXUa2kGkNzV6XoVgEvrSuXKdhtl7GIN3GX7fO0F X-Received: by 10.99.107.131 with SMTP id g125mr1980923pgc.16.1521219535028; Fri, 16 Mar 2018 09:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521219534; cv=none; d=google.com; s=arc-20160816; b=qhMkTKF9FJbv5pH+fniqFichWqIp8L4l+1xhx20LBdHzaCW6Q2VBqtH2ofJyjGjeQm Td1kTztqyr3suL3dtUKE0C/Yhx77oMCUUaN8hI9jMbN8b4+0vzBoxwU4f+2pxzdWKe8a 7sSpdvJN+UXCIxOuglRQqBlySa7XWPf0oZBuvW2zFD36Q7Hq3NgQ2kFJPSIafOuVP3CL N21R56pIgfXMSZpKuj+xBD1r6HVD+SXgEStq2smSrrC4w2TTFAQqOwavnW9Y92PQ5OzD NRKHLGKVvhUozkupzg+l++YX4ByzkFs935uQIOkJNe2MIEJLzDQGE04Agl/cD4Qz2JNX f+CQ== 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=Lu4lkNX4ZRR11eq0XkBpQrjZiBOJGF86qJ/iyRVGX00=; b=N3eUuAZ/22KUDdteoW8qTSnc1HbAJR7+HcR8bJ8b6O9maetdkmJYfACSrGjDV3wUMM VkeMXlYUCOBxkrqGozUBLN55I7dGlsmiaWpc2mKWgMw/z/yiQzgPtdlVuT72bQ6uhuAO /BftjrWno/cuNSez2TgbEjnUlO7H3Ytda4CNlpsDOXDrmfUXA/3I3I0juUciVidazBft PsV0NcA/XbXvExEWqpLZhE6gRw2Agy8hUV2lvoVQcVp5r7vKKeVK04aHW3HPxUp6YRyM 5uLOqiE5ZtRJ2zVf0McDtiHaBzFGClfT1muYEsuZDkMPsGDf6Wr8z01hOLgVa4Unsjx2 PsmA== 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 q87si5713456pfa.385.2018.03.16.09.58.40; Fri, 16 Mar 2018 09:58:54 -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 S932469AbeCPQ5g (ORCPT + 99 others); Fri, 16 Mar 2018 12:57:36 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38986 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933755AbeCPPd0 (ORCPT ); Fri, 16 Mar 2018 11:33:26 -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 C23F4DEE; Fri, 16 Mar 2018 15:33:25 +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.9 47/86] watchdog: hpwdt: SMBIOS check Date: Fri, 16 Mar 2018 16:23:10 +0100 Message-Id: <20180316152320.603556028@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152317.167709497@linuxfoundation.org> References: <20180316152317.167709497@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.9-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; } }