drm/i915: Eliminate has_4tile feature flag
authorMatt Roper <matthew.d.roper@intel.com>
Thu, 10 Aug 2023 23:46:20 +0000 (16:46 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 17 Aug 2023 22:41:30 +0000 (15:41 -0700)
We don't really need a feature flag for has_4tile since there's a
well-defined cutover point (DG2) at which all new platforms started
using Tile4 as their Y-major tiling layout.  The GT side of the code
already handles Tile4 vs legacy TileY with checks on the IP version
rather than looking at the feature flag, and we can simplify the display
code similarly (which will also make it more self-contained for re-use
in the Xe driver).

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Haridhar Kalvala <haridhar.kalvala@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230810234618.3738870-4-matthew.d.roper@intel.com
drivers/gpu/drm/i915/display/intel_display_device.h
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_device_info.h

index 215e682bd8b7a44520288951490f183d41d8385d..eb630a946343fd0e912f355f2434ea6cbfdd3f02 100644 (file)
@@ -32,6 +32,7 @@ struct drm_printer;
        func(overlay_needs_physical); \
        func(supports_tv);
 
+#define HAS_4TILE(i915)                        (IS_DG2(i915) || DISPLAY_VER(i915) >= 14)
 #define HAS_ASYNC_FLIPS(i915)          (DISPLAY_VER(i915) >= 5)
 #define HAS_CDCLK_CRAWL(i915)          (DISPLAY_INFO(i915)->has_cdclk_crawl)
 #define HAS_CDCLK_SQUASH(i915)         (DISPLAY_INFO(i915)->has_cdclk_squash)
index 7f8fa0eb9dc628efe0aa2f0a99d89649b4bd2892..fb4813fc084f51ad0a58cb86986bccb5741a0514 100644 (file)
@@ -733,7 +733,6 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,
 #define CMDPARSER_USES_GGTT(i915) (GRAPHICS_VER(i915) == 7)
 
 #define HAS_LLC(i915)  (INTEL_INFO(i915)->has_llc)
-#define HAS_4TILE(i915)        (INTEL_INFO(i915)->has_4tile)
 #define HAS_SNOOP(i915)        (INTEL_INFO(i915)->has_snoop)
 #define HAS_EDRAM(i915)        ((i915)->edram_size_mb)
 #define HAS_SECURE_BATCHES(i915) (GRAPHICS_VER(i915) < 6)
index fcacdc21643cfa469e3f9d599918f75f07d6ba54..df7c261410f79cafca22ed423d1fc01899c1a9a9 100644 (file)
@@ -713,7 +713,6 @@ static const struct intel_device_info adl_p_info = {
        .has_3d_pipeline = 1, \
        .has_64bit_reloc = 1, \
        .has_flat_ccs = 1, \
-       .has_4tile = 1, \
        .has_global_mocs = 1, \
        .has_gt_uc = 1, \
        .has_llc = 1, \
index dbfe6443457b5df15113dd8bb12f91dc528f01bf..19d120728ff10fe406eba6dcaa3ed3d59c889b6f 100644 (file)
@@ -150,7 +150,6 @@ enum intel_ppgtt_type {
        func(gpu_reset_clobbers_display); \
        func(has_reset_engine); \
        func(has_3d_pipeline); \
-       func(has_4tile); \
        func(has_flat_ccs); \
        func(has_global_mocs); \
        func(has_gmd_id); \