]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ACPI: sysfs: Change ACPI_MASKABLE_GPE_MAX to 0x100
authorYunfeng Ye <yeyunfeng@huawei.com>
Thu, 14 Nov 2019 07:16:24 +0000 (15:16 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commit3c7f2cafdeb88be99760094808d228e1955179a0
tree9eae5282ffffac26fbf52cbe5182860f8815b876
parent6b12720e24c0d04220f583252d26b45bd75c7db5
ACPI: sysfs: Change ACPI_MASKABLE_GPE_MAX to 0x100

BugLink: https://bugs.launchpad.net/bugs/1861710
commit a7583e72a5f22470d3e6fd3b6ba912892242339f upstream.

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 <yeyunfeng@huawei.com>
[ rjw: Use u16 as gpe data type in acpi_gpe_apply_masked_gpes() ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Documentation/admin-guide/kernel-parameters.txt
drivers/acpi/sysfs.c