We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0315366 commit 00598d5Copy full SHA for 00598d5
drivers/gpu/drm/i915/gt/intel_rps.c
@@ -1973,8 +1973,14 @@ u32 intel_rps_read_actual_frequency(struct intel_rps *rps)
1973
u32 intel_rps_read_punit_req(struct intel_rps *rps)
1974
{
1975
struct intel_uncore *uncore = rps_to_uncore(rps);
1976
+ struct intel_runtime_pm *rpm = rps_to_uncore(rps)->rpm;
1977
+ intel_wakeref_t wakeref;
1978
+ u32 freq = 0;
1979
- return intel_uncore_read(uncore, GEN6_RPNSWREQ);
1980
+ with_intel_runtime_pm_if_in_use(rpm, wakeref)
1981
+ freq = intel_uncore_read(uncore, GEN6_RPNSWREQ);
1982
+
1983
+ return freq;
1984
}
1985
1986
static u32 intel_rps_get_req(u32 pureq)
0 commit comments