drm/i915/mtl: Add support of Tile4 to MTL
Subsystems (3)
PATCH 1/1 drm/i915/mtl: Add support of Tile4 to MTL
We have some Tile4 tests now skipping, which were supposed to be working. So lets make them work, by adding display_ver 14 as supported.
--- drivers/gpu/drm/i915/display/intel_fb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_fb.c +4 -4
@@ -158,11 +158,11 @@ struct intel_modifier_desc {static const struct intel_modifier_desc intel_modifiers[] = { { .modifier =I915_FORMAT_MOD_4_TILED_DG2_MC_CCS , - .display_ver = {13 ,13 }, + .display_ver = {13 ,14 }, .plane_caps =INTEL_PLANE_CAP_TILING_4 |INTEL_PLANE_CAP_CCS_MC , }, { .modifier =I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC , - .display_ver = {13 ,13 }, + .display_ver = {13 ,14 }, .plane_caps =INTEL_PLANE_CAP_TILING_4 |INTEL_PLANE_CAP_CCS_RC_CC , .ccs.cc_planes =BIT (1 ),
@@ -170,11 +170,11 @@ static const struct intel_modifier_desc intel_modifiers[] = { FORMAT_OVERRIDE(gen12_flat_ccs_cc_formats), }, { .modifier = I915_FORMAT_MOD_4_TILED_DG2_RC_CCS, - .display_ver = { 13, 13 }, + .display_ver = { 13, 14 }, .plane_caps = INTEL_PLANE_CAP_TILING_4 | INTEL_PLANE_CAP_CCS_RC, }, { .modifier =I915_FORMAT_MOD_4_TILED , - .display_ver = { 13, 13 }, + .display_ver = { 13, 14 }, .plane_caps = INTEL_PLANE_CAP_TILING_4, }, { .modifier = I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS,
Signature · 1 line
2.37.3
Hi Stan,
Quoted 14 lines · Stanislav Lisovskiy
We have some Tile4 tests now skipping, which were supposed to be working. So lets make them work, by adding
display_ver14 as supported.Signed-off-by Stanislav Lisovskiy <[email protected]>--- drivers/gpu/drm/i915/display/intel_fb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_fb.c +0
-0
drivers/gpu/drm/i915/display/intel_fb.c struct intel_modifier_desc { · line 161
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_fb.c +1
-1@@ -158,11 +158,11 @@ struct intel_modifier_desc {static const struct intel_modifier_desc intel_modifiers[] = { { .modifier =I915_FORMAT_MOD_4_TILED_DG2_MC_CCS , - .display_ver = {13 ,13 }, + .display_ver = {13 ,14 },
I don't think you'd want to do this. These DG2 ccs modifiers rely on usage of flat ccs which is not present in Meteorlake.
drivers/gpu/drm/i915/display/intel_fb.c struct intel_modifier_desc { · line 165
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_fb.c +1
-1.plane_caps = INTEL_PLANE_CAP_TILING_4 | INTEL_PLANE_CAP_CCS_MC, }, { .modifier = I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC, - .display_ver = { 13, 13 }, + .display_ver = { 13, 14 },
Let's drop this change too.
drivers/gpu/drm/i915/display/intel_fb.c static const struct intel_modifier_desc intel_modifiers[] = { · line 173
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_fb.c +1
-1.plane_caps = INTEL_PLANE_CAP_TILING_4 | INTEL_PLANE_CAP_CCS_RC_CC, .ccs.cc_planes = BIT(1),@@ -170,11 +170,11 @@ static const struct intel_modifier_desc intel_modifiers[] = { FORMAT_OVERRIDE(gen12_flat_ccs_cc_formats), }, { .modifier = I915_FORMAT_MOD_4_TILED_DG2_RC_CCS, - .display_ver = { 13, 13 }, + .display_ver = { 13, 14 },
And this.
drivers/gpu/drm/i915/display/intel_fb.c static const struct intel_modifier_desc intel_modifiers[] = { · line 177
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_fb.c +1
-1.plane_caps = INTEL_PLANE_CAP_TILING_4 | INTEL_PLANE_CAP_CCS_RC, }, { .modifier = I915_FORMAT_MOD_4_TILED, - .display_ver = { 13, 13 }, + .display_ver = { 13, 14 },
Here you could do something like ".display_ver = { 13, -1 }," to enable tile4 from version 13 onward and we'll fix it if it ever change in the future.
/Juha-Pekka
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_fb.c +0
-0.plane_caps = INTEL_PLANE_CAP_TILING_4, }, { .modifier = I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS,
Quoted 34 lines · Juha-Pekka Heikkila
Hi Stan,
Quoted 14 lines · Stanislav Lisovskiy
We have some Tile4 tests now skipping, which were supposed to be working. So lets make them work, by adding
display_ver14 as supported.Signed-off-by Stanislav Lisovskiy <[email protected]>--- drivers/gpu/drm/i915/display/intel_fb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_fb.c +0
-0drivers/gpu/drm/i915/display/intel_fb.c struct intel_modifier_desc { · line 161
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_fb.c +1
-1@@ -158,11 +158,11 @@ struct intel_modifier_desc {static const struct intel_modifier_desc intel_modifiers[] = { { .modifier =I915_FORMAT_MOD_4_TILED_DG2_MC_CCS , - .display_ver = {13 ,13 }, + .display_ver = {13 ,14 },I don't think you'd want to do this. These DG2 ccs modifiers rely on usage of flat ccs which is not present in Meteorlake.
drivers/gpu/drm/i915/display/intel_fb.c struct intel_modifier_desc { · line 165
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_fb.c +1
-1.plane_caps = INTEL_PLANE_CAP_TILING_4 | INTEL_PLANE_CAP_CCS_MC, }, { .modifier = I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC, - .display_ver = { 13, 13 }, + .display_ver = { 13, 14 },Let's drop this change too.
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_fb.c static const struct intel_modifier_desc intel_modifiers[] = { · line 173
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_fb.c +1
-1.plane_caps = INTEL_PLANE_CAP_TILING_4 | INTEL_PLANE_CAP_CCS_RC_CC, .ccs.cc_planes = BIT(1),@@ -170,11 +170,11 @@ static const struct intel_modifier_desc intel_modifiers[] = { FORMAT_OVERRIDE(gen12_flat_ccs_cc_formats), }, { .modifier = I915_FORMAT_MOD_4_TILED_DG2_RC_CCS, - .display_ver = { 13, 13 }, + .display_ver = { 13, 14 },And this.
Ah, I have been surfing yesterday the spec, trying to find if ccs is supported or not, looks like I got bit confused.
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_fb.c static const struct intel_modifier_desc intel_modifiers[] = { · line 177
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_fb.c +1
-1.plane_caps = INTEL_PLANE_CAP_TILING_4 | INTEL_PLANE_CAP_CCS_RC, }, { .modifier = I915_FORMAT_MOD_4_TILED, - .display_ver = { 13, 13 }, + .display_ver = { 13, 14 },Here you could do something like ".display_ver = { 13, -1 }," to enable tile4 from version 13 onward and we'll fix it if it ever change in the future.
Yeah, recently had similar approach in other feature.
Stan
Quoted 7 lines
/Juha-Pekka
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_fb.c +0
-0.plane_caps = INTEL_PLANE_CAP_TILING_4, }, { .modifier = I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS,