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/dsb: Add pipedmc dc balance enable/disable

Add function to control DC balance enable/disable bit via DSB.

--v2:
Remove redundant forward declaration.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patch.msgid.link/20251223104542.2688548-16-mitulkumar.ajitkumar.golani@intel.com

authored by

Ville Syrjälä and committed by
Ankit Nautiyal
27a4250c c4aba65c

+20
+17
drivers/gpu/drm/i915/display/intel_dmc.c
··· 1755 1755 1756 1756 return dmc ? dmc->dmc_info[dmc_id].start_mmioaddr : 0; 1757 1757 } 1758 + 1759 + void intel_pipedmc_dcb_enable(struct intel_dsb *dsb, struct intel_crtc *crtc) 1760 + { 1761 + struct intel_display *display = to_intel_display(crtc); 1762 + enum pipe pipe = crtc->pipe; 1763 + 1764 + intel_de_write_dsb(display, dsb, PIPEDMC_DCB_CTL(pipe), 1765 + PIPEDMC_ADAPTIVE_DCB_ENABLE); 1766 + } 1767 + 1768 + void intel_pipedmc_dcb_disable(struct intel_dsb *dsb, struct intel_crtc *crtc) 1769 + { 1770 + struct intel_display *display = to_intel_display(crtc); 1771 + enum pipe pipe = crtc->pipe; 1772 + 1773 + intel_de_write_dsb(display, dsb, PIPEDMC_DCB_CTL(pipe), 0); 1774 + }
+3
drivers/gpu/drm/i915/display/intel_dmc.h
··· 15 15 struct intel_crtc_state; 16 16 struct intel_display; 17 17 struct intel_dmc_snapshot; 18 + struct intel_dsb; 18 19 19 20 void intel_dmc_init(struct intel_display *display); 20 21 void intel_dmc_load_program(struct intel_display *display); ··· 40 39 void assert_main_dmc_loaded(struct intel_display *display); 41 40 42 41 void intel_pipedmc_irq_handler(struct intel_display *display, enum pipe pipe); 42 + void intel_pipedmc_dcb_enable(struct intel_dsb *dsb, struct intel_crtc *crtc); 43 + void intel_pipedmc_dcb_disable(struct intel_dsb *dsb, struct intel_crtc *crtc); 43 44 44 45 u32 intel_pipedmc_start_mmioaddr(struct intel_crtc *crtc); 45 46 void intel_pipedmc_enable_event(struct intel_crtc *crtc,