All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH] drm/i915: update src and dst scaler limits for display ver 12 and 13
@ 2022-12-23 18:57 Luca Coelho
  2022-12-23 19:38 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for " Patchwork
  2023-01-13 10:34 ` [Intel-gfx] [PATCH] " Nautiyal, Ankit K
  0 siblings, 2 replies; 4+ messages in thread
From: Luca Coelho @ 2022-12-23 18:57 UTC (permalink / raw)
  To: intel-gfx

The bspec has been updated and now display versions 12 and 13 support
source width up to 5120 pixels, source height up to 8192 lines,
destination width up to 8192 and destination height up to 8192.

Update the code accordingly.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
---
 drivers/gpu/drm/i915/display/skl_scaler.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/skl_scaler.c b/drivers/gpu/drm/i915/display/skl_scaler.c
index 01e881293612..473d53610b92 100644
--- a/drivers/gpu/drm/i915/display/skl_scaler.c
+++ b/drivers/gpu/drm/i915/display/skl_scaler.c
@@ -87,6 +87,10 @@ static u16 skl_scaler_calc_phase(int sub, int scale, bool chroma_cosited)
 #define ICL_MAX_SRC_H 4096
 #define ICL_MAX_DST_W 5120
 #define ICL_MAX_DST_H 4096
+#define TGL_MAX_SRC_W 5120
+#define TGL_MAX_SRC_H 8192
+#define TGL_MAX_DST_W 8192
+#define TGL_MAX_DST_H 8192
 #define MTL_MAX_SRC_W 4096
 #define MTL_MAX_SRC_H 8192
 #define MTL_MAX_DST_W 8192
@@ -173,11 +177,16 @@ skl_update_scaler(struct intel_crtc_state *crtc_state, bool force_detach,
 		max_src_h = SKL_MAX_SRC_H;
 		max_dst_w = SKL_MAX_DST_W;
 		max_dst_h = SKL_MAX_DST_H;
-	} else if (DISPLAY_VER(dev_priv) < 14) {
+	} else if (DISPLAY_VER(dev_priv) < 12) {
 		max_src_w = ICL_MAX_SRC_W;
 		max_src_h = ICL_MAX_SRC_H;
 		max_dst_w = ICL_MAX_DST_W;
 		max_dst_h = ICL_MAX_DST_H;
+	} else if (DISPLAY_VER(dev_priv) < 14) {
+		max_src_w = TGL_MAX_SRC_W;
+		max_src_h = TGL_MAX_SRC_H;
+		max_dst_w = TGL_MAX_DST_W;
+		max_dst_h = TGL_MAX_DST_H;
 	} else {
 		max_src_w = MTL_MAX_SRC_W;
 		max_src_h = MTL_MAX_SRC_H;
-- 
2.39.0


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

* [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: update src and dst scaler limits for display ver 12 and 13
  2022-12-23 18:57 [Intel-gfx] [PATCH] drm/i915: update src and dst scaler limits for display ver 12 and 13 Luca Coelho
@ 2022-12-23 19:38 ` Patchwork
  2023-01-13 10:34 ` [Intel-gfx] [PATCH] " Nautiyal, Ankit K
  1 sibling, 0 replies; 4+ messages in thread
From: Patchwork @ 2022-12-23 19:38 UTC (permalink / raw)
  To: Luca Coelho; +Cc: intel-gfx

== Series Details ==

Series: drm/i915: update src and dst scaler limits for display ver 12 and 13
URL   : https://patchwork.freedesktop.org/series/112213/
State : failure

== Summary ==

Error: patch https://patchwork.freedesktop.org/api/1.0/series/112213/revisions/1/mbox/ not applied
Applying: drm/i915: update src and dst scaler limits for display ver 12 and 13
Using index info to reconstruct a base tree...
M	drivers/gpu/drm/i915/display/skl_scaler.c
Falling back to patching base and 3-way merge...
Auto-merging drivers/gpu/drm/i915/display/skl_scaler.c
CONFLICT (content): Merge conflict in drivers/gpu/drm/i915/display/skl_scaler.c
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 drm/i915: update src and dst scaler limits for display ver 12 and 13
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".



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

* Re: [Intel-gfx] [PATCH] drm/i915: update src and dst scaler limits for display ver 12 and 13
  2022-12-23 18:57 [Intel-gfx] [PATCH] drm/i915: update src and dst scaler limits for display ver 12 and 13 Luca Coelho
  2022-12-23 19:38 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for " Patchwork
@ 2023-01-13 10:34 ` Nautiyal, Ankit K
  2023-01-13 10:43   ` Coelho, Luciano
  1 sibling, 1 reply; 4+ messages in thread
From: Nautiyal, Ankit K @ 2023-01-13 10:34 UTC (permalink / raw)
  To: Luca Coelho, intel-gfx

Hi Luca,

Patch looks good to me. Please add 'Bspec:50441' in commit message for 
reference.

Also, you might need to re-submit for test, as last time the other 
scaler changes were not merged, and CI build had failed.

Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>


Thanks & Regards,

Ankit


On 12/24/2022 12:27 AM, Luca Coelho wrote:
> The bspec has been updated and now display versions 12 and 13 support
> source width up to 5120 pixels, source height up to 8192 lines,
> destination width up to 8192 and destination height up to 8192.
>
> Update the code accordingly.
>
> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
> ---
>   drivers/gpu/drm/i915/display/skl_scaler.c | 11 ++++++++++-
>   1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/skl_scaler.c b/drivers/gpu/drm/i915/display/skl_scaler.c
> index 01e881293612..473d53610b92 100644
> --- a/drivers/gpu/drm/i915/display/skl_scaler.c
> +++ b/drivers/gpu/drm/i915/display/skl_scaler.c
> @@ -87,6 +87,10 @@ static u16 skl_scaler_calc_phase(int sub, int scale, bool chroma_cosited)
>   #define ICL_MAX_SRC_H 4096
>   #define ICL_MAX_DST_W 5120
>   #define ICL_MAX_DST_H 4096
> +#define TGL_MAX_SRC_W 5120
> +#define TGL_MAX_SRC_H 8192
> +#define TGL_MAX_DST_W 8192
> +#define TGL_MAX_DST_H 8192
>   #define MTL_MAX_SRC_W 4096
>   #define MTL_MAX_SRC_H 8192
>   #define MTL_MAX_DST_W 8192
> @@ -173,11 +177,16 @@ skl_update_scaler(struct intel_crtc_state *crtc_state, bool force_detach,
>   		max_src_h = SKL_MAX_SRC_H;
>   		max_dst_w = SKL_MAX_DST_W;
>   		max_dst_h = SKL_MAX_DST_H;
> -	} else if (DISPLAY_VER(dev_priv) < 14) {
> +	} else if (DISPLAY_VER(dev_priv) < 12) {
>   		max_src_w = ICL_MAX_SRC_W;
>   		max_src_h = ICL_MAX_SRC_H;
>   		max_dst_w = ICL_MAX_DST_W;
>   		max_dst_h = ICL_MAX_DST_H;
> +	} else if (DISPLAY_VER(dev_priv) < 14) {
> +		max_src_w = TGL_MAX_SRC_W;
> +		max_src_h = TGL_MAX_SRC_H;
> +		max_dst_w = TGL_MAX_DST_W;
> +		max_dst_h = TGL_MAX_DST_H;
>   	} else {
>   		max_src_w = MTL_MAX_SRC_W;
>   		max_src_h = MTL_MAX_SRC_H;

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

* Re: [Intel-gfx] [PATCH] drm/i915: update src and dst scaler limits for display ver 12 and 13
  2023-01-13 10:34 ` [Intel-gfx] [PATCH] " Nautiyal, Ankit K
@ 2023-01-13 10:43   ` Coelho, Luciano
  0 siblings, 0 replies; 4+ messages in thread
From: Coelho, Luciano @ 2023-01-13 10:43 UTC (permalink / raw)
  To: Nautiyal, Ankit K, intel-gfx

On Fri, 2023-01-13 at 16:04 +0530, Nautiyal, Ankit K wrote:
> Hi Luca,

Hi Ankit,


> Patch looks good to me. Please add 'Bspec:50441' in commit message for 
> reference.

Good point, I'll add it and resend.


> Also, you might need to re-submit for test, as last time the other 
> scaler changes were not merged, and CI build had failed.

I'll have to resend it anyway because of the bspec tag, so it will run
again.


> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

Thanks a lot!

--
Cheers,
Luca.

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

end of thread, other threads:[~2023-01-13 10:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-23 18:57 [Intel-gfx] [PATCH] drm/i915: update src and dst scaler limits for display ver 12 and 13 Luca Coelho
2022-12-23 19:38 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for " Patchwork
2023-01-13 10:34 ` [Intel-gfx] [PATCH] " Nautiyal, Ankit K
2023-01-13 10:43   ` Coelho, Luciano

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.