Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/cx0: PLL verify debug state print

Print out hw and sw pll states for better debugging support.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://lore.kernel.org/r/20251117104602.2363671-29-mika.kahola@intel.com

authored by

Imre Deak and committed by
Mika Kahola
b800af73 f3b04e27

+12 -5
+12 -5
drivers/gpu/drm/i915/display/intel_dpll_mgr.c
··· 4882 4882 "%s: pll enabled crtcs mismatch (expected 0x%x in 0x%x)\n", 4883 4883 pll->info->name, pipe_mask, pll->state.pipe_mask); 4884 4884 4885 - INTEL_DISPLAY_STATE_WARN(display, 4886 - pll->on && memcmp(&pll->state.hw_state, &dpll_hw_state, 4887 - sizeof(dpll_hw_state)), 4888 - "%s: pll hw state mismatch\n", 4889 - pll->info->name); 4885 + if (INTEL_DISPLAY_STATE_WARN(display, 4886 + pll->on && memcmp(&pll->state.hw_state, &dpll_hw_state, 4887 + sizeof(dpll_hw_state)), 4888 + "%s: pll hw state mismatch\n", 4889 + pll->info->name)) { 4890 + struct drm_printer p = drm_dbg_printer(display->drm, DRM_UT_KMS, NULL); 4891 + 4892 + drm_printf(&p, "PLL %s HW state:\n", pll->info->name); 4893 + intel_dpll_dump_hw_state(display, &p, &dpll_hw_state); 4894 + drm_printf(&p, "PLL %s SW state:\n", pll->info->name); 4895 + intel_dpll_dump_hw_state(display, &p, &pll->state.hw_state); 4896 + } 4890 4897 } 4891 4898 4892 4899 static bool has_alt_port_dpll(const struct intel_dpll *old_pll,