Skip to content

Commit 86c82c8

Browse files
committed
Revert "drm/i915/dg2: Tile 4 plane format support"
Tile4 patch still needs an ack from userspace, IGT tests and some essential fixes, related to new .plane_caps attribute being added. This reverts commit 3c542cf. Signed-off-by: Stanislav Lisovskiy <[email protected]> Acked-by: Imre Deak <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 617ed6c commit 86c82c8

File tree

11 files changed

+8
-37
lines changed

11 files changed

+8
-37
lines changed

drivers/gpu/drm/i915/display/intel_display.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7769,7 +7769,6 @@ static int intel_atomic_check_async(struct intel_atomic_state *state, struct int
77697769
case I915_FORMAT_MOD_X_TILED:
77707770
case I915_FORMAT_MOD_Y_TILED:
77717771
case I915_FORMAT_MOD_Yf_TILED:
7772-
case I915_FORMAT_MOD_4_TILED:
77737772
break;
77747773
default:
77757774
drm_dbg_kms(&i915->drm,

drivers/gpu/drm/i915/display/intel_fb.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@ struct intel_modifier_desc {
139139

140140
static const struct intel_modifier_desc intel_modifiers[] = {
141141
{
142-
.modifier = I915_FORMAT_MOD_4_TILED,
143-
.display_ver = { 13, 13 },
144-
}, {
145142
.modifier = I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS,
146143
.display_ver = { 12, 13 },
147144
.plane_caps = INTEL_PLANE_CAP_TILING_Y | INTEL_PLANE_CAP_CCS_MC,
@@ -547,12 +544,6 @@ intel_tile_width_bytes(const struct drm_framebuffer *fb, int color_plane)
547544
return 128;
548545
else
549546
return 512;
550-
case I915_FORMAT_MOD_4_TILED:
551-
/*
552-
* Each 4K tile consists of 64B(8*8) subtiles, with
553-
* same shape as Y Tile(i.e 4*16B OWords)
554-
*/
555-
return 128;
556547
case I915_FORMAT_MOD_Y_TILED_CCS:
557548
if (intel_fb_is_ccs_aux_plane(fb, color_plane))
558549
return 128;

drivers/gpu/drm/i915/display/intel_fbc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,6 @@ static bool tiling_is_valid(struct drm_i915_private *i915,
898898
case I915_FORMAT_MOD_Y_TILED:
899899
case I915_FORMAT_MOD_Yf_TILED:
900900
return DISPLAY_VER(i915) >= 9;
901-
case I915_FORMAT_MOD_4_TILED:
902901
case I915_FORMAT_MOD_X_TILED:
903902
return true;
904903
default:

drivers/gpu/drm/i915/display/intel_plane_initial.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ intel_alloc_initial_plane_obj(struct intel_crtc *crtc,
125125
case DRM_FORMAT_MOD_LINEAR:
126126
case I915_FORMAT_MOD_X_TILED:
127127
case I915_FORMAT_MOD_Y_TILED:
128-
case I915_FORMAT_MOD_4_TILED:
129128
break;
130129
default:
131130
drm_dbg(&dev_priv->drm,

drivers/gpu/drm/i915/display/skl_universal_plane.c

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -751,8 +751,6 @@ static u32 skl_plane_ctl_tiling(u64 fb_modifier)
751751
return PLANE_CTL_TILED_X;
752752
case I915_FORMAT_MOD_Y_TILED:
753753
return PLANE_CTL_TILED_Y;
754-
case I915_FORMAT_MOD_4_TILED:
755-
return PLANE_CTL_TILED_4;
756754
case I915_FORMAT_MOD_Y_TILED_CCS:
757755
case I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC:
758756
return PLANE_CTL_TILED_Y | PLANE_CTL_RENDER_DECOMPRESSION_ENABLE;
@@ -1973,7 +1971,9 @@ static bool gen12_plane_format_mod_supported(struct drm_plane *_plane,
19731971
case DRM_FORMAT_Y216:
19741972
case DRM_FORMAT_XVYU12_16161616:
19751973
case DRM_FORMAT_XVYU16161616:
1976-
if (!intel_fb_is_ccs_modifier(modifier))
1974+
if (modifier == DRM_FORMAT_MOD_LINEAR ||
1975+
modifier == I915_FORMAT_MOD_X_TILED ||
1976+
modifier == I915_FORMAT_MOD_Y_TILED)
19771977
return true;
19781978
fallthrough;
19791979
default:
@@ -2299,15 +2299,11 @@ skl_get_initial_plane_config(struct intel_crtc *crtc,
22992299
else
23002300
fb->modifier = I915_FORMAT_MOD_Y_TILED;
23012301
break;
2302-
case PLANE_CTL_TILED_YF: /* aka PLANE_CTL_TILED_4 on XE_LPD+ */
2303-
if (HAS_4TILE(dev_priv)) {
2304-
fb->modifier = I915_FORMAT_MOD_4_TILED;
2305-
} else {
2306-
if (val & PLANE_CTL_RENDER_DECOMPRESSION_ENABLE)
2307-
fb->modifier = I915_FORMAT_MOD_Yf_TILED_CCS;
2308-
else
2309-
fb->modifier = I915_FORMAT_MOD_Yf_TILED;
2310-
}
2302+
case PLANE_CTL_TILED_YF:
2303+
if (val & PLANE_CTL_RENDER_DECOMPRESSION_ENABLE)
2304+
fb->modifier = I915_FORMAT_MOD_Yf_TILED_CCS;
2305+
else
2306+
fb->modifier = I915_FORMAT_MOD_Yf_TILED;
23112307
break;
23122308
default:
23132309
MISSING_CASE(tiling);

drivers/gpu/drm/i915/i915_drv.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,6 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,
16241624
#define CMDPARSER_USES_GGTT(dev_priv) (GRAPHICS_VER(dev_priv) == 7)
16251625

16261626
#define HAS_LLC(dev_priv) (INTEL_INFO(dev_priv)->has_llc)
1627-
#define HAS_4TILE(dev_priv) (INTEL_INFO(dev_priv)->has_4tile)
16281627
#define HAS_SNOOP(dev_priv) (INTEL_INFO(dev_priv)->has_snoop)
16291628
#define HAS_EDRAM(dev_priv) ((dev_priv)->edram_size_mb)
16301629
#define HAS_SECURE_BATCHES(dev_priv) (GRAPHICS_VER(dev_priv) < 6)

drivers/gpu/drm/i915/i915_pci.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,6 @@ static const struct intel_device_info dg2_info = {
10441044
DGFX_FEATURES,
10451045
.graphics_rel = 55,
10461046
.media_rel = 55,
1047-
.has_4tile = 1,
10481047
PLATFORM(INTEL_DG2),
10491048
.platform_engine_mask =
10501049
BIT(RCS0) | BIT(BCS0) |

drivers/gpu/drm/i915/i915_reg.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7210,7 +7210,6 @@ enum {
72107210
#define PLANE_CTL_TILED_X (1 << 10)
72117211
#define PLANE_CTL_TILED_Y (4 << 10)
72127212
#define PLANE_CTL_TILED_YF (5 << 10)
7213-
#define PLANE_CTL_TILED_4 (5 << 10)
72147213
#define PLANE_CTL_ASYNC_FLIP (1 << 9)
72157214
#define PLANE_CTL_FLIP_HORIZONTAL (1 << 8)
72167215
#define PLANE_CTL_MEDIA_DECOMPRESSION_ENABLE (1 << 4) /* TGL+ */

drivers/gpu/drm/i915/intel_device_info.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ enum intel_ppgtt_type {
125125
func(has_64bit_reloc); \
126126
func(gpu_reset_clobbers_display); \
127127
func(has_reset_engine); \
128-
func(has_4tile); \
129128
func(has_global_mocs); \
130129
func(has_gt_uc); \
131130
func(has_l3_dpf); \

drivers/gpu/drm/i915/intel_pm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5386,7 +5386,6 @@ skl_compute_wm_params(const struct intel_crtc_state *crtc_state,
53865386
}
53875387

53885388
wp->y_tiled = modifier == I915_FORMAT_MOD_Y_TILED ||
5389-
modifier == I915_FORMAT_MOD_4_TILED ||
53905389
modifier == I915_FORMAT_MOD_Yf_TILED ||
53915390
modifier == I915_FORMAT_MOD_Y_TILED_CCS ||
53925391
modifier == I915_FORMAT_MOD_Yf_TILED_CCS;

0 commit comments

Comments
 (0)