AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Harry Wentland <harry.wentland@amd.com>
To: Mario Limonciello <mario.limonciello@amd.com>,
	"Rafael J . Wysocki" <rafael@kernel.org>,
	Alexander Deucher <Alexander.Deucher@amd.com>,
	Hans de Goede <hdegoede@redhat.com>
Cc: linux-acpi@vger.kernel.org, amd-gfx@lists.freedesktop.org,
	Daniel Dadap <ddadap@nvidia.com>
Subject: Re: [PATCH v3 2/3] drm/amd/display: Report to ACPI video if no panels were found
Date: Tue, 3 Jan 2023 15:14:53 -0500	[thread overview]
Message-ID: <892da99d-7bb6-a202-adbe-0d6e5a3c0a0d@amd.com> (raw)
In-Reply-To: <20221208164207.13518-3-mario.limonciello@amd.com>

On 12/8/22 11:42, Mario Limonciello wrote:
> 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>
> Reviewed-by: Hans de Goede <hdegoede@redhat.com>

Reviewed-by: Harry Wentland <harry.wentland@amd.com>

Harry

> ---
> v2->v3:
>  * Add Hans' R-b
> 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)


  reply	other threads:[~2023-01-03 20:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-08 16:42 [PATCH v3 0/3] Adjust ACPI video detection fallback path Mario Limonciello
2022-12-08 16:42 ` [PATCH v3 1/3] ACPI: video: Allow GPU drivers to report no panels Mario Limonciello
2022-12-08 17:49   ` Daniel Dadap
2022-12-08 17:56     ` Limonciello, Mario
2022-12-08 16:42 ` [PATCH v3 2/3] drm/amd/display: Report to ACPI video if no panels were found Mario Limonciello
2023-01-03 20:14   ` Harry Wentland [this message]
2022-12-08 16:42 ` [PATCH v3 3/3] ACPI: video: Don't enable fallback path for creating ACPI backlight by default Mario Limonciello
2022-12-15 19:20 ` [PATCH v3 0/3] Adjust ACPI video detection fallback path Limonciello, Mario
2022-12-15 19:38   ` Rafael J. Wysocki
2022-12-22 16:42     ` Rafael J. Wysocki

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=892da99d-7bb6-a202-adbe-0d6e5a3c0a0d@amd.com \
    --to=harry.wentland@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=mario.limonciello@amd.com \
    --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