AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Hamza Mahfooz <hamza.mahfooz@amd.com>
To: Harry Wentland <harry.wentland@amd.com>, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/amd/display: Get min/max vfreq from display_info
Date: Wed, 13 Mar 2024 09:31:25 -0400	[thread overview]
Message-ID: <25b74f62-64ff-4a10-8d9e-db55428468be@amd.com> (raw)
In-Reply-To: <20240312134728.14046-1-harry.wentland@amd.com>

On 3/12/24 09:47, Harry Wentland wrote:
> We need the min/max vfreq on the amdgpu_dm_connector in order to
> program VRR.
> 
> Fixes: db3e4f1cbb84 ("drm/amd/display: Use freesync when `DRM_EDID_FEATURE_CONTINUOUS_FREQ` found")
> Signed-off-by: Harry Wentland <harry.wentland@amd.com>

Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>

> ---
>   drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 7 +++++--
>   1 file changed, 5 insertions(+), 2 deletions(-)
> 
> 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 b1ca0aee0b30..cffb2655177c 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -11278,12 +11278,15 @@ void amdgpu_dm_update_freesync_caps(struct drm_connector *connector,
>   
>   		if (is_dp_capable_without_timing_msa(adev->dm.dc,
>   						     amdgpu_dm_connector)) {
> -			if (edid->features & DRM_EDID_FEATURE_CONTINUOUS_FREQ)
> +			if (edid->features & DRM_EDID_FEATURE_CONTINUOUS_FREQ) {
>   				freesync_capable = true;
> -			else
> +				amdgpu_dm_connector->min_vfreq = connector->display_info.monitor_range.min_vfreq;
> +				amdgpu_dm_connector->max_vfreq = connector->display_info.monitor_range.max_vfreq;
> +			} else {
>   				edid_check_required = edid->version > 1 ||
>   						      (edid->version == 1 &&
>   						       edid->revision > 1);
> +			}
>   		}
>   
>   		if (edid_check_required) {
-- 
Hamza


      parent reply	other threads:[~2024-03-13 13:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-12 13:47 [PATCH] drm/amd/display: Get min/max vfreq from display_info Harry Wentland
2024-03-12 14:58 ` Alex Deucher
2024-03-12 15:28   ` Harry Wentland
2024-03-13 13:31     ` Wheeler, Daniel
2024-03-13 13:31 ` Hamza Mahfooz [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=25b74f62-64ff-4a10-8d9e-db55428468be@amd.com \
    --to=hamza.mahfooz@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --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