From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8D2EC4332B for ; Thu, 19 Mar 2020 12:22:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B825D20663 for ; Thu, 19 Mar 2020 12:22:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726785AbgCSMWU (ORCPT ); Thu, 19 Mar 2020 08:22:20 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:62186 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726864AbgCSMWU (ORCPT ); Thu, 19 Mar 2020 08:22:20 -0400 Received: from 185.80.35.16 (185.80.35.16) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.341) id ac0ec80de060ce45; Thu, 19 Mar 2020 13:22:18 +0100 From: "Rafael J. Wysocki" To: Jan Engelhardt Cc: linux-acpi@vger.kernel.org Subject: Re: [PATCH] x86: ignore unspecified bit positions in the ACPI global lock field Date: Thu, 19 Mar 2020 13:22:18 +0100 Message-ID: <21714545.r8kEu0rk5n@kreacher> In-Reply-To: References: <20200305122425.32223-1-jengelh@inai.de> <2030043.rEjxodZhqh@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Thursday, March 19, 2020 11:46:13 AM CET Jan Engelhardt wrote: > > On Saturday 2020-03-14 10:46, Rafael J. Wysocki wrote: > >On Thursday, March 5, 2020 1:24:25 PM CET Jan Engelhardt wrote: > >> The value in "new" is constructed from "old" such that all bits defined > >> as reserved by the ACPI spec[1] are left untouched. But if those bits > >> do not happen to be all zero, "new < 3" will not evaluate to true. > >> > >> The firmware of the laptop(s) Medion MD63490 / Akoya P15648 comes with > >> garbage inside the "FACS" ACPI table. The starting value is > >> old=0x4944454d, therefore new=0x4944454e, which is >= 3. Mask off > >> the reserved bits. > >> > >> - return (new < 3) ? -1 : 0; > >> + return ((new & 0x3) < 3) ? -1 : 0; > > > >Applied as 5.7 material, thanks! > > Would it make sense to funnel this into the upcoming 5.6? > It's been marked for -stable, so it will get into 5.6.y early. Hopefully, it will get some extra test coverage before that.