gen6_rps_get_freq_caps(9)
π gen6_rps_get_freq_caps(9) π
okay bestie, so this is a page straight outta the Kernel API Manual and it's literally about pulling the frequency caps that the hardware itself is exposing. no cap. it's a tiny little function but it's giving "important plumbing" energy, so let's get into it π«Ά
β¨ NAME β¨
gen6_rps_get_freq_caps β Get freq caps exposed by HW π
like, the hardware tells you what it can do, and this function is the lil messenger that hands you that info. iconic behavior honestly π
πΈ SYNOPSIS πΈ
void gen6_rps_get_freq_caps (struct intel_rps *rps , struct
intel_rps_freq_caps *caps );
she takes two things and returns nothing (void, queen of not needing to prove herself) β¨
π¦ ARGUMENTS π¦
rpsβ theintel_rpsstructure. this is your main character right here π she's the RPS state and she's carrying the whole vibe.capsβ returned freq caps. yes, "returned" β this is where the caps come back out to you. it's an out-param situation, iykyk π§
π₯ DESCRIPTION π₯
So the caps come back to you through caps, and here's the one thing you literally cannot skip, bestie:
Returned "caps" frequencies should be converted to MHz using intel_gpu_freq β
like do NOT just read the raw number and assume it's MHz, okay?? convert first, then celebrate. the frequencies come back raw and intel_gpu_freq is the glow-up that turns them into actual MHz π
no extra lore, no secret tricks β that's the whole description, and it ate π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/i915/gt/intel_rps.cβ the source file where this lives, go read her π intel_rps_get_max_raw_freq(9)intel_rps_get_min_raw_freq(9)i915_read_mch_val(9)i915_gpu_raise(9)i915_gpu_lower(9)i915_gpu_busy(9)i915_gpu_turbo_disable(9)
a whole friend group of frequency-related functions, obsessed honestly π
and that's the page!! source vibes come from ./drivers/gpu/drm/i915/gt, dated October 2026, and honestly? she's short, she's sweet, she knows exactly what she is. slay, periodt π
β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms