ACPI: sysfs: Make ACPI GPE mask kernel parameter cover all GPEs
authorPrarit Bhargava <prarit@redhat.com>
Thu, 30 Nov 2017 20:05:59 +0000 (15:05 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Dec 2017 00:11:33 +0000 (01:11 +0100)
commit0f27cff8597d86f881ea8274b49b63b678c14a3c
tree88b38b54a99321462d34f80e33e484c23b28f079
parent50c4c4e268a2d7a3e58ebb698ac74da0de40ae36
ACPI: sysfs: Make ACPI GPE mask kernel parameter cover all GPEs

The acpi_mask_gpe= kernel parameter documentation states that the range
of mask is 128 GPEs (0x00 to 0x7F).  The acpi_masked_gpes mask is a u64 so
only 64 GPEs (0x00 to 0x3F) can really be masked.

Use a bitmap of size 0xFF instead of a u64 for the GPE mask so 256
GPEs can be masked.

Fixes: 9c4aa1eecb48 (ACPI / sysfs: Provide quirk mechanism to prevent GPE flooding)
Signed-off-by: Prarit Bharava <prarit@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/admin-guide/kernel-parameters.txt
drivers/acpi/sysfs.c