Skip to content

Commit c573e24

Browse files
superm1rafaeljw
authored andcommitted
drm/amd/display: Report to ACPI video if no panels were found
On desktop APUs amdgpu doesn't create a native backlight device as no eDP panels are found. However if the BIOS has reported backlight control methods in the ACPI tables then an acpi_video0 backlight device will be made 8 seconds after boot. This has manifested in a power slider on a number of desktop APUs ranging from Ryzen 5000 through Ryzen 7000 on various motherboard manufacturers. To avoid this, report to the acpi video detection that the system does not have any panel connected in the native driver. Link: https://bugzilla.redhat.com/show_bug.cgi?id=1783786 Reported-by: Hans de Goede <[email protected]> Signed-off-by: Mario Limonciello <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 00a7341 commit c573e24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4360,6 +4360,10 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
43604360
amdgpu_set_panel_orientation(&aconnector->base);
43614361
}
43624362

4363+
/* If we didn't find a panel, notify the acpi video detection */
4364+
if (dm->adev->flags & AMD_IS_APU && dm->num_of_edps == 0)
4365+
acpi_video_report_nolcd();
4366+
43634367
/* Software is initialized. Now we can register interrupt handlers. */
43644368
switch (adev->asic_type) {
43654369
#if defined(CONFIG_DRM_AMD_DC_SI)

0 commit comments

Comments
 (0)