Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3235051ybc; Mon, 18 Nov 2019 11:46:00 -0800 (PST) X-Google-Smtp-Source: APXvYqwqijzwF80cMBu0dEoHAbfoslUFumHkA3ZbIly5ztimuZ9gM+ThJdUrfbRYEvjsRS8BMB+7 X-Received: by 2002:a17:906:b30c:: with SMTP id n12mr28427224ejz.96.1574106360555; Mon, 18 Nov 2019 11:46:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574106360; cv=none; d=google.com; s=arc-20160816; b=KNp9G6u7Sbu2zQtXrMmq5V3AoEvMynyNHKW6x/kyl8xiwNkTUFE+pN8mbpxQ3pXwTw ocfWx0FNh4wmTwEcB9NCXPsyyTYY0ww1vqwLVsyiDBewDGIMvt4i/E1XsxYi0F7T9rJZ E6awEFB6O4UPlCm8SEvUrSge4izQXvUrX3B6b1/yTzm6cd/6ZFYDNhWIWbsyG4jd05fM 0xi1EnqBq8HUfqpGKMzWhwUp0d3RRvW8lvbPICU10h0irzYY8EwtH+unqDjm+PyIeEmL Hi/pnk5dEs0vJAqmiz8MOgp1LbISM57eCRIKYQDbwTJm+QJ0ddDcyUx4aLKPv6OhoNKf OJAw== 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:dkim-signature; bh=TC5IKXkEeLvUIaKix78ztNNc8pykt/x5bB2H11fvT/g=; b=y+0SUQgc/Lb25uSGITagAsvygSwOKYXOF3vXYsO11WZifa3YqyGesJWEowHF+BUcDi ici6Jr8CKfmJ0l1cH9OBKVPB0tfZ/VTpbl74iifkm4IAdxdJ4wxgNXQ34w+3dDv/jhd1 a9v1vk0Q+DAWATQjx85yL19DNVGIHigFbmDbEjoDRYDIp+lJrcISXURfKoVAUc4OLP8l XrR+/TJbeQY8SAh7S00Yw0FgGn7V0m8H8lA72DjVgfbCMRl7E90+hZGHseAkHzvAWv2A zuLno9AUd+NJSFfFvByVBREvYCxSuHATL/+EB4fTz8UrfDWE61xdqRNwY97s2w9Z5tGt qdZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VTpZ6pSl; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t8si11980065ejj.328.2019.11.18.11.45.36; Mon, 18 Nov 2019 11:46:00 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VTpZ6pSl; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726666AbfKRToe (ORCPT + 99 others); Mon, 18 Nov 2019 14:44:34 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:36854 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726435AbfKRTod (ORCPT ); Mon, 18 Nov 2019 14:44:33 -0500 Received: by mail-pl1-f193.google.com with SMTP id d7so10356190pls.3; Mon, 18 Nov 2019 11:44:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TC5IKXkEeLvUIaKix78ztNNc8pykt/x5bB2H11fvT/g=; b=VTpZ6pSli/VDtzsKnZzYR/zf6tW/PLbkRZ9njXbP6NAzL/LV0QjNlb1CWoA66IbQ6T Wlz88NkWn8/vyfhmIlkE/ogrUYLZSqVZjwlxHXsftWSCeFDRL6lL3GQZM9uTZ0WxQ0A8 c1oLE6NKGj8WEIHCHYYUVS2sfDo6n2+oLQDM35zaGfpzPOIcmy2lvLq4adnexszJT8HA BlIGnGMxRyitb/dPEF1OgC0Rogv7HIeqpE5kY+jmDh4m5zks9K2fAD1P/UDnY3VNVd7O f94lFwqpRYaB0vaIys2FqGO3We8Y6RpW+BNk9YZAOjpDbZuHso11aaarOntsmQ+O4wIK nCkQ== 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=TC5IKXkEeLvUIaKix78ztNNc8pykt/x5bB2H11fvT/g=; b=q9wPYIX2t2HGmBPLCQw+aF5dLMbTdYwNdkJAitHCK7F6irvKQ37ua6fwXwmVdv6g+W 4fj/QNvVLozporYLuZZABxWE+HzL7PqW6M3/7uUnfWF9Lr8D8YbNgUDm2bMMxyTawSTq MbTUXSdgPw73fU3DfiKUENdn9eFSjBAEy30zo58PN9maH7rnuhuj84MB/VrWyUT17odn 3Zg67O48R5tUXtevkIn7mNv0iIF98z5UCDjLAtxgUsUj+5MKYoVovAwcHk+bz5w5rnkx miojwrRyY/e2X0KTHDr4BedGa1ZJPl8j6rMC+3zhYGwiTqiYViX87MwqLSJlJCjQ613X HA4g== X-Gm-Message-State: APjAAAWIids6xsKXfmdDyEm9q3hvDc5ftrzWhcNoQFgcEuo4AS7OBVAx GXaXvWocVa2790CYt9jK5aNX02wJ9nF3Qicy3+Y= X-Received: by 2002:a17:90a:bb82:: with SMTP id v2mr888586pjr.90.1574106272898; Mon, 18 Nov 2019 11:44:32 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Dexuan-Linux Cui Date: Mon, 18 Nov 2019 11:44:22 -0800 Message-ID: Subject: Re: [PATCH v2] ACPI: sysfs: Change ACPI_MASKABLE_GPE_MAX to 0x100 To: "Rafael J. Wysocki" Cc: 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 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... Thanks, Dexuan