artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4a5d5d
)
drm/amd/display: Report to ACPI video if no panels were found
author
jsg
<jsg@openbsd.org>
Fri, 13 Jan 2023 01:42:45 +0000
(
01:42
+0000)
committer
jsg
<jsg@openbsd.org>
Fri, 13 Jan 2023 01:42:45 +0000
(
01:42
+0000)
From Mario Limonciello
adaf41b56803fe7a9a4ac625c7e41615ef23591f
in linux-6.1.y/6.1.5
c573e240609ff781a0246c0c8c8351abd0475287
in mainline linux
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index
fea6ce2
..
dcc05ff
100644
(file)
--- a/
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@
-4374,6
+4374,10
@@
static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
amdgpu_set_panel_orientation(&aconnector->base);
}
+ /* If we didn't find a panel, notify the acpi video detection */
+ if (dm->adev->flags & AMD_IS_APU && dm->num_of_edps == 0)
+ acpi_video_report_nolcd();
+
/* Software is initialized. Now we can register interrupt handlers. */
switch (adev->asic_type) {
#if defined(CONFIG_DRM_AMD_DC_SI)