Skip to content

Commit db5ff4a

Browse files
sdeepak2danvet
authored andcommitted
drm/i915: Forcewake Register Range changes for CHV
According to updated BSpec, Render/Common/media Wells register range changed. Updating the same to match the spec and avoid extra forcewake for none forcewake range. v2: Update media forcewake range (Ville) Signed-off-by: Deepak S <deepak.s@linux.intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent f915084 commit db5ff4a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

drivers/gpu/drm/i915/intel_uncore.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -647,9 +647,9 @@ void assert_force_wake_inactive(struct drm_i915_private *dev_priv)
647647

648648
#define FORCEWAKE_CHV_RENDER_RANGE_OFFSET(reg) \
649649
(REG_RANGE((reg), 0x2000, 0x4000) || \
650-
REG_RANGE((reg), 0x5000, 0x8000) || \
650+
REG_RANGE((reg), 0x5200, 0x8000) || \
651651
REG_RANGE((reg), 0x8300, 0x8500) || \
652-
REG_RANGE((reg), 0xB000, 0xC000) || \
652+
REG_RANGE((reg), 0xB000, 0xB480) || \
653653
REG_RANGE((reg), 0xE000, 0xE800))
654654

655655
#define FORCEWAKE_CHV_MEDIA_RANGE_OFFSET(reg) \
@@ -658,17 +658,14 @@ void assert_force_wake_inactive(struct drm_i915_private *dev_priv)
658658
REG_RANGE((reg), 0x12000, 0x14000) || \
659659
REG_RANGE((reg), 0x1A000, 0x1C000) || \
660660
REG_RANGE((reg), 0x1E800, 0x1EA00) || \
661-
REG_RANGE((reg), 0x30000, 0x40000))
661+
REG_RANGE((reg), 0x30000, 0x38000))
662662

663663
#define FORCEWAKE_CHV_COMMON_RANGE_OFFSET(reg) \
664664
(REG_RANGE((reg), 0x4000, 0x5000) || \
665665
REG_RANGE((reg), 0x8000, 0x8300) || \
666666
REG_RANGE((reg), 0x8500, 0x8600) || \
667667
REG_RANGE((reg), 0x9000, 0xB000) || \
668-
REG_RANGE((reg), 0xC000, 0xC800) || \
669-
REG_RANGE((reg), 0xF000, 0x10000) || \
670-
REG_RANGE((reg), 0x14000, 0x14400) || \
671-
REG_RANGE((reg), 0x22000, 0x24000))
668+
REG_RANGE((reg), 0xF000, 0x10000))
672669

673670
#define FORCEWAKE_GEN9_UNCORE_RANGE_OFFSET(reg) \
674671
REG_RANGE((reg), 0xB00, 0x2000)

0 commit comments

Comments
 (0)