Skip to content

Commit 166fdb4

Browse files
committed
Merge branches 'acpi-misc', 'acpi-video' and 'acpi-prm'
* acpi-misc: ACPI: AMBA: Fix resource name in /proc/iomem * acpi-video: ACPI: video: Add quirk for the Dell Vostro 3350 * acpi-prm: ACPI: Do not singal PRM support if not enabled ACPI: Correct \_SB._OSC bit definition for PRM ACPI: Kconfig: Provide help text for the ACPI_PRMT option
4 parents 7b167c4 + 7718629 + 9249c32 + 392ed6a commit 166fdb4

File tree

5 files changed

+23
-2
lines changed

5 files changed

+23
-2
lines changed

drivers/acpi/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,3 +548,13 @@ config ACPI_PRMT
548548
bool "Platform Runtime Mechanism Support"
549549
depends on EFI && X86_64
550550
default y
551+
help
552+
Platform Runtime Mechanism (PRM) is a firmware interface exposing a
553+
set of binary executables that can be called from the AML interpreter
554+
or directly from device drivers.
555+
556+
Say Y to enable the AML interpreter to execute the PRM code.
557+
558+
While this feature is optional in principle, leaving it out may
559+
substantially increase computational overhead related to the
560+
initialization of some server systems.

drivers/acpi/acpi_amba.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ static int amba_handler_attach(struct acpi_device *adev,
7676
case IORESOURCE_MEM:
7777
if (!address_found) {
7878
dev->res = *rentry->res;
79+
dev->res.name = dev_name(&dev->dev);
7980
address_found = true;
8081
}
8182
break;

drivers/acpi/acpi_video.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,15 @@ static const struct dmi_system_id video_dmi_table[] = {
540540
DMI_MATCH(DMI_PRODUCT_NAME, "Vostro V131"),
541541
},
542542
},
543+
{
544+
.callback = video_set_report_key_events,
545+
.driver_data = (void *)((uintptr_t)REPORT_BRIGHTNESS_KEY_EVENTS),
546+
.ident = "Dell Vostro 3350",
547+
.matches = {
548+
DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
549+
DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 3350"),
550+
},
551+
},
543552
/*
544553
* Some machines change the brightness themselves when a brightness
545554
* hotkey gets pressed, despite us telling them not to. In this case

drivers/acpi/bus.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ static void acpi_bus_osc_negotiate_platform_control(void)
303303

304304
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_HOTPLUG_OST_SUPPORT;
305305
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PCLPI_SUPPORT;
306-
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PRM_SUPPORT;
306+
if (IS_ENABLED(CONFIG_ACPI_PRMT))
307+
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PRM_SUPPORT;
307308

308309
#ifdef CONFIG_ARM64
309310
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_GENERIC_INITIATOR_SUPPORT;

include/linux/acpi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,8 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context);
551551
#define OSC_SB_OSLPI_SUPPORT 0x00000100
552552
#define OSC_SB_CPC_DIVERSE_HIGH_SUPPORT 0x00001000
553553
#define OSC_SB_GENERIC_INITIATOR_SUPPORT 0x00002000
554-
#define OSC_SB_PRM_SUPPORT 0x00020000
555554
#define OSC_SB_NATIVE_USB4_SUPPORT 0x00040000
555+
#define OSC_SB_PRM_SUPPORT 0x00200000
556556

557557
extern bool osc_sb_apei_support_acked;
558558
extern bool osc_pc_lpi_support_confirmed;

0 commit comments

Comments
 (0)