Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3323177ybc; Mon, 18 Nov 2019 13:18:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxgHE1A/nUhIVChIXW1DrA535RZNz2wlHni3y8mZLWJDUoss/k8B6Rp5E+LzEkJPHDff/VS X-Received: by 2002:a17:906:cc93:: with SMTP id oq19mr29323573ejb.316.1574111891668; Mon, 18 Nov 2019 13:18:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574111891; cv=none; d=google.com; s=arc-20160816; b=KRacJHlEv30RBFoLGsuTDrVnozXwdFBvRtYGNDvp/1dLldy2mKXjsHbYl+SHx36tdE Xi/Y440QikSqbl68OP6x1Jsxm50nwswDhhgmK4nIns3Yvwb5Xr5tTuu7Uitr3333Ue8N l3xc/Cpeh9zZWAvPMyQjPuNee4x6fVcH+B8+GHya7NFOlIt45kcGnYG4ZaXGqLWFsIru bPLDeatNxowsP6iS73hqJzehxJ38XXga9xe6MY2Tk2HWEk+TIUeepCe4yV5jikYCXyZA d0iDba3PhPvgLFK1nQSSFqKB4HABPZC8cCg01eSji1miOUJD+vQBIsgiXVd6yiwXrYo/ wIVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=EGmcPUR8/fSmoKZT8wNG542Hx4EddFL0Aj04F8QGfeY=; b=lpWq4NOZg1y68QfISdpFlfX4jPzFilbCp51Ptuor/otd2P68BB9pn4WPmwa9eiOvQN FifIYt+VNcGccquMws8Txx67ecJzG9XdXzndhTxfWDKJV8AWBCsqYajazTpO6FL+CJ3z bnGFNVRkQkfHjUk5L8rLtIIQ0n6qrtzIYZadwbb/cohQ5hTMvdOvmwZRGmImWSkJoGWr dDYD/gAdtEGlABta4CUk1vbtlsKtGU8+pOAqPz3HUsZuVuFnKNbhoJSXdaNT4RH1Jq+B IdW88FEaZlTOfH61LpuijWRXu9jVKjPHp7UXwmNGFc/kU4n6rwmKjrUa9GdVNWWFM+kz 4yVg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9si12695130ejb.380.2019.11.18.13.17.47; Mon, 18 Nov 2019 13:18:11 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726920AbfKRVQA (ORCPT + 99 others); Mon, 18 Nov 2019 16:16:00 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:42231 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726735AbfKRVQA (ORCPT ); Mon, 18 Nov 2019 16:16:00 -0500 Received: by mail-oi1-f196.google.com with SMTP id o12so6612294oic.9; Mon, 18 Nov 2019 13:15:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EGmcPUR8/fSmoKZT8wNG542Hx4EddFL0Aj04F8QGfeY=; b=ThXvTYCc91LVt5IxL/YqWcKw7vlFNAQzx/sSiAgA0RyYzwDMU0Vs1X2c5KhzkJoWOf CxN6Ys5n9WaFf7SbhUYCupaiIyPQSZl5LXmyUz3Gua6NSOx+XsRrcvEbunGr6P56Xub5 WXQSvcc1koJoDCPlPUmrBEvtQghvPwACN+XUZK4ByzTPGZcMc2JH46gV97sh/qa4RhLh 8/V2aX2jQbeEl2VW36B9XbSGIqaDrjceEi6FsnucAaPCWXgaK14vU3FEUQnfFfH3dvYv 9XnYJZ2Mt0wy0L2hc1wbvbE21PGdwCUh4mM8tm5lp+8cKGiwo7Tjf6u7QxlfSHuvoMwr 9Vvw== X-Gm-Message-State: APjAAAVDNCtNQdk6qLsmGPcNWRljODVJw4VmPjkhlCn5LG3MLi8FDtKx OBQLqyK/xz/57kY3KbmPkBcZ25WdkDfSbfTeW2c= X-Received: by 2002:aca:d4c6:: with SMTP id l189mr903647oig.68.1574111759293; Mon, 18 Nov 2019 13:15:59 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "Rafael J. Wysocki" Date: Mon, 18 Nov 2019 22:15:48 +0100 Message-ID: Subject: Re: [PATCH v2] ACPI: sysfs: Change ACPI_MASKABLE_GPE_MAX to 0x100 To: Dexuan-Linux Cui Cc: "Rafael J. Wysocki" , Dan Williams , Yunfeng Ye , "Rafael J. Wysocki" , Len Brown , Linux ACPI , Linux Kernel Mailing List , "open list:DOCUMENTATION" , "hushiyuan@huawei.com" , "linfeilong@huawei.com" , Dexuan Cui 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 On Mon, Nov 18, 2019 at 8:44 PM Dexuan-Linux Cui wrote: > > On Mon, Nov 18, 2019 at 1:04 AM Rafael J. Wysocki wrote: > > > > On Sat, Nov 16, 2019 at 9:06 PM Dan Williams wrote: > > > > > > On Wed, Nov 13, 2019 at 11:17 PM Yunfeng Ye wrote: > > > > > > > > The commit 0f27cff8597d ("ACPI: sysfs: Make ACPI GPE mask kernel > > > > parameter cover all GPEs") says: > > > > "Use a bitmap of size 0xFF instead of a u64 for the GPE mask so 256 > > > > GPEs can be masked" > > > > > > > > But the masking of GPE 0xFF it not supported and the check condition > > > > "gpe > ACPI_MASKABLE_GPE_MAX" is not valid because the type of gpe is > > > > u8. > > > > > > > > So modify the macro ACPI_MASKABLE_GPE_MAX to 0x100, and drop the "gpe > > > > > ACPI_MASKABLE_GPE_MAX" check. In addition, update the docs "Format" for > > > > acpi_mask_gpe parameter. > > > > > > > > Fixes: 0f27cff8597d ("ACPI: sysfs: Make ACPI GPE mask kernel parameter cover all GPEs") > > > > Signed-off-by: Yunfeng Ye > > > > --- > > > > v1 -> v2: > > > > - drop the "gpe > ACPI_MASKABLE_GPE_MAX" check > > > > - update the docs "Format" from to for acpi_mask_gpe parameter > > > > - update the commit comment > > > > > > > > Documentation/admin-guide/kernel-parameters.txt | 2 +- > > > > drivers/acpi/sysfs.c | 4 ++-- > > > > 2 files changed, 3 insertions(+), 3 deletions(-) > > > > > > Bisect flags commit eb09878e1301 "ACPI: sysfs: Change > > > ACPI_MASKABLE_GPE_MAX to 0x100" in -next as the reason for a boot > > > regression in my qemu-kvm test environment. It spews: > > > > > > [ 1.456728] ACPI: Masking GPE 0x0. > > > ... > > > [ 161.721420] ACPI: Masking GPE 0x0. > > > > > > ...and then hangs. > > > > > > A straight revert gets the configuration back on its feet. > > > > > > qemu-system-x86_64 --version > > > QEMU emulator version 4.0.50 (v4.0.0-928-g49c6c6ac0cd8) > > > > OK, I'll drop it then, thanks! > > We're seeing the same issue wtih 5.4.0-rc7-next-20191118 on a Linux VM > running on Hyper-V : > > [ 0.133029] ACPI: 1 ACPI AML tables successfully acquired and loaded > [ 0.144023] ACPI: Interpreter enabled > [ 0.145023] ACPI: (supports S0 S5) > [ 0.146023] ACPI: Using IOAPIC for interrupt routing > [ 0.147024] PCI: Using host bridge windows from ACPI; if necessary, > use "pci=nocrs" and report a bug > [ 0.148031] ACPI: Masking GPE 0x0. > ... > [ 774.839023] ACPI: Masking GPE 0x0. > [ 774.840023] ACPI: Masking GPE 0x0. > > I guess the patch is only tested on a physical machine and not on a VM... It looks like the patch hasn't been tested at all. Please try to change the data type of gpe in acpi_gpe_apply_masked_gpes() to u16 and see if that helps.