Skip to content

Commit 9c59b46

Browse files
committed
Merge tag 'acpi-7.1-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI support fixes from Rafael Wysocki: "These fix two potential refcount leaks in error code paths in the ACPI core code, address a recently introduced build breakage related to the CPU UID handling consolidation, fix up a recently added MAINTAINERS entry, fix the quirk list in the ACPI video bus driver, and add a new quirk to it: - Add an acpi_get_cpu_uid() stub helper to address an x86 Xen support build breakage (Arnd Bergmann) - Use acpi_dev_put() in object add error paths in the ACPI core to avoid refcount leaks (Guangshuo Li) - Adjust the file entry in the recently added NVIDIA GHES HANDLER entry in MAINTAINERS to the actual existing file (Lukas Bulwahn) - Add backlight=native quirk for Dell OptiPlex 7770 AIO to the ACPI video bus driver (Jan Schär) - Move Lenovo Legion S7 15ACH6 quirk to the right section of the quirk list in the ACPI video bus driver (Hans de Goede)" * tag 'acpi-7.1-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI: video: Move Lenovo Legion S7 15ACH6 quirk to the right section ACPI: video: Add backlight=native quirk for Dell OptiPlex 7770 AIO ACPI: add acpi_get_cpu_uid() stub helper MAINTAINERS: adjust file entry in NVIDIA GHES HANDLER ACPI: scan: Use acpi_dev_put() in object add error paths
2 parents 45dcf5e + beca826 commit 9c59b46

5 files changed

Lines changed: 26 additions & 11 deletions

File tree

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19104,7 +19104,7 @@ NVIDIA GHES VENDOR CPER RECORD HANDLER
1910419104
M: Kai-Heng Feng <[email protected]>
1910519105
1910619106
S: Maintained
19107-
F: drivers/acpi/apei/nvidia-ghes.c
19107+
F: drivers/acpi/apei/ghes-nvidia.c
1910819108

1910919109
NVIDIA VRS RTC DRIVER
1911019110
M: Shubhi Garg <[email protected]>

drivers/acpi/power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ struct acpi_device *acpi_add_power_resource(acpi_handle handle)
987987
return device;
988988

989989
err:
990-
acpi_release_power_resource(&device->dev);
990+
acpi_dev_put(device);
991991
return NULL;
992992
}
993993

drivers/acpi/scan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1900,7 +1900,7 @@ static int acpi_add_single_object(struct acpi_device **child,
19001900
result = acpi_device_add(device);
19011901

19021902
if (result) {
1903-
acpi_device_release(&device->dev);
1903+
acpi_dev_put(device);
19041904
return result;
19051905
}
19061906

drivers/acpi/video_detect.c

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
878878
DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex 7760 AIO"),
879879
},
880880
},
881+
{
882+
.callback = video_detect_force_native,
883+
/* Dell OptiPlex 7770 AIO */
884+
.matches = {
885+
DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
886+
DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex 7770 AIO"),
887+
},
888+
},
881889

882890
/*
883891
* Models which have nvidia-ec-wmi support, but should not use it.
@@ -899,6 +907,15 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
899907
DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 15 3535"),
900908
},
901909
},
910+
{
911+
/* https://gitlab.freedesktop.org/drm/amd/-/issues/4512 */
912+
.callback = video_detect_force_native,
913+
/* Lenovo Legion S7 15ACH6 */
914+
.matches = {
915+
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
916+
DMI_MATCH(DMI_PRODUCT_NAME, "82K8"),
917+
},
918+
},
902919

903920
/*
904921
* x86 android tablets which directly control the backlight through
@@ -948,14 +965,6 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
948965
DMI_MATCH(DMI_PRODUCT_NAME, "Mipad2"),
949966
},
950967
},
951-
/* https://gitlab.freedesktop.org/drm/amd/-/issues/4512 */
952-
{
953-
.callback = video_detect_force_native,
954-
.matches = {
955-
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
956-
DMI_MATCH(DMI_PRODUCT_NAME, "82K8"),
957-
},
958-
},
959968
{ },
960969
};
961970

include/linux/acpi.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,12 @@ static inline int acpi_table_parse(char *id,
959959
return -ENODEV;
960960
}
961961

962+
static inline int acpi_get_cpu_uid(unsigned int cpu, u32 *uid)
963+
{
964+
*uid = cpu;
965+
return 0;
966+
}
967+
962968
static inline int acpi_nvs_register(__u64 start, __u64 size)
963969
{
964970
return 0;

0 commit comments

Comments
 (0)