Skip to content

Commit 84bf82f

Browse files
harishchegondimattrope
authored andcommitted
drm/i915/xelpg: Extend driver code of Xe_LPG to Xe_LPG+
Xe_LPG+ (IP version 12.74) should take the same general code paths as Xe_LPG (versions 12.70 and 12.71). Xe_LPG+'s workaround list will be handled by the next patch. Signed-off-by: Harish Chegondi <harish.chegondi@intel.com> Signed-off-by: Haridhar Kalvala <haridhar.kalvala@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240108122738.14399-3-haridhar.kalvala@intel.com
1 parent 2847814 commit 84bf82f

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

drivers/gpu/drm/i915/gt/intel_engine_cs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,8 @@ static int intel_engine_init_tlb_invalidation(struct intel_engine_cs *engine)
11901190
num = ARRAY_SIZE(xelpmp_regs);
11911191
}
11921192
} else {
1193-
if (GRAPHICS_VER_FULL(i915) == IP_VER(12, 71) ||
1193+
if (GRAPHICS_VER_FULL(i915) == IP_VER(12, 74) ||
1194+
GRAPHICS_VER_FULL(i915) == IP_VER(12, 71) ||
11941195
GRAPHICS_VER_FULL(i915) == IP_VER(12, 70) ||
11951196
GRAPHICS_VER_FULL(i915) == IP_VER(12, 50) ||
11961197
GRAPHICS_VER_FULL(i915) == IP_VER(12, 55)) {

drivers/gpu/drm/i915/gt/intel_mocs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ static unsigned int get_mocs_settings(struct drm_i915_private *i915,
495495
memset(table, 0, sizeof(struct drm_i915_mocs_table));
496496

497497
table->unused_entries_index = I915_MOCS_PTE;
498-
if (IS_GFX_GT_IP_RANGE(to_gt(i915), IP_VER(12, 70), IP_VER(12, 71))) {
498+
if (IS_GFX_GT_IP_RANGE(to_gt(i915), IP_VER(12, 70), IP_VER(12, 74))) {
499499
table->size = ARRAY_SIZE(mtl_mocs_table);
500500
table->table = mtl_mocs_table;
501501
table->n_entries = MTL_NUM_MOCS_ENTRIES;

drivers/gpu/drm/i915/gt/intel_rc6.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static void gen11_rc6_enable(struct intel_rc6 *rc6)
123123
* temporary wa and should be removed after fixing real cause
124124
* of forcewake timeouts.
125125
*/
126-
if (IS_GFX_GT_IP_RANGE(gt, IP_VER(12, 70), IP_VER(12, 71)))
126+
if (IS_GFX_GT_IP_RANGE(gt, IP_VER(12, 70), IP_VER(12, 74)))
127127
pg_enable =
128128
GEN9_MEDIA_PG_ENABLE |
129129
GEN11_MEDIA_SAMPLER_PG_ENABLE;

drivers/gpu/drm/i915/i915_debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static const char *i915_cache_level_str(struct drm_i915_gem_object *obj)
145145
{
146146
struct drm_i915_private *i915 = obj_to_i915(obj);
147147

148-
if (IS_GFX_GT_IP_RANGE(to_gt(i915), IP_VER(12, 70), IP_VER(12, 71))) {
148+
if (IS_GFX_GT_IP_RANGE(to_gt(i915), IP_VER(12, 70), IP_VER(12, 74))) {
149149
switch (obj->pat_index) {
150150
case 0: return " WB";
151151
case 1: return " WT";

0 commit comments

Comments
 (0)