]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/radeon: fix MAX_POWER_SHIFT value
authorAlexandre Demers <alexandre.f.demers@gmail.com>
Sat, 22 Mar 2025 18:39:00 +0000 (14:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Apr 2025 19:18:32 +0000 (15:18 -0400)
While I don't think it is being used anywhere, if it were used, it would
be wrong. We can base this assumption on MAX_POWER_MASK, where the shift is
by 16 bits.

Signed-off-by: Alexandre Demers <alexandre.f.demers@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/sid.h

index 65a911ddd509d29d2a5d460ada79674e947a96f3..f9267b026f8de0b50c7e3f3bea8356c9139fb75c 100644 (file)
 #define                MIN_POWER_SHIFT                         0
 #define                MAX_POWER(x)                            ((x) << 16)
 #define                MAX_POWER_MASK                          (0x3fff << 16)
-#define                MAX_POWER_SHIFT                         0
+#define                MAX_POWER_SHIFT                         16
 #define SQ_POWER_THROTTLE2                              0x8e5c
 #define                MAX_POWER_DELTA(x)                      ((x) << 0)
 #define                MAX_POWER_DELTA_MASK                    (0x3fff << 0)