mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-25 14:26:44 +00:00
drm/i915/gt: Fix platform prefix
Different handling for XeHP and later platforms should be using the xehp prefix, not gen125. Rename them. Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220930050903.3479619-4-lucas.demarchi@intel.com
This commit is contained in:
parent
b1f80a5aaa
commit
d263545ef0
@ -396,10 +396,10 @@ int gen8_emit_init_breadcrumb(struct i915_request *rq)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __gen125_emit_bb_start(struct i915_request *rq,
|
static int __xehp_emit_bb_start(struct i915_request *rq,
|
||||||
u64 offset, u32 len,
|
u64 offset, u32 len,
|
||||||
const unsigned int flags,
|
const unsigned int flags,
|
||||||
u32 arb)
|
u32 arb)
|
||||||
{
|
{
|
||||||
struct intel_context *ce = rq->context;
|
struct intel_context *ce = rq->context;
|
||||||
u32 wa_offset = lrc_indirect_bb(ce);
|
u32 wa_offset = lrc_indirect_bb(ce);
|
||||||
@ -437,18 +437,18 @@ static int __gen125_emit_bb_start(struct i915_request *rq,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int gen125_emit_bb_start_noarb(struct i915_request *rq,
|
int xehp_emit_bb_start_noarb(struct i915_request *rq,
|
||||||
u64 offset, u32 len,
|
u64 offset, u32 len,
|
||||||
const unsigned int flags)
|
const unsigned int flags)
|
||||||
{
|
{
|
||||||
return __gen125_emit_bb_start(rq, offset, len, flags, MI_ARB_DISABLE);
|
return __xehp_emit_bb_start(rq, offset, len, flags, MI_ARB_DISABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
int gen125_emit_bb_start(struct i915_request *rq,
|
int xehp_emit_bb_start(struct i915_request *rq,
|
||||||
u64 offset, u32 len,
|
u64 offset, u32 len,
|
||||||
const unsigned int flags)
|
const unsigned int flags)
|
||||||
{
|
{
|
||||||
return __gen125_emit_bb_start(rq, offset, len, flags, MI_ARB_ENABLE);
|
return __xehp_emit_bb_start(rq, offset, len, flags, MI_ARB_ENABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
int gen8_emit_bb_start_noarb(struct i915_request *rq,
|
int gen8_emit_bb_start_noarb(struct i915_request *rq,
|
||||||
|
|||||||
@ -32,12 +32,12 @@ int gen8_emit_bb_start(struct i915_request *rq,
|
|||||||
u64 offset, u32 len,
|
u64 offset, u32 len,
|
||||||
const unsigned int flags);
|
const unsigned int flags);
|
||||||
|
|
||||||
int gen125_emit_bb_start_noarb(struct i915_request *rq,
|
int xehp_emit_bb_start_noarb(struct i915_request *rq,
|
||||||
u64 offset, u32 len,
|
u64 offset, u32 len,
|
||||||
const unsigned int flags);
|
const unsigned int flags);
|
||||||
int gen125_emit_bb_start(struct i915_request *rq,
|
int xehp_emit_bb_start(struct i915_request *rq,
|
||||||
u64 offset, u32 len,
|
u64 offset, u32 len,
|
||||||
const unsigned int flags);
|
const unsigned int flags);
|
||||||
|
|
||||||
u32 *gen8_emit_fini_breadcrumb_xcs(struct i915_request *rq, u32 *cs);
|
u32 *gen8_emit_fini_breadcrumb_xcs(struct i915_request *rq, u32 *cs);
|
||||||
u32 *gen12_emit_fini_breadcrumb_xcs(struct i915_request *rq, u32 *cs);
|
u32 *gen12_emit_fini_breadcrumb_xcs(struct i915_request *rq, u32 *cs);
|
||||||
|
|||||||
@ -3471,9 +3471,9 @@ logical_ring_default_vfuncs(struct intel_engine_cs *engine)
|
|||||||
|
|
||||||
if (GRAPHICS_VER_FULL(engine->i915) >= IP_VER(12, 50)) {
|
if (GRAPHICS_VER_FULL(engine->i915) >= IP_VER(12, 50)) {
|
||||||
if (intel_engine_has_preemption(engine))
|
if (intel_engine_has_preemption(engine))
|
||||||
engine->emit_bb_start = gen125_emit_bb_start;
|
engine->emit_bb_start = xehp_emit_bb_start;
|
||||||
else
|
else
|
||||||
engine->emit_bb_start = gen125_emit_bb_start_noarb;
|
engine->emit_bb_start = xehp_emit_bb_start_noarb;
|
||||||
} else {
|
} else {
|
||||||
if (intel_engine_has_preemption(engine))
|
if (intel_engine_has_preemption(engine))
|
||||||
engine->emit_bb_start = gen8_emit_bb_start;
|
engine->emit_bb_start = gen8_emit_bb_start;
|
||||||
|
|||||||
@ -4094,7 +4094,7 @@ static void guc_default_vfuncs(struct intel_engine_cs *engine)
|
|||||||
|
|
||||||
engine->emit_bb_start = gen8_emit_bb_start;
|
engine->emit_bb_start = gen8_emit_bb_start;
|
||||||
if (GRAPHICS_VER_FULL(engine->i915) >= IP_VER(12, 50))
|
if (GRAPHICS_VER_FULL(engine->i915) >= IP_VER(12, 50))
|
||||||
engine->emit_bb_start = gen125_emit_bb_start;
|
engine->emit_bb_start = xehp_emit_bb_start;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rcs_submission_override(struct intel_engine_cs *engine)
|
static void rcs_submission_override(struct intel_engine_cs *engine)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user