All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/drm_connector: add additional aspect ratio values
@ 2019-08-22 21:50 Wayne Lin
  2019-08-23 18:32 ` Harry Wentland
       [not found] ` <20190822215002.17836-1-waynelin-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Wayne Lin @ 2019-08-22 21:50 UTC (permalink / raw)
  To: dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
  Cc: Sunpeng.Li-5C7GfCeVMHo, Wayne Lin, harry.wentland-5C7GfCeVMHo,
	Nicholas.Kazlauskas-5C7GfCeVMHo

For HDMI2.0 CTS item - HF1-35, it verifies if the source generates
video timing "64:27" video format correctly.

eg: (vic-76) 1920x1080p@60Hz,24bpp

This patch add on "64:27" and "256:135" to drm_aspect_ratio_enum_list.
Thereafter, one can specify the aspect ratio to "64:27" or "256:135"
after creating aspect ratio property.

Change-Id: Ifc9df54e8e8f78e70960fcd737a3a57e49c81152
Signed-off-by: Wayne Lin <waynelin@amd.com>
---
 drivers/gpu/drm/drm_connector.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
index 3a0cacb71235..c0629a01d08e 100644
--- a/drivers/gpu/drm/drm_connector.c
+++ b/drivers/gpu/drm/drm_connector.c
@@ -772,6 +772,8 @@ static const struct drm_prop_enum_list drm_aspect_ratio_enum_list[] = {
 	{ DRM_MODE_PICTURE_ASPECT_NONE, "Automatic" },
 	{ DRM_MODE_PICTURE_ASPECT_4_3, "4:3" },
 	{ DRM_MODE_PICTURE_ASPECT_16_9, "16:9" },
+	{ DRM_MODE_PICTURE_ASPECT_64_27, "64:27" },
+	{ DRM_MODE_PICTURE_ASPECT_256_135, "256:135" },
 };
 
 static const struct drm_prop_enum_list drm_content_type_enum_list[] = {
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* Re: [PATCH] drm/drm_connector: add additional aspect ratio values
  2019-08-22 21:50 [PATCH] drm/drm_connector: add additional aspect ratio values Wayne Lin
@ 2019-08-23 18:32 ` Harry Wentland
       [not found] ` <20190822215002.17836-1-waynelin-5C7GfCeVMHo@public.gmane.org>
  1 sibling, 0 replies; 5+ messages in thread
From: Harry Wentland @ 2019-08-23 18:32 UTC (permalink / raw)
  To: Lin, Wayne, dri-devel, amd-gfx; +Cc: Li, Sun peng (Leo), Kazlauskas, Nicholas

On 2019-08-22 5:50 p.m., Wayne Lin wrote:
> For HDMI2.0 CTS item - HF1-35, it verifies if the source generates
> video timing "64:27" video format correctly.
> 
> eg: (vic-76) 1920x1080p@60Hz,24bpp
> 
> This patch add on "64:27" and "256:135" to drm_aspect_ratio_enum_list.
> Thereafter, one can specify the aspect ratio to "64:27" or "256:135"
> after creating aspect ratio property.>
> Change-Id: Ifc9df54e8e8f78e70960fcd737a3a57e49c81152
> Signed-off-by: Wayne Lin <waynelin@amd.com>

Drop the Change-Id.

With that fixed this patch is

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

Harry

> ---
>  drivers/gpu/drm/drm_connector.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
> index 3a0cacb71235..c0629a01d08e 100644
> --- a/drivers/gpu/drm/drm_connector.c
> +++ b/drivers/gpu/drm/drm_connector.c
> @@ -772,6 +772,8 @@ static const struct drm_prop_enum_list drm_aspect_ratio_enum_list[] = {
>  	{ DRM_MODE_PICTURE_ASPECT_NONE, "Automatic" },
>  	{ DRM_MODE_PICTURE_ASPECT_4_3, "4:3" },
>  	{ DRM_MODE_PICTURE_ASPECT_16_9, "16:9" },
> +	{ DRM_MODE_PICTURE_ASPECT_64_27, "64:27" },
> +	{ DRM_MODE_PICTURE_ASPECT_256_135, "256:135" },
>  };
>  
>  static const struct drm_prop_enum_list drm_content_type_enum_list[] = {
> 
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH] drm/drm_connector: add additional aspect ratio values
       [not found] ` <20190822215002.17836-1-waynelin-5C7GfCeVMHo@public.gmane.org>
@ 2019-08-23 18:41   ` Ville Syrjälä
       [not found]     ` <20190823184141.GW5942-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Ville Syrjälä @ 2019-08-23 18:41 UTC (permalink / raw)
  To: Wayne Lin
  Cc: Sunpeng.Li-5C7GfCeVMHo, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	Nicholas.Kazlauskas-5C7GfCeVMHo

On Thu, Aug 22, 2019 at 05:50:02PM -0400, Wayne Lin wrote:
> For HDMI2.0 CTS item - HF1-35, it verifies if the source generates
> video timing "64:27" video format correctly.
> 
> eg: (vic-76) 1920x1080p@60Hz,24bpp
> 
> This patch add on "64:27" and "256:135" to drm_aspect_ratio_enum_list.
> Thereafter, one can specify the aspect ratio to "64:27" or "256:135"
> after creating aspect ratio property.
> 
> Change-Id: Ifc9df54e8e8f78e70960fcd737a3a57e49c81152
> Signed-off-by: Wayne Lin <waynelin@amd.com>
> ---
>  drivers/gpu/drm/drm_connector.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
> index 3a0cacb71235..c0629a01d08e 100644
> --- a/drivers/gpu/drm/drm_connector.c
> +++ b/drivers/gpu/drm/drm_connector.c
> @@ -772,6 +772,8 @@ static const struct drm_prop_enum_list drm_aspect_ratio_enum_list[] = {
>  	{ DRM_MODE_PICTURE_ASPECT_NONE, "Automatic" },
>  	{ DRM_MODE_PICTURE_ASPECT_4_3, "4:3" },
>  	{ DRM_MODE_PICTURE_ASPECT_16_9, "16:9" },
> +	{ DRM_MODE_PICTURE_ASPECT_64_27, "64:27" },
> +	{ DRM_MODE_PICTURE_ASPECT_256_135, "256:135" },

Not 100% sure we want to expose these via the property because the
infoframe can't convey these independently from the VIC.

>  };
>  
>  static const struct drm_prop_enum_list drm_content_type_enum_list[] = {
> -- 
> 2.17.1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Ville Syrjälä
Intel
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* Re: [PATCH] drm/drm_connector: add additional aspect ratio values
       [not found]     ` <20190823184141.GW5942-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
@ 2019-09-05 14:59       ` Lin, Wayne
       [not found]         ` <MN2PR12MB2941AFD5BE06C7B10E01B3C1FCA00-rweVpJHSKTqB6PJJT2ARpQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Lin, Wayne @ 2019-09-05 14:59 UTC (permalink / raw)
  To: Ville Syrjälä
  Cc: Li, Sun peng (Leo),
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Kazlauskas, Nicholas


[-- Attachment #1.1: Type: text/plain, Size: 3023 bytes --]



________________________________
From: Ville Syrjälä <ville.syrjala-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Sent: Saturday, August 24, 2019 02:41
To: Lin, Wayne <Wayne.Lin-5C7GfCeVMHo@public.gmane.org>
Cc: dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org <dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>; amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org <amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>; Li, Sun peng (Leo) <Sunpeng.Li-5C7GfCeVMHo@public.gmane.org>; Kazlauskas, Nicholas <Nicholas.Kazlauskas-5C7GfCeVMHo@public.gmane.org>
Subject: Re: [PATCH] drm/drm_connector: add additional aspect ratio values

On Thu, Aug 22, 2019 at 05:50:02PM -0400, Wayne Lin wrote:
> For HDMI2.0 CTS item - HF1-35, it verifies if the source generates
> video timing "64:27" video format correctly.
>
> eg: (vic-76) 1920x1080p@60Hz,24bpp
>
> This patch add on "64:27" and "256:135" to drm_aspect_ratio_enum_list.
> Thereafter, one can specify the aspect ratio to "64:27" or "256:135"
> after creating aspect ratio property.
>
> Change-Id: Ifc9df54e8e8f78e70960fcd737a3a57e49c81152
> Signed-off-by: Wayne Lin <waynelin-5C7GfCeVMHo@public.gmane.org>
> ---
>  drivers/gpu/drm/drm_connector.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
> index 3a0cacb71235..c0629a01d08e 100644
> --- a/drivers/gpu/drm/drm_connector.c
> +++ b/drivers/gpu/drm/drm_connector.c
> @@ -772,6 +772,8 @@ static const struct drm_prop_enum_list drm_aspect_ratio_enum_list[] = {
>        { DRM_MODE_PICTURE_ASPECT_NONE, "Automatic" },
>        { DRM_MODE_PICTURE_ASPECT_4_3, "4:3" },
>        { DRM_MODE_PICTURE_ASPECT_16_9, "16:9" },
> +     { DRM_MODE_PICTURE_ASPECT_64_27, "64:27" },
> +     { DRM_MODE_PICTURE_ASPECT_256_135, "256:135" },

> Not 100% sure we want to expose these via the property because the
> infoframe can't convey these independently from the VIC.

Agree with that it can't be independent from the VIC.
When building up hdmi avi infoframe by using "drm_hdmi_avi_infoframe_from_display_mode" in drm_edid,
it will refer to the VIC to set up the aspect ratio if the aspect ratio is not specified in mode.
However, if the aspect ratio is specified to a value other than none, current logic of code will use the specified value.

The main reason of this patch is for capable indicating the exact VIC wanted.
There are some modes defined in CTA-861 with same timing but different aspect ratio.
eg: VIC 103 & VIC 93
Without these new definitions, we cannot distinguish these different modes and might set a wrong VIC in AVI infoframe.

>  };
>
>  static const struct drm_prop_enum_list drm_content_type_enum_list[] = {
> --
> 2.17.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

--
Ville Syrjälä
Intel

[-- Attachment #1.2: Type: text/html, Size: 5157 bytes --]

[-- Attachment #2: Type: text/plain, Size: 153 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* Re: [PATCH] drm/drm_connector: add additional aspect ratio values
       [not found]         ` <MN2PR12MB2941AFD5BE06C7B10E01B3C1FCA00-rweVpJHSKTqB6PJJT2ARpQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
@ 2019-09-05 15:06           ` Ville Syrjälä
  0 siblings, 0 replies; 5+ messages in thread
From: Ville Syrjälä @ 2019-09-05 15:06 UTC (permalink / raw)
  To: Lin, Wayne
  Cc: Li, Sun peng (Leo),
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Kazlauskas, Nicholas

On Thu, Sep 05, 2019 at 02:59:53PM +0000, Lin, Wayne wrote:
> 
> 
> ________________________________
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Sent: Saturday, August 24, 2019 02:41
> To: Lin, Wayne <Wayne.Lin@amd.com>
> Cc: dri-devel@lists.freedesktop.org <dri-devel@lists.freedesktop.org>; amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>; Li, Sun peng (Leo) <Sunpeng.Li@amd.com>; Kazlauskas, Nicholas <Nicholas.Kazlauskas@amd.com>
> Subject: Re: [PATCH] drm/drm_connector: add additional aspect ratio values
> 
> On Thu, Aug 22, 2019 at 05:50:02PM -0400, Wayne Lin wrote:
> > For HDMI2.0 CTS item - HF1-35, it verifies if the source generates
> > video timing "64:27" video format correctly.
> >
> > eg: (vic-76) 1920x1080p@60Hz,24bpp
> >
> > This patch add on "64:27" and "256:135" to drm_aspect_ratio_enum_list.
> > Thereafter, one can specify the aspect ratio to "64:27" or "256:135"
> > after creating aspect ratio property.
> >
> > Change-Id: Ifc9df54e8e8f78e70960fcd737a3a57e49c81152
> > Signed-off-by: Wayne Lin <waynelin@amd.com>
> > ---
> >  drivers/gpu/drm/drm_connector.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
> > index 3a0cacb71235..c0629a01d08e 100644
> > --- a/drivers/gpu/drm/drm_connector.c
> > +++ b/drivers/gpu/drm/drm_connector.c
> > @@ -772,6 +772,8 @@ static const struct drm_prop_enum_list drm_aspect_ratio_enum_list[] = {
> >        { DRM_MODE_PICTURE_ASPECT_NONE, "Automatic" },
> >        { DRM_MODE_PICTURE_ASPECT_4_3, "4:3" },
> >        { DRM_MODE_PICTURE_ASPECT_16_9, "16:9" },
> > +     { DRM_MODE_PICTURE_ASPECT_64_27, "64:27" },
> > +     { DRM_MODE_PICTURE_ASPECT_256_135, "256:135" },
> 
> > Not 100% sure we want to expose these via the property because the
> > infoframe can't convey these independently from the VIC.
> 
> Agree with that it can't be independent from the VIC.
> When building up hdmi avi infoframe by using "drm_hdmi_avi_infoframe_from_display_mode" in drm_edid,
> it will refer to the VIC to set up the aspect ratio if the aspect ratio is not specified in mode.
> However, if the aspect ratio is specified to a value other than none, current logic of code will use the specified value.
> 
> The main reason of this patch is for capable indicating the exact VIC wanted.
> There are some modes defined in CTA-861 with same timing but different aspect ratio.
> eg: VIC 103 & VIC 93
> Without these new definitions, we cannot distinguish these different modes and might set a wrong VIC in AVI infoframe.

The mode flags already contain the aspect ratio information.
You just need the appropriate client cap to use them.

-- 
Ville Syrjälä
Intel
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

end of thread, other threads:[~2019-09-05 15:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-22 21:50 [PATCH] drm/drm_connector: add additional aspect ratio values Wayne Lin
2019-08-23 18:32 ` Harry Wentland
     [not found] ` <20190822215002.17836-1-waynelin-5C7GfCeVMHo@public.gmane.org>
2019-08-23 18:41   ` Ville Syrjälä
     [not found]     ` <20190823184141.GW5942-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2019-09-05 14:59       ` Lin, Wayne
     [not found]         ` <MN2PR12MB2941AFD5BE06C7B10E01B3C1FCA00-rweVpJHSKTqB6PJJT2ARpQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-09-05 15:06           ` Ville Syrjälä

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.