mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 09:26:58 +07:00
drm/i915/skl: Introduce a SKL specific init_workarounds()
This function will host SKL-only W/As. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Nick Hoath <nicholas.hoath@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
8543747ce5
commit
8d20549410
@ -984,6 +984,13 @@ static int gen9_init_workarounds(struct intel_engine_cs *ring)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int skl_init_workarounds(struct intel_engine_cs *ring)
|
||||
{
|
||||
gen9_init_workarounds(ring);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int init_workarounds_ring(struct intel_engine_cs *ring)
|
||||
{
|
||||
struct drm_device *dev = ring->dev;
|
||||
@ -999,7 +1006,9 @@ int init_workarounds_ring(struct intel_engine_cs *ring)
|
||||
if (IS_CHERRYVIEW(dev))
|
||||
return chv_init_workarounds(ring);
|
||||
|
||||
if (IS_GEN9(dev))
|
||||
if (IS_SKYLAKE(dev))
|
||||
return skl_init_workarounds(ring);
|
||||
else if (IS_GEN9(dev))
|
||||
return gen9_init_workarounds(ring);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user