diff options
| author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2026-11-05 14:47:37 +0200 |
|---|---|---|
| committer | Joonas Lahtinen <joonas.lahtinen@linux.intel.com> | 2026-11-16 11:12:04 +0200 |
| commit | 9e7a9295c90e28e1bb6e88b76aaa91839266352b (patch) | |
| tree | 2b92e593b492ee615c35f7ba0df2aeedccab0617 /tools/perf/scripts/python/bin | |
| parent | aebb7274476403040d582c61478df8f4a7bf9cd3 (diff) | |
drm/i915/cdclk: Ignore SWF18 in SKL CDCLK sanitization
Currently on SKL/derivatives we are checking whether
the VBIOS/GOP programmed the SWF18 scratch register
appropriately. SWF18 is where the VBIOS/GOP should
stuff some information about what outputs it enabled.
A related register SWF06 is where the VBIOS/GOP is
supposed to stuff the maximum CDCLK frequency.
I think only SWF06 is really used by the Windows
driver (and even that only up to and including ADL),
the other stuff it doesn't even look at.
Apparently at least some coreboot based systems
don't set these scratch registers up at all.
SWF18 not being populated leads us to reprogram the
CDCLK PLL during driver initialization, while the
display pipes are still potentially active. We also
set CDCLK to its minimum frequency, under the
assumption that nothing actually needs a higher
CDCLK frequency when it hasn't even been correctly
initialized.
Due to some other changes in the code we may no longer
force a full CDCLK recalculation and reprogramming upon
the first atomic commit, so CDCLK can remain at a
potentially too low a frequency indefinitely.
To fix this let's just stop looking at SWF18 completely.
We don't look at that register on any other platform either,
and neither does Windows from what I can see. We also do an
actual readout of the CDCLK state from the hardware
so we should be able to spot if anything is wrong
enough to need reprogramming.
v2: Rewrite the commit message to mix up SWF06 vs. SWF18
Cc: stable@vger.kernel.org
Fixes: ba91b9eecb47 ("drm/i915/cdclk: Decouple cdclk from state->modeset")
Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/16595
Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/17423
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20261105124737.24456-1-ville.syrjala@linux.intel.com
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
(cherry picked from commit a6e9767ca2e353277aa06d4c796093ef71a191b6)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
