From: Mario Limonciello <mario.limonciello@amd.com>
To: "Rafael J . Wysocki" <rafael@kernel.org>,
Alexander Deucher <Alexander.Deucher@amd.com>,
Hans de Goede <hdegoede@redhat.com>
Cc: linux-acpi@vger.kernel.org,
Mario Limonciello <mario.limonciello@amd.com>,
amd-gfx@lists.freedesktop.org, Daniel Dadap <ddadap@nvidia.com>
Subject: [PATCH v2 2/3] drm/amd/display: Report to ACPI video if no panels were found
Date: Wed, 7 Dec 2022 19:09:09 -0600 [thread overview]
Message-ID: <20221208010910.7621-3-mario.limonciello@amd.com> (raw)
In-Reply-To: <20221208010910.7621-1-mario.limonciello@amd.com>
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 <hdegoede@redhat.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
v1->v2:
* No changes
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 512c32327eb1..b73f61ac5dd5 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -4371,6 +4371,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)
--
2.34.1
next prev parent reply other threads:[~2022-12-08 1:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-08 1:09 [PATCH v2 0/3] Adjust ACPI video detection fallback path Mario Limonciello
2022-12-08 1:09 ` [PATCH v2 1/3] ACPI: video: Allow GPU drivers to report no panels Mario Limonciello
2022-12-08 11:32 ` Rafael J. Wysocki
2022-12-08 1:09 ` Mario Limonciello [this message]
2022-12-08 11:13 ` [PATCH v2 2/3] drm/amd/display: Report to ACPI video if no panels were found kernel test robot
2022-12-08 13:34 ` kernel test robot
2022-12-08 1:09 ` [PATCH v2 3/3] ACPI: video: Don't enable fallback path for creating ACPI backlight by default Mario Limonciello
2022-12-08 9:43 ` [PATCH v2 0/3] Adjust ACPI video detection fallback path Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221208010910.7621-3-mario.limonciello@amd.com \
--to=mario.limonciello@amd.com \
--cc=Alexander.Deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=ddadap@nvidia.com \
--cc=hdegoede@redhat.com \
--cc=linux-acpi@vger.kernel.org \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox