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: [email protected] # v5.18+ Signed-off-by: Ashutosh Dixit <[email protected]> Acked-by: Andi Shyti <[email protected]> Reviewed-by: Sujaritha Sundaresan <[email protected]> Signed-off-by: Matt Roper <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Joonas Lahtinen <[email protected]> (cherry picked from commit 60017f3) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent aee5ae7 commit d654f60

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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)