AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Siqueira Jordao <Rodrigo.Siqueira@amd.com>
To: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: hamza.mahfooz@amd.com, harry.wentland@amd.com,
	amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/amd/display: Add debug option to disable idle optimizations
Date: Wed, 16 Oct 2024 15:05:13 -0600	[thread overview]
Message-ID: <005fb572-7111-4a2e-85e1-3f8b2f1a361e@amd.com> (raw)
In-Reply-To: <20241015174109.238518-1-aurabindo.pillai@amd.com>



On 10/15/24 11:41 AM, Aurabindo Pillai wrote:
> For debugging purposes, add a runtime override to disable display scanout
> from MALL cache (MALL Static Screen) by disallowing the driver from
> triggering the idle power optimizations when desktop is idle.
> 
> Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
> ---
>   drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++++
>   drivers/gpu/drm/amd/include/amd_shared.h          | 5 +++++
>   2 files changed, 9 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 c5487bb7c6b8..bb0e9deebcc5 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -2012,6 +2012,10 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
>   		adev->dm.dc->debug.using_dml21 = true;
>   	}
>   
> +	if (amdgpu_dc_debug_mask & DC_DISABLE_IDLE_POWER_OPTIMIZATIONS) {
> +		adev->dm.dc->debug.disable_idle_power_optimizations = true;
> +	}

Drop the braces around the single statement, with that change:

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>

> +
>   	adev->dm.dc->debug.visual_confirm = amdgpu_dc_visual_confirm;
>   
>   	/* TODO: Remove after DP2 receiver gets proper support of Cable ID feature */
> diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h
> index 7eefcb0f5070..fba3f2f1327e 100644
> --- a/drivers/gpu/drm/amd/include/amd_shared.h
> +++ b/drivers/gpu/drm/amd/include/amd_shared.h
> @@ -344,6 +344,11 @@ enum DC_DEBUG_MASK {
>   	 * eDP display from ACPI _DDC method.
>   	 */
>   	DC_DISABLE_ACPI_EDID = 0x8000,
> +	/**
> +	 * @DC_DISABLE_IDLE_POWER_OPTIMISATION: Disables certain power
> +	 * optimizations when desktop is in idle state
> +	 */
> +	DC_DISABLE_IDLE_POWER_OPTIMIZATIONS = 0x10000,
>   };
>   
>   enum amd_dpm_forced_level;


      reply	other threads:[~2024-10-16 21:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-15 17:41 [PATCH] drm/amd/display: Add debug option to disable idle optimizations Aurabindo Pillai
2024-10-16 21:05 ` Rodrigo Siqueira Jordao [this message]

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=005fb572-7111-4a2e-85e1-3f8b2f1a361e@amd.com \
    --to=rodrigo.siqueira@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=aurabindo.pillai@amd.com \
    --cc=hamza.mahfooz@amd.com \
    --cc=harry.wentland@amd.com \
    /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