Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2577686ybc; Mon, 18 Nov 2019 01:05:12 -0800 (PST) X-Google-Smtp-Source: APXvYqzU4fIwS920v4jCeKCKqhsWMQ+H97Pvs7KEtWr8ISP1iv2B4u9lJiKI09wAMsv+r40nDgnU X-Received: by 2002:a17:906:3ec8:: with SMTP id d8mr25357826ejj.55.1574067912026; Mon, 18 Nov 2019 01:05:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574067912; cv=none; d=google.com; s=arc-20160816; b=cNZTWcZd79mU+v+ecJoyVlXo1D6PENko6baVZrGKmmV/2bjahpaM971W7tcN8QTTv/ 7aIgglhyGWfzF9gJhj/kFSI3KKLw30NUXcfl2+V+E5eYS5e52GehHrCjyQ90vFzK1Fdw RlGCvP/swTwkEXEuSOW4cWIuZdbCQE9VvcMxJwX+wrpR48hph1kSpFe2DnvKd3708KoC A2NJEjidFJ1IW+8/J/vF0FcOm61CqGUoU0Ex8tvy+HQ3+/HGYAN8QuzaBFZOATr+/Mxv 27oXrUL9o4XM7JdzJn8VyV/qaskrtYbcnUiMKRAGunsHVwx5FaYkPY6AQzEJf0jvMQRa wZIA== 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=jRVAj0cF1NIKTcp+3jim6uMgDs77PK8ocSRvRnJzR94=; b=WzlUUyyTWmgeagfeeMqUKtPn2imfmWPiuPPJR15KUCAFR23KtQ5eYIs7O+noIUfOvP +PCCeCUR68GJqMLIHvV4wVNIAQXhSRff0u4luM+8zRRHg6IRZMo5lCtU41i92krJ2CAs hBHLNEDvyFzD/iGkwar4nQ5DoUtGP2CImrz49nv0M8T3LUbmoQxoJoiIFQVzd5lAFWpT kNh6PckuPHCI4wXJH9SsIMcncNLeeOunlWfZUXgV3U9wx4M2yRXepZeR9Kwzs5JKAf9C DfZyfj0F8BgOup9bnj4s1JEPCr5GronR3LITHaLq7ZlWxJQq3u9T7w28Zo/rFeiMk8f2 lJ4g== 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 f12si11079789edy.41.2019.11.18.01.04.48; Mon, 18 Nov 2019 01:05:12 -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 S1726578AbfKRJDj (ORCPT + 99 others); Mon, 18 Nov 2019 04:03:39 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:43647 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726403AbfKRJDj (ORCPT ); Mon, 18 Nov 2019 04:03:39 -0500 Received: by mail-oi1-f196.google.com with SMTP id l20so14591700oie.10; Mon, 18 Nov 2019 01:03:38 -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=jRVAj0cF1NIKTcp+3jim6uMgDs77PK8ocSRvRnJzR94=; b=AwO96G7XUA4VfSbV1oC2/a3Q/tKaQVWb9UWV4Iiw3wKK+A5adzSGD6rbXZe0ATVLpt BreQ077xtWOs3U7nfKdderH46R+594p+8CYdQXBMHlFQddGXAI5rm39JZPS7KqMTvnBu X5t4P3O7TEPW925vm+6Z0B9Uc2bs0+2mzP9wEMxR5ZSZT/+rcIrArz/777KXU04MbEIX kGIDy5uvH+Tjg4avXv82Ag42hcIBWdE0MpT4wdEvIxfOUQSThQyX10tNmmbJALX5vfGw y1KrttjjZhFHLtBQiIj4qOaQuYszutVU5fIOyqZQ7Z4qNv+mz90ewZxvGGmIRwOt0joW HxjQ== X-Gm-Message-State: APjAAAWfMsbjQBVpYe0fGXZYrA2EXHC7yN78bZItTUpJtBf3DKhhyk91 /9BlQjSnyAknfkaRlRki/la0/WAN6CbzX6q1j5c= X-Received: by 2002:aca:d4c6:: with SMTP id l189mr18741190oig.68.1574067818299; Mon, 18 Nov 2019 01:03:38 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "Rafael J. Wysocki" Date: Mon, 18 Nov 2019 10:03:27 +0100 Message-ID: Subject: Re: [PATCH v2] ACPI: sysfs: Change ACPI_MASKABLE_GPE_MAX to 0x100 To: Dan Williams Cc: Yunfeng Ye , "Rafael J. Wysocki" , Len Brown , Linux ACPI , Linux Kernel Mailing List , "open list:DOCUMENTATION" , "hushiyuan@huawei.com" , "linfeilong@huawei.com" 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 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!