From: jsg Date: Fri, 13 Jan 2023 01:42:45 +0000 (+0000) Subject: drm/amd/display: Report to ACPI video if no panels were found X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9b09f4f09f301e518e0012be1b2a7ef3f560d67c;p=openbsd drm/amd/display: Report to ACPI video if no panels were found From Mario Limonciello adaf41b56803fe7a9a4ac625c7e41615ef23591f in linux-6.1.y/6.1.5 c573e240609ff781a0246c0c8c8351abd0475287 in mainline linux --- 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 fea6ce24363..dcc05ff8800 100644 --- 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)