drm/i915/icl: Add Indirect Context Offset for Gen11
authorMichel Thierry <michel.thierry@intel.com>
Fri, 2 Mar 2018 16:15:00 +0000 (18:15 +0200)
committerMika Kuoppala <mika.kuoppala@linux.intel.com>
Wed, 7 Mar 2018 13:07:39 +0000 (15:07 +0200)
v2: rebased to intel_lr_indirect_ctx_offset
v3: rebase, move define to intel_lrc_reg.h

BSpec: 11740
Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Oscar Mateo <oscar.mateo@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180302161501.28594-5-mika.kuoppala@linux.intel.com
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_lrc_reg.h

index 835cc6149bfea9091c70d45df9b722e1c4f72e62..999d5f2539d4c7c504cfa4a84c9fb695804c3b33 100644 (file)
@@ -2272,6 +2272,10 @@ static u32 intel_lr_indirect_ctx_offset(struct intel_engine_cs *engine)
        default:
                MISSING_CASE(INTEL_GEN(engine->i915));
                /* fall through */
+       case 11:
+               indirect_ctx_offset =
+                       GEN11_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT;
+               break;
        case 10:
                indirect_ctx_offset =
                        GEN10_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT;
index a53336e2fc97229694a41b28c1fd5a2206ca167b..169a2239d6c7e7456892e9c79c39b3da94fc8f5e 100644 (file)
@@ -63,5 +63,6 @@
 #define GEN8_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT       0x17
 #define GEN9_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT       0x26
 #define GEN10_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT      0x19
+#define GEN11_CTX_RCS_INDIRECT_CTX_OFFSET_DEFAULT      0x1A
 
 #endif /* _INTEL_LRC_REG_H_ */