Skip to content

Commit d654f60

Browse files
ashutoshxrodrigovivi
authored andcommitted
drm/i915/gt: Fix perf limit reasons bit positions
Perf limit reasons bit positions were off by one. Fixes: fa68bff ("drm/i915/gt: Add sysfs throttle frequency interfaces") Cc: stable@vger.kernel.org # v5.18+ Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Acked-by: Andi Shyti <andi.shyti@linux.intel.com> Reviewed-by: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220908155821.1662110-1-ashutosh.dixit@intel.com Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> (cherry picked from commit 60017f3) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent aee5ae7 commit d654f60

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

drivers/gpu/drm/i915/i915_reg.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,14 +1857,14 @@
18571857

18581858
#define GT0_PERF_LIMIT_REASONS _MMIO(0x1381a8)
18591859
#define GT0_PERF_LIMIT_REASONS_MASK 0xde3
1860-
#define PROCHOT_MASK REG_BIT(1)
1861-
#define THERMAL_LIMIT_MASK REG_BIT(2)
1862-
#define RATL_MASK REG_BIT(6)
1863-
#define VR_THERMALERT_MASK REG_BIT(7)
1864-
#define VR_TDC_MASK REG_BIT(8)
1865-
#define POWER_LIMIT_4_MASK REG_BIT(9)
1866-
#define POWER_LIMIT_1_MASK REG_BIT(11)
1867-
#define POWER_LIMIT_2_MASK REG_BIT(12)
1860+
#define PROCHOT_MASK REG_BIT(0)
1861+
#define THERMAL_LIMIT_MASK REG_BIT(1)
1862+
#define RATL_MASK REG_BIT(5)
1863+
#define VR_THERMALERT_MASK REG_BIT(6)
1864+
#define VR_TDC_MASK REG_BIT(7)
1865+
#define POWER_LIMIT_4_MASK REG_BIT(8)
1866+
#define POWER_LIMIT_1_MASK REG_BIT(10)
1867+
#define POWER_LIMIT_2_MASK REG_BIT(11)
18681868

18691869
#define CHV_CLK_CTL1 _MMIO(0x101100)
18701870
#define VLV_CLK_CTL2 _MMIO(0x101104)

0 commit comments

Comments
 (0)