File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -250,6 +250,18 @@ static int lrc_ring_mi_mode(const struct intel_engine_cs *engine)
250
250
return -1 ;
251
251
}
252
252
253
+ static int lrc_ring_gpr0 (const struct intel_engine_cs * engine )
254
+ {
255
+ if (INTEL_GEN (engine -> i915 ) >= 12 )
256
+ return 0x74 ;
257
+ else if (INTEL_GEN (engine -> i915 ) >= 9 )
258
+ return 0x68 ;
259
+ else if (engine -> class == RENDER_CLASS )
260
+ return 0xd8 ;
261
+ else
262
+ return -1 ;
263
+ }
264
+
253
265
static int lrc_ring_wa_bb_per_ctx (const struct intel_engine_cs * engine )
254
266
{
255
267
if (INTEL_GEN (engine -> i915 ) >= 12 )
Original file line number Diff line number Diff line change @@ -4613,6 +4613,11 @@ static int live_lrc_fixed(void *arg)
4613
4613
CTX_TIMESTAMP - 1 ,
4614
4614
"RING_CTX_TIMESTAMP"
4615
4615
},
4616
+ {
4617
+ i915_mmio_reg_offset (GEN8_RING_CS_GPR (engine -> mmio_base , 0 )),
4618
+ lrc_ring_gpr0 (engine ),
4619
+ "RING_CS_GPR0"
4620
+ },
4616
4621
{ },
4617
4622
}, * t ;
4618
4623
u32 * hw ;
You can’t perform that action at this time.
0 commit comments