Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH] drm/display/dp: Rename bit 4 of DPCD TEST_REQUEST to match DP2.1 spec
@ 2025-10-28 22:28 Khaled Almahallawy
  2025-10-29  8:57 ` Dmitry Baryshkov
  2025-10-29  9:42 ` Konrad Dybcio
  0 siblings, 2 replies; 7+ messages in thread
From: Khaled Almahallawy @ 2025-10-28 22:28 UTC (permalink / raw)
  To: dri-devel, linux-arm-msm
  Cc: intel-gfx, intel-xe, Khaled Almahallawy, Jani Nikula, Rob Clark,
	Dmitry Baryshkov, Abhinav Kumar, Sean Paul

The DP_TEST_LINK_FAUX_PATTERN field was deprecated in the DP 1.3 spec.
Update its name to align with the DP 2.1 definition and reflect its
actual use in the code. No functional changes.

Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Rob Clark <robin.clark@oss.qualcomm.com>
Cc: Dmitry Baryshkov <lumag@kernel.org>
Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
Cc: Sean Paul <sean@poorly.run>
Signed-off-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
---
 drivers/gpu/drm/msm/dp/dp_link.c | 2 +-
 include/drm/display/drm_dp.h     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/msm/dp/dp_link.c b/drivers/gpu/drm/msm/dp/dp_link.c
index 66e1bbd80db3..5d465cf4dbc2 100644
--- a/drivers/gpu/drm/msm/dp/dp_link.c
+++ b/drivers/gpu/drm/msm/dp/dp_link.c
@@ -665,7 +665,7 @@ static int msm_dp_link_parse_request(struct msm_dp_link_private *link)
 		return rlen;
 	}
 
-	if (!data || (data == DP_TEST_LINK_FAUX_PATTERN)) {
+	if (!data || (data == DP_TEST_PHY_TEST_CHANNEL_CODING_TYPE)) {
 		drm_dbg_dp(link->drm_dev, "link 0x%x not supported\n", data);
 		goto end;
 	}
diff --git a/include/drm/display/drm_dp.h b/include/drm/display/drm_dp.h
index e4eebabab975..610b8cbf1125 100644
--- a/include/drm/display/drm_dp.h
+++ b/include/drm/display/drm_dp.h
@@ -849,7 +849,7 @@
 # define DP_TEST_LINK_VIDEO_PATTERN	    (1 << 1)
 # define DP_TEST_LINK_EDID_READ		    (1 << 2)
 # define DP_TEST_LINK_PHY_TEST_PATTERN	    (1 << 3) /* DPCD >= 1.1 */
-# define DP_TEST_LINK_FAUX_PATTERN	    (1 << 4) /* DPCD >= 1.2 */
+# define DP_TEST_PHY_TEST_CHANNEL_CODING_TYPE	    (1 << 4)
 # define DP_TEST_LINK_AUDIO_PATTERN         (1 << 5) /* DPCD >= 1.2 */
 # define DP_TEST_LINK_AUDIO_DISABLED_VIDEO  (1 << 6) /* DPCD >= 1.2 */
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] drm/display/dp: Rename bit 4 of DPCD TEST_REQUEST to match DP2.1 spec
  2025-10-28 22:28 [PATCH] drm/display/dp: Rename bit 4 of DPCD TEST_REQUEST to match DP2.1 spec Khaled Almahallawy
@ 2025-10-29  8:57 ` Dmitry Baryshkov
  2025-10-29 21:43   ` Almahallawy, Khaled
  2025-10-29  9:42 ` Konrad Dybcio
  1 sibling, 1 reply; 7+ messages in thread
From: Dmitry Baryshkov @ 2025-10-29  8:57 UTC (permalink / raw)
  To: Khaled Almahallawy
  Cc: dri-devel, linux-arm-msm, intel-gfx, intel-xe, Jani Nikula,
	Rob Clark, Dmitry Baryshkov, Abhinav Kumar, Sean Paul

On Tue, Oct 28, 2025 at 03:28:17PM -0700, Khaled Almahallawy wrote:
> The DP_TEST_LINK_FAUX_PATTERN field was deprecated in the DP 1.3 spec.
> Update its name to align with the DP 2.1 definition and reflect its
> actual use in the code. No functional changes.
> 
> Cc: Jani Nikula <jani.nikula@intel.com>
> Cc: Rob Clark <robin.clark@oss.qualcomm.com>
> Cc: Dmitry Baryshkov <lumag@kernel.org>
> Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
> Cc: Sean Paul <sean@poorly.run>
> Signed-off-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
> ---
>  drivers/gpu/drm/msm/dp/dp_link.c | 2 +-
>  include/drm/display/drm_dp.h     | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

Would you prefer to merge this through drm-misc-next or through msm-next?

-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] drm/display/dp: Rename bit 4 of DPCD TEST_REQUEST to match DP2.1 spec
  2025-10-28 22:28 [PATCH] drm/display/dp: Rename bit 4 of DPCD TEST_REQUEST to match DP2.1 spec Khaled Almahallawy
  2025-10-29  8:57 ` Dmitry Baryshkov
@ 2025-10-29  9:42 ` Konrad Dybcio
  2025-10-29 21:42   ` Almahallawy, Khaled
  1 sibling, 1 reply; 7+ messages in thread
From: Konrad Dybcio @ 2025-10-29  9:42 UTC (permalink / raw)
  To: Khaled Almahallawy, dri-devel, linux-arm-msm
  Cc: intel-gfx, intel-xe, Jani Nikula, Rob Clark, Dmitry Baryshkov,
	Abhinav Kumar, Sean Paul

On 10/28/25 11:28 PM, Khaled Almahallawy wrote:
> The DP_TEST_LINK_FAUX_PATTERN field was deprecated in the DP 1.3 spec.
> Update its name to align with the DP 2.1 definition and reflect its
> actual use in the code. No functional changes.
> 
> Cc: Jani Nikula <jani.nikula@intel.com>
> Cc: Rob Clark <robin.clark@oss.qualcomm.com>
> Cc: Dmitry Baryshkov <lumag@kernel.org>
> Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
> Cc: Sean Paul <sean@poorly.run>
> Signed-off-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
> ---
>  drivers/gpu/drm/msm/dp/dp_link.c | 2 +-
>  include/drm/display/drm_dp.h     | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/msm/dp/dp_link.c b/drivers/gpu/drm/msm/dp/dp_link.c
> index 66e1bbd80db3..5d465cf4dbc2 100644
> --- a/drivers/gpu/drm/msm/dp/dp_link.c
> +++ b/drivers/gpu/drm/msm/dp/dp_link.c
> @@ -665,7 +665,7 @@ static int msm_dp_link_parse_request(struct msm_dp_link_private *link)
>  		return rlen;
>  	}
>  
> -	if (!data || (data == DP_TEST_LINK_FAUX_PATTERN)) {
> +	if (!data || (data == DP_TEST_PHY_TEST_CHANNEL_CODING_TYPE)) {
>  		drm_dbg_dp(link->drm_dev, "link 0x%x not supported\n", data);
>  		goto end;
>  	}
> diff --git a/include/drm/display/drm_dp.h b/include/drm/display/drm_dp.h
> index e4eebabab975..610b8cbf1125 100644
> --- a/include/drm/display/drm_dp.h
> +++ b/include/drm/display/drm_dp.h
> @@ -849,7 +849,7 @@
>  # define DP_TEST_LINK_VIDEO_PATTERN	    (1 << 1)
>  # define DP_TEST_LINK_EDID_READ		    (1 << 2)
>  # define DP_TEST_LINK_PHY_TEST_PATTERN	    (1 << 3) /* DPCD >= 1.1 */
> -# define DP_TEST_LINK_FAUX_PATTERN	    (1 << 4) /* DPCD >= 1.2 */
> +# define DP_TEST_PHY_TEST_CHANNEL_CODING_TYPE	    (1 << 4)

I think it'd be useful to keep a comment of what it was before the
deprecation and rename

Konrad

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] drm/display/dp: Rename bit 4 of DPCD TEST_REQUEST to match DP2.1 spec
  2025-10-29  9:42 ` Konrad Dybcio
@ 2025-10-29 21:42   ` Almahallawy, Khaled
  2025-10-31  9:35     ` Konrad Dybcio
  0 siblings, 1 reply; 7+ messages in thread
From: Almahallawy, Khaled @ 2025-10-29 21:42 UTC (permalink / raw)
  To: konrad.dybcio@oss.qualcomm.com, dri-devel@lists.freedesktop.org,
	linux-arm-msm@vger.kernel.org
  Cc: intel-xe@lists.freedesktop.org, robin.clark@oss.qualcomm.com,
	Nikula, Jani, lumag@kernel.org, intel-gfx@lists.freedesktop.org,
	sean@poorly.run

On Wed, 2025-10-29 at 10:42 +0100, Konrad Dybcio wrote:
> On 10/28/25 11:28 PM, Khaled Almahallawy wrote:
> > The DP_TEST_LINK_FAUX_PATTERN field was deprecated in the DP 1.3
> > spec.
> > Update its name to align with the DP 2.1 definition and reflect its
> > actual use in the code. No functional changes.
> > 
> > Cc: Jani Nikula <jani.nikula@intel.com>
> > Cc: Rob Clark <robin.clark@oss.qualcomm.com>
> > Cc: Dmitry Baryshkov <lumag@kernel.org>
> > Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
> > Cc: Sean Paul <sean@poorly.run>
> > Signed-off-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
> > ---
> >  drivers/gpu/drm/msm/dp/dp_link.c | 2 +-
> >  include/drm/display/drm_dp.h     | 2 +-
> >  2 files changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/msm/dp/dp_link.c
> > b/drivers/gpu/drm/msm/dp/dp_link.c
> > index 66e1bbd80db3..5d465cf4dbc2 100644
> > --- a/drivers/gpu/drm/msm/dp/dp_link.c
> > +++ b/drivers/gpu/drm/msm/dp/dp_link.c
> > @@ -665,7 +665,7 @@ static int msm_dp_link_parse_request(struct
> > msm_dp_link_private *link)
> >  		return rlen;
> >  	}
> >  
> > -	if (!data || (data == DP_TEST_LINK_FAUX_PATTERN)) {
> > +	if (!data || (data ==
> > DP_TEST_PHY_TEST_CHANNEL_CODING_TYPE)) {
> >  		drm_dbg_dp(link->drm_dev, "link 0x%x not
> > supported\n", data);
> >  		goto end;
> >  	}
> > diff --git a/include/drm/display/drm_dp.h
> > b/include/drm/display/drm_dp.h
> > index e4eebabab975..610b8cbf1125 100644
> > --- a/include/drm/display/drm_dp.h
> > +++ b/include/drm/display/drm_dp.h
> > @@ -849,7 +849,7 @@
> >  # define DP_TEST_LINK_VIDEO_PATTERN	    (1 << 1)
> >  # define DP_TEST_LINK_EDID_READ		    (1 << 2)
> >  # define DP_TEST_LINK_PHY_TEST_PATTERN	    (1 << 3) /* DPCD >=
> > 1.1 */
> > -# define DP_TEST_LINK_FAUX_PATTERN	    (1 << 4) /* DPCD >=
> > 1.2 */
> > +# define DP_TEST_PHY_TEST_CHANNEL_CODING_TYPE	    (1 << 4)
> 
> I think it'd be useful to keep a comment of what it was before the
> deprecation and rename

Given that msm is currently the only driver that reads this bit and
correctly interprets it when handling automated test requests to
determine 128b/132b support—and following the style used throughout
this file, since I don’t see other examples referencing deprecated
names in comments

what do you think about using something like this instead?

#define DP_TEST_PHY_TEST_CHANNEL_CODING_TYPE  (1 << 4) /* DP 2.1 */

Thank You
Khaled
> 
> Konrad


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] drm/display/dp: Rename bit 4 of DPCD TEST_REQUEST to match DP2.1 spec
  2025-10-29  8:57 ` Dmitry Baryshkov
@ 2025-10-29 21:43   ` Almahallawy, Khaled
  2025-10-30  0:12     ` Dmitry Baryshkov
  0 siblings, 1 reply; 7+ messages in thread
From: Almahallawy, Khaled @ 2025-10-29 21:43 UTC (permalink / raw)
  To: dmitry.baryshkov@oss.qualcomm.com
  Cc: intel-xe@lists.freedesktop.org, Nikula, Jani,
	intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	linux-arm-msm@vger.kernel.org, lumag@kernel.org, sean@poorly.run,
	robin.clark@oss.qualcomm.com

On Wed, 2025-10-29 at 10:57 +0200, Dmitry Baryshkov wrote:
> On Tue, Oct 28, 2025 at 03:28:17PM -0700, Khaled Almahallawy wrote:
> > The DP_TEST_LINK_FAUX_PATTERN field was deprecated in the DP 1.3
> > spec.
> > Update its name to align with the DP 2.1 definition and reflect its
> > actual use in the code. No functional changes.
> > 
> > Cc: Jani Nikula <jani.nikula@intel.com>
> > Cc: Rob Clark <robin.clark@oss.qualcomm.com>
> > Cc: Dmitry Baryshkov <lumag@kernel.org>
> > Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
> > Cc: Sean Paul <sean@poorly.run>
> > Signed-off-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
> > ---
> >  drivers/gpu/drm/msm/dp/dp_link.c | 2 +-
> >  include/drm/display/drm_dp.h     | 2 +-
> >  2 files changed, 2 insertions(+), 2 deletions(-)
> > 
> 
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> 
> Would you prefer to merge this through drm-misc-next or through msm-
> next?

Thank you for your review. 
it would be great if you can merge to drm-misc-next after I address
Konrad input.

Thanks
Khaled
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] drm/display/dp: Rename bit 4 of DPCD TEST_REQUEST to match DP2.1 spec
  2025-10-29 21:43   ` Almahallawy, Khaled
@ 2025-10-30  0:12     ` Dmitry Baryshkov
  0 siblings, 0 replies; 7+ messages in thread
From: Dmitry Baryshkov @ 2025-10-30  0:12 UTC (permalink / raw)
  To: Almahallawy, Khaled
  Cc: intel-xe@lists.freedesktop.org, Nikula, Jani,
	intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	linux-arm-msm@vger.kernel.org, lumag@kernel.org, sean@poorly.run,
	robin.clark@oss.qualcomm.com

On Wed, Oct 29, 2025 at 09:43:45PM +0000, Almahallawy, Khaled wrote:
> On Wed, 2025-10-29 at 10:57 +0200, Dmitry Baryshkov wrote:
> > On Tue, Oct 28, 2025 at 03:28:17PM -0700, Khaled Almahallawy wrote:
> > > The DP_TEST_LINK_FAUX_PATTERN field was deprecated in the DP 1.3
> > > spec.
> > > Update its name to align with the DP 2.1 definition and reflect its
> > > actual use in the code. No functional changes.
> > > 
> > > Cc: Jani Nikula <jani.nikula@intel.com>
> > > Cc: Rob Clark <robin.clark@oss.qualcomm.com>
> > > Cc: Dmitry Baryshkov <lumag@kernel.org>
> > > Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
> > > Cc: Sean Paul <sean@poorly.run>
> > > Signed-off-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
> > > ---
> > >  drivers/gpu/drm/msm/dp/dp_link.c | 2 +-
> > >  include/drm/display/drm_dp.h     | 2 +-
> > >  2 files changed, 2 insertions(+), 2 deletions(-)
> > > 
> > 
> > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> > 
> > Would you prefer to merge this through drm-misc-next or through msm-
> > next?
> 
> Thank you for your review. 
> it would be great if you can merge to drm-misc-next after I address
> Konrad input.

Yes, please send v2 once it's ready.

-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] drm/display/dp: Rename bit 4 of DPCD TEST_REQUEST to match DP2.1 spec
  2025-10-29 21:42   ` Almahallawy, Khaled
@ 2025-10-31  9:35     ` Konrad Dybcio
  0 siblings, 0 replies; 7+ messages in thread
From: Konrad Dybcio @ 2025-10-31  9:35 UTC (permalink / raw)
  To: Almahallawy, Khaled, dri-devel@lists.freedesktop.org,
	linux-arm-msm@vger.kernel.org
  Cc: intel-xe@lists.freedesktop.org, robin.clark@oss.qualcomm.com,
	Nikula, Jani, lumag@kernel.org, intel-gfx@lists.freedesktop.org,
	sean@poorly.run

On 10/29/25 10:42 PM, Almahallawy, Khaled wrote:
> On Wed, 2025-10-29 at 10:42 +0100, Konrad Dybcio wrote:
>> On 10/28/25 11:28 PM, Khaled Almahallawy wrote:
>>> The DP_TEST_LINK_FAUX_PATTERN field was deprecated in the DP 1.3
>>> spec.
>>> Update its name to align with the DP 2.1 definition and reflect its
>>> actual use in the code. No functional changes.
>>>
>>> Cc: Jani Nikula <jani.nikula@intel.com>
>>> Cc: Rob Clark <robin.clark@oss.qualcomm.com>
>>> Cc: Dmitry Baryshkov <lumag@kernel.org>
>>> Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
>>> Cc: Sean Paul <sean@poorly.run>
>>> Signed-off-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
>>> ---
>>>  drivers/gpu/drm/msm/dp/dp_link.c | 2 +-
>>>  include/drm/display/drm_dp.h     | 2 +-
>>>  2 files changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/msm/dp/dp_link.c
>>> b/drivers/gpu/drm/msm/dp/dp_link.c
>>> index 66e1bbd80db3..5d465cf4dbc2 100644
>>> --- a/drivers/gpu/drm/msm/dp/dp_link.c
>>> +++ b/drivers/gpu/drm/msm/dp/dp_link.c
>>> @@ -665,7 +665,7 @@ static int msm_dp_link_parse_request(struct
>>> msm_dp_link_private *link)
>>>  		return rlen;
>>>  	}
>>>  
>>> -	if (!data || (data == DP_TEST_LINK_FAUX_PATTERN)) {
>>> +	if (!data || (data ==
>>> DP_TEST_PHY_TEST_CHANNEL_CODING_TYPE)) {
>>>  		drm_dbg_dp(link->drm_dev, "link 0x%x not
>>> supported\n", data);
>>>  		goto end;
>>>  	}
>>> diff --git a/include/drm/display/drm_dp.h
>>> b/include/drm/display/drm_dp.h
>>> index e4eebabab975..610b8cbf1125 100644
>>> --- a/include/drm/display/drm_dp.h
>>> +++ b/include/drm/display/drm_dp.h
>>> @@ -849,7 +849,7 @@
>>>  # define DP_TEST_LINK_VIDEO_PATTERN	    (1 << 1)
>>>  # define DP_TEST_LINK_EDID_READ		    (1 << 2)
>>>  # define DP_TEST_LINK_PHY_TEST_PATTERN	    (1 << 3) /* DPCD >=
>>> 1.1 */
>>> -# define DP_TEST_LINK_FAUX_PATTERN	    (1 << 4) /* DPCD >=
>>> 1.2 */
>>> +# define DP_TEST_PHY_TEST_CHANNEL_CODING_TYPE	    (1 << 4)
>>
>> I think it'd be useful to keep a comment of what it was before the
>> deprecation and rename
> 
> Given that msm is currently the only driver that reads this bit and
> correctly interprets it when handling automated test requests to
> determine 128b/132b support—and following the style used throughout
> this file, since I don’t see other examples referencing deprecated
> names in comments
> 
> what do you think about using something like this instead?
> 
> #define DP_TEST_PHY_TEST_CHANNEL_CODING_TYPE  (1 << 4) /* DP 2.1 */

Makes sense, let's do it

Konrad

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-10-31  9:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-28 22:28 [PATCH] drm/display/dp: Rename bit 4 of DPCD TEST_REQUEST to match DP2.1 spec Khaled Almahallawy
2025-10-29  8:57 ` Dmitry Baryshkov
2025-10-29 21:43   ` Almahallawy, Khaled
2025-10-30  0:12     ` Dmitry Baryshkov
2025-10-29  9:42 ` Konrad Dybcio
2025-10-29 21:42   ` Almahallawy, Khaled
2025-10-31  9:35     ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox