From: Hamza Mahfooz <hamza.mahfooz@amd.com>
To: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>,
amd-gfx@lists.freedesktop.org, stable@vger.kernel.org,
dri-devel@lists.freedesktop.org
Cc: Ivan Lipski <ivlipski@amd.com>,
Tsung-hua Lin <tsung-hua.lin@amd.com>,
Chris Chi <moukong.chi@amd.com>,
Harry Wentland <Harry.Wentland@amd.com>,
Daniel Wheeler <daniel.wheeler@amd.com>,
Sun peng Li <sunpeng.li@amd.com>
Subject: Re: [PATCH] drm/amd/display: Add monitor patch for specific eDP
Date: Wed, 28 Feb 2024 10:50:37 -0500 [thread overview]
Message-ID: <281fca33-6163-40e3-8c5d-dab7b432dd86@amd.com> (raw)
In-Reply-To: <20240227181854.482773-1-Rodrigo.Siqueira@amd.com>
On 2/27/24 13:18, Rodrigo Siqueira wrote:
> From: Ivan Lipski <ivlipski@amd.com>
>
> [WHY]
> Some eDP panels's ext caps don't write initial value cause the value of
> dpcd_addr(0x317) is random. It means that sometimes the eDP will
> clarify it is OLED, miniLED...etc cause the backlight control interface
> is incorrect.
>
> [HOW]
> Add a new panel patch to remove sink ext caps(HDR,OLED...etc)
I wonder if it would make sense to turn this into a DPCD qurik (see
drivers/gpu/drm/display/drm_dp_helper.c). Since, it is rather unsettling
that we have so many panel quirks in our driver.
>
> Cc: stable@vger.kernel.org # 6.5.x
> Cc: Hamza Mahfooz <hamza.mahfooz@amd.com>
> Cc: Tsung-hua Lin <tsung-hua.lin@amd.com>
> Cc: Chris Chi <moukong.chi@amd.com>
> Cc: Harry Wentland <Harry.Wentland@amd.com>
> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
> Reviewed-by: Sun peng Li <sunpeng.li@amd.com>
> Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
> Signed-off-by: Ivan Lipski <ivlipski@amd.com>
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
> index d9a482908380..764dc3ffd91b 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
> @@ -63,6 +63,12 @@ static void apply_edid_quirks(struct edid *edid, struct dc_edid_caps *edid_caps)
> DRM_DEBUG_DRIVER("Disabling FAMS on monitor with panel id %X\n", panel_id);
> edid_caps->panel_patch.disable_fams = true;
> break;
> + /* Workaround for some monitors that do not clear DPCD 0x317 if FreeSync is unsupported */
> + case drm_edid_encode_panel_id('A', 'U', 'O', 0xA7AB):
> + case drm_edid_encode_panel_id('A', 'U', 'O', 0xE69B):
> + DRM_DEBUG_DRIVER("Clearing DPCD 0x317 on monitor with panel id %X\n", panel_id);
> + edid_caps->panel_patch.remove_sink_ext_caps = true;
> + break;
> default:
> return;
> }
--
Hamza
prev parent reply other threads:[~2024-02-28 15:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-27 18:18 [PATCH] drm/amd/display: Add monitor patch for specific eDP Rodrigo Siqueira
2024-02-28 15:38 ` Harry Wentland
2024-02-28 15:50 ` 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=281fca33-6163-40e3-8c5d-dab7b432dd86@amd.com \
--to=hamza.mahfooz@amd.com \
--cc=Harry.Wentland@amd.com \
--cc=Rodrigo.Siqueira@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=daniel.wheeler@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=ivlipski@amd.com \
--cc=moukong.chi@amd.com \
--cc=stable@vger.kernel.org \
--cc=sunpeng.li@amd.com \
--cc=tsung-hua.lin@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