drm/i915/tgl: Introduce gen12 forcewake ranges
authorMichel Thierry <michel.thierry@intel.com>
Fri, 13 Sep 2019 14:16:51 +0000 (17:16 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 13 Sep 2019 19:07:36 +0000 (20:07 +0100)
commitcf82d9ddd3b5203dea5561dfabd1216b8159af37
tree6331e50f6febfc16ef949dacbabead5bacfeabea
parentc9f8d18710bee1c5b87d54007c24d8bf79029fb6
drm/i915/tgl: Introduce gen12 forcewake ranges

The media ranges extend beyond what gen11 gives so we can't piggypack
on gen11 ranges, even on read side.

Introduce a table for gen12 and accessors for it.

v2: correctly implement gen12_fwtable_write/read (Daniele)
v3: update with ranges from bspec.
v4: avoid GEN11_NEEDS_FORCEWAKE (Mika)
v5: bspec ref (Daniele)

BSpec: 52078
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190913141652.27958-2-mika.kuoppala@linux.intel.com
drivers/gpu/drm/i915/intel_uncore.c
drivers/gpu/drm/i915/selftests/intel_uncore.c