Skip to content

Commit fd88c59

Browse files
committed
Merge tag 'pm-6.6-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management fix from Rafael Wysocki: "Fix an Intel RAPL power capping driver regression introduced during the 6.5 development cycle (Srinivas Pandruvada)" * tag 'pm-6.6-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: powercap: intel_rapl: Fix invalid setting of Power Limit 4
2 parents d30c0d3 + 081690e commit fd88c59

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/powercap/intel_rapl_common.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,6 @@ static struct rapl_primitive_info rpi_msr[NR_RAPL_PRIMITIVES] = {
658658
RAPL_DOMAIN_REG_LIMIT, ARBITRARY_UNIT, 0),
659659
[PL2_CLAMP] = PRIMITIVE_INFO_INIT(PL2_CLAMP, POWER_LIMIT2_CLAMP, 48,
660660
RAPL_DOMAIN_REG_LIMIT, ARBITRARY_UNIT, 0),
661-
[PL4_ENABLE] = PRIMITIVE_INFO_INIT(PL4_ENABLE, POWER_LIMIT4_MASK, 0,
662-
RAPL_DOMAIN_REG_PL4, ARBITRARY_UNIT, 0),
663661
[TIME_WINDOW1] = PRIMITIVE_INFO_INIT(TIME_WINDOW1, TIME_WINDOW1_MASK, 17,
664662
RAPL_DOMAIN_REG_LIMIT, TIME_UNIT, 0),
665663
[TIME_WINDOW2] = PRIMITIVE_INFO_INIT(TIME_WINDOW2, TIME_WINDOW2_MASK, 49,
@@ -1458,7 +1456,7 @@ static void rapl_detect_powerlimit(struct rapl_domain *rd)
14581456
}
14591457
}
14601458

1461-
if (rapl_read_pl_data(rd, i, PL_ENABLE, false, &val64))
1459+
if (rapl_read_pl_data(rd, i, PL_LIMIT, false, &val64))
14621460
rd->rpl[i].name = NULL;
14631461
}
14641462
}

0 commit comments

Comments
 (0)