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: Add .compare_hw_state hook

Add .compare_hw_state function pointer for MTL+ platforms
to support dpll framework.

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-25-mika.kahola@intel.com

+10
+10
drivers/gpu/drm/i915/display/intel_dpll_mgr.c
··· 4449 4449 intel_cx0pll_dump_hw_state(p, &dpll_hw_state->cx0pll); 4450 4450 } 4451 4451 4452 + static bool mtl_compare_hw_state(const struct intel_dpll_hw_state *_a, 4453 + const struct intel_dpll_hw_state *_b) 4454 + { 4455 + const struct intel_cx0pll_state *a = &_a->cx0pll; 4456 + const struct intel_cx0pll_state *b = &_b->cx0pll; 4457 + 4458 + return intel_cx0pll_compare_hw_state(a, b); 4459 + } 4460 + 4452 4461 __maybe_unused 4453 4462 static const struct intel_dpll_mgr mtl_pll_mgr = { 4454 4463 .dpll_info = mtl_plls, ··· 4467 4458 .update_active_dpll = icl_update_active_dpll, 4468 4459 .update_ref_clks = icl_update_dpll_ref_clks, 4469 4460 .dump_hw_state = mtl_dump_hw_state, 4461 + .compare_hw_state = mtl_compare_hw_state, 4470 4462 }; 4471 4463 4472 4464 /**