drm: Rename drm_atomic_state
Subsystems (87)
Maxime Ripard
maintainerv2 cover drm: Rename drm_atomic_state
We've been discussing for a long time about renaming drm_atomic_state to a better suited name, since the current one is a source of confusion and bugs.
To minimize the impact, this should probably go through drm-next directly.
Let me know what you think,
Maxime
---
Changes in v2:
- Rename to drm_atomic_commit
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Maxime Ripard (2):
drm: Rename drm_atomic_state
Documentation: drm: Remove drm_atomic_state rename entry
Documentation/gpu/drm-kms.rst | 14 +- Documentation/gpu/komeda-kms.rst | 6 +- Documentation/gpu/todo.rst | 23 --- drivers/gpu/drm/adp/adp_drv.c | 12 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 10 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 62 ++++---- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 6 +- .../drm/amd/display/amdgpu_dm/amdgpu_dm_color.c | 12 +- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 4 +- .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 22 +-- .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.h | 4 +- .../drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 6 +- .../drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h | 20 +-- drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 8 +- drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 10 +- .../gpu/drm/arm/display/komeda/komeda_pipeline.h | 14 +- .../drm/arm/display/komeda/komeda_pipeline_state.c | 28 ++-- drivers/gpu/drm/arm/display/komeda/komeda_plane.c | 4 +- drivers/gpu/drm/arm/hdlcd_crtc.c | 10 +- drivers/gpu/drm/arm/malidp_crtc.c | 6 +- drivers/gpu/drm/arm/malidp_drv.c | 4 +- drivers/gpu/drm/arm/malidp_mw.c | 2 +- drivers/gpu/drm/arm/malidp_mw.h | 2 +- drivers/gpu/drm/arm/malidp_planes.c | 6 +- drivers/gpu/drm/armada/armada_crtc.c | 10 +- drivers/gpu/drm/armada/armada_overlay.c | 10 +- drivers/gpu/drm/armada/armada_plane.c | 6 +- drivers/gpu/drm/armada/armada_plane.h | 2 +- drivers/gpu/drm/ast/ast_cursor.c | 6 +- drivers/gpu/drm/ast/ast_dp.c | 4 +- drivers/gpu/drm/ast/ast_dp501.c | 4 +- drivers/gpu/drm/ast/ast_mode.c | 18 +-- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 10 +- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 2 +- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 6 +- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 4 +- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 14 +- drivers/gpu/drm/bridge/analogix/anx7625.c | 4 +- drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c | 4 +- .../gpu/drm/bridge/cadence/cdns-mhdp8546-core.c | 6 +- drivers/gpu/drm/bridge/chipone-icn6211.c | 6 +- drivers/gpu/drm/bridge/fsl-ldb.c | 4 +- drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c | 4 +- drivers/gpu/drm/bridge/imx/imx8qm-ldb.c | 4 +- drivers/gpu/drm/bridge/imx/imx8qxp-ldb.c | 6 +- .../gpu/drm/bridge/imx/imx8qxp-pixel-combiner.c | 2 +- drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c | 4 +- drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c | 2 +- drivers/gpu/drm/bridge/inno-hdmi.c | 6 +- drivers/gpu/drm/bridge/ite-it6263.c | 4 +- drivers/gpu/drm/bridge/ite-it6505.c | 8 +- drivers/gpu/drm/bridge/ite-it66121.c | 4 +- drivers/gpu/drm/bridge/lontium-lt9211.c | 4 +- drivers/gpu/drm/bridge/lontium-lt9611.c | 8 +- drivers/gpu/drm/bridge/nwl-dsi.c | 4 +- drivers/gpu/drm/bridge/panel.c | 8 +- drivers/gpu/drm/bridge/parade-ps8640.c | 4 +- drivers/gpu/drm/bridge/samsung-dsim.c | 8 +- drivers/gpu/drm/bridge/sii902x.c | 4 +- drivers/gpu/drm/bridge/ssd2825.c | 6 +- drivers/gpu/drm/bridge/synopsys/dw-dp.c | 4 +- drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c | 4 +- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 +- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 6 +- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c | 6 +- drivers/gpu/drm/bridge/tc358762.c | 6 +- drivers/gpu/drm/bridge/tc358767.c | 8 +- drivers/gpu/drm/bridge/tc358768.c | 8 +- drivers/gpu/drm/bridge/tc358775.c | 6 +- drivers/gpu/drm/bridge/ti-dlpc3433.c | 6 +- drivers/gpu/drm/bridge/ti-sn65dsi83.c | 6 +- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 22 +-- drivers/gpu/drm/bridge/ti-tdp158.c | 4 +- drivers/gpu/drm/ci/xfails/vkms-none-skips.txt | 20 +-- drivers/gpu/drm/display/drm_bridge_connector.c | 2 +- drivers/gpu/drm/display/drm_dp_mst_topology.c | 26 ++-- drivers/gpu/drm/display/drm_dp_tunnel.c | 14 +- drivers/gpu/drm/display/drm_hdmi_state_helper.c | 6 +- drivers/gpu/drm/drm_atomic.c | 128 +++++++-------- drivers/gpu/drm/drm_atomic_helper.c | 172 ++++++++++----------- drivers/gpu/drm/drm_atomic_state_helper.c | 2 +- drivers/gpu/drm/drm_atomic_uapi.c | 28 ++-- drivers/gpu/drm/drm_blend.c | 8 +- drivers/gpu/drm/drm_bridge.c | 14 +- drivers/gpu/drm/drm_client_modeset.c | 8 +- drivers/gpu/drm/drm_color_mgmt.c | 6 +- drivers/gpu/drm/drm_crtc_helper.c | 2 +- drivers/gpu/drm/drm_crtc_internal.h | 10 +- drivers/gpu/drm/drm_damage_helper.c | 10 +- drivers/gpu/drm/drm_fb_helper.c | 8 +- drivers/gpu/drm/drm_framebuffer.c | 8 +- drivers/gpu/drm/drm_mode_object.c | 8 +- drivers/gpu/drm/drm_modeset_helper.c | 2 +- drivers/gpu/drm/drm_self_refresh_helper.c | 12 +- drivers/gpu/drm/drm_simple_kms_helper.c | 10 +- drivers/gpu/drm/drm_vblank_helper.c | 6 +- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 10 +- drivers/gpu/drm/exynos/exynos_drm_plane.c | 6 +- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 6 +- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c | 6 +- drivers/gpu/drm/gud/gud_connector.c | 10 +- drivers/gpu/drm/gud/gud_internal.h | 8 +- drivers/gpu/drm/gud/gud_pipe.c | 8 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 12 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_dp.c | 4 +- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 14 +- drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 6 +- drivers/gpu/drm/i915/display/g4x_hdmi.c | 2 +- drivers/gpu/drm/i915/display/g4x_hdmi.h | 6 +- drivers/gpu/drm/i915/display/i9xx_wm.c | 10 +- drivers/gpu/drm/i915/display/intel_atomic.c | 16 +- drivers/gpu/drm/i915/display/intel_atomic.h | 12 +- drivers/gpu/drm/i915/display/intel_audio.c | 8 +- drivers/gpu/drm/i915/display/intel_crt.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 22 +-- drivers/gpu/drm/i915/display/intel_display.h | 6 +- drivers/gpu/drm/i915/display/intel_display_core.h | 2 +- .../gpu/drm/i915/display/intel_display_driver.c | 8 +- .../gpu/drm/i915/display/intel_display_driver.h | 4 +- drivers/gpu/drm/i915/display/intel_display_reset.c | 8 +- drivers/gpu/drm/i915/display/intel_display_types.h | 2 +- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_dp_mst.c | 6 +- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 2 +- drivers/gpu/drm/i915/display/intel_fdi.c | 2 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 2 +- drivers/gpu/drm/i915/display/intel_load_detect.c | 20 +-- drivers/gpu/drm/i915/display/intel_load_detect.h | 6 +- drivers/gpu/drm/i915/display/intel_modeset_lock.c | 2 +- drivers/gpu/drm/i915/display/intel_modeset_setup.c | 6 +- drivers/gpu/drm/i915/display/intel_pipe_crc.c | 8 +- drivers/gpu/drm/i915/display/intel_plane.c | 2 +- drivers/gpu/drm/i915/display/intel_psr.c | 8 +- drivers/gpu/drm/i915/display/intel_sdvo.c | 2 +- drivers/gpu/drm/i915/display/intel_sprite_uapi.c | 8 +- drivers/gpu/drm/i915/display/intel_tc.c | 6 +- drivers/gpu/drm/i915/display/intel_tv.c | 4 +- drivers/gpu/drm/imx/dc/dc-crtc.c | 10 +- drivers/gpu/drm/imx/dc/dc-plane.c | 6 +- drivers/gpu/drm/imx/dcss/dcss-crtc.c | 8 +- drivers/gpu/drm/imx/dcss/dcss-plane.c | 6 +- drivers/gpu/drm/imx/ipuv3/imx-drm-core.c | 4 +- drivers/gpu/drm/imx/ipuv3/imx-drm.h | 2 +- drivers/gpu/drm/imx/ipuv3/ipuv3-crtc.c | 10 +- drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c | 8 +- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 24 +-- drivers/gpu/drm/ingenic/ingenic-ipu.c | 10 +- drivers/gpu/drm/kmb/kmb_crtc.c | 10 +- drivers/gpu/drm/kmb/kmb_drv.h | 2 +- drivers/gpu/drm/kmb/kmb_dsi.c | 4 +- drivers/gpu/drm/kmb/kmb_dsi.h | 2 +- drivers/gpu/drm/kmb/kmb_plane.c | 6 +- drivers/gpu/drm/logicvc/logicvc_crtc.c | 6 +- drivers/gpu/drm/logicvc/logicvc_layer.c | 6 +- drivers/gpu/drm/loongson/lsdc_crtc.c | 8 +- drivers/gpu/drm/loongson/lsdc_output_7a1000.c | 2 +- drivers/gpu/drm/loongson/lsdc_output_7a2000.c | 6 +- drivers/gpu/drm/loongson/lsdc_plane.c | 22 +-- drivers/gpu/drm/mediatek/mtk_crtc.c | 12 +- drivers/gpu/drm/mediatek/mtk_crtc.h | 2 +- drivers/gpu/drm/mediatek/mtk_dp.c | 4 +- drivers/gpu/drm/mediatek/mtk_drm_drv.h | 2 +- drivers/gpu/drm/mediatek/mtk_dsi.c | 8 +- drivers/gpu/drm/mediatek/mtk_hdmi.c | 8 +- drivers/gpu/drm/mediatek/mtk_hdmi_v2.c | 8 +- drivers/gpu/drm/mediatek/mtk_plane.c | 10 +- drivers/gpu/drm/meson/meson_crtc.c | 12 +- drivers/gpu/drm/meson/meson_encoder_cvbs.c | 4 +- drivers/gpu/drm/meson/meson_encoder_dsi.c | 4 +- drivers/gpu/drm/meson/meson_encoder_hdmi.c | 4 +- drivers/gpu/drm/meson/meson_overlay.c | 6 +- drivers/gpu/drm/meson/meson_plane.c | 6 +- drivers/gpu/drm/mgag200/mgag200_drv.h | 26 ++-- drivers/gpu/drm/mgag200/mgag200_g200.c | 4 +- drivers/gpu/drm/mgag200/mgag200_g200eh.c | 4 +- drivers/gpu/drm/mgag200/mgag200_g200eh3.c | 2 +- drivers/gpu/drm/mgag200/mgag200_g200eh5.c | 2 +- drivers/gpu/drm/mgag200/mgag200_g200er.c | 6 +- drivers/gpu/drm/mgag200/mgag200_g200ev.c | 6 +- drivers/gpu/drm/mgag200/mgag200_g200ew3.c | 2 +- drivers/gpu/drm/mgag200/mgag200_g200se.c | 10 +- drivers/gpu/drm/mgag200/mgag200_g200wb.c | 4 +- drivers/gpu/drm/mgag200/mgag200_mode.c | 18 +-- drivers/gpu/drm/mgag200/mgag200_vga_bmc.c | 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 12 +- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 8 +- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h | 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 12 +- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_writeback.c | 2 +- drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c | 10 +- drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 10 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.h | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.c | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.h | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 8 +- drivers/gpu/drm/msm/disp/msm_disp_snapshot.h | 2 +- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 2 +- drivers/gpu/drm/msm/dp/dp_display.c | 6 +- drivers/gpu/drm/msm/dp/dp_drm.c | 6 +- drivers/gpu/drm/msm/dp/dp_drm.h | 6 +- drivers/gpu/drm/msm/hdmi/hdmi_bridge.c | 4 +- drivers/gpu/drm/msm/msm_atomic.c | 8 +- drivers/gpu/drm/msm/msm_drv.h | 6 +- drivers/gpu/drm/msm/msm_kms.h | 4 +- drivers/gpu/drm/mxsfb/lcdif_kms.c | 12 +- drivers/gpu/drm/mxsfb/mxsfb_kms.c | 16 +- drivers/gpu/drm/nouveau/dispnv50/atom.h | 6 +- drivers/gpu/drm/nouveau/dispnv50/crc.c | 16 +- drivers/gpu/drm/nouveau/dispnv50/crc.h | 16 +- drivers/gpu/drm/nouveau/dispnv50/disp.c | 68 ++++---- drivers/gpu/drm/nouveau/dispnv50/head.c | 2 +- drivers/gpu/drm/nouveau/dispnv50/wndw.c | 2 +- drivers/gpu/drm/nouveau/nouveau_connector.c | 2 +- drivers/gpu/drm/nouveau/nouveau_display.h | 2 +- drivers/gpu/drm/nouveau/nouveau_encoder.h | 4 +- drivers/gpu/drm/omapdrm/dss/hdmi4.c | 4 +- drivers/gpu/drm/omapdrm/dss/hdmi5.c | 4 +- drivers/gpu/drm/omapdrm/omap_crtc.c | 10 +- drivers/gpu/drm/omapdrm/omap_drv.c | 14 +- drivers/gpu/drm/omapdrm/omap_drv.h | 2 +- drivers/gpu/drm/omapdrm/omap_overlay.c | 4 +- drivers/gpu/drm/omapdrm/omap_overlay.h | 4 +- drivers/gpu/drm/omapdrm/omap_plane.c | 6 +- drivers/gpu/drm/qxl/qxl_display.c | 16 +- drivers/gpu/drm/renesas/rcar-du/rcar_du_crtc.c | 18 +-- drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c | 4 +- drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c | 6 +- drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.h | 2 +- drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c | 4 +- drivers/gpu/drm/renesas/rcar-du/rcar_lvds.c | 6 +- drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c | 6 +- drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.h | 6 +- drivers/gpu/drm/renesas/rz-du/rzg2l_du_crtc.c | 6 +- drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c | 4 +- drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c | 8 +- drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c | 6 +- drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c | 6 +- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 6 +- drivers/gpu/drm/rockchip/cdn-dp-core.c | 4 +- drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c | 2 +- drivers/gpu/drm/rockchip/dw_dp-rockchip.c | 2 +- drivers/gpu/drm/rockchip/rk3066_hdmi.c | 6 +- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 22 +-- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 18 +-- drivers/gpu/drm/sitronix/st7571.c | 10 +- drivers/gpu/drm/sitronix/st7920.c | 12 +- drivers/gpu/drm/solomon/ssd130x.c | 32 ++-- drivers/gpu/drm/sprd/sprd_dpu.c | 12 +- drivers/gpu/drm/sti/sti_crtc.c | 6 +- drivers/gpu/drm/sti/sti_cursor.c | 6 +- drivers/gpu/drm/sti/sti_gdp.c | 6 +- drivers/gpu/drm/sti/sti_hqvdp.c | 6 +- drivers/gpu/drm/stm/drv.c | 2 +- drivers/gpu/drm/stm/ltdc.c | 12 +- drivers/gpu/drm/stm/ltdc.h | 2 +- drivers/gpu/drm/stm/lvds.c | 6 +- drivers/gpu/drm/sun4i/sun4i_backend.c | 4 +- drivers/gpu/drm/sun4i/sun4i_crtc.c | 10 +- drivers/gpu/drm/sun4i/sun4i_framebuffer.c | 2 +- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 4 +- drivers/gpu/drm/sun4i/sun4i_layer.c | 4 +- drivers/gpu/drm/sun4i/sun4i_tv.c | 4 +- drivers/gpu/drm/sun4i/sun8i_mixer.c | 2 +- drivers/gpu/drm/sun4i/sun8i_ui_layer.c | 4 +- drivers/gpu/drm/sun4i/sun8i_vi_layer.c | 4 +- drivers/gpu/drm/sun4i/sunxi_engine.h | 4 +- drivers/gpu/drm/sysfb/drm_sysfb_helper.h | 8 +- drivers/gpu/drm/sysfb/drm_sysfb_modeset.c | 8 +- drivers/gpu/drm/sysfb/ofdrm.c | 2 +- drivers/gpu/drm/sysfb/vesadrm.c | 4 +- drivers/gpu/drm/tegra/dc.c | 32 ++-- drivers/gpu/drm/tegra/dc.h | 2 +- drivers/gpu/drm/tegra/drm.c | 6 +- drivers/gpu/drm/tegra/hub.c | 12 +- drivers/gpu/drm/tegra/hub.h | 4 +- drivers/gpu/drm/tests/Makefile | 2 +- ...tomic_state_test.c => drm_atomic_commit_test.c} | 12 +- drivers/gpu/drm/tests/drm_bridge_test.c | 8 +- drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 88 +++++------ drivers/gpu/drm/tests/drm_kunit_helpers.c | 18 +-- drivers/gpu/drm/tidss/tidss_crtc.c | 10 +- drivers/gpu/drm/tidss/tidss_kms.c | 4 +- drivers/gpu/drm/tidss/tidss_oldi.c | 4 +- drivers/gpu/drm/tidss/tidss_plane.c | 8 +- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 8 +- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +- drivers/gpu/drm/tilcdc/tilcdc_plane.c | 4 +- drivers/gpu/drm/tiny/appletbdrm.c | 6 +- drivers/gpu/drm/tiny/bochs.c | 10 +- drivers/gpu/drm/tiny/cirrus-qemu.c | 8 +- drivers/gpu/drm/tiny/pixpaper.c | 10 +- drivers/gpu/drm/tiny/sharp-memory.c | 10 +- drivers/gpu/drm/udl/udl_modeset.c | 8 +- drivers/gpu/drm/vboxvideo/vbox_mode.c | 18 +-- drivers/gpu/drm/vc4/tests/vc4_mock.h | 4 +- drivers/gpu/drm/vc4/tests/vc4_mock_output.c | 4 +- drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c | 50 +++--- drivers/gpu/drm/vc4/vc4_crtc.c | 10 +- drivers/gpu/drm/vc4/vc4_drv.h | 28 ++-- drivers/gpu/drm/vc4/vc4_dsi.c | 8 +- drivers/gpu/drm/vc4/vc4_hdmi.c | 12 +- drivers/gpu/drm/vc4/vc4_hvs.c | 10 +- drivers/gpu/drm/vc4/vc4_kms.c | 30 ++-- drivers/gpu/drm/vc4/vc4_plane.c | 8 +- drivers/gpu/drm/vc4/vc4_txp.c | 10 +- drivers/gpu/drm/vc4/vc4_vec.c | 4 +- drivers/gpu/drm/verisilicon/vs_bridge.c | 6 +- drivers/gpu/drm/verisilicon/vs_crtc.c | 4 +- drivers/gpu/drm/verisilicon/vs_primary_plane.c | 8 +- drivers/gpu/drm/virtio/virtgpu_display.c | 8 +- drivers/gpu/drm/virtio/virtgpu_plane.c | 6 +- drivers/gpu/drm/vkms/vkms_crtc.c | 6 +- drivers/gpu/drm/vkms/vkms_drv.c | 4 +- drivers/gpu/drm/vkms/vkms_plane.c | 4 +- drivers/gpu/drm/vkms/vkms_writeback.c | 4 +- drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c | 4 +- drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.h | 4 +- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 18 +-- drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | 6 +- drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c | 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | 4 +- drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 8 +- drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c | 8 +- drivers/gpu/drm/vmwgfx/vmwgfx_vkms.h | 10 +- drivers/gpu/drm/xlnx/zynqmp_dp.c | 6 +- drivers/gpu/drm/xlnx/zynqmp_kms.c | 16 +- include/drm/display/drm_dp_mst_helper.h | 32 ++-- include/drm/display/drm_dp_tunnel.h | 24 +-- include/drm/display/drm_hdmi_state_helper.h | 6 +- include/drm/drm_atomic.h | 158 +++++++++---------- include/drm/drm_atomic_helper.h | 78 +++++----- include/drm/drm_atomic_state_helper.h | 4 +- include/drm/drm_blend.h | 4 +- include/drm/drm_bridge.h | 16 +- include/drm/drm_colorop.h | 4 +- include/drm/drm_connector.h | 6 +- include/drm/drm_crtc.h | 10 +- include/drm/drm_crtc_helper.h | 4 +- include/drm/drm_damage_helper.h | 2 +- include/drm/drm_kunit_helpers.h | 2 +- include/drm/drm_mode_config.h | 38 ++--- include/drm/drm_modeset_helper_vtables.h | 44 +++--- include/drm/drm_plane.h | 6 +- include/drm/drm_self_refresh_helper.h | 6 +- include/drm/drm_vblank_helper.h | 8 +- 354 files changed, 1723 insertions(+), 1746 deletions(-)
---
base-commit: 66ba480978ce390e631e870b740a3406e3eb6b01
change-id: 20260326-drm-drm-atomic-update-2ef5e15eb6a8
Best regards,
Signature · 1 line
Maxime Ripard <[email protected]>
Maxime Ripard
maintainerPATCH v2 1/2 drm: Rename drm_atomic_state
The KMS framework uses two slightly different definitions for the state concept. For a given object (plane, CRTC, encoder, etc., so drm_$OBJECT_state), the state is the entire state of that object. However, at the device level, drm_atomic_state refers to a state update for a limited number of objects.
Thus, drm_atomic_state isn't the entire device state, but only the full state of some objects in that device. This has been an endless source of confusion and thus bugs.
We can rename drm_atomic_state to drm_atomic_commit to make it less confusing.
This patch was created using:
rg -l drm_atomic_state | \
xargs sed -i 's/drm_atomic_state/drm_atomic_commit/g; s/drm_atomic_commit_helper/drm_atomic_state_helper/g'
mv drivers/gpu/drm/tests/drm_atomic_state_test.c drivers/gpu/drm/tests/drm_atomic_commit_test.c
--- Documentation/gpu/drm-kms.rst | 14 +- Documentation/gpu/komeda-kms.rst | 6 +- Documentation/gpu/todo.rst | 12 +- drivers/gpu/drm/adp/adp_drv.c | 12 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 10 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 62 ++++---- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 6 +- .../drm/amd/display/amdgpu_dm/amdgpu_dm_color.c | 12 +- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 4 +- .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 22 +-- .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.h | 4 +- .../drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 6 +- .../drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h | 20 +-- drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 8 +- drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 10 +- .../gpu/drm/arm/display/komeda/komeda_pipeline.h | 14 +- .../drm/arm/display/komeda/komeda_pipeline_state.c | 28 ++-- drivers/gpu/drm/arm/display/komeda/komeda_plane.c | 4 +- drivers/gpu/drm/arm/hdlcd_crtc.c | 10 +- drivers/gpu/drm/arm/malidp_crtc.c | 6 +- drivers/gpu/drm/arm/malidp_drv.c | 4 +- drivers/gpu/drm/arm/malidp_mw.c | 2 +- drivers/gpu/drm/arm/malidp_mw.h | 2 +- drivers/gpu/drm/arm/malidp_planes.c | 6 +- drivers/gpu/drm/armada/armada_crtc.c | 10 +- drivers/gpu/drm/armada/armada_overlay.c | 10 +- drivers/gpu/drm/armada/armada_plane.c | 6 +- drivers/gpu/drm/armada/armada_plane.h | 2 +- drivers/gpu/drm/ast/ast_cursor.c | 6 +- drivers/gpu/drm/ast/ast_dp.c | 4 +- drivers/gpu/drm/ast/ast_dp501.c | 4 +- drivers/gpu/drm/ast/ast_mode.c | 18 +-- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 10 +- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 2 +- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 6 +- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 4 +- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 14 +- drivers/gpu/drm/bridge/analogix/anx7625.c | 4 +- drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c | 4 +- .../gpu/drm/bridge/cadence/cdns-mhdp8546-core.c | 6 +- drivers/gpu/drm/bridge/chipone-icn6211.c | 6 +- drivers/gpu/drm/bridge/fsl-ldb.c | 4 +- drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c | 4 +- drivers/gpu/drm/bridge/imx/imx8qm-ldb.c | 4 +- drivers/gpu/drm/bridge/imx/imx8qxp-ldb.c | 6 +- .../gpu/drm/bridge/imx/imx8qxp-pixel-combiner.c | 2 +- drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c | 4 +- drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c | 2 +- drivers/gpu/drm/bridge/inno-hdmi.c | 6 +- drivers/gpu/drm/bridge/ite-it6263.c | 4 +- drivers/gpu/drm/bridge/ite-it6505.c | 8 +- drivers/gpu/drm/bridge/ite-it66121.c | 4 +- drivers/gpu/drm/bridge/lontium-lt9211.c | 4 +- drivers/gpu/drm/bridge/lontium-lt9611.c | 8 +- drivers/gpu/drm/bridge/nwl-dsi.c | 4 +- drivers/gpu/drm/bridge/panel.c | 8 +- drivers/gpu/drm/bridge/parade-ps8640.c | 4 +- drivers/gpu/drm/bridge/samsung-dsim.c | 8 +- drivers/gpu/drm/bridge/sii902x.c | 4 +- drivers/gpu/drm/bridge/ssd2825.c | 6 +- drivers/gpu/drm/bridge/synopsys/dw-dp.c | 4 +- drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c | 4 +- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 +- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 6 +- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c | 6 +- drivers/gpu/drm/bridge/tc358762.c | 6 +- drivers/gpu/drm/bridge/tc358767.c | 8 +- drivers/gpu/drm/bridge/tc358768.c | 8 +- drivers/gpu/drm/bridge/tc358775.c | 6 +- drivers/gpu/drm/bridge/ti-dlpc3433.c | 6 +- drivers/gpu/drm/bridge/ti-sn65dsi83.c | 6 +- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 22 +-- drivers/gpu/drm/bridge/ti-tdp158.c | 4 +- drivers/gpu/drm/ci/xfails/vkms-none-skips.txt | 20 +-- drivers/gpu/drm/display/drm_bridge_connector.c | 2 +- drivers/gpu/drm/display/drm_dp_mst_topology.c | 26 ++-- drivers/gpu/drm/display/drm_dp_tunnel.c | 14 +- drivers/gpu/drm/display/drm_hdmi_state_helper.c | 6 +- drivers/gpu/drm/drm_atomic.c | 128 +++++++-------- drivers/gpu/drm/drm_atomic_helper.c | 172 ++++++++++----------- drivers/gpu/drm/drm_atomic_state_helper.c | 2 +- drivers/gpu/drm/drm_atomic_uapi.c | 28 ++-- drivers/gpu/drm/drm_blend.c | 8 +- drivers/gpu/drm/drm_bridge.c | 14 +- drivers/gpu/drm/drm_client_modeset.c | 8 +- drivers/gpu/drm/drm_color_mgmt.c | 6 +- drivers/gpu/drm/drm_crtc_helper.c | 2 +- drivers/gpu/drm/drm_crtc_internal.h | 10 +- drivers/gpu/drm/drm_damage_helper.c | 10 +- drivers/gpu/drm/drm_fb_helper.c | 8 +- drivers/gpu/drm/drm_framebuffer.c | 8 +- drivers/gpu/drm/drm_mode_object.c | 8 +- drivers/gpu/drm/drm_modeset_helper.c | 2 +- drivers/gpu/drm/drm_self_refresh_helper.c | 12 +- drivers/gpu/drm/drm_simple_kms_helper.c | 10 +- drivers/gpu/drm/drm_vblank_helper.c | 6 +- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 10 +- drivers/gpu/drm/exynos/exynos_drm_plane.c | 6 +- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 6 +- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c | 6 +- drivers/gpu/drm/gud/gud_connector.c | 10 +- drivers/gpu/drm/gud/gud_internal.h | 8 +- drivers/gpu/drm/gud/gud_pipe.c | 8 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 12 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_dp.c | 4 +- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 14 +- drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 6 +- drivers/gpu/drm/i915/display/g4x_hdmi.c | 2 +- drivers/gpu/drm/i915/display/g4x_hdmi.h | 6 +- drivers/gpu/drm/i915/display/i9xx_wm.c | 10 +- drivers/gpu/drm/i915/display/intel_atomic.c | 16 +- drivers/gpu/drm/i915/display/intel_atomic.h | 12 +- drivers/gpu/drm/i915/display/intel_audio.c | 8 +- drivers/gpu/drm/i915/display/intel_crt.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 22 +-- drivers/gpu/drm/i915/display/intel_display.h | 6 +- drivers/gpu/drm/i915/display/intel_display_core.h | 2 +- .../gpu/drm/i915/display/intel_display_driver.c | 8 +- .../gpu/drm/i915/display/intel_display_driver.h | 4 +- drivers/gpu/drm/i915/display/intel_display_reset.c | 8 +- drivers/gpu/drm/i915/display/intel_display_types.h | 2 +- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_dp_mst.c | 6 +- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 2 +- drivers/gpu/drm/i915/display/intel_fdi.c | 2 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 2 +- drivers/gpu/drm/i915/display/intel_load_detect.c | 20 +-- drivers/gpu/drm/i915/display/intel_load_detect.h | 6 +- drivers/gpu/drm/i915/display/intel_modeset_lock.c | 2 +- drivers/gpu/drm/i915/display/intel_modeset_setup.c | 6 +- drivers/gpu/drm/i915/display/intel_pipe_crc.c | 8 +- drivers/gpu/drm/i915/display/intel_plane.c | 2 +- drivers/gpu/drm/i915/display/intel_psr.c | 8 +- drivers/gpu/drm/i915/display/intel_sdvo.c | 2 +- drivers/gpu/drm/i915/display/intel_sprite_uapi.c | 8 +- drivers/gpu/drm/i915/display/intel_tc.c | 6 +- drivers/gpu/drm/i915/display/intel_tv.c | 4 +- drivers/gpu/drm/imx/dc/dc-crtc.c | 10 +- drivers/gpu/drm/imx/dc/dc-plane.c | 6 +- drivers/gpu/drm/imx/dcss/dcss-crtc.c | 8 +- drivers/gpu/drm/imx/dcss/dcss-plane.c | 6 +- drivers/gpu/drm/imx/ipuv3/imx-drm-core.c | 4 +- drivers/gpu/drm/imx/ipuv3/imx-drm.h | 2 +- drivers/gpu/drm/imx/ipuv3/ipuv3-crtc.c | 10 +- drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c | 8 +- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 24 +-- drivers/gpu/drm/ingenic/ingenic-ipu.c | 10 +- drivers/gpu/drm/kmb/kmb_crtc.c | 10 +- drivers/gpu/drm/kmb/kmb_drv.h | 2 +- drivers/gpu/drm/kmb/kmb_dsi.c | 4 +- drivers/gpu/drm/kmb/kmb_dsi.h | 2 +- drivers/gpu/drm/kmb/kmb_plane.c | 6 +- drivers/gpu/drm/logicvc/logicvc_crtc.c | 6 +- drivers/gpu/drm/logicvc/logicvc_layer.c | 6 +- drivers/gpu/drm/loongson/lsdc_crtc.c | 8 +- drivers/gpu/drm/loongson/lsdc_output_7a1000.c | 2 +- drivers/gpu/drm/loongson/lsdc_output_7a2000.c | 6 +- drivers/gpu/drm/loongson/lsdc_plane.c | 22 +-- drivers/gpu/drm/mediatek/mtk_crtc.c | 12 +- drivers/gpu/drm/mediatek/mtk_crtc.h | 2 +- drivers/gpu/drm/mediatek/mtk_dp.c | 4 +- drivers/gpu/drm/mediatek/mtk_drm_drv.h | 2 +- drivers/gpu/drm/mediatek/mtk_dsi.c | 8 +- drivers/gpu/drm/mediatek/mtk_hdmi.c | 8 +- drivers/gpu/drm/mediatek/mtk_hdmi_v2.c | 8 +- drivers/gpu/drm/mediatek/mtk_plane.c | 10 +- drivers/gpu/drm/meson/meson_crtc.c | 12 +- drivers/gpu/drm/meson/meson_encoder_cvbs.c | 4 +- drivers/gpu/drm/meson/meson_encoder_dsi.c | 4 +- drivers/gpu/drm/meson/meson_encoder_hdmi.c | 4 +- drivers/gpu/drm/meson/meson_overlay.c | 6 +- drivers/gpu/drm/meson/meson_plane.c | 6 +- drivers/gpu/drm/mgag200/mgag200_drv.h | 26 ++-- drivers/gpu/drm/mgag200/mgag200_g200.c | 4 +- drivers/gpu/drm/mgag200/mgag200_g200eh.c | 4 +- drivers/gpu/drm/mgag200/mgag200_g200eh3.c | 2 +- drivers/gpu/drm/mgag200/mgag200_g200eh5.c | 2 +- drivers/gpu/drm/mgag200/mgag200_g200er.c | 6 +- drivers/gpu/drm/mgag200/mgag200_g200ev.c | 6 +- drivers/gpu/drm/mgag200/mgag200_g200ew3.c | 2 +- drivers/gpu/drm/mgag200/mgag200_g200se.c | 10 +- drivers/gpu/drm/mgag200/mgag200_g200wb.c | 4 +- drivers/gpu/drm/mgag200/mgag200_mode.c | 18 +-- drivers/gpu/drm/mgag200/mgag200_vga_bmc.c | 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 12 +- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 8 +- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h | 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 12 +- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_writeback.c | 2 +- drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c | 10 +- drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 10 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.h | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.c | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.h | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 8 +- drivers/gpu/drm/msm/disp/msm_disp_snapshot.h | 2 +- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 2 +- drivers/gpu/drm/msm/dp/dp_display.c | 6 +- drivers/gpu/drm/msm/dp/dp_drm.c | 6 +- drivers/gpu/drm/msm/dp/dp_drm.h | 6 +- drivers/gpu/drm/msm/hdmi/hdmi_bridge.c | 4 +- drivers/gpu/drm/msm/msm_atomic.c | 8 +- drivers/gpu/drm/msm/msm_drv.h | 6 +- drivers/gpu/drm/msm/msm_kms.h | 4 +- drivers/gpu/drm/mxsfb/lcdif_kms.c | 12 +- drivers/gpu/drm/mxsfb/mxsfb_kms.c | 16 +- drivers/gpu/drm/nouveau/dispnv50/atom.h | 6 +- drivers/gpu/drm/nouveau/dispnv50/crc.c | 16 +- drivers/gpu/drm/nouveau/dispnv50/crc.h | 16 +- drivers/gpu/drm/nouveau/dispnv50/disp.c | 68 ++++---- drivers/gpu/drm/nouveau/dispnv50/head.c | 2 +- drivers/gpu/drm/nouveau/dispnv50/wndw.c | 2 +- drivers/gpu/drm/nouveau/nouveau_connector.c | 2 +- drivers/gpu/drm/nouveau/nouveau_display.h | 2 +- drivers/gpu/drm/nouveau/nouveau_encoder.h | 4 +- drivers/gpu/drm/omapdrm/dss/hdmi4.c | 4 +- drivers/gpu/drm/omapdrm/dss/hdmi5.c | 4 +- drivers/gpu/drm/omapdrm/omap_crtc.c | 10 +- drivers/gpu/drm/omapdrm/omap_drv.c | 14 +- drivers/gpu/drm/omapdrm/omap_drv.h | 2 +- drivers/gpu/drm/omapdrm/omap_overlay.c | 4 +- drivers/gpu/drm/omapdrm/omap_overlay.h | 4 +- drivers/gpu/drm/omapdrm/omap_plane.c | 6 +- drivers/gpu/drm/qxl/qxl_display.c | 16 +- drivers/gpu/drm/renesas/rcar-du/rcar_du_crtc.c | 18 +-- drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c | 4 +- drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c | 6 +- drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.h | 2 +- drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c | 4 +- drivers/gpu/drm/renesas/rcar-du/rcar_lvds.c | 6 +- drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c | 6 +- drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.h | 6 +- drivers/gpu/drm/renesas/rz-du/rzg2l_du_crtc.c | 6 +- drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c | 4 +- drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c | 8 +- drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c | 6 +- drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c | 6 +- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 6 +- drivers/gpu/drm/rockchip/cdn-dp-core.c | 4 +- drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c | 2 +- drivers/gpu/drm/rockchip/dw_dp-rockchip.c | 2 +- drivers/gpu/drm/rockchip/rk3066_hdmi.c | 6 +- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 22 +-- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 18 +-- drivers/gpu/drm/sitronix/st7571.c | 10 +- drivers/gpu/drm/sitronix/st7920.c | 12 +- drivers/gpu/drm/solomon/ssd130x.c | 32 ++-- drivers/gpu/drm/sprd/sprd_dpu.c | 12 +- drivers/gpu/drm/sti/sti_crtc.c | 6 +- drivers/gpu/drm/sti/sti_cursor.c | 6 +- drivers/gpu/drm/sti/sti_gdp.c | 6 +- drivers/gpu/drm/sti/sti_hqvdp.c | 6 +- drivers/gpu/drm/stm/drv.c | 2 +- drivers/gpu/drm/stm/ltdc.c | 12 +- drivers/gpu/drm/stm/ltdc.h | 2 +- drivers/gpu/drm/stm/lvds.c | 6 +- drivers/gpu/drm/sun4i/sun4i_backend.c | 4 +- drivers/gpu/drm/sun4i/sun4i_crtc.c | 10 +- drivers/gpu/drm/sun4i/sun4i_framebuffer.c | 2 +- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 4 +- drivers/gpu/drm/sun4i/sun4i_layer.c | 4 +- drivers/gpu/drm/sun4i/sun4i_tv.c | 4 +- drivers/gpu/drm/sun4i/sun8i_mixer.c | 2 +- drivers/gpu/drm/sun4i/sun8i_ui_layer.c | 4 +- drivers/gpu/drm/sun4i/sun8i_vi_layer.c | 4 +- drivers/gpu/drm/sun4i/sunxi_engine.h | 4 +- drivers/gpu/drm/sysfb/drm_sysfb_helper.h | 8 +- drivers/gpu/drm/sysfb/drm_sysfb_modeset.c | 8 +- drivers/gpu/drm/sysfb/ofdrm.c | 2 +- drivers/gpu/drm/sysfb/vesadrm.c | 4 +- drivers/gpu/drm/tegra/dc.c | 32 ++-- drivers/gpu/drm/tegra/dc.h | 2 +- drivers/gpu/drm/tegra/drm.c | 6 +- drivers/gpu/drm/tegra/hub.c | 12 +- drivers/gpu/drm/tegra/hub.h | 4 +- drivers/gpu/drm/tests/Makefile | 2 +- ...tomic_state_test.c => drm_atomic_commit_test.c} | 12 +- drivers/gpu/drm/tests/drm_bridge_test.c | 8 +- drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 88 +++++------ drivers/gpu/drm/tests/drm_kunit_helpers.c | 18 +-- drivers/gpu/drm/tidss/tidss_crtc.c | 10 +- drivers/gpu/drm/tidss/tidss_kms.c | 4 +- drivers/gpu/drm/tidss/tidss_oldi.c | 4 +- drivers/gpu/drm/tidss/tidss_plane.c | 8 +- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 8 +- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +- drivers/gpu/drm/tilcdc/tilcdc_plane.c | 4 +- drivers/gpu/drm/tiny/appletbdrm.c | 6 +- drivers/gpu/drm/tiny/bochs.c | 10 +- drivers/gpu/drm/tiny/cirrus-qemu.c | 8 +- drivers/gpu/drm/tiny/pixpaper.c | 10 +- drivers/gpu/drm/tiny/sharp-memory.c | 10 +- drivers/gpu/drm/udl/udl_modeset.c | 8 +- drivers/gpu/drm/vboxvideo/vbox_mode.c | 18 +-- drivers/gpu/drm/vc4/tests/vc4_mock.h | 4 +- drivers/gpu/drm/vc4/tests/vc4_mock_output.c | 4 +- drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c | 50 +++--- drivers/gpu/drm/vc4/vc4_crtc.c | 10 +- drivers/gpu/drm/vc4/vc4_drv.h | 28 ++-- drivers/gpu/drm/vc4/vc4_dsi.c | 8 +- drivers/gpu/drm/vc4/vc4_hdmi.c | 12 +- drivers/gpu/drm/vc4/vc4_hvs.c | 10 +- drivers/gpu/drm/vc4/vc4_kms.c | 30 ++-- drivers/gpu/drm/vc4/vc4_plane.c | 8 +- drivers/gpu/drm/vc4/vc4_txp.c | 10 +- drivers/gpu/drm/vc4/vc4_vec.c | 4 +- drivers/gpu/drm/verisilicon/vs_bridge.c | 6 +- drivers/gpu/drm/verisilicon/vs_crtc.c | 4 +- drivers/gpu/drm/verisilicon/vs_primary_plane.c | 8 +- drivers/gpu/drm/virtio/virtgpu_display.c | 8 +- drivers/gpu/drm/virtio/virtgpu_plane.c | 6 +- drivers/gpu/drm/vkms/vkms_crtc.c | 6 +- drivers/gpu/drm/vkms/vkms_drv.c | 4 +- drivers/gpu/drm/vkms/vkms_plane.c | 4 +- drivers/gpu/drm/vkms/vkms_writeback.c | 4 +- drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c | 4 +- drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.h | 4 +- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 18 +-- drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | 6 +- drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c | 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | 4 +- drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 8 +- drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c | 8 +- drivers/gpu/drm/vmwgfx/vmwgfx_vkms.h | 10 +- drivers/gpu/drm/xlnx/zynqmp_dp.c | 6 +- drivers/gpu/drm/xlnx/zynqmp_kms.c | 16 +- include/drm/display/drm_dp_mst_helper.h | 32 ++-- include/drm/display/drm_dp_tunnel.h | 24 +-- include/drm/display/drm_hdmi_state_helper.h | 6 +- include/drm/drm_atomic.h | 158 +++++++++---------- include/drm/drm_atomic_helper.h | 78 +++++----- include/drm/drm_atomic_state_helper.h | 4 +- include/drm/drm_blend.h | 4 +- include/drm/drm_bridge.h | 16 +- include/drm/drm_colorop.h | 4 +- include/drm/drm_connector.h | 6 +- include/drm/drm_crtc.h | 10 +- include/drm/drm_crtc_helper.h | 4 +- include/drm/drm_damage_helper.h | 2 +- include/drm/drm_kunit_helpers.h | 2 +- include/drm/drm_mode_config.h | 38 ++--- include/drm/drm_modeset_helper_vtables.h | 44 +++--- include/drm/drm_plane.h | 6 +- include/drm/drm_self_refresh_helper.h | 6 +- include/drm/drm_vblank_helper.h | 8 +- 354 files changed, 1729 insertions(+), 1729 deletions(-)
Documentation/gpu/drm-kms.rst +7 -7
@@ -204,15 +204,15 @@ Atomic Mode Setting subgraph cluster_state { style=dashed label="Free-standing state" - "drm_atomic_state" -> "duplicated drm_plane_state A" - "drm_atomic_state" -> "duplicated drm_plane_state B" - "drm_atomic_state" -> "duplicated drm_crtc_state" - "drm_atomic_state" -> "duplicated drm_connector_state" - "drm_atomic_state" -> "duplicated driver private state" + "drm_atomic_commit" -> "duplicated drm_plane_state A" + "drm_atomic_commit" -> "duplicated drm_plane_state B" + "drm_atomic_commit" -> "duplicated drm_crtc_state" + "drm_atomic_commit" -> "duplicated drm_connector_state" + "drm_atomic_commit" -> "duplicated driver private state" } subgraph cluster_current { style=dashed label="Current state"
@@ -228,11 +228,11 @@ Atomic Mode Setting "drm_crtc" -> "drm_crtc_state" "drm_connector" -> "drm_connector_state" "driver private object" -> "driver private state" } - "drm_atomic_state" -> "drm_device" [label="atomic_commit"] + "drm_atomic_commit" -> "drm_device" [label="atomic_commit"] "duplicated drm_plane_state A" -> "drm_device"[style=invis] } Atomic provides transactional modeset (including planes) updates, but a bit differently from the usual transactional approach of try-commit and
@@ -263,11 +263,11 @@ Taken all together there's two consequences for the atomic design: can subclass these structures through embedding, or add entirely new state structures for their globally shared hardware functions, see :c:type:`struct drm_private_state<drm_private_state>`. - An atomic update is assembled and validated as an entirely free-standing pile - of structures within the :c:type:`drm_atomic_state <drm_atomic_state>` + of structures within the :c:type:`drm_atomic_commit <drm_atomic_commit>` container. Driver private state structures are also tracked in the same structure; see the next chapter. Only when a state is committed is it applied to the driver and modeset objects. This way rolling back an update boils down to releasing memory and unreferencing objects like framebuffers.
Documentation/gpu/komeda-kms.rst +3 -3
@@ -365,11 +365,11 @@ So, one KMS-Obj represents a sub-pipeline of komeda resources. - Crtc: `Display output pipeline`_ So, for komeda, we treat KMS crtc/plane/connector as users of pipeline and component, and at any one time a pipeline/component only can be used by one user. And pipeline/component will be treated as private object of DRM-KMS; the -state will be managed by drm_atomic_state as well. +state will be managed by drm_atomic_commit as well. How to map plane to Layer(input) pipeline ----------------------------------------- Komeda has multiple Layer input pipelines, see:
@@ -414,11 +414,11 @@ Add :c:type:`drm_private_obj` to :c:type:`komeda_component`, :c:type:`komeda_pip struct komeda_pipeline { struct drm_private_obj obj; ... } -Tracking component_state/pipeline_state by drm_atomic_state +Tracking component_state/pipeline_state by drm_atomic_commit ----------------------------------------------------------- Add :c:type:`drm_private_state` and user to :c:type:`komeda_component_state`, :c:type:`komeda_pipeline_state`
@@ -452,11 +452,11 @@ similar, usually including the following steps: setup 1: check if component is needed, like the scaler is optional depending on the user_state; if unneeded, just return, and the caller will put the data flow into next stage. Setup 2: check user_state with component features and capabilities to see if requirements can be met; if not, return fail. - Setup 3: get component_state from drm_atomic_state, and try set to set + Setup 3: get component_state from drm_atomic_commit, and try set to set user to component; fail if component has been assigned to another user already. Setup 3: configure the component_state, like set its input component, convert user_state to component specific state. Setup 4: adjust the input_dflow and prepare it for the next stage.
Documentation/gpu/todo.rst +6 -6
@@ -118,28 +118,28 @@ still look at that flag. Contact: Simona Vetter, respective driver maintainers Level: Advanced -Rename drm_atomic_state +Rename drm_atomic_commit ----------------------- The KMS framework uses two slightly different definitions for the ``state`` concept. For a given object (plane, CRTC, encoder, etc., so ``drm_$OBJECT_state``), the state is the entire state of that object. However, -at the device level, ``drm_atomic_state`` refers to a state update for a +at the device level, ``drm_atomic_commit`` refers to a state update for a limited number of objects. The state isn't the entire device state, but only the full state of some objects in that device. This is confusing to newcomers, and -``drm_atomic_state`` should be renamed to something clearer like +``drm_atomic_commit`` should be renamed to something clearer like ``drm_atomic_commit``. In addition to renaming the structure itself, it would also imply renaming some -related functions (``drm_atomic_state_alloc``, ``drm_atomic_state_get``, -``drm_atomic_state_put``, ``drm_atomic_state_init``, -``__drm_atomic_state_free``, etc.). +related functions (``drm_atomic_commit_alloc``, ``drm_atomic_commit_get``, +``drm_atomic_commit_put``, ``drm_atomic_commit_init``, +``__drm_atomic_commit_free``, etc.). Contact: Maxime Ripard <[email protected]> Level: Advanced
drivers/gpu/drm/adp/adp_drv.c +6 -6
@@ -127,11 +127,11 @@ struct adp_drv_private {#define to_adp (x) container_of(x, struct adp_drv_private, drm)#define crtc_to_adp (x) container_of(x, struct adp_drv_private, crtc)static int adp_plane_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state;struct drm_crtc_state *crtc_state; new_plane_state =drm_atomic_get_new_plane_state (state, plane);
@@ -149,11 +149,11 @@ static int adp_plane_atomic_check(struct drm_plane *plane,DRM_PLANE_NO_SCALING , true, true); }static void adp_plane_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct adp_drv_private *adp;struct drm_rect src_rect;struct drm_gem_dma_object *obj;struct drm_framebuffer *fb;
@@ -191,11 +191,11 @@ static void adp_plane_atomic_update(struct drm_plane *plane,writel (ADBE_LAYER_CTL_ENABLE |BIT (0 ), adp->be +ADBE_LAYER_CTL );writel (ADBE_PIX_FMT_XRGB32 , adp->be +ADBE_PIX_FMT ); }static void adp_plane_atomic_disable (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct adp_drv_private *adp =to_adp (plane->dev);writel (0x0 , adp->be +ADBE_LAYER_EN1 );writel (0x0 , adp->be +ADBE_LAYER_EN2 );
@@ -277,11 +277,11 @@ static void adp_crtc_disable_vblank(struct drm_crtc *crtc)adp_disable_vblank (adp); }static void adp_crtc_atomic_enable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct adp_drv_private *adp =crtc_to_adp (crtc);writel (BIT (0 ), adp->be +ADBE_BLEND_EN2 );writel (BIT (4 ), adp->be +ADBE_BLEND_EN1 );
@@ -290,11 +290,11 @@ static void adp_crtc_atomic_enable(struct drm_crtc *crtc,writel (BIT (0 ), adp->be +ADBE_BLEND_EN4 );drm_crtc_vblank_on (crtc); }static void adp_crtc_atomic_disable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct adp_drv_private *adp =crtc_to_adp (crtc);struct drm_crtc_state *old_state =drm_atomic_get_old_crtc_state (state, crtc);drm_atomic_helper_disable_planes_on_crtc (old_state, false);
@@ -306,11 +306,11 @@ static void adp_crtc_atomic_disable(struct drm_crtc *crtc,writel (0x0 , adp->be +ADBE_BLEND_EN4 );drm_crtc_vblank_off (crtc); }static void adp_crtc_atomic_flush (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {u32 frame_num =1 ;unsigned long flags;struct adp_drv_private *adp =crtc_to_adp (crtc);struct drm_crtc_state *new_state =drm_atomic_get_new_crtc_state (state, crtc);
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c +5 -5
@@ -128,23 +128,23 @@ static const struct drm_crtc_funcs amdgpu_vkms_crtc_funcs = { .disable_vblank = amdgpu_vkms_disable_vblank, .get_vblank_timestamp = amdgpu_vkms_get_vblank_timestamp, };static void amdgpu_vkms_crtc_atomic_enable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {drm_crtc_vblank_on (crtc); }static void amdgpu_vkms_crtc_atomic_disable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {drm_crtc_vblank_off (crtc); }static void amdgpu_vkms_crtc_atomic_flush (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {unsigned long flags;if (crtc->state->event) {spin_lock_irqsave (&crtc->dev->event_lock, flags);
@@ -260,17 +260,17 @@ static const struct drm_plane_funcs amdgpu_vkms_plane_funcs = { .atomic_duplicate_state = drm_atomic_helper_plane_duplicate_state, .atomic_destroy_state = drm_atomic_helper_plane_destroy_state, };static void amdgpu_vkms_plane_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {return ; }static int amdgpu_vkms_plane_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct drm_crtc_state *crtc_state;int ret;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +31 -31
353 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +3 -3
@@ -596,11 +596,11 @@ struct amdgpu_display_manager {* * Periodic work for idle events. */ struct idle_workqueue *idle_workqueue; -struct drm_atomic_state *cached_state; +struct drm_atomic_commit *cached_state;struct dc_state *cached_dc_state;struct dm_compressor_info compressor;const struct firmware *fw_dmcu;
@@ -1130,15 +1130,15 @@ struct dc_stream_state * create_validate_stream_for_sink(struct drm_connector *connector, const struct drm_display_mode *drm_mode, const struct dm_connector_state *dm_state, const struct dc_stream_state *old_stream); -int dm_atomic_get_state (struct drm_atomic_state *state, +int dm_atomic_get_state (struct drm_atomic_commit *state,struct dm_atomic_state **dm_state);struct drm_connector * -amdgpu_dm_find_first_crtc_matching_connector (struct drm_atomic_state *state, +amdgpu_dm_find_first_crtc_matching_connector (struct drm_atomic_commit *state,struct drm_crtc *crtc);int convert_dc_color_depth_into_bpc (enum dc_color_depth display_color_depth);struct idle_workqueue *idle_create_workqueue (struct amdgpu_device *adev);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c +6 -6
@@ -1497,11 +1497,11 @@ __set_dm_plane_colorop_degamma(struct drm_plane_state *plane_state,struct dc_plane_state *dc_plane_state, struct drm_colorop *colorop) { struct drm_colorop *old_colorop;struct drm_colorop_state *colorop_state =NULL , *new_colorop_state; -struct drm_atomic_state *state = plane_state->state; +struct drm_atomic_commit *state = plane_state->state;int i =0 ; old_colorop = colorop;/* 1st op: 1d curve - degamma */
@@ -1524,11 +1524,11 @@ __set_dm_plane_colorop_3x4_matrix(struct drm_plane_state *plane_state,struct dc_plane_state *dc_plane_state, struct drm_colorop *colorop) { struct drm_colorop *old_colorop;struct drm_colorop_state *colorop_state =NULL , *new_colorop_state; -struct drm_atomic_state *state = plane_state->state; +struct drm_atomic_commit *state = plane_state->state;const struct drm_device *dev = colorop->dev;const struct drm_property_blob *blob;struct drm_color_ctm_3x4 *ctm =NULL ;int i =0 ;
@@ -1565,11 +1565,11 @@ __set_dm_plane_colorop_multiplier(struct drm_plane_state *plane_state,struct dc_plane_state *dc_plane_state, struct drm_colorop *colorop) { struct drm_colorop *old_colorop;struct drm_colorop_state *colorop_state =NULL , *new_colorop_state; -struct drm_atomic_state *state = plane_state->state; +struct drm_atomic_commit *state = plane_state->state;const struct drm_device *dev = colorop->dev;int i =0 ;/* Multiplier */ old_colorop = colorop;
@@ -1594,11 +1594,11 @@ __set_dm_plane_colorop_shaper(struct drm_plane_state *plane_state,struct dc_plane_state *dc_plane_state, struct drm_colorop *colorop) { struct drm_colorop *old_colorop;struct drm_colorop_state *colorop_state =NULL , *new_colorop_state; -struct drm_atomic_state *state = plane_state->state; +struct drm_atomic_commit *state = plane_state->state;enum dc_transfer_func_predefined default_tf =TRANSFER_FUNCTION_LINEAR ;struct dc_transfer_func *tf = &dc_plane_state->in_shaper_func;const struct drm_color_lut32 *shaper_lut;struct drm_device *dev = colorop->dev;bool enabled = false;
@@ -1702,11 +1702,11 @@ __set_dm_plane_colorop_3dlut(struct drm_plane_state *plane_state, struct drm_colorop *colorop) {struct drm_colorop *old_colorop;struct drm_colorop_state *colorop_state =NULL , *new_colorop_state;struct dc_transfer_func *tf = &dc_plane_state->in_shaper_func; -struct drm_atomic_state *state = plane_state->state; +struct drm_atomic_commit *state = plane_state->state;const struct amdgpu_device *adev =drm_to_adev (colorop->dev);bool has_3dlut = adev->dm.dc->caps.color.dpp.hw_3d_lut || adev->dm.dc->caps.color.mpc.preblend;const struct drm_device *dev = colorop->dev;const struct drm_color_lut32 *lut3d;uint32_t lut3d_size;
@@ -1757,11 +1757,11 @@ __set_dm_plane_colorop_blend(struct drm_plane_state *plane_state,struct dc_plane_state *dc_plane_state, struct drm_colorop *colorop) { struct drm_colorop *old_colorop;struct drm_colorop_state *colorop_state =NULL , *new_colorop_state; -struct drm_atomic_state *state = plane_state->state; +struct drm_atomic_commit *state = plane_state->state;enum dc_transfer_func_predefined default_tf =TRANSFER_FUNCTION_LINEAR ;struct dc_transfer_func *tf = &dc_plane_state->blend_tf;const struct drm_color_lut32 *blend_lut =NULL ;struct drm_device *dev = colorop->dev;uint32_t blend_size =0 ;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +2 -2
@@ -595,11 +595,11 @@ static void amdgpu_dm_crtc_helper_disable(struct drm_crtc *crtc) { }static int amdgpu_dm_crtc_count_crtc_active_planes (struct drm_crtc_state *new_crtc_state) { -struct drm_atomic_state *state = new_crtc_state->state; +struct drm_atomic_commit *state = new_crtc_state->state;struct drm_plane *plane;int num_active =0 ;drm_for_each_plane_mask (plane, state->dev, new_crtc_state->plane_mask) {struct drm_plane_state *new_plane_state;
@@ -648,11 +648,11 @@ static bool amdgpu_dm_crtc_helper_mode_fixup(struct drm_crtc *crtc, {return true; }static int amdgpu_dm_crtc_helper_atomic_check (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct amdgpu_device *adev =drm_to_adev (crtc->dev);struct dc *dc = adev->dm.dc;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +11 -11
@@ -495,11 +495,11 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector)return ret; }static struct drm_encoder *dm_mst_atomic_best_encoder (struct drm_connector *connector, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_connector_state *connector_state =drm_atomic_get_new_connector_state (state, connector);struct amdgpu_device *adev =drm_to_adev (connector->dev);struct amdgpu_crtc *acrtc =to_amdgpu_crtc (connector_state->crtc);
@@ -577,11 +577,11 @@ dm_dp_mst_detect(struct drm_connector *connector,return connection_status; }static int dm_dp_mst_atomic_check (struct drm_connector *connector, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct amdgpu_dm_connector *aconnector =to_amdgpu_dm_connector (connector);struct drm_dp_mst_topology_mgr *mst_mgr = &aconnector->mst_root->mst_mgr;struct drm_dp_mst_port *mst_port = aconnector->mst_output_port;
@@ -984,11 +984,11 @@ static int bpp_x16_from_pbn(struct dsc_mst_fairness_params param, int pbn) &dsc_config);return dsc_config.bits_per_pixel; } -static int increase_dsc_bpp(struct drm_atomic_state *state, +static int increase_dsc_bpp(struct drm_atomic_commit *state, struct drm_dp_mst_topology_state *mst_state, struct dc_link *dc_link, struct dsc_mst_fairness_params *params, struct dsc_mst_fairness_vars *vars, int count,
@@ -1088,11 +1088,11 @@ static int increase_dsc_bpp(struct drm_atomic_state *state, remaining_to_increase--; }return 0 ; } -static int try_disable_dsc (struct drm_atomic_state *state, +static int try_disable_dsc (struct drm_atomic_commit *state,struct dc_link *dc_link,struct dsc_mst_fairness_params *params,struct dsc_mst_fairness_vars *vars,int count,int k)
@@ -1181,11 +1181,11 @@ static void log_dsc_params(int count, struct dsc_mst_fairness_vars *vars, int k)for (i =0 ; i < count; i++)DRM_DEBUG_DRIVER ("MST_DSC DSC params: stream #%d --- dsc_enabled = %d, bpp_x16 = %d, pbn = %d\n" , i, vars[i + k].dsc_enabled, vars[i + k].bpp_x16, vars[i + k].pbn); } -static int compute_mst_dsc_configs_for_link (struct drm_atomic_state *state, +static int compute_mst_dsc_configs_for_link (struct drm_atomic_commit *state,struct dc_state *dc_state,struct dc_link *dc_link,struct dsc_mst_fairness_vars *vars,struct drm_dp_mst_topology_mgr *mgr,int *link_vars_start_index)
@@ -1346,11 +1346,11 @@ static int compute_mst_dsc_configs_for_link(struct drm_atomic_state *state,return 0 ; }static bool is_dsc_need_re_compute ( -struct drm_atomic_state *state, +struct drm_atomic_commit *state,struct dc_state *dc_state,struct dc_link *dc_link) {int i, j;bool is_dsc_need_re_compute = false;
@@ -1477,11 +1477,11 @@ static bool is_dsc_need_re_compute( __func__, is_dsc_need_re_compute ? "required" : "not required");return is_dsc_need_re_compute; } -int compute_mst_dsc_configs_for_state (struct drm_atomic_state *state, +int compute_mst_dsc_configs_for_state (struct drm_atomic_commit *state,struct dc_state *dc_state,struct dsc_mst_fairness_vars *vars) {int i, j;struct dc_stream_state *stream;
@@ -1547,11 +1547,11 @@ int compute_mst_dsc_configs_for_state(struct drm_atomic_state *state, }return ret; } -static int pre_compute_mst_dsc_configs_for_state (struct drm_atomic_state *state, +static int pre_compute_mst_dsc_configs_for_state (struct drm_atomic_commit *state,struct dc_state *dc_state,struct dsc_mst_fairness_vars *vars) {int i, j;struct dc_stream_state *stream;
@@ -1600,11 +1600,11 @@ static int pre_compute_mst_dsc_configs_for_state(struct drm_atomic_state *state, }return ret; } -static int find_crtc_index_in_state_by_stream (struct drm_atomic_state *state, +static int find_crtc_index_in_state_by_stream (struct drm_atomic_commit *state,struct dc_stream_state *stream) {int i;struct drm_crtc *crtc;struct drm_crtc_state *new_state, *old_state;
@@ -1631,11 +1631,11 @@ static bool is_link_to_dschub(struct dc_link *dc_link) dsc_caps->fields.dsc_support.DSC_PASSTHROUGH_SUPPORT))return false;return true; } -static bool is_dsc_precompute_needed (struct drm_atomic_state *state) +static bool is_dsc_precompute_needed (struct drm_atomic_commit *state) {int i;struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state, *new_crtc_state;bool ret = false;
@@ -1652,11 +1652,11 @@ static bool is_dsc_precompute_needed(struct drm_atomic_state *state) ret = true; }return ret; } -int pre_validate_dsc (struct drm_atomic_state *state, +int pre_validate_dsc (struct drm_atomic_commit *state,struct dm_atomic_state **dm_state_ptr,struct dsc_mst_fairness_vars *vars) {int i;struct dm_atomic_state *dm_state;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.h +2 -2
@@ -78,17 +78,17 @@ struct dsc_mst_fairness_vars {bool dsc_enabled;int bpp_x16;struct amdgpu_dm_connector *aconnector; }; -int compute_mst_dsc_configs_for_state (struct drm_atomic_state *state, +int compute_mst_dsc_configs_for_state (struct drm_atomic_commit *state,struct dc_state *dc_state,struct dsc_mst_fairness_vars *vars);bool needs_dsc_aux_workaround (struct dc_link *link); -int pre_validate_dsc (struct drm_atomic_state *state, +int pre_validate_dsc (struct drm_atomic_commit *state,struct dm_atomic_state **dm_state_ptr,struct dsc_mst_fairness_vars *vars); enum dc_status dm_dp_mst_is_port_support_mode( struct amdgpu_dm_connector *aconnector,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c +3 -3
@@ -1227,11 +1227,11 @@ int amdgpu_dm_plane_fill_dc_scaling_info(struct amdgpu_device *adev,return 0 ; }static int amdgpu_dm_plane_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct amdgpu_device *adev =drm_to_adev (plane->dev);struct dc *dc = adev->dm.dc;
@@ -1274,11 +1274,11 @@ static int amdgpu_dm_plane_atomic_check(struct drm_plane *plane,return -EINVAL ; }static int amdgpu_dm_plane_atomic_async_check (struct drm_plane *plane, -struct drm_atomic_state *state,bool flip) +struct drm_atomic_commit *state,bool flip) {struct drm_crtc_state *new_crtc_state;struct drm_plane_state *new_plane_state;struct dm_crtc_state *dm_new_crtc_state;
@@ -1415,11 +1415,11 @@ void amdgpu_dm_plane_handle_cursor_update(struct drm_plane *plane,mutex_unlock (&adev->dm.dc_lock); } }static void amdgpu_dm_plane_atomic_async_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_state =drm_atomic_get_new_plane_state (state, plane);struct drm_plane_state *old_state =drm_atomic_get_old_plane_state (state, plane);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h +10 -10
@@ -106,11 +106,11 @@ TRACE_EVENT(amdgpu_dm_connector_atomic_check,TP_ARGS (state),TP_STRUCT__entry ( __field(uint32_t, conn_id)__field (const struct drm_connector_state *,conn_state ) - __field(const struct drm_atomic_state *, state) + __field(const struct drm_atomic_commit *, state) __field(const struct drm_crtc_commit *, commit)__field (uint32_t, crtc_id)__field (uint32_t, best_encoder_id) __field(enum drm_link_status, link_status) __field(bool, self_refresh_aware)
@@ -161,11 +161,11 @@ TRACE_EVENT(amdgpu_dm_connector_atomic_check, TRACE_EVENT(amdgpu_dm_crtc_atomic_check, TP_PROTO(const struct drm_crtc_state *state), TP_ARGS(state), TP_STRUCT__entry( - __field(const struct drm_atomic_state *, state) + __field(const struct drm_atomic_commit *, state) __field(const struct drm_crtc_state *, crtc_state) __field(const struct drm_crtc_commit *, commit) __field(uint32_t, crtc_id) __field(bool, enable) __field(bool, active)
@@ -227,11 +227,11 @@ DECLARE_EVENT_CLASS(amdgpu_dm_plane_state_template,TP_ARGS (state),TP_STRUCT__entry ( __field(uint32_t, plane_id)__field (enum drm_plane_type ,plane_type ) __field(const struct drm_plane_state *, plane_state) - __field(const struct drm_atomic_state *, state) + __field(const struct drm_atomic_commit *, state)__field (uint32_t, crtc_id)__field (uint32_t, fb_id)__field (uint32_t, fb_format)__field (uint8_t, fb_planes) __field(uint64_t, fb_modifier)
@@ -313,15 +313,15 @@ DEFINE_EVENT(amdgpu_dm_plane_state_template, amdgpu_dm_plane_atomic_check,DEFINE_EVENT (amdgpu_dm_plane_state_template, amdgpu_dm_atomic_update_cursor, TP_PROTO(const struct drm_plane_state *state),TP_ARGS (state)); TRACE_EVENT(amdgpu_dm_atomic_state_template, - TP_PROTO(const struct drm_atomic_state *state), + TP_PROTO(const struct drm_atomic_commit *state), TP_ARGS(state), TP_STRUCT__entry( - __field(const struct drm_atomic_state *, state) + __field(const struct drm_atomic_commit *, state) __field(bool, allow_modeset) __field(bool, legacy_cursor_update) __field(bool, async_update) __field(bool, duplicated) __field(int, num_connector)
@@ -345,27 +345,27 @@ TRACE_EVENT(amdgpu_dm_atomic_state_template, __entry->async_update, __entry->duplicated, __entry->num_connector, __entry->num_private_objs) );DEFINE_EVENT (amdgpu_dm_atomic_state_template, amdgpu_dm_atomic_commit_tail_begin, - TP_PROTO(const struct drm_atomic_state *state), + TP_PROTO(const struct drm_atomic_commit *state),TP_ARGS (state));DEFINE_EVENT (amdgpu_dm_atomic_state_template, amdgpu_dm_atomic_commit_tail_finish, - TP_PROTO(const struct drm_atomic_state *state), + TP_PROTO(const struct drm_atomic_commit *state),TP_ARGS (state));DEFINE_EVENT (amdgpu_dm_atomic_state_template, amdgpu_dm_atomic_check_begin, - TP_PROTO(const struct drm_atomic_state *state), + TP_PROTO(const struct drm_atomic_commit *state),TP_ARGS (state)); TRACE_EVENT(amdgpu_dm_atomic_check_finish, - TP_PROTO(const struct drm_atomic_state *state, int res), + TP_PROTO(const struct drm_atomic_commit *state, int res), TP_ARGS(state, res), TP_STRUCT__entry( - __field(const struct drm_atomic_state *, state) + __field(const struct drm_atomic_commit *, state) __field(int, res) __field(bool, async_update) __field(bool, allow_modeset) ),
drivers/gpu/drm/arm/display/komeda/komeda_crtc.c +4 -4
@@ -73,11 +73,11 @@ static void komeda_crtc_update_clock_ratio(struct komeda_crtc_state *kcrtc_st)* RETURNS: * Zero for success or -errno */ static int komeda_crtc_atomic_check (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct komeda_crtc *kcrtc =to_kcrtc (crtc);struct komeda_crtc_state *kcrtc_st =to_kcrtc_st (crtc_state);
@@ -277,11 +277,11 @@ komeda_crtc_do_flush(struct drm_crtc *crtc, mdev->funcs->flush (mdev, master->id, kcrtc_st->active_pipes); }static void komeda_crtc_atomic_enable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *old =drm_atomic_get_old_crtc_state (state, crtc);pm_runtime_get_sync (crtc->dev->dev);komeda_crtc_prepare (to_kcrtc (crtc));
@@ -323,11 +323,11 @@ komeda_crtc_flush_and_wait_for_flip_done(struct komeda_crtc *kcrtc, } }static void komeda_crtc_atomic_disable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *old =drm_atomic_get_old_crtc_state (state, crtc);struct komeda_crtc *kcrtc =to_kcrtc (crtc);struct komeda_crtc_state *old_st =to_kcrtc_st (old);
@@ -385,11 +385,11 @@ komeda_crtc_atomic_disable(struct drm_crtc *crtc,pm_runtime_put (crtc->dev->dev); }static void komeda_crtc_atomic_flush (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct drm_crtc_state *old =drm_atomic_get_old_crtc_state (state, crtc);
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +5 -5
@@ -65,11 +65,11 @@ static const struct drm_driver komeda_kms_driver = { .desc = "Arm Komeda Display Processor driver", .major = 0, .minor = 1, }; -static void komeda_kms_atomic_commit_hw_done (struct drm_atomic_state *state) +static void komeda_kms_atomic_commit_hw_done (struct drm_atomic_commit *state) {struct drm_device *dev = state->dev;struct komeda_kms_dev *kms =to_kdev (dev);int i;
@@ -84,11 +84,11 @@ static void komeda_kms_atomic_commit_hw_done(struct drm_atomic_state *state) } }drm_atomic_helper_commit_hw_done (state); } -static void komeda_kms_commit_tail (struct drm_atomic_state *old_state) +static void komeda_kms_commit_tail (struct drm_atomic_commit *old_state) {struct drm_device *dev = old_state->dev;bool fence_cookie =dma_fence_begin_signalling ();drm_atomic_helper_commit_modeset_disables (dev, old_state);
@@ -151,11 +151,11 @@ static int komeda_plane_state_list_add(struct drm_plane_state *plane_st, }static int komeda_crtc_normalize_zpos (struct drm_crtc *crtc,struct drm_crtc_state *crtc_st) { -struct drm_atomic_state *state = crtc_st->state; +struct drm_atomic_commit *state = crtc_st->state;struct komeda_crtc *kcrtc =to_kcrtc (crtc);struct komeda_crtc_state *kcrtc_st =to_kcrtc_st (crtc_st);struct komeda_plane_state *kplane_st;struct drm_plane_state *plane_st;struct drm_plane *plane;
@@ -214,11 +214,11 @@ static int komeda_crtc_normalize_zpos(struct drm_crtc *crtc,return 0 ; }static int komeda_kms_check (struct drm_device *dev, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc *crtc;struct drm_crtc_state *new_crtc_st;int i, err;
@@ -226,11 +226,11 @@ static int komeda_kms_check(struct drm_device *dev,if (err)return err;/* Komeda need to re-calculate resource assumption in every commit * so need to add all affected_planes (even unchanged) to -* drm_atomic_state. +* drm_atomic_commit. */ for_each_new_crtc_in_state (state, crtc, new_crtc_st, i) { err =drm_atomic_add_affected_planes (state, crtc);if (err)return err;
drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h +7 -7
@@ -153,11 +153,11 @@ struct komeda_component_output {* component_state is the data flow configuration of the component, and it's * the superclass of all specific component_state like @komeda_layer_state, * @komeda_scaler_state */ struct komeda_component_state { -/** @obj: tracking component_state by drm_atomic_state */ +/** @obj: tracking component_state by drm_atomic_commit */ struct drm_private_state obj;/** @component: backpointer to the component */ struct komeda_component *component;/** * @binding_user:
@@ -386,11 +386,11 @@ struct komeda_pipeline_funcs {* struct komeda_pipeline * * Represent a complete display pipeline and hold all functional components. */ struct komeda_pipeline { -/** @obj: link pipeline as private obj of drm_atomic_state */ +/** @obj: link pipeline as private obj of drm_atomic_commit */ struct drm_private_obj obj;/** @mdev: the parent komeda_dev */ struct komeda_dev *mdev;/** @pxlclk: pixel clock */ struct clk *pxlclk;
@@ -446,14 +446,14 @@ struct komeda_pipeline {/** * struct komeda_pipeline_state * * NOTE: * Unlike the pipeline, pipeline_state doesn’t gather any component_state -* into it. It because all component will be managed by drm_atomic_state. +* into it. It because all component will be managed by drm_atomic_commit. */ struct komeda_pipeline_state { -/** @obj: tracking pipeline_state by drm_atomic_state */ +/** @obj: tracking pipeline_state by drm_atomic_commit */ struct drm_private_state obj;/** @pipe: backpointer to the pipeline */ struct komeda_pipeline *pipe;/** @crtc: currently bound crtc */ struct drm_crtc *crtc;
@@ -553,15 +553,15 @@ int komeda_build_wb_split_data_flow(struct komeda_layer *wb_layer,int komeda_release_unclaimed_resources (struct komeda_pipeline *pipe,struct komeda_crtc_state *kcrtc_st);struct komeda_pipeline_state *komeda_pipeline_get_old_state (struct komeda_pipeline *pipe, -struct drm_atomic_state *state); +struct drm_atomic_commit *state);bool komeda_pipeline_disable (struct komeda_pipeline *pipe, -struct drm_atomic_state *old_state); +struct drm_atomic_commit *old_state);void komeda_pipeline_update (struct komeda_pipeline *pipe, -struct drm_atomic_state *old_state); +struct drm_atomic_commit *old_state);void komeda_complete_data_flow_cfg (struct komeda_layer *layer,struct komeda_data_flow_cfg *dflow,struct drm_framebuffer *fb);
drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c +14 -14
@@ -20,11 +20,11 @@ static inline bool is_switching_user(void *old, void *new)return old != new; }static struct komeda_pipeline_state *komeda_pipeline_get_state (struct komeda_pipeline *pipe, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_private_state *priv_st; priv_st =drm_atomic_get_private_obj_state (state, &pipe->obj);if (IS_ERR (priv_st))
@@ -33,11 +33,11 @@ komeda_pipeline_get_state(struct komeda_pipeline *pipe,return priv_to_pipe_st (priv_st); }struct komeda_pipeline_state *komeda_pipeline_get_old_state (struct komeda_pipeline *pipe, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_private_state *priv_st; priv_st =drm_atomic_get_old_private_obj_state (state, &pipe->obj);if (priv_st)
@@ -45,11 +45,11 @@ komeda_pipeline_get_old_state(struct komeda_pipeline *pipe,return NULL ; }static struct komeda_pipeline_state *komeda_pipeline_get_new_state (struct komeda_pipeline *pipe, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_private_state *priv_st; priv_st =drm_atomic_get_new_private_obj_state (state, &pipe->obj);if (priv_st)
@@ -58,11 +58,11 @@ komeda_pipeline_get_new_state(struct komeda_pipeline *pipe, }/* Assign pipeline for crtc */ static struct komeda_pipeline_state *komeda_pipeline_get_state_and_set_crtc (struct komeda_pipeline *pipe, -struct drm_atomic_state *state, +struct drm_atomic_commit *state,struct drm_crtc *crtc) {struct komeda_pipeline_state *st; st =komeda_pipeline_get_state (pipe, state);
@@ -95,11 +95,11 @@ komeda_pipeline_get_state_and_set_crtc(struct komeda_pipeline *pipe,return st; }static struct komeda_component_state *komeda_component_get_state (struct komeda_component *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_private_state *priv_st;WARN_ON (!drm_modeset_is_locked (&c->pipeline->obj.lock));
@@ -110,11 +110,11 @@ komeda_component_get_state(struct komeda_component *c,return priv_to_comp_st (priv_st); }static struct komeda_component_state *komeda_component_get_old_state (struct komeda_component *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_private_state *priv_st; priv_st =drm_atomic_get_old_private_obj_state (state, &c->obj);if (priv_st)
@@ -147,11 +147,11 @@ komeda_component_get_old_state(struct komeda_component *c,* CRTC. if the pipeline is busy (assigned to another CRTC), even the required * component is free, the component still cannot be assigned to the direct user. */ static struct komeda_component_state *komeda_component_get_state_and_set_user (struct komeda_component *c, -struct drm_atomic_state *state, +struct drm_atomic_commit *state,void *user,struct drm_crtc *crtc) {struct komeda_pipeline_state *pipe_st;struct komeda_component_state *st;
@@ -251,11 +251,11 @@ komeda_component_validate_private(struct komeda_component *c, }/* Get current available scaler from the component->supported_outputs */ static struct komeda_scaler *komeda_component_get_avail_scaler (struct komeda_component *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct komeda_pipeline_state *pipe_st;u32 avail_scalers; pipe_st =komeda_pipeline_get_state (c->pipeline, state);
@@ -503,11 +503,11 @@ komeda_scaler_check_cfg(struct komeda_scaler *scaler,static int komeda_scaler_validate (void *user,struct komeda_crtc_state *kcrtc_st,struct komeda_data_flow_cfg *dflow) { -struct drm_atomic_state *drm_st = kcrtc_st->base.state; +struct drm_atomic_commit *drm_st = kcrtc_st->base.state;struct komeda_component_state *c_st;struct komeda_scaler_state *st;struct komeda_scaler *scaler;int err =0 ;
@@ -667,11 +667,11 @@ void pipeline_composition_size(struct komeda_crtc_state *kcrtc_st,static int komeda_compiz_set_input (struct komeda_compiz *compiz,struct komeda_crtc_state *kcrtc_st,struct komeda_data_flow_cfg *dflow) { -struct drm_atomic_state *drm_st = kcrtc_st->base.state; +struct drm_atomic_commit *drm_st = kcrtc_st->base.state;struct komeda_component_state *c_st, *old_st;struct komeda_compiz_input_cfg *cin;u16 compiz_w, compiz_h;int idx = dflow->blending_zorder;
@@ -1225,11 +1225,11 @@ int komeda_build_display_data_flow(struct komeda_crtc *kcrtc,static int komeda_pipeline_unbound_components (struct komeda_pipeline *pipe,struct komeda_pipeline_state *new) { -struct drm_atomic_state *drm_st = new->obj.state; +struct drm_atomic_commit *drm_st = new->obj.state;struct komeda_pipeline_state *old =priv_to_pipe_st (pipe->obj.state);struct komeda_component_state *c_st;struct komeda_component *c;u32 id;unsigned long disabling_comps;
@@ -1253,11 +1253,11 @@ komeda_pipeline_unbound_components(struct komeda_pipeline *pipe,/* release unclaimed pipeline resource */ int komeda_release_unclaimed_resources (struct komeda_pipeline *pipe,struct komeda_crtc_state *kcrtc_st) { -struct drm_atomic_state *drm_st = kcrtc_st->base.state; +struct drm_atomic_commit *drm_st = kcrtc_st->base.state;struct komeda_pipeline_state *st;/* ignore the pipeline which is not affected */ if (!pipe || !has_bit (pipe->id, kcrtc_st->affected_pipes))return 0 ;
@@ -1283,11 +1283,11 @@ int komeda_release_unclaimed_resources(struct komeda_pipeline *pipe,* RETURNS: * true: disable is not complete, needs a phase 2 disable. * false: disable is complete. */ bool komeda_pipeline_disable (struct komeda_pipeline *pipe, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {struct komeda_pipeline_state *old;struct komeda_component *c;struct komeda_component_state *c_st;u32 id;
@@ -1328,11 +1328,11 @@ bool komeda_pipeline_disable(struct komeda_pipeline *pipe,return old->active_comps ? true : false; }void komeda_pipeline_update (struct komeda_pipeline *pipe, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {struct komeda_pipeline_state *new =priv_to_pipe_st (pipe->obj.state);struct komeda_pipeline_state *old;struct komeda_component *c;u32 id;
drivers/gpu/drm/arm/display/komeda/komeda_plane.c +2 -2
@@ -67,11 +67,11 @@ komeda_plane_init_data_flow(struct drm_plane_state *st,* RETURNS: * Zero for success or -errno */ static int komeda_plane_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct komeda_plane *kplane =to_kplane (plane);struct komeda_plane_state *kplane_st =to_kplane_st (new_plane_state);
@@ -114,11 +114,11 @@ komeda_plane_atomic_check(struct drm_plane *plane,/* plane doesn't represent a real HW, so there is no HW update for plane. * komeda handles all the HW update in crtc->atomic_flush */ static void komeda_plane_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) { }static const struct drm_plane_helper_funcs komeda_plane_helper_funcs = { .atomic_check = komeda_plane_atomic_check,
drivers/gpu/drm/arm/hdlcd_crtc.c +5 -5
@@ -173,22 +173,22 @@ static void hdlcd_crtc_mode_set_nofb(struct drm_crtc *crtc)clk_set_rate (hdlcd->clk, m->crtc_clock *1000 ); }static void hdlcd_crtc_atomic_enable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct hdlcd_drm_private *hdlcd =crtc_to_hdlcd_priv (crtc);clk_prepare_enable (hdlcd->clk);hdlcd_crtc_mode_set_nofb (crtc);hdlcd_write (hdlcd,HDLCD_REG_COMMAND ,1 );drm_crtc_vblank_on (crtc); }static void hdlcd_crtc_atomic_disable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct hdlcd_drm_private *hdlcd =crtc_to_hdlcd_priv (crtc);drm_crtc_vblank_off (crtc);hdlcd_write (hdlcd,HDLCD_REG_COMMAND ,0 );
@@ -210,11 +210,11 @@ static enum drm_mode_status hdlcd_crtc_mode_valid(struct drm_crtc *crtc,return MODE_OK ; }static void hdlcd_crtc_atomic_begin (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_pending_vblank_event *event = crtc->state->event;if (event) { crtc->state->event =NULL ;
@@ -234,11 +234,11 @@ static const struct drm_crtc_helper_funcs hdlcd_crtc_helper_funcs = { .atomic_enable = hdlcd_crtc_atomic_enable, .atomic_disable = hdlcd_crtc_atomic_disable, };static int hdlcd_plane_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);int i;struct drm_crtc *crtc;
@@ -265,11 +265,11 @@ static int hdlcd_plane_atomic_check(struct drm_plane *plane,return 0 ; }static void hdlcd_plane_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct drm_framebuffer *fb = new_plane_state->fb;struct hdlcd_drm_private *hdlcd;
drivers/gpu/drm/arm/malidp_crtc.c +3 -3
@@ -45,11 +45,11 @@ static enum drm_mode_status malidp_crtc_mode_valid(struct drm_crtc *crtc,return MODE_OK ; }static void malidp_crtc_atomic_enable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct malidp_drm *malidp =crtc_to_malidp_device (crtc);struct malidp_hw_device *hwdev = malidp->dev;struct videomode vm;int err =pm_runtime_get_sync (crtc->dev->dev);
@@ -69,11 +69,11 @@ static void malidp_crtc_atomic_enable(struct drm_crtc *crtc, hwdev->hw->leave_config_mode (hwdev);drm_crtc_vblank_on (crtc); }static void malidp_crtc_atomic_disable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *old_state =drm_atomic_get_old_crtc_state (state, crtc);struct malidp_drm *malidp =crtc_to_malidp_device (crtc);struct malidp_hw_device *hwdev = malidp->dev;
@@ -332,11 +332,11 @@ static int malidp_crtc_atomic_check_scaling(struct drm_crtc *crtc,return -EINVAL ;return 0 ; }static int malidp_crtc_atomic_check (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct malidp_drm *malidp =crtc_to_malidp_device (crtc);struct malidp_hw_device *hwdev = malidp->dev;
drivers/gpu/drm/arm/malidp_drv.c +2 -2
@@ -188,11 +188,11 @@ static int malidp_set_and_wait_config_valid(struct drm_device *drm) msecs_to_jiffies(MALIDP_CONF_VALID_TIMEOUT));return (ret >0 ) ?0 : -ETIMEDOUT ; } -static void malidp_atomic_commit_hw_done (struct drm_atomic_state *state) +static void malidp_atomic_commit_hw_done (struct drm_atomic_commit *state) {struct drm_device *drm = state->dev;struct malidp_drm *malidp =drm_to_malidp (drm);int loop =5 ;
@@ -229,11 +229,11 @@ static void malidp_atomic_commit_hw_done(struct drm_atomic_state *state)spin_unlock_irq (&drm->event_lock); }drm_atomic_helper_commit_hw_done (state); } -static void malidp_atomic_commit_tail (struct drm_atomic_state *state) +static void malidp_atomic_commit_tail (struct drm_atomic_commit *state) {struct drm_device *drm = state->dev;struct malidp_drm *malidp =drm_to_malidp (drm);struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state;
drivers/gpu/drm/arm/malidp_mw.c +1 -1
@@ -235,11 +235,11 @@ int malidp_mw_connector_init(struct drm_device *drm)return 0 ; }void malidp_mw_atomic_commit (struct drm_device *drm, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {struct malidp_drm *malidp =drm_to_malidp (drm);struct drm_writeback_connector *mw_conn = &malidp->mw_connector;struct drm_connector_state *conn_state = mw_conn->base.state;struct malidp_hw_device *hwdev = malidp->dev;
drivers/gpu/drm/arm/malidp_mw.h +1 -1
@@ -8,7 +8,7 @@#ifndef __MALIDP_MW_H__#define __MALIDP_MW_H__int malidp_mw_connector_init (struct drm_device *drm);void malidp_mw_atomic_commit (struct drm_device *drm, -struct drm_atomic_state *old_state); +struct drm_atomic_commit *old_state);#endif
drivers/gpu/drm/arm/malidp_planes.c +3 -3
@@ -488,11 +488,11 @@ static void malidp_de_prefetch_settings(struct malidp_plane *mp, ms->mmu_prefetch_mode =malidp_mmu_prefetch_select_mode (ms, &ms->mmu_prefetch_pgsize); }static int malidp_de_plane_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct malidp_plane *mp =to_malidp_plane (plane);struct malidp_plane_state *ms =to_malidp_plane_state (new_plane_state);
@@ -777,11 +777,11 @@ static void malidp_de_set_plane_afbc(struct drm_plane *plane)malidp_hw_write (mp->hwdev, val, mp->layer->afbc_decoder_offset); }static void malidp_de_plane_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *old_state =drm_atomic_get_old_plane_state (state, plane);struct malidp_plane *mp;struct malidp_plane_state *ms =to_malidp_plane_state (plane->state);
@@ -898,11 +898,11 @@ static void malidp_de_plane_update(struct drm_plane *plane,malidp_hw_write (mp->hwdev, val, mp->layer->base +MALIDP_LAYER_CONTROL ); }static void malidp_de_plane_disable (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct malidp_plane *mp =to_malidp_plane (plane); malidp_hw_clearbits(mp->hwdev, LAYER_ENABLE | LAYER_FLOWCFG(LAYER_FLOWCFG_MASK),
drivers/gpu/drm/armada/armada_crtc.c +5 -5
@@ -412,11 +412,11 @@ static void armada_drm_crtc_mode_set_nofb(struct drm_crtc *crtc)armada_drm_crtc_update_regs (dcrtc, regs);spin_unlock_irqrestore (&dcrtc->irq_lock, flags); }static int armada_drm_crtc_atomic_check (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);DRM_DEBUG_KMS ("[CRTC:%d:%s]\n" , crtc->base.id, crtc->name);
@@ -428,11 +428,11 @@ static int armada_drm_crtc_atomic_check(struct drm_crtc *crtc,return 0 ; }static void armada_drm_crtc_atomic_begin (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct armada_crtc *dcrtc =drm_to_armada_crtc (crtc);
@@ -444,11 +444,11 @@ static void armada_drm_crtc_atomic_begin(struct drm_crtc *crtc, dcrtc->regs_idx =0 ; dcrtc->regs = dcrtc->atomic_regs; }static void armada_drm_crtc_atomic_flush (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct armada_crtc *dcrtc =drm_to_armada_crtc (crtc);
@@ -472,11 +472,11 @@ static void armada_drm_crtc_atomic_flush(struct drm_crtc *crtc,spin_unlock_irq (&dcrtc->irq_lock); } }static void armada_drm_crtc_atomic_disable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *old_state =drm_atomic_get_old_crtc_state (state, crtc);struct armada_crtc *dcrtc =drm_to_armada_crtc (crtc);struct drm_pending_vblank_event *event;
@@ -510,11 +510,11 @@ static void armada_drm_crtc_atomic_disable(struct drm_crtc *crtc, } } }static void armada_drm_crtc_atomic_enable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *old_state =drm_atomic_get_old_crtc_state (state, crtc);struct armada_crtc *dcrtc =drm_to_armada_crtc (crtc);
drivers/gpu/drm/armada/armada_overlay.c +5 -5
@@ -67,11 +67,11 @@ static inline u32 armada_csc(struct drm_plane_state *state) CFG_CSC_YUV_CCIR709 : CFG_CSC_YUV_CCIR601); }/* === Plane support === */ static void armada_drm_overlay_plane_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *old_state =drm_atomic_get_old_plane_state (state, plane);struct drm_plane_state *new_state =drm_atomic_get_new_plane_state (state, plane);
@@ -218,11 +218,11 @@ static void armada_drm_overlay_plane_atomic_update(struct drm_plane *plane, dcrtc->regs_idx += idx; }static void armada_drm_overlay_plane_atomic_disable (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *old_state =drm_atomic_get_old_plane_state (state, plane);struct armada_crtc *dcrtc;struct armada_regs *regs;
@@ -260,19 +260,19 @@ armada_overlay_plane_update(struct drm_plane *plane, struct drm_crtc *crtc,struct drm_framebuffer *fb, int crtc_x, int crtc_y, unsigned crtc_w, unsigned crtc_h, uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h, struct drm_modeset_acquire_ctx *ctx) { - struct drm_atomic_state *state; + struct drm_atomic_commit *state;struct drm_plane_state *plane_state;int ret =0 ;trace_armada_ovl_plane_update (plane, crtc, fb, crtc_x, crtc_y, crtc_w, crtc_h, src_x, src_y, src_w, src_h); - state =drm_atomic_state_alloc (plane->dev); + state =drm_atomic_commit_alloc (plane->dev);if (!state)return -ENOMEM ; state->acquire_ctx = ctx; plane_state =drm_atomic_get_plane_state (state, plane);
@@ -295,11 +295,11 @@ armada_overlay_plane_update(struct drm_plane *plane, struct drm_crtc *crtc, plane_state->src_h = src_h; plane_state->src_w = src_w; ret =drm_atomic_nonblocking_commit (state); fail: -drm_atomic_state_put (state); +drm_atomic_commit_put (state);return ret; }static void armada_overlay_reset (struct drm_plane *plane) {
drivers/gpu/drm/armada/armada_plane.c +3 -3
@@ -78,11 +78,11 @@ void armada_drm_plane_calc(struct drm_plane_state *state, u32 addrs[2][3], addrs[1 ][i] = addrs[0 ][i]; } }int armada_drm_plane_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct armada_plane_state *st =to_armada_plane_state (new_plane_state);struct drm_crtc *crtc = new_plane_state->crtc;
@@ -128,11 +128,11 @@ int armada_drm_plane_atomic_check(struct drm_plane *plane,return 0 ; }static void armada_drm_primary_plane_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *old_state =drm_atomic_get_old_plane_state (state, plane);struct drm_plane_state *new_state =drm_atomic_get_new_plane_state (state, plane);
@@ -218,11 +218,11 @@ static void armada_drm_primary_plane_atomic_update(struct drm_plane *plane, dcrtc->regs_idx += idx; }static void armada_drm_primary_plane_atomic_disable (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *old_state =drm_atomic_get_old_plane_state (state, plane);struct armada_crtc *dcrtc;struct armada_regs *regs;
drivers/gpu/drm/armada/armada_plane.h +1 -1
@@ -22,11 +22,11 @@ struct armada_plane_state {void armada_drm_plane_calc (struct drm_plane_state *state,u32 addrs[2 ][3 ],u16 pitches[3 ],bool interlaced);void armada_drm_plane_cleanup_fb (struct drm_plane *plane,struct drm_plane_state *old_state);int armada_drm_plane_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state); +struct drm_atomic_commit *state);void armada_plane_reset (struct drm_plane *plane);struct drm_plane_state *armada_plane_duplicate_state (struct drm_plane *plane);void armada_plane_destroy_state (struct drm_plane *plane,struct drm_plane_state *state);
drivers/gpu/drm/ast/ast_cursor.c +3 -3
@@ -162,11 +162,11 @@ static const uint32_t ast_cursor_plane_formats[] = {DRM_FORMAT_ARGB4444 , DRM_FORMAT_ARGB8888, };static int ast_cursor_plane_helper_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct drm_framebuffer *new_fb = new_plane_state->fb;struct drm_crtc_state *new_crtc_state =NULL ;int ret;
@@ -242,11 +242,11 @@ static const u8 *ast_cursor_plane_get_argb4444(struct ast_cursor_plane *ast_cursreturn argb4444; }static void ast_cursor_plane_helper_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ast_cursor_plane *ast_cursor_plane =to_ast_cursor_plane (plane);struct ast_plane *ast_plane =to_ast_plane (plane);struct drm_plane_state *plane_state =drm_atomic_get_new_plane_state (state, plane);struct drm_shadow_plane_state *shadow_plane_state =to_drm_shadow_plane_state (plane_state);
@@ -307,11 +307,11 @@ static void ast_cursor_plane_helper_atomic_update(struct drm_plane *plane,/* Dummy write to enable HWC and make the HW pick-up the changes. */ ast_set_cursor_enabled (ast, true); }static void ast_cursor_plane_helper_atomic_disable (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (plane->dev);ast_set_cursor_enabled (ast, false); }
drivers/gpu/drm/ast/ast_dp.c +2 -2
@@ -357,11 +357,11 @@ static void ast_astdp_encoder_helper_atomic_mode_set(struct drm_encoder *encoderast_set_index_reg (ast,AST_IO_VGACRI ,0xe1 , vgacre1);ast_set_index_reg (ast,AST_IO_VGACRI ,0xe2 , vgacre2); }static void ast_astdp_encoder_helper_atomic_enable (struct drm_encoder *encoder, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (encoder->dev);struct ast_connector *ast_connector = &ast->output.astdp.connector;if (ast_connector->physical_status == connector_status_connected) {
@@ -372,11 +372,11 @@ static void ast_astdp_encoder_helper_atomic_enable(struct drm_encoder *encoder,ast_dp_set_enable (ast, true); } }static void ast_astdp_encoder_helper_atomic_disable (struct drm_encoder *encoder, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (encoder->dev);ast_dp_set_enable (ast, false);ast_dp_set_phy_sleep (ast, true);
drivers/gpu/drm/ast/ast_dp501.c +2 -2
@@ -475,19 +475,19 @@ void ast_init_3rdtx(struct ast_device *ast)static const struct drm_encoder_funcs ast_dp501_encoder_funcs = { .destroy = drm_encoder_cleanup, };static void ast_dp501_encoder_helper_atomic_enable (struct drm_encoder *encoder, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (encoder->dev);ast_set_dp501_video_output (ast,1 ); }static void ast_dp501_encoder_helper_atomic_disable (struct drm_encoder *encoder, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (encoder->dev);ast_set_dp501_video_output (ast,0 ); }
drivers/gpu/drm/ast/ast_mode.c +9 -9
@@ -491,11 +491,11 @@ static const uint32_t ast_primary_plane_formats[] = {DRM_FORMAT_RGB565 , DRM_FORMAT_C8, };static int ast_primary_plane_helper_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_device *dev = plane->dev;struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct drm_crtc_state *new_crtc_state =NULL ;struct ast_crtc_state *new_ast_crtc_state;
@@ -539,11 +539,11 @@ static void ast_handle_damage(struct ast_plane *ast_plane, struct iosys_map *srcdrm_fb_memcpy (&dst, fb->pitches, src, fb, clip);#endif }static void ast_primary_plane_helper_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_device *dev = plane->dev;struct ast_device *ast =to_ast_device (dev);struct drm_plane_state *plane_state =drm_atomic_get_new_plane_state (state, plane);struct drm_shadow_plane_state *shadow_plane_state =to_drm_shadow_plane_state (plane_state);
@@ -583,11 +583,11 @@ static void ast_primary_plane_helper_atomic_update(struct drm_plane *plane,if (!old_fb || old_fb->pitches[0 ] != fb->pitches[0 ])ast_set_offset_reg (ast, fb); }static void ast_primary_plane_helper_atomic_enable (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (plane->dev);struct ast_plane *ast_plane =to_ast_plane (plane);/*
@@ -598,11 +598,11 @@ static void ast_primary_plane_helper_atomic_enable(struct drm_plane *plane,*/ ast_set_start_address_crt1 (ast, (u32 )ast_plane->offset); }static void ast_primary_plane_helper_atomic_disable (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {/* * Keep this empty function to avoid calling * atomic_update when disabling the plane. */
@@ -706,11 +706,11 @@ static void ast_crtc_helper_mode_set_nofb(struct drm_crtc *crtc)ast_set_crtthd_reg (ast);ast_set_sync_reg (ast, adjusted_mode, vmode); }static int ast_crtc_helper_atomic_check (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct drm_display_mode *adjusted_mode = &crtc_state->adjusted_mode;struct drm_crtc_state *old_crtc_state =drm_atomic_get_old_crtc_state (state, crtc);struct ast_crtc_state *old_ast_crtc_state =to_ast_crtc_state (old_crtc_state);
@@ -806,11 +806,11 @@ static int ast_crtc_helper_atomic_check(struct drm_crtc *crtc,return 0 ; }static void ast_crtc_helper_atomic_flush (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct drm_device *dev = crtc->dev;struct ast_device *ast =to_ast_device (dev);
@@ -828,11 +828,11 @@ ast_crtc_helper_atomic_flush(struct drm_crtc *crtc,else ast_crtc_fill_gamma (ast, ast_crtc_state->format); } } -static void ast_crtc_helper_atomic_enable (struct drm_crtc *crtc,struct drm_atomic_state *state) +static void ast_crtc_helper_atomic_enable (struct drm_crtc *crtc,struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (crtc->dev);u8 vgacr17 =0x00 ;u8 vgacrb6 =0xff ;
@@ -841,11 +841,11 @@ static void ast_crtc_helper_atomic_enable(struct drm_crtc *crtc, struct drm_atomast_set_index_reg_mask (ast,AST_IO_VGACRI ,0x17 ,0x7f , vgacr17);ast_set_index_reg_mask (ast,AST_IO_VGACRI ,0xb6 ,0xfc , vgacrb6); } -static void ast_crtc_helper_atomic_disable (struct drm_crtc *crtc,struct drm_atomic_state *state) +static void ast_crtc_helper_atomic_disable (struct drm_crtc *crtc,struct drm_atomic_commit *state) {struct drm_crtc_state *old_crtc_state =drm_atomic_get_old_crtc_state (state, crtc);struct ast_device *ast =to_ast_device (crtc->dev);u8 vgacr17 =0xff ;
@@ -950,11 +950,11 @@ static int ast_crtc_init(struct ast_device *ast)/* * Mode config */ -static void ast_mode_config_helper_atomic_commit_tail (struct drm_atomic_state *state) +static void ast_mode_config_helper_atomic_commit_tail (struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (state->dev);/* * Concurrent operations could possibly trigger a call to
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c +5 -5
@@ -198,11 +198,11 @@ atmel_hlcdc_crtc_mode_valid(struct drm_crtc *c,return atmel_hlcdc_dc_mode_valid (crtc->dc, mode); }static void atmel_hlcdc_crtc_atomic_disable (struct drm_crtc *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_device *dev = c->dev;struct atmel_hlcdc_crtc *crtc =drm_crtc_to_atmel_hlcdc_crtc (c);struct regmap *regmap = crtc->dc->hlcdc->regmap;unsigned int status;
@@ -250,11 +250,11 @@ static void atmel_hlcdc_crtc_atomic_disable(struct drm_crtc *c,pm_runtime_put_sync (dev->dev); }static void atmel_hlcdc_crtc_atomic_enable (struct drm_crtc *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_device *dev = c->dev;struct atmel_hlcdc_crtc *crtc =drm_crtc_to_atmel_hlcdc_crtc (c);struct regmap *regmap = crtc->dc->hlcdc->regmap;unsigned int status;
@@ -456,11 +456,11 @@ static int atmel_hlcdc_crtc_select_output_mode(struct drm_crtc_state *state) }return 0 ; }static int atmel_hlcdc_crtc_atomic_check (struct drm_crtc *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *s =drm_atomic_get_new_crtc_state (state, c);int ret; ret =atmel_hlcdc_crtc_select_output_mode (s);
@@ -473,17 +473,17 @@ static int atmel_hlcdc_crtc_atomic_check(struct drm_crtc *c,return atmel_hlcdc_plane_prepare_ahb_routing (s); }static void atmel_hlcdc_crtc_atomic_begin (struct drm_crtc *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {drm_crtc_vblank_on (c); }static void atmel_hlcdc_crtc_atomic_flush (struct drm_crtc *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct atmel_hlcdc_crtc *crtc =drm_crtc_to_atmel_hlcdc_crtc (c);unsigned long flags;spin_lock_irqsave (&c->dev->event_lock, flags);
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +1 -1
@@ -981,11 +981,11 @@ static void atmel_hlcdc_dc_drm_shutdown(struct platform_device *pdev)static int atmel_hlcdc_dc_drm_suspend (struct device *dev) {struct drm_device *drm_dev =dev_get_drvdata (dev);struct atmel_hlcdc_dc *dc = drm_dev->dev_private;struct regmap *regmap = dc->hlcdc->regmap; -struct drm_atomic_state *state; +struct drm_atomic_commit *state; state =drm_atomic_helper_suspend (drm_dev);if (IS_ERR (state))return PTR_ERR (state);
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h +1 -1
@@ -352,11 +352,11 @@ struct atmel_hlcdc_dc {struct drm_crtc *crtc;struct drm_device dev;struct atmel_hlcdc_layer *layers[ATMEL_HLCDC_MAX_LAYERS ];struct {u32 imr; -struct drm_atomic_state *state; +struct drm_atomic_commit *state; } suspend; };struct atmel_hlcdc_plane_state ;
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c +3 -3
@@ -716,11 +716,11 @@ atmel_hlcdc_plane_update_disc_area(struct atmel_hlcdc_plane *plane,ATMEL_HLCDC_LAYER_DISC_SIZE (state->disc_w, state->disc_h)); }static int atmel_hlcdc_plane_atomic_check (struct drm_plane *p, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *s =drm_atomic_get_new_plane_state (state, p);struct atmel_hlcdc_plane *plane =drm_plane_to_atmel_hlcdc_plane (p);struct atmel_hlcdc_plane_state *hstate =drm_plane_state_to_atmel_hlcdc_plane_state (s);
@@ -867,11 +867,11 @@ static void atmel_xlcdc_atomic_disable(struct atmel_hlcdc_plane *plane,/* Clear all pending interrupts */ atmel_hlcdc_layer_read_reg (&plane->layer,ATMEL_XLCDC_LAYER_ISR ); }static void atmel_hlcdc_plane_atomic_disable (struct drm_plane *p, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct atmel_hlcdc_plane *plane =drm_plane_to_atmel_hlcdc_plane (p);struct atmel_hlcdc_dc *dc = plane->base.dev->dev_private; dc->desc->ops->lcdc_atomic_disable (plane, dc);
@@ -917,11 +917,11 @@ static void atmel_xlcdc_atomic_update(struct atmel_hlcdc_plane *plane,ATMEL_XLCDC_OVR1_UPDATE |ATMEL_XLCDC_OVR3_UPDATE | ATMEL_XLCDC_HEO_UPDATE); }static void atmel_hlcdc_plane_atomic_update (struct drm_plane *p, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_s =drm_atomic_get_new_plane_state (state, p);struct atmel_hlcdc_plane *plane =drm_plane_to_atmel_hlcdc_plane (p); struct atmel_hlcdc_plane_state *hstate =
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c +2 -2
@@ -781,11 +781,11 @@ static const struct adv7511 *bridge_to_adv7511_const(const struct drm_bridge *br { return container_of(bridge, struct adv7511, bridge); }static void adv7511_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct adv7511 *adv =bridge_to_adv7511 (bridge);struct drm_connector *connector;struct drm_connector_state *conn_state;struct drm_crtc_state *crtc_state;
@@ -810,11 +810,11 @@ static void adv7511_bridge_atomic_enable(struct drm_bridge *bridge,drm_atomic_helper_connector_hdmi_update_infoframes (connector, state); }static void adv7511_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct adv7511 *adv =bridge_to_adv7511 (bridge);adv7511_power_off (adv); }
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +7 -7
@@ -889,11 +889,11 @@ analogix_dp_best_encoder(struct drm_connector *connector)return dp->encoder; }static int analogix_dp_atomic_check (struct drm_connector *connector, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct analogix_dp_device *dp =to_dp (connector);struct drm_connector_state *conn_state;struct drm_crtc_state *crtc_state;
@@ -993,11 +993,11 @@ static int analogix_dp_bridge_attach(struct drm_bridge *bridge,return 0 ; }static struct drm_crtc *analogix_dp_get_old_crtc (struct analogix_dp_device *dp, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_encoder *encoder = dp->encoder;struct drm_connector *connector;struct drm_connector_state *conn_state;
@@ -1012,11 +1012,11 @@ struct drm_crtc *analogix_dp_get_old_crtc(struct analogix_dp_device *dp,return conn_state->crtc; }static struct drm_crtc *analogix_dp_get_new_crtc (struct analogix_dp_device *dp, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_encoder *encoder = dp->encoder;struct drm_connector *connector;struct drm_connector_state *conn_state;
@@ -1030,11 +1030,11 @@ struct drm_crtc *analogix_dp_get_new_crtc(struct analogix_dp_device *dp,return conn_state->crtc; }static void analogix_dp_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {struct analogix_dp_device *dp =to_dp (bridge);struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state;
@@ -1161,11 +1161,11 @@ static void analogix_dp_bridge_mode_set(struct drm_bridge *bridge,if (of_property_read_bool (dp_node,"interlaced" )) video->interlaced = true; }static void analogix_dp_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {struct analogix_dp_device *dp =to_dp (bridge);struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state, *new_crtc_state;int timeout_loop =0 ;
@@ -1226,11 +1226,11 @@ static void analogix_dp_bridge_disable(struct drm_bridge *bridge) dp->psr_supported = false; dp->dpms_mode =DRM_MODE_DPMS_OFF ; }static void analogix_dp_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {struct analogix_dp_device *dp =to_dp (bridge);struct drm_crtc *old_crtc, *new_crtc;struct drm_crtc_state *old_crtc_state =NULL ;struct drm_crtc_state *new_crtc_state =NULL ;
@@ -1264,11 +1264,11 @@ static void analogix_dp_bridge_atomic_disable(struct drm_bridge *bridge,analogix_dp_bridge_disable (bridge); }static void analogix_dp_bridge_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {struct analogix_dp_device *dp =to_dp (bridge);struct drm_crtc *crtc;struct drm_crtc_state *new_crtc_state;int ret;
drivers/gpu/drm/bridge/analogix/anx7625.c +2 -2
@@ -2557,11 +2557,11 @@ static int anx7625_bridge_atomic_check(struct drm_bridge *bridge,return 0 ; }static void anx7625_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct anx7625_data *ctx =bridge_to_anx7625 (bridge);struct device *dev = ctx->dev;struct drm_connector *connector;struct drm_connector_state *conn_state;
@@ -2596,11 +2596,11 @@ static void anx7625_bridge_atomic_enable(struct drm_bridge *bridge, } } }static void anx7625_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct anx7625_data *ctx =bridge_to_anx7625 (bridge);struct device *dev = ctx->dev;dev_dbg (dev,"drm atomic disable\n" );
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c +2 -2
@@ -589,11 +589,11 @@ cdns_dsi_bridge_mode_valid(struct drm_bridge *bridge,return MODE_OK ; }static void cdns_dsi_bridge_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct cdns_dsi_input *input =bridge_to_cdns_dsi_input (bridge);struct cdns_dsi *dsi =input_to_dsi (input);u32 val;
@@ -699,11 +699,11 @@ static void cdns_dsi_init_link(struct cdns_dsi *dsi) dsi->link_initialized = true; }static void cdns_dsi_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct cdns_dsi_input *input =bridge_to_cdns_dsi_input (bridge);struct cdns_dsi *dsi =input_to_dsi (input);struct cdns_dsi_output *output = &dsi->output;struct drm_connector_state *conn_state;
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c +3 -3
@@ -1748,11 +1748,11 @@ static void cdns_mhdp_sst_enable(struct cdns_mhdp_device *mhdp,cdns_mhdp_configure_video (mhdp, mode); }static void cdns_mhdp_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct cdns_mhdp_device *mhdp =bridge_to_mhdp (bridge);struct cdns_mhdp_bridge_state *mhdp_state;struct drm_crtc_state *crtc_state;struct drm_connector_state *conn_state;
@@ -1839,11 +1839,11 @@ static void cdns_mhdp_atomic_enable(struct drm_bridge *bridge,if (ret <0 )schedule_work (&mhdp->modeset_retry_work); }static void cdns_mhdp_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct cdns_mhdp_device *mhdp =bridge_to_mhdp (bridge);u32 resp;dev_dbg (mhdp->dev,"%s\n" , __func__);
@@ -1961,11 +1961,11 @@ static int cdns_mhdp_atomic_check(struct drm_bridge *bridge, struct drm_connector_state *conn_state) {struct cdns_mhdp_device *mhdp =bridge_to_mhdp (bridge);const struct drm_display_mode *mode = &crtc_state->adjusted_mode;struct drm_connector_state *old_state, *new_state; -struct drm_atomic_state *state = crtc_state->state; +struct drm_atomic_commit *state = crtc_state->state;struct drm_connector *conn = mhdp->connector;u64 old_cp, new_cp;mutex_lock (&mhdp->link_mutex);
drivers/gpu/drm/bridge/chipone-icn6211.c +3 -3
@@ -339,11 +339,11 @@ static void chipone_configure_pll(struct chipone *icn,chipone_writeb (icn,PLL_REF_DIV , ref_div);chipone_writeb (icn,PLL_INT (0 ), best_m); }static void chipone_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct chipone *icn =bridge_to_chipone (bridge);struct drm_display_mode *mode = &icn->mode;const struct drm_bridge_state *bridge_state;u16 hfp, hbp, hsync;
@@ -442,11 +442,11 @@ static void chipone_atomic_enable(struct drm_bridge *bridge,usleep_range (10000 ,11000 ); }static void chipone_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct chipone *icn =bridge_to_chipone (bridge);int ret;if (icn->vdd1) {
@@ -479,11 +479,11 @@ static void chipone_atomic_pre_enable(struct drm_bridge *bridge,usleep_range (10000 ,11000 ); }static void chipone_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct chipone *icn =bridge_to_chipone (bridge);clk_disable_unprepare (icn->refclk);
drivers/gpu/drm/bridge/fsl-ldb.c +2 -2
@@ -122,11 +122,11 @@ static int fsl_ldb_attach(struct drm_bridge *bridge,return drm_bridge_attach (encoder, fsl_ldb->panel_bridge, bridge, flags); }static void fsl_ldb_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct fsl_ldb *fsl_ldb =to_fsl_ldb (bridge);const struct drm_bridge_state *bridge_state;const struct drm_crtc_state *crtc_state;const struct drm_display_mode *mode;
@@ -226,11 +226,11 @@ static void fsl_ldb_atomic_enable(struct drm_bridge *bridge,regmap_write (fsl_ldb->regmap, fsl_ldb->devdata->lvds_ctrl, reg); }static void fsl_ldb_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct fsl_ldb *fsl_ldb =to_fsl_ldb (bridge);/* Stop channel(s). */ if (fsl_ldb->devdata->lvds_en_bit)
drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c +2 -2
@@ -47,11 +47,11 @@ static int imx8mp_hdmi_pvi_bridge_attach(struct drm_bridge *bridge,return drm_bridge_attach (encoder, pvi->bridge.next_bridge, bridge, flags); }static void imx8mp_hdmi_pvi_bridge_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct imx8mp_hdmi_pvi *pvi =to_imx8mp_hdmi_pvi (bridge);struct drm_connector_state *conn_state;struct drm_bridge_state *bridge_state;const struct drm_display_mode *mode;
@@ -87,11 +87,11 @@ static void imx8mp_hdmi_pvi_bridge_enable(struct drm_bridge *bridge,writel (val, pvi->regs +HTX_PVI_CTRL ); }static void imx8mp_hdmi_pvi_bridge_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct imx8mp_hdmi_pvi *pvi =to_imx8mp_hdmi_pvi (bridge);writel (0x0 , pvi->regs +HTX_PVI_CTRL );
drivers/gpu/drm/bridge/imx/imx8qm-ldb.c +2 -2
@@ -199,11 +199,11 @@ imx8qm_ldb_bridge_mode_set(struct drm_bridge *bridge,regmap_update_bits (ldb->regmap,SS_CTRL ,CH_HSYNC_M (chno),CH_PHSYNC (chno)); }static void imx8qm_ldb_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ldb_channel *ldb_ch = bridge->driver_private;struct ldb *ldb = ldb_ch->ldb;struct imx8qm_ldb_channel *imx8qm_ldb_ch =base_to_imx8qm_ldb_channel (ldb_ch);
@@ -245,11 +245,11 @@ static void imx8qm_ldb_bridge_atomic_enable(struct drm_bridge *bridge,ldb_bridge_enable_helper (bridge); }static void imx8qm_ldb_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ldb_channel *ldb_ch = bridge->driver_private;struct ldb *ldb = ldb_ch->ldb;struct imx8qm_ldb_channel *imx8qm_ldb_ch =base_to_imx8qm_ldb_channel (ldb_ch);
drivers/gpu/drm/bridge/imx/imx8qxp-ldb.c +3 -3
@@ -214,11 +214,11 @@ imx8qxp_ldb_bridge_mode_set(struct drm_bridge *bridge,if (is_split && companion) companion->funcs->mode_set (companion, mode, adjusted_mode); }static void imx8qxp_ldb_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ldb_channel *ldb_ch = bridge->driver_private;struct ldb *ldb = ldb_ch->ldb;struct imx8qxp_ldb *imx8qxp_ldb =base_to_imx8qxp_ldb (ldb);struct drm_bridge *companion = imx8qxp_ldb->companion;
@@ -230,11 +230,11 @@ static void imx8qxp_ldb_bridge_atomic_pre_enable(struct drm_bridge *bridge,if (is_split && companion) companion->funcs->atomic_pre_enable (companion, state); }static void imx8qxp_ldb_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ldb_channel *ldb_ch = bridge->driver_private;struct ldb *ldb = ldb_ch->ldb;struct imx8qxp_ldb_channel *imx8qxp_ldb_ch =base_to_imx8qxp_ldb_channel (ldb_ch);
@@ -264,11 +264,11 @@ static void imx8qxp_ldb_bridge_atomic_enable(struct drm_bridge *bridge,if (is_split && companion) companion->funcs->atomic_enable (companion, state); }static void imx8qxp_ldb_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ldb_channel *ldb_ch = bridge->driver_private;struct ldb *ldb = ldb_ch->ldb;struct imx8qxp_ldb_channel *imx8qxp_ldb_ch =base_to_imx8qxp_ldb_channel (ldb_ch);
drivers/gpu/drm/bridge/imx/imx8qxp-pixel-combiner.c +1 -1
@@ -174,11 +174,11 @@ imx8qxp_pc_bridge_mode_set(struct drm_bridge *bridge,clk_disable_unprepare (pc->clk_apb); }static void imx8qxp_pc_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct imx8qxp_pc_channel *ch = bridge->driver_private;struct imx8qxp_pc *pc = ch->pc;pm_runtime_put (pc->dev);
drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c +2 -2
@@ -152,21 +152,21 @@ imx8qxp_pixel_link_bridge_mode_set(struct drm_bridge *bridge,imx8qxp_pixel_link_set_mst_addr (pl); }static void imx8qxp_pixel_link_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct imx8qxp_pixel_link *pl = bridge->driver_private;imx8qxp_pixel_link_enable_mst_en (pl);imx8qxp_pixel_link_enable_mst_vld (pl);imx8qxp_pixel_link_enable_sync (pl); }static void imx8qxp_pixel_link_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct imx8qxp_pixel_link *pl = bridge->driver_private;imx8qxp_pixel_link_disable_mst_en (pl);imx8qxp_pixel_link_disable_mst_vld (pl);
drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c +1 -1
@@ -131,11 +131,11 @@ imx8qxp_pxl2dpi_bridge_mode_set(struct drm_bridge *bridge, adjusted_mode); } }static void imx8qxp_pxl2dpi_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct imx8qxp_pxl2dpi *p2d = bridge->driver_private;pm_runtime_put (p2d->dev);
drivers/gpu/drm/bridge/inno-hdmi.c +3 -3
@@ -754,11 +754,11 @@ static int inno_hdmi_config_video_timing(struct inno_hdmi *hdmi,hdmi_writeb (hdmi,HDMI_PHY_FEEDBACK_DIV_RATIO_HIGH ,0x01 );return 0 ; } -static int inno_hdmi_setup (struct inno_hdmi *hdmi,struct drm_atomic_state *state) +static int inno_hdmi_setup (struct inno_hdmi *hdmi,struct drm_atomic_commit *state) {struct drm_bridge *bridge = &hdmi->bridge;struct drm_connector *connector;struct drm_display_info *info;struct drm_connector_state *new_conn_state;
@@ -861,19 +861,19 @@ inno_hdmi_bridge_edid_read(struct drm_bridge *bridge, struct drm_connector *connreturn drm_edid; }static void inno_hdmi_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct inno_hdmi *hdmi =bridge_to_inno_hdmi (bridge);inno_hdmi_setup (hdmi, state); }static void inno_hdmi_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct inno_hdmi *hdmi =bridge_to_inno_hdmi (bridge);inno_hdmi_standby (hdmi); }
drivers/gpu/drm/bridge/ite-it6263.c +2 -2
@@ -577,22 +577,22 @@ static int it6263_read_edid(void *data, u8 *buf, unsigned int block, size_t len)return 0 ; }static void it6263_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct it6263 *it =bridge_to_it6263 (bridge);regmap_write_bits (it->hdmi_regmap,HDMI_REG_GCP ,AVMUTE ,AVMUTE );regmap_write (it->hdmi_regmap,HDMI_REG_PKT_GENERAL_CTRL ,0 );regmap_write (it->hdmi_regmap,HDMI_REG_AFE_DRV_CTRL ,AFE_DRV_RST |AFE_DRV_PWD ); }static void it6263_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct it6263 *it =bridge_to_it6263 (bridge);const struct drm_crtc_state *crtc_state;struct regmap *regmap = it->hdmi_regmap;const struct drm_display_mode *mode;
drivers/gpu/drm/bridge/ite-it6505.c +4 -4
@@ -3117,11 +3117,11 @@ it6505_bridge_mode_valid(struct drm_bridge *bridge,return MODE_OK ; }static void it6505_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct it6505 *it6505 =bridge_to_it6505 (bridge);struct device *dev = it6505->dev;struct hdmi_avi_infoframe frame;struct drm_crtc_state *crtc_state;
@@ -3171,11 +3171,11 @@ static void it6505_bridge_atomic_enable(struct drm_bridge *bridge,drm_dp_link_power_up (&it6505->aux, it6505->link.revision); }static void it6505_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct it6505 *it6505 =bridge_to_it6505 (bridge);struct device *dev = it6505->dev;DRM_DEV_DEBUG_DRIVER (dev,"start" );
@@ -3185,22 +3185,22 @@ static void it6505_bridge_atomic_disable(struct drm_bridge *bridge,it6505_video_disable (it6505); } }static void it6505_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct it6505 *it6505 =bridge_to_it6505 (bridge);struct device *dev = it6505->dev;DRM_DEV_DEBUG_DRIVER (dev,"start" );pm_runtime_get_sync (dev); }static void it6505_bridge_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct it6505 *it6505 =bridge_to_it6505 (bridge);struct device *dev = it6505->dev;DRM_DEV_DEBUG_DRIVER (dev,"start" );
drivers/gpu/drm/bridge/ite-it66121.c +2 -2
@@ -720,21 +720,21 @@ static u32 *it66121_bridge_atomic_get_input_bus_fmts(struct drm_bridge *bridge,return input_fmts; }static void it66121_bridge_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) { struct it66121_ctx *ctx = container_of(bridge, struct it66121_ctx, bridge); ctx->connector =drm_atomic_get_new_connector_for_encoder (state, bridge->encoder);it66121_set_mute (ctx, false); }static void it66121_bridge_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) { struct it66121_ctx *ctx = container_of(bridge, struct it66121_ctx, bridge);it66121_set_mute (ctx, true);
drivers/gpu/drm/bridge/lontium-lt9211.c +2 -2
@@ -453,11 +453,11 @@ static int lt9211_configure_tx(struct lt9211 *ctx, bool jeida,return 0 ; }static void lt9211_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct lt9211 *ctx =bridge_to_lt9211 (bridge);const struct drm_bridge_state *bridge_state;const struct drm_crtc_state *crtc_state;const struct drm_display_mode *mode;
@@ -550,11 +550,11 @@ static void lt9211_atomic_enable(struct drm_bridge *bridge,dev_dbg (ctx->dev,"LT9211 enabled.\n" ); }static void lt9211_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct lt9211 *ctx =bridge_to_lt9211 (bridge);int ret;/*
drivers/gpu/drm/bridge/lontium-lt9611.c +4 -4
@@ -655,11 +655,11 @@ lt9611_get_edid_block(void *data, u8 *buf, unsigned int block, size_t len)return 0 ; }/* bridge funcs */ static void lt9611_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct lt9611 *lt9611 =bridge_to_lt9611 (bridge);struct drm_connector *connector;struct drm_connector_state *conn_state;struct drm_crtc_state *crtc_state;
@@ -702,11 +702,11 @@ static void lt9611_bridge_atomic_enable(struct drm_bridge *bridge,/* Enable HDMI output */ regmap_write (lt9611->regmap,0x8130 ,0xea ); }static void lt9611_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct lt9611 *lt9611 =bridge_to_lt9611 (bridge);int ret;/* Disable HDMI output */
@@ -780,11 +780,11 @@ static enum drm_mode_status lt9611_bridge_mode_valid(struct drm_bridge *bridge,return MODE_OK ; }static void lt9611_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct lt9611 *lt9611 =bridge_to_lt9611 (bridge);static const struct reg_sequence reg_cfg[] = { {0x8102 ,0x12 }, {0x8123 ,0x40 },
@@ -800,11 +800,11 @@ static void lt9611_bridge_atomic_pre_enable(struct drm_bridge *bridge, lt9611->sleep = false; }static void lt9611_bridge_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct lt9611 *lt9611 =bridge_to_lt9611 (bridge);lt9611_sleep_setup (lt9611); }
drivers/gpu/drm/bridge/nwl-dsi.c +2 -2
@@ -735,11 +735,11 @@ static int nwl_dsi_disable(struct nwl_dsi *dsi)return 0 ; }static void nwl_dsi_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct nwl_dsi *dsi =bridge_to_dsi (bridge);int ret;nwl_dsi_disable (dsi);
@@ -896,11 +896,11 @@ nwl_dsi_bridge_mode_set(struct drm_bridge *bridge, runtime_put:pm_runtime_put_sync (dev); }static void nwl_dsi_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct nwl_dsi *dsi =bridge_to_dsi (bridge);int ret;/* Step 5 from DSI reset-out instructions */
drivers/gpu/drm/bridge/panel.c +4 -4
@@ -109,11 +109,11 @@ static void panel_bridge_detach(struct drm_bridge *bridge)if (connector->dev)drm_connector_cleanup (connector); }static void panel_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *atomic_state) +struct drm_atomic_commit *atomic_state) {struct panel_bridge *panel_bridge =drm_bridge_to_panel_bridge (bridge);struct drm_encoder *encoder = bridge->encoder;struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state;
@@ -128,11 +128,11 @@ static void panel_bridge_atomic_pre_enable(struct drm_bridge *bridge,drm_panel_prepare (panel_bridge->panel); }static void panel_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *atomic_state) +struct drm_atomic_commit *atomic_state) {struct panel_bridge *panel_bridge =drm_bridge_to_panel_bridge (bridge);struct drm_encoder *encoder = bridge->encoder;struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state;
@@ -147,11 +147,11 @@ static void panel_bridge_atomic_enable(struct drm_bridge *bridge,drm_panel_enable (panel_bridge->panel); }static void panel_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *atomic_state) +struct drm_atomic_commit *atomic_state) {struct panel_bridge *panel_bridge =drm_bridge_to_panel_bridge (bridge);struct drm_encoder *encoder = bridge->encoder;struct drm_crtc *crtc;struct drm_crtc_state *new_crtc_state;
@@ -166,11 +166,11 @@ static void panel_bridge_atomic_disable(struct drm_bridge *bridge,drm_panel_disable (panel_bridge->panel); }static void panel_bridge_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *atomic_state) +struct drm_atomic_commit *atomic_state) {struct panel_bridge *panel_bridge =drm_bridge_to_panel_bridge (bridge);struct drm_encoder *encoder = bridge->encoder;struct drm_crtc *crtc;struct drm_crtc_state *new_crtc_state;
drivers/gpu/drm/bridge/parade-ps8640.c +2 -2
@@ -435,11 +435,11 @@ static const struct dev_pm_ops ps8640_pm_ops = {SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static void ps8640_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ps8640 *ps_bridge =bridge_to_ps8640 (bridge);struct regmap *map = ps_bridge->regmap[PAGE2_TOP_CNTL ];struct device *dev = &ps_bridge->page[PAGE0_DP_CNTL ]->dev;int ret;
@@ -470,11 +470,11 @@ static void ps8640_atomic_pre_enable(struct drm_bridge *bridge, ps_bridge->pre_enabled = true; }static void ps8640_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ps8640 *ps_bridge =bridge_to_ps8640 (bridge); ps_bridge->pre_enabled = false;
drivers/gpu/drm/bridge/samsung-dsim.c +4 -4
@@ -1638,11 +1638,11 @@ static int samsung_dsim_init(struct samsung_dsim *dsi)return 0 ; }static void samsung_dsim_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct samsung_dsim *dsi =bridge_to_dsi (bridge);int ret;if (dsi->state &DSIM_STATE_ENABLED )
@@ -1666,22 +1666,22 @@ static void samsung_dsim_atomic_pre_enable(struct drm_bridge *bridge,return ; } }static void samsung_dsim_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct samsung_dsim *dsi =bridge_to_dsi (bridge);samsung_dsim_set_display_mode (dsi);samsung_dsim_set_display_enable (dsi, true); dsi->state |=DSIM_STATE_VIDOUT_AVAILABLE ; }static void samsung_dsim_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct samsung_dsim *dsi =bridge_to_dsi (bridge);if (!(dsi->state &DSIM_STATE_ENABLED ))return ;
@@ -1689,11 +1689,11 @@ static void samsung_dsim_atomic_disable(struct drm_bridge *bridge,samsung_dsim_set_display_enable (dsi, false); dsi->state &= ~DSIM_STATE_VIDOUT_AVAILABLE ; }static void samsung_dsim_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct samsung_dsim *dsi =bridge_to_dsi (bridge); dsi->state &= ~DSIM_STATE_ENABLED ;pm_runtime_put_sync (dsi->dev);
drivers/gpu/drm/bridge/sii902x.c +2 -2
@@ -319,11 +319,11 @@ static int sii902x_get_modes(struct drm_connector *connector)static const struct drm_connector_helper_funcs sii902x_connector_helper_funcs = { .get_modes = sii902x_get_modes, };static void sii902x_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct sii902x *sii902x =bridge_to_sii902x (bridge);mutex_lock (&sii902x->mutex);
@@ -333,11 +333,11 @@ static void sii902x_bridge_atomic_disable(struct drm_bridge *bridge,mutex_unlock (&sii902x->mutex); }static void sii902x_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct sii902x *sii902x =bridge_to_sii902x (bridge);struct drm_connector *connector;u8 output_mode =SII902X_SYS_CTRL_OUTPUT_DVI ;
drivers/gpu/drm/bridge/ssd2825.c +3 -3
@@ -480,11 +480,11 @@ static int ssd2825_setup_pll(struct ssd2825_priv *priv,return 0 ; }static void ssd2825_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ssd2825_priv *priv =bridge_to_ssd2825 (bridge);struct mipi_dsi_device *dsi_dev = priv->output.dev;const struct drm_crtc_state *crtc_state;const struct drm_display_mode *mode;
@@ -583,11 +583,11 @@ static void ssd2825_bridge_atomic_pre_enable(struct drm_bridge *bridge,if (priv->output.panel)drm_panel_enable (priv->output.panel); }static void ssd2825_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ssd2825_priv *priv =bridge_to_ssd2825 (bridge);struct mipi_dsi_device *dsi_dev = priv->output.dev;u16 config;
@@ -605,11 +605,11 @@ static void ssd2825_bridge_atomic_enable(struct drm_bridge *bridge,ssd2825_write_reg (priv,SSD2825_PLL_CTRL_REG ,0x0001 );ssd2825_write_reg (priv,SSD2825_VC_CTRL_REG ,0x0000 ); }static void ssd2825_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ssd2825_priv *priv =bridge_to_ssd2825 (bridge);int ret;msleep (100 );
drivers/gpu/drm/bridge/synopsys/dw-dp.c +2 -2
@@ -1642,11 +1642,11 @@ static int dw_dp_link_enable(struct dw_dp *dp)return ret; }static void dw_dp_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_dp *dp =bridge_to_dp (bridge);struct drm_connector *connector;struct drm_connector_state *conn_state;int ret;
@@ -1695,11 +1695,11 @@ static void dw_dp_reset(struct dw_dp *dp)regmap_write (dp->regmap,DW_DP_HPD_STATUS ,HPD_HOT_PLUG );enable_irq (dp->irq); }static void dw_dp_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_dp *dp =bridge_to_dp (bridge);dw_dp_video_disable (dp);dw_dp_link_disable (dp);
drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c +2 -2
@@ -748,11 +748,11 @@ static struct i2c_adapter *dw_hdmi_qp_i2c_adapter(struct dw_hdmi_qp *hdmi)return adap; }static void dw_hdmi_qp_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_hdmi_qp *hdmi = bridge->driver_private;struct drm_connector_state *conn_state;struct drm_connector *connector;unsigned int op_mode;
@@ -783,11 +783,11 @@ static void dw_hdmi_qp_bridge_atomic_enable(struct drm_bridge *bridge,drm_atomic_helper_connector_hdmi_update_infoframes (connector, state); }static void dw_hdmi_qp_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_hdmi_qp *hdmi = bridge->driver_private; hdmi->tmds_char_rate =0 ;
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +3 -3
@@ -2527,11 +2527,11 @@ static int dw_hdmi_connector_get_modes(struct drm_connector *connector)return ret; }static int dw_hdmi_connector_atomic_check (struct drm_connector *connector, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_connector_state *old_state =drm_atomic_get_old_connector_state (state, connector);struct drm_connector_state *new_state =drm_atomic_get_new_connector_state (state, connector);
@@ -2960,11 +2960,11 @@ static void dw_hdmi_bridge_mode_set(struct drm_bridge *bridge,mutex_unlock (&hdmi->mutex); }static void dw_hdmi_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_hdmi *hdmi = bridge->driver_private;mutex_lock (&hdmi->mutex); hdmi->disabled = true;
@@ -2974,11 +2974,11 @@ static void dw_hdmi_bridge_atomic_disable(struct drm_bridge *bridge,handle_plugged_change (hdmi, false);mutex_unlock (&hdmi->mutex); }static void dw_hdmi_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_hdmi *hdmi = bridge->driver_private;struct drm_connector *connector; connector = drm_atomic_get_new_connector_for_encoder(state,
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c +3 -3
@@ -933,11 +933,11 @@ static void dw_mipi_dsi_clear_err(struct dw_mipi_dsi *dsi)dsi_write (dsi,DSI_INT_MSK0 ,0 );dsi_write (dsi,DSI_INT_MSK1 ,0 ); }static void dw_mipi_dsi_bridge_post_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_mipi_dsi *dsi =bridge_to_dsi (bridge);const struct dw_mipi_dsi_phy_ops *phy_ops = dsi->plat_data->phy_ops;/*
@@ -1021,11 +1021,11 @@ static void dw_mipi_dsi_mode_set(struct dw_mipi_dsi *dsi,if (phy_ops->power_on) phy_ops->power_on (dsi->plat_data->priv_data); }static void dw_mipi_dsi_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_mipi_dsi *dsi =bridge_to_dsi (bridge);/* Power up the dsi ctl into a command mode */ dw_mipi_dsi_mode_set (dsi, &dsi->mode);
@@ -1042,11 +1042,11 @@ static void dw_mipi_dsi_bridge_mode_set(struct drm_bridge *bridge,/* Store the display mode for later use in pre_enable callback */ drm_mode_copy (&dsi->mode, adjusted_mode); }static void dw_mipi_dsi_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_mipi_dsi *dsi =bridge_to_dsi (bridge);/* Switch to video mode for panel-bridge enable & panel enable */ dw_mipi_dsi_set_mode (dsi,MIPI_DSI_MODE_VIDEO );
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c +3 -3
@@ -744,11 +744,11 @@ static int dw_mipi_dsi2_bridge_atomic_check(struct drm_bridge *bridge,return 0 ; }static void dw_mipi_dsi2_bridge_post_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_mipi_dsi2 *dsi2 =bridge_to_dsi2 (bridge);const struct dw_mipi_dsi2_phy_ops *phy_ops = dsi2->plat_data->phy_ops;regmap_write (dsi2->regmap,DSI2_IPI_PIX_PKT_CFG ,0 );
@@ -820,11 +820,11 @@ static void dw_mipi_dsi2_mode_set(struct dw_mipi_dsi2 *dsi2,dw_mipi_dsi2_ipi_set (dsi2); }static void dw_mipi_dsi2_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_mipi_dsi2 *dsi2 =bridge_to_dsi2 (bridge);/* Power up the dsi ctl into a command mode */ dw_mipi_dsi2_mode_set (dsi2, &dsi2->mode);
@@ -839,11 +839,11 @@ static void dw_mipi_dsi2_bridge_mode_set(struct drm_bridge *bridge,/* Store the display mode for later use in pre_enable callback */ drm_mode_copy (&dsi2->mode, adjusted_mode); }static void dw_mipi_dsi2_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_mipi_dsi2 *dsi2 =bridge_to_dsi2 (bridge);/* Switch to video mode for panel-bridge enable & panel enable */ if (dsi2->mode_flags &MIPI_DSI_MODE_VIDEO )
drivers/gpu/drm/bridge/tc358762.c +3 -3
@@ -148,11 +148,11 @@ static int tc358762_init(struct tc358762 *ctx)return tc358762_clear_error (ctx); }static void tc358762_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct tc358762 *ctx =bridge_to_tc358762 (bridge);int ret;/*
@@ -171,11 +171,11 @@ static void tc358762_post_disable(struct drm_bridge *bridge,if (ret <0 )dev_err (ctx->dev,"error disabling regulators (%d)\n" , ret); }static void tc358762_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct tc358762 *ctx =bridge_to_tc358762 (bridge);int ret; ret =regulator_enable (ctx->regulator);
@@ -189,11 +189,11 @@ static void tc358762_pre_enable(struct drm_bridge *bridge, ctx->pre_enabled = true; }static void tc358762_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct tc358762 *ctx =bridge_to_tc358762 (bridge);int ret; ret =tc358762_init (ctx);
drivers/gpu/drm/bridge/tc358767.c +4 -4
@@ -1555,11 +1555,11 @@ static int tc_edp_stream_disable(struct tc_data *tc)return 0 ; }static void tc_dpi_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct tc_data *tc =bridge_to_tc (bridge);int ret;
@@ -1570,22 +1570,22 @@ static void tc_dpi_bridge_atomic_enable(struct drm_bridge *bridge,return ; } }static void tc_dpi_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct tc_data *tc =bridge_to_tc (bridge);int ret; ret =tc_dpi_stream_disable (tc);if (ret <0 )dev_err (tc->dev,"main link stream stop error: %d\n" , ret); }static void tc_edp_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct tc_data *tc =bridge_to_tc (bridge);int ret; ret =tc_get_display_props (tc);
@@ -1607,11 +1607,11 @@ static void tc_edp_bridge_atomic_enable(struct drm_bridge *bridge,return ;
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/bridge/ti-sn65dsi86.c +11 -11
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/ci/xfails/vkms-none-skips.txt +10 -10
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/display/drm_bridge_connector.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/display/drm_dp_mst_topology.c +13 -13
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/display/drm_dp_tunnel.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/display/drm_hdmi_state_helper.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/drm_atomic.c +64 -64
128 lines not on this page · raw message
drivers/gpu/drm/drm_atomic_helper.c +86 -86
172 lines not on this page · raw message
drivers/gpu/drm/drm_atomic_state_helper.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/drm_self_refresh_helper.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/drm_simple_kms_helper.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/exynos/exynos_drm_crtc.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/exynos/exynos_drm_plane.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_dp.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/g4x_hdmi.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/g4x_hdmi.h +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_atomic.c +8 -8
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_atomic.h +6 -6
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_audio.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_crt.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display.c +11 -11
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display.h +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display_core.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display_driver.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display_driver.h +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display_reset.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display_types.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_dp.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_dp_mst.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_fdi.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_hdmi.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_load_detect.c +10 -10
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_load_detect.h +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_modeset_lock.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_modeset_setup.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_pipe_crc.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_plane.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_psr.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_sdvo.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_sprite_uapi.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_tc.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_tv.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/imx/ipuv3/imx-drm-core.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/ingenic/ingenic-drm-drv.c +12 -12
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/logicvc/logicvc_layer.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/loongson/lsdc_output_7a1000.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/loongson/lsdc_output_7a2000.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/loongson/lsdc_plane.c +11 -11
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/meson/meson_encoder_cvbs.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/meson/meson_encoder_dsi.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/meson/meson_encoder_hdmi.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_drv.h +13 -13
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200eh.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200eh3.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200eh5.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200er.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200ev.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200ew3.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200se.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200wb.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_vga_bmc.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_writeback.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.h +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.h +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/msm_disp_snapshot.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/dispnv50/atom.h +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/dispnv50/disp.c +34 -34
68 lines not on this page · raw message
drivers/gpu/drm/nouveau/dispnv50/head.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/dispnv50/wndw.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nouveau_connector.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nouveau_display.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nouveau_encoder.h +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_du_crtc.c +9 -9
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_lvds.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.h +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rz-du/rzg2l_du_crtc.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/dw_dp-rockchip.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +11 -11
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c +9 -9
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/sun4i/sun4i_framebuffer.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/sysfb/drm_sysfb_helper.h +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/sysfb/drm_sysfb_modeset.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/tests/drm_atomic_commit_test.c renamed from drivers/gpu/drm/tests/drm_atomic_state_test.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/tests/drm_bridge_test.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c +44 -44
88 lines not on this page · raw message
drivers/gpu/drm/tests/drm_kunit_helpers.c +9 -9
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/vc4/tests/vc4_mock_output.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c +25 -25
50 lines not on this page · raw message
drivers/gpu/drm/verisilicon/vs_bridge.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/verisilicon/vs_primary_plane.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/virtio/virtgpu_display.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.h +2 -2
Lines of this file are not shown. View the raw message.
include/drm/display/drm_dp_mst_helper.h +16 -16
Lines of this file are not shown. View the raw message.
include/drm/display/drm_hdmi_state_helper.h +3 -3
Lines of this file are not shown. View the raw message.
include/drm/drm_atomic.h +79 -79
158 lines not on this page · raw message
include/drm/drm_atomic_helper.h +39 -39
78 lines not on this page · raw message
include/drm/drm_modeset_helper_vtables.h +22 -22
44 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.53.0
Part of the diff is not shown here. View the raw message.
Maxime Ripard
maintainerPATCH v2 2/2 Documentation: drm: Remove drm_atomic_state rename entry
In reply to Maxime RipardWe just did that item so we can remove it.
--- Documentation/gpu/todo.rst | 23 ----------------------- 1 file changed, 23 deletions(-)
Documentation/gpu/todo.rst +0 -23
@@ -118,33 +118,10 @@ still look at that flag. Contact: Simona Vetter, respective driver maintainers Level: Advanced -Rename drm_atomic_commit ------------------------ - -The KMS framework uses two slightly different definitions for the ``state`` -concept. For a given object (plane, CRTC, encoder, etc., so -``drm_$OBJECT_state``), the state is the entire state of that object. However, -at the device level, ``drm_atomic_commit`` refers to a state update for a -limited number of objects. - -The state isn't the entire device state, but only the full state of some -objects in that device. This is confusing to newcomers, and -``drm_atomic_commit`` should be renamed to something clearer like -``drm_atomic_commit``. - -In addition to renaming the structure itself, it would also imply renaming some -related functions (``drm_atomic_commit_alloc``, ``drm_atomic_commit_get``, -``drm_atomic_commit_put``, ``drm_atomic_commit_init``, -``__drm_atomic_commit_free``, etc.). - -Contact: Maxime Ripard <[email protected]> - -Level: Advanced - Fallout from atomic KMS ----------------------- ``drm_atomic_helper.c`` provides a batch of functions which implement legacy IOCTLs on top of the new atomic driver interface. Which is really nice for
Signature · 1 line
2.53.0
Thomas Zimmermann
maintainerHi
Am 31.03.26 um 16:41 schrieb Maxime Ripard:
Quoted 6 lines
The KMS framework uses two slightly different definitions for the state concept. For a given object (plane, CRTC, encoder, etc., so drm_$OBJECT_state), the state is the entire state of that object. However, at the device level,
drm_atomic_staterefers to a state update for a limited number of objects.
Quoted 6 lines
Thus,
drm_atomic_stateisn't the entire device state, but only the full state of some objects in that device. This has been an endless source of confusion and thus bugs.We can rename
drm_atomic_statetodrm_atomic_committo make it less confusing.
Nit: The subject should already spell out the new name.
Quoted 6 lines
This patch was created using:
rg -l
drm_atomic_state| \
xargs sed -i 's/drm_atomic_state/drm_atomic_commit/g; s/drm_atomic_commit_helper/drm_atomic_state_helper/g'
mvdrivers/gpu/drm/tests/drm_atomic_state_test.cdrivers/gpu/drm/tests/drm_atomic_commit_test.c
We now have many places that read like "struct drm_atomic_commit *state', which mixes up terminology. Is there a way of transforming this automatically to use 'commit' for the variable's name?
Best regards
Thomas
Quoted 21,343 lines
Acked-by Simona Vetter <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- Documentation/gpu/drm-kms.rst | 14 +- Documentation/gpu/komeda-kms.rst | 6 +- Documentation/gpu/todo.rst | 12 +- drivers/gpu/drm/adp/adp_drv.c | 12 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 10 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 62 ++++---- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 6 +- .../drm/amd/display/amdgpu_dm/amdgpu_dm_color.c | 12 +- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 4 +- .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 22 +-- .../amd/display/amdgpu_dm/amdgpu_dm_mst_types.h | 4 +- .../drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 6 +- .../drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h | 20 +-- drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 8 +- drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 10 +- .../gpu/drm/arm/display/komeda/komeda_pipeline.h | 14 +- .../drm/arm/display/komeda/komeda_pipeline_state.c | 28 ++-- drivers/gpu/drm/arm/display/komeda/komeda_plane.c | 4 +- drivers/gpu/drm/arm/hdlcd_crtc.c | 10 +- drivers/gpu/drm/arm/malidp_crtc.c | 6 +- drivers/gpu/drm/arm/malidp_drv.c | 4 +- drivers/gpu/drm/arm/malidp_mw.c | 2 +- drivers/gpu/drm/arm/malidp_mw.h | 2 +- drivers/gpu/drm/arm/malidp_planes.c | 6 +- drivers/gpu/drm/armada/armada_crtc.c | 10 +- drivers/gpu/drm/armada/armada_overlay.c | 10 +- drivers/gpu/drm/armada/armada_plane.c | 6 +- drivers/gpu/drm/armada/armada_plane.h | 2 +- drivers/gpu/drm/ast/ast_cursor.c | 6 +- drivers/gpu/drm/ast/ast_dp.c | 4 +- drivers/gpu/drm/ast/ast_dp501.c | 4 +- drivers/gpu/drm/ast/ast_mode.c | 18 +-- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 10 +- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 2 +- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 6 +- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 4 +- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 14 +- drivers/gpu/drm/bridge/analogix/anx7625.c | 4 +- drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c | 4 +- .../gpu/drm/bridge/cadence/cdns-mhdp8546-core.c | 6 +- drivers/gpu/drm/bridge/chipone-icn6211.c | 6 +- drivers/gpu/drm/bridge/fsl-ldb.c | 4 +- drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c | 4 +- drivers/gpu/drm/bridge/imx/imx8qm-ldb.c | 4 +- drivers/gpu/drm/bridge/imx/imx8qxp-ldb.c | 6 +- .../gpu/drm/bridge/imx/imx8qxp-pixel-combiner.c | 2 +- drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c | 4 +- drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c | 2 +- drivers/gpu/drm/bridge/inno-hdmi.c | 6 +- drivers/gpu/drm/bridge/ite-it6263.c | 4 +- drivers/gpu/drm/bridge/ite-it6505.c | 8 +- drivers/gpu/drm/bridge/ite-it66121.c | 4 +- drivers/gpu/drm/bridge/lontium-lt9211.c | 4 +- drivers/gpu/drm/bridge/lontium-lt9611.c | 8 +- drivers/gpu/drm/bridge/nwl-dsi.c | 4 +- drivers/gpu/drm/bridge/panel.c | 8 +- drivers/gpu/drm/bridge/parade-ps8640.c | 4 +- drivers/gpu/drm/bridge/samsung-dsim.c | 8 +- drivers/gpu/drm/bridge/sii902x.c | 4 +- drivers/gpu/drm/bridge/ssd2825.c | 6 +- drivers/gpu/drm/bridge/synopsys/dw-dp.c | 4 +- drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c | 4 +- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 +- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 6 +- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c | 6 +- drivers/gpu/drm/bridge/tc358762.c | 6 +- drivers/gpu/drm/bridge/tc358767.c | 8 +- drivers/gpu/drm/bridge/tc358768.c | 8 +- drivers/gpu/drm/bridge/tc358775.c | 6 +- drivers/gpu/drm/bridge/ti-dlpc3433.c | 6 +- drivers/gpu/drm/bridge/ti-sn65dsi83.c | 6 +- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 22 +-- drivers/gpu/drm/bridge/ti-tdp158.c | 4 +- drivers/gpu/drm/ci/xfails/vkms-none-skips.txt | 20 +-- drivers/gpu/drm/display/drm_bridge_connector.c | 2 +- drivers/gpu/drm/display/drm_dp_mst_topology.c | 26 ++-- drivers/gpu/drm/display/drm_dp_tunnel.c | 14 +- drivers/gpu/drm/display/drm_hdmi_state_helper.c | 6 +- drivers/gpu/drm/drm_atomic.c | 128 +++++++-------- drivers/gpu/drm/drm_atomic_helper.c | 172 ++++++++++----------- drivers/gpu/drm/drm_atomic_state_helper.c | 2 +- drivers/gpu/drm/drm_atomic_uapi.c | 28 ++-- drivers/gpu/drm/drm_blend.c | 8 +- drivers/gpu/drm/drm_bridge.c | 14 +- drivers/gpu/drm/drm_client_modeset.c | 8 +- drivers/gpu/drm/drm_color_mgmt.c | 6 +- drivers/gpu/drm/drm_crtc_helper.c | 2 +- drivers/gpu/drm/drm_crtc_internal.h | 10 +- drivers/gpu/drm/drm_damage_helper.c | 10 +- drivers/gpu/drm/drm_fb_helper.c | 8 +- drivers/gpu/drm/drm_framebuffer.c | 8 +- drivers/gpu/drm/drm_mode_object.c | 8 +- drivers/gpu/drm/drm_modeset_helper.c | 2 +- drivers/gpu/drm/drm_self_refresh_helper.c | 12 +- drivers/gpu/drm/drm_simple_kms_helper.c | 10 +- drivers/gpu/drm/drm_vblank_helper.c | 6 +- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 10 +- drivers/gpu/drm/exynos/exynos_drm_plane.c | 6 +- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 6 +- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c | 6 +- drivers/gpu/drm/gud/gud_connector.c | 10 +- drivers/gpu/drm/gud/gud_internal.h | 8 +- drivers/gpu/drm/gud/gud_pipe.c | 8 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 12 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_dp.c | 4 +- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 14 +- drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 6 +- drivers/gpu/drm/i915/display/g4x_hdmi.c | 2 +- drivers/gpu/drm/i915/display/g4x_hdmi.h | 6 +- drivers/gpu/drm/i915/display/i9xx_wm.c | 10 +- drivers/gpu/drm/i915/display/intel_atomic.c | 16 +- drivers/gpu/drm/i915/display/intel_atomic.h | 12 +- drivers/gpu/drm/i915/display/intel_audio.c | 8 +- drivers/gpu/drm/i915/display/intel_crt.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 22 +-- drivers/gpu/drm/i915/display/intel_display.h | 6 +- drivers/gpu/drm/i915/display/intel_display_core.h | 2 +- .../gpu/drm/i915/display/intel_display_driver.c | 8 +- .../gpu/drm/i915/display/intel_display_driver.h | 4 +- drivers/gpu/drm/i915/display/intel_display_reset.c | 8 +- drivers/gpu/drm/i915/display/intel_display_types.h | 2 +- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_dp_mst.c | 6 +- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 2 +- drivers/gpu/drm/i915/display/intel_fdi.c | 2 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 2 +- drivers/gpu/drm/i915/display/intel_load_detect.c | 20 +-- drivers/gpu/drm/i915/display/intel_load_detect.h | 6 +- drivers/gpu/drm/i915/display/intel_modeset_lock.c | 2 +- drivers/gpu/drm/i915/display/intel_modeset_setup.c | 6 +- drivers/gpu/drm/i915/display/intel_pipe_crc.c | 8 +- drivers/gpu/drm/i915/display/intel_plane.c | 2 +- drivers/gpu/drm/i915/display/intel_psr.c | 8 +- drivers/gpu/drm/i915/display/intel_sdvo.c | 2 +- drivers/gpu/drm/i915/display/intel_sprite_uapi.c | 8 +- drivers/gpu/drm/i915/display/intel_tc.c | 6 +- drivers/gpu/drm/i915/display/intel_tv.c | 4 +- drivers/gpu/drm/imx/dc/dc-crtc.c | 10 +- drivers/gpu/drm/imx/dc/dc-plane.c | 6 +- drivers/gpu/drm/imx/dcss/dcss-crtc.c | 8 +- drivers/gpu/drm/imx/dcss/dcss-plane.c | 6 +- drivers/gpu/drm/imx/ipuv3/imx-drm-core.c | 4 +- drivers/gpu/drm/imx/ipuv3/imx-drm.h | 2 +- drivers/gpu/drm/imx/ipuv3/ipuv3-crtc.c | 10 +- drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c | 8 +- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 24 +-- drivers/gpu/drm/ingenic/ingenic-ipu.c | 10 +- drivers/gpu/drm/kmb/kmb_crtc.c | 10 +- drivers/gpu/drm/kmb/kmb_drv.h | 2 +- drivers/gpu/drm/kmb/kmb_dsi.c | 4 +- drivers/gpu/drm/kmb/kmb_dsi.h | 2 +- drivers/gpu/drm/kmb/kmb_plane.c | 6 +- drivers/gpu/drm/logicvc/logicvc_crtc.c | 6 +- drivers/gpu/drm/logicvc/logicvc_layer.c | 6 +- drivers/gpu/drm/loongson/lsdc_crtc.c | 8 +- drivers/gpu/drm/loongson/lsdc_output_7a1000.c | 2 +- drivers/gpu/drm/loongson/lsdc_output_7a2000.c | 6 +- drivers/gpu/drm/loongson/lsdc_plane.c | 22 +-- drivers/gpu/drm/mediatek/mtk_crtc.c | 12 +- drivers/gpu/drm/mediatek/mtk_crtc.h | 2 +- drivers/gpu/drm/mediatek/mtk_dp.c | 4 +- drivers/gpu/drm/mediatek/mtk_drm_drv.h | 2 +- drivers/gpu/drm/mediatek/mtk_dsi.c | 8 +- drivers/gpu/drm/mediatek/mtk_hdmi.c | 8 +- drivers/gpu/drm/mediatek/mtk_hdmi_v2.c | 8 +- drivers/gpu/drm/mediatek/mtk_plane.c | 10 +- drivers/gpu/drm/meson/meson_crtc.c | 12 +- drivers/gpu/drm/meson/meson_encoder_cvbs.c | 4 +- drivers/gpu/drm/meson/meson_encoder_dsi.c | 4 +- drivers/gpu/drm/meson/meson_encoder_hdmi.c | 4 +- drivers/gpu/drm/meson/meson_overlay.c | 6 +- drivers/gpu/drm/meson/meson_plane.c | 6 +- drivers/gpu/drm/mgag200/mgag200_drv.h | 26 ++-- drivers/gpu/drm/mgag200/mgag200_g200.c | 4 +- drivers/gpu/drm/mgag200/mgag200_g200eh.c | 4 +- drivers/gpu/drm/mgag200/mgag200_g200eh3.c | 2 +- drivers/gpu/drm/mgag200/mgag200_g200eh5.c | 2 +- drivers/gpu/drm/mgag200/mgag200_g200er.c | 6 +- drivers/gpu/drm/mgag200/mgag200_g200ev.c | 6 +- drivers/gpu/drm/mgag200/mgag200_g200ew3.c | 2 +- drivers/gpu/drm/mgag200/mgag200_g200se.c | 10 +- drivers/gpu/drm/mgag200/mgag200_g200wb.c | 4 +- drivers/gpu/drm/mgag200/mgag200_mode.c | 18 +-- drivers/gpu/drm/mgag200/mgag200_vga_bmc.c | 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 12 +- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 8 +- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h | 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 12 +- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_writeback.c | 2 +- drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c | 10 +- drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 10 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.h | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.c | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.h | 4 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 8 +- drivers/gpu/drm/msm/disp/msm_disp_snapshot.h | 2 +- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 2 +- drivers/gpu/drm/msm/dp/dp_display.c | 6 +- drivers/gpu/drm/msm/dp/dp_drm.c | 6 +- drivers/gpu/drm/msm/dp/dp_drm.h | 6 +- drivers/gpu/drm/msm/hdmi/hdmi_bridge.c | 4 +- drivers/gpu/drm/msm/msm_atomic.c | 8 +- drivers/gpu/drm/msm/msm_drv.h | 6 +- drivers/gpu/drm/msm/msm_kms.h | 4 +- drivers/gpu/drm/mxsfb/lcdif_kms.c | 12 +- drivers/gpu/drm/mxsfb/mxsfb_kms.c | 16 +- drivers/gpu/drm/nouveau/dispnv50/atom.h | 6 +- drivers/gpu/drm/nouveau/dispnv50/crc.c | 16 +- drivers/gpu/drm/nouveau/dispnv50/crc.h | 16 +- drivers/gpu/drm/nouveau/dispnv50/disp.c | 68 ++++---- drivers/gpu/drm/nouveau/dispnv50/head.c | 2 +- drivers/gpu/drm/nouveau/dispnv50/wndw.c | 2 +- drivers/gpu/drm/nouveau/nouveau_connector.c | 2 +- drivers/gpu/drm/nouveau/nouveau_display.h | 2 +- drivers/gpu/drm/nouveau/nouveau_encoder.h | 4 +- drivers/gpu/drm/omapdrm/dss/hdmi4.c | 4 +- drivers/gpu/drm/omapdrm/dss/hdmi5.c | 4 +- drivers/gpu/drm/omapdrm/omap_crtc.c | 10 +- drivers/gpu/drm/omapdrm/omap_drv.c | 14 +- drivers/gpu/drm/omapdrm/omap_drv.h | 2 +- drivers/gpu/drm/omapdrm/omap_overlay.c | 4 +- drivers/gpu/drm/omapdrm/omap_overlay.h | 4 +- drivers/gpu/drm/omapdrm/omap_plane.c | 6 +- drivers/gpu/drm/qxl/qxl_display.c | 16 +- drivers/gpu/drm/renesas/rcar-du/rcar_du_crtc.c | 18 +-- drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c | 4 +- drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c | 6 +- drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.h | 2 +- drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c | 4 +- drivers/gpu/drm/renesas/rcar-du/rcar_lvds.c | 6 +- drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c | 6 +- drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.h | 6 +- drivers/gpu/drm/renesas/rz-du/rzg2l_du_crtc.c | 6 +- drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c | 4 +- drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c | 8 +- drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c | 6 +- drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c | 6 +- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 6 +- drivers/gpu/drm/rockchip/cdn-dp-core.c | 4 +- drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c | 2 +- drivers/gpu/drm/rockchip/dw_dp-rockchip.c | 2 +- drivers/gpu/drm/rockchip/rk3066_hdmi.c | 6 +- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 22 +-- drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 18 +-- drivers/gpu/drm/sitronix/st7571.c | 10 +- drivers/gpu/drm/sitronix/st7920.c | 12 +- drivers/gpu/drm/solomon/ssd130x.c | 32 ++-- drivers/gpu/drm/sprd/sprd_dpu.c | 12 +- drivers/gpu/drm/sti/sti_crtc.c | 6 +- drivers/gpu/drm/sti/sti_cursor.c | 6 +- drivers/gpu/drm/sti/sti_gdp.c | 6 +- drivers/gpu/drm/sti/sti_hqvdp.c | 6 +- drivers/gpu/drm/stm/drv.c | 2 +- drivers/gpu/drm/stm/ltdc.c | 12 +- drivers/gpu/drm/stm/ltdc.h | 2 +- drivers/gpu/drm/stm/lvds.c | 6 +- drivers/gpu/drm/sun4i/sun4i_backend.c | 4 +- drivers/gpu/drm/sun4i/sun4i_crtc.c | 10 +- drivers/gpu/drm/sun4i/sun4i_framebuffer.c | 2 +- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 4 +- drivers/gpu/drm/sun4i/sun4i_layer.c | 4 +- drivers/gpu/drm/sun4i/sun4i_tv.c | 4 +- drivers/gpu/drm/sun4i/sun8i_mixer.c | 2 +- drivers/gpu/drm/sun4i/sun8i_ui_layer.c | 4 +- drivers/gpu/drm/sun4i/sun8i_vi_layer.c | 4 +- drivers/gpu/drm/sun4i/sunxi_engine.h | 4 +- drivers/gpu/drm/sysfb/drm_sysfb_helper.h | 8 +- drivers/gpu/drm/sysfb/drm_sysfb_modeset.c | 8 +- drivers/gpu/drm/sysfb/ofdrm.c | 2 +- drivers/gpu/drm/sysfb/vesadrm.c | 4 +- drivers/gpu/drm/tegra/dc.c | 32 ++-- drivers/gpu/drm/tegra/dc.h | 2 +- drivers/gpu/drm/tegra/drm.c | 6 +- drivers/gpu/drm/tegra/hub.c | 12 +- drivers/gpu/drm/tegra/hub.h | 4 +- drivers/gpu/drm/tests/Makefile | 2 +- ...tomic_state_test.c => drm_atomic_commit_test.c} | 12 +- drivers/gpu/drm/tests/drm_bridge_test.c | 8 +- drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 88 +++++------ drivers/gpu/drm/tests/drm_kunit_helpers.c | 18 +-- drivers/gpu/drm/tidss/tidss_crtc.c | 10 +- drivers/gpu/drm/tidss/tidss_kms.c | 4 +- drivers/gpu/drm/tidss/tidss_oldi.c | 4 +- drivers/gpu/drm/tidss/tidss_plane.c | 8 +- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 8 +- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +- drivers/gpu/drm/tilcdc/tilcdc_plane.c | 4 +- drivers/gpu/drm/tiny/appletbdrm.c | 6 +- drivers/gpu/drm/tiny/bochs.c | 10 +- drivers/gpu/drm/tiny/cirrus-qemu.c | 8 +- drivers/gpu/drm/tiny/pixpaper.c | 10 +- drivers/gpu/drm/tiny/sharp-memory.c | 10 +- drivers/gpu/drm/udl/udl_modeset.c | 8 +- drivers/gpu/drm/vboxvideo/vbox_mode.c | 18 +-- drivers/gpu/drm/vc4/tests/vc4_mock.h | 4 +- drivers/gpu/drm/vc4/tests/vc4_mock_output.c | 4 +- drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c | 50 +++--- drivers/gpu/drm/vc4/vc4_crtc.c | 10 +- drivers/gpu/drm/vc4/vc4_drv.h | 28 ++-- drivers/gpu/drm/vc4/vc4_dsi.c | 8 +- drivers/gpu/drm/vc4/vc4_hdmi.c | 12 +- drivers/gpu/drm/vc4/vc4_hvs.c | 10 +- drivers/gpu/drm/vc4/vc4_kms.c | 30 ++-- drivers/gpu/drm/vc4/vc4_plane.c | 8 +- drivers/gpu/drm/vc4/vc4_txp.c | 10 +- drivers/gpu/drm/vc4/vc4_vec.c | 4 +- drivers/gpu/drm/verisilicon/vs_bridge.c | 6 +- drivers/gpu/drm/verisilicon/vs_crtc.c | 4 +- drivers/gpu/drm/verisilicon/vs_primary_plane.c | 8 +- drivers/gpu/drm/virtio/virtgpu_display.c | 8 +- drivers/gpu/drm/virtio/virtgpu_plane.c | 6 +- drivers/gpu/drm/vkms/vkms_crtc.c | 6 +- drivers/gpu/drm/vkms/vkms_drv.c | 4 +- drivers/gpu/drm/vkms/vkms_plane.c | 4 +- drivers/gpu/drm/vkms/vkms_writeback.c | 4 +- drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c | 4 +- drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.h | 4 +- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 18 +-- drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | 6 +- drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c | 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | 4 +- drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 8 +- drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c | 8 +- drivers/gpu/drm/vmwgfx/vmwgfx_vkms.h | 10 +- drivers/gpu/drm/xlnx/zynqmp_dp.c | 6 +- drivers/gpu/drm/xlnx/zynqmp_kms.c | 16 +- include/drm/display/drm_dp_mst_helper.h | 32 ++-- include/drm/display/drm_dp_tunnel.h | 24 +-- include/drm/display/drm_hdmi_state_helper.h | 6 +- include/drm/drm_atomic.h | 158 +++++++++---------- include/drm/drm_atomic_helper.h | 78 +++++----- include/drm/drm_atomic_state_helper.h | 4 +- include/drm/drm_blend.h | 4 +- include/drm/drm_bridge.h | 16 +- include/drm/drm_colorop.h | 4 +- include/drm/drm_connector.h | 6 +- include/drm/drm_crtc.h | 10 +- include/drm/drm_crtc_helper.h | 4 +- include/drm/drm_damage_helper.h | 2 +- include/drm/drm_kunit_helpers.h | 2 +- include/drm/drm_mode_config.h | 38 ++--- include/drm/drm_modeset_helper_vtables.h | 44 +++--- include/drm/drm_plane.h | 6 +- include/drm/drm_self_refresh_helper.h | 6 +- include/drm/drm_vblank_helper.h | 8 +- 354 files changed, 1729 insertions(+), 1729 deletions(-)Documentation/gpu/drm-kms.rst +7
-7@@ -204,15 +204,15 @@ Atomic Mode Setting subgraph cluster_state { style=dashed label="Free-standing state" - "drm_atomic_state" -> "duplicated drm_plane_state A" - "drm_atomic_state" -> "duplicated drm_plane_state B" - "drm_atomic_state" -> "duplicated drm_crtc_state" - "drm_atomic_state" -> "duplicated drm_connector_state" - "drm_atomic_state" -> "duplicated driver private state" + "drm_atomic_commit" -> "duplicated drm_plane_state A" + "drm_atomic_commit" -> "duplicated drm_plane_state B" + "drm_atomic_commit" -> "duplicated drm_crtc_state" + "drm_atomic_commit" -> "duplicated drm_connector_state" + "drm_atomic_commit" -> "duplicated driver private state" } subgraph cluster_current { style=dashed label="Current state"@@ -228,11 +228,11 @@ Atomic Mode Setting "drm_crtc" -> "drm_crtc_state" "drm_connector" -> "drm_connector_state" "driver private object" -> "driver private state" } - "drm_atomic_state" -> "drm_device" [label="atomic_commit"] + "drm_atomic_commit" -> "drm_device" [label="atomic_commit"] "duplicated drm_plane_state A" -> "drm_device"[style=invis] } Atomic provides transactional modeset (including planes) updates, but a bit differently from the usual transactional approach of try-commit and@@ -263,11 +263,11 @@ Taken all together there's two consequences for the atomic design: can subclass these structures through embedding, or add entirely new state structures for their globally shared hardware functions, see :c:type:`struct drm_private_state<drm_private_state>`. - An atomic update is assembled and validated as an entirely free-standing pile - of structures within the :c:type:`drm_atomic_state <drm_atomic_state>` + of structures within the :c:type:`drm_atomic_commit <drm_atomic_commit>` container. Driver private state structures are also tracked in the same structure; see the next chapter. Only when a state is committed is it applied to the driver and modeset objects. This way rolling back an update boils down to releasing memory and unreferencing objects like framebuffers.Documentation/gpu/komeda-kms.rst +3
-3@@ -365,11 +365,11 @@ So, one KMS-Obj represents a sub-pipeline of komeda resources. - Crtc: `Display output pipeline`_ So, for komeda, we treat KMS crtc/plane/connector as users of pipeline and component, and at any one time a pipeline/component only can be used by one user. And pipeline/component will be treated as private object of DRM-KMS; the -state will be managed by drm_atomic_state as well. +state will be managed by drm_atomic_commit as well. How to map plane to Layer(input) pipeline ----------------------------------------- Komeda has multiple Layer input pipelines, see:@@ -414,11 +414,11 @@ Add :c:type:`drm_private_obj` to :c:type:`komeda_component`, :c:type:`komeda_pip struct komeda_pipeline { struct drm_private_obj obj; } -Tracking component_state/pipeline_state by drm_atomic_state +Tracking component_state/pipeline_state by drm_atomic_commit ----------------------------------------------------------- Add :c:type:`drm_private_state` and user to :c:type:`komeda_component_state`, :c:type:`komeda_pipeline_state`@@ -452,11 +452,11 @@ similar, usually including the following steps: setup 1: check if component is needed, like the scaler is optional depending on the user_state; if unneeded, just return, and the caller will put the data flow into next stage. Setup 2: check user_state with component features and capabilities to see if requirements can be met; if not, return fail. - Setup 3: get component_state from drm_atomic_state, and try set to set + Setup 3: get component_state from drm_atomic_commit, and try set to set user to component; fail if component has been assigned to another user already. Setup 3: configure the component_state, like set its input component, convert user_state to component specific state. Setup 4: adjust the input_dflow and prepare it for the next stage.Documentation/gpu/todo.rst +6
-6@@ -118,28 +118,28 @@ still look at that flag. Contact: Simona Vetter, respective driver maintainers Level: Advanced -Rename drm_atomic_state +Rename drm_atomic_commit ----------------------- The KMS framework uses two slightly different definitions for the ``state`` concept. For a given object (plane, CRTC, encoder, etc., so ``drm_$OBJECT_state``), the state is the entire state of that object. However, -at the device level, ``drm_atomic_state`` refers to a state update for a +at the device level, ``drm_atomic_commit`` refers to a state update for a limited number of objects. The state isn't the entire device state, but only the full state of some objects in that device. This is confusing to newcomers, and -``drm_atomic_state`` should be renamed to something clearer like +``drm_atomic_commit`` should be renamed to something clearer like ``drm_atomic_commit``. In addition to renaming the structure itself, it would also imply renaming some -related functions (``drm_atomic_state_alloc``, ``drm_atomic_state_get``, -``drm_atomic_state_put``, ``drm_atomic_state_init``, -``__drm_atomic_state_free``, etc.). +related functions (``drm_atomic_commit_alloc``, ``drm_atomic_commit_get``, +``drm_atomic_commit_put``, ``drm_atomic_commit_init``, +``__drm_atomic_commit_free``, etc.). Contact: Maxime Ripard <[email protected]> Level: Advanceddrivers/gpu/drm/adp/adp_drv.c +6
-6@@ -127,11 +127,11 @@ struct adp_drv_private {#define to_adp (x) container_of(x, struct adp_drv_private, drm)#define crtc_to_adp (x) container_of(x, struct adp_drv_private, crtc)static int adp_plane_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state;struct drm_crtc_state *crtc_state; new_plane_state =drm_atomic_get_new_plane_state (state, plane);@@ -149,11 +149,11 @@ static int adp_plane_atomic_check(struct drm_plane *plane,DRM_PLANE_NO_SCALING , true, true); }static void adp_plane_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct adp_drv_private *adp;struct drm_rect src_rect;struct drm_gem_dma_object *obj;struct drm_framebuffer *fb;@@ -191,11 +191,11 @@ static void adp_plane_atomic_update(struct drm_plane *plane,writel (ADBE_LAYER_CTL_ENABLE |BIT (0 ), adp->be +ADBE_LAYER_CTL );writel (ADBE_PIX_FMT_XRGB32 , adp->be +ADBE_PIX_FMT ); }static void adp_plane_atomic_disable (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct adp_drv_private *adp =to_adp (plane->dev);writel (0x0 , adp->be +ADBE_LAYER_EN1 );writel (0x0 , adp->be +ADBE_LAYER_EN2 );@@ -277,11 +277,11 @@ static void adp_crtc_disable_vblank(struct drm_crtc *crtc)adp_disable_vblank (adp); }static void adp_crtc_atomic_enable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct adp_drv_private *adp =crtc_to_adp (crtc);writel (BIT (0 ), adp->be +ADBE_BLEND_EN2 );writel (BIT (4 ), adp->be +ADBE_BLEND_EN1 );@@ -290,11 +290,11 @@ static void adp_crtc_atomic_enable(struct drm_crtc *crtc,writel (BIT (0 ), adp->be +ADBE_BLEND_EN4 );drm_crtc_vblank_on (crtc); }static void adp_crtc_atomic_disable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct adp_drv_private *adp =crtc_to_adp (crtc);struct drm_crtc_state *old_state =drm_atomic_get_old_crtc_state (state, crtc);drm_atomic_helper_disable_planes_on_crtc (old_state, false);@@ -306,11 +306,11 @@ static void adp_crtc_atomic_disable(struct drm_crtc *crtc,writel (0x0 , adp->be +ADBE_BLEND_EN4 );drm_crtc_vblank_off (crtc); }static void adp_crtc_atomic_flush (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {u32 frame_num =1 ;unsigned long flags;struct adp_drv_private *adp =crtc_to_adp (crtc);struct drm_crtc_state *new_state =drm_atomic_get_new_crtc_state (state, crtc);drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c +5
-5@@ -128,23 +128,23 @@ static const struct drm_crtc_funcs amdgpu_vkms_crtc_funcs = { .disable_vblank = amdgpu_vkms_disable_vblank, .get_vblank_timestamp = amdgpu_vkms_get_vblank_timestamp, };static void amdgpu_vkms_crtc_atomic_enable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {drm_crtc_vblank_on (crtc); }static void amdgpu_vkms_crtc_atomic_disable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {drm_crtc_vblank_off (crtc); }static void amdgpu_vkms_crtc_atomic_flush (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {unsigned long flags;if (crtc->state->event) {spin_lock_irqsave (&crtc->dev->event_lock, flags);@@ -260,17 +260,17 @@ static const struct drm_plane_funcs amdgpu_vkms_plane_funcs = { .atomic_duplicate_state = drm_atomic_helper_plane_duplicate_state, .atomic_destroy_state = drm_atomic_helper_plane_destroy_state, };static void amdgpu_vkms_plane_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {return ; }static int amdgpu_vkms_plane_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct drm_crtc_state *crtc_state;int ret;drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +31
-31@@ -229,15 +229,15 @@ static int amdgpu_dm_encoder_init(struct drm_device *dev,struct amdgpu_encoder *aencoder, uint32_t link_index);static int amdgpu_dm_connector_get_modes (struct drm_connector *connector); -static int amdgpu_dm_atomic_setup_commit (struct drm_atomic_state *state); -static void amdgpu_dm_atomic_commit_tail (struct drm_atomic_state *state); +static int amdgpu_dm_atomic_setup_commit (struct drm_atomic_commit *state); +static void amdgpu_dm_atomic_commit_tail (struct drm_atomic_commit *state);static int amdgpu_dm_atomic_check (struct drm_device *dev, -struct drm_atomic_state *state); +struct drm_atomic_commit *state);static void handle_hpd_irq_helper (struct amdgpu_dm_connector *aconnector);static void handle_hpd_rx_irq (void *param); static void amdgpu_dm_backlight_set_level(struct amdgpu_display_manager *dm,@@ -3327,11 +3327,11 @@ static int dm_suspend(struct amdgpu_ip_block *ip_block)return 0 ; }struct drm_connector * -amdgpu_dm_find_first_crtc_matching_connector (struct drm_atomic_state *state, +amdgpu_dm_find_first_crtc_matching_connector (struct drm_atomic_commit *state,struct drm_crtc *crtc) {u32 i;struct drm_connector_state *new_con_state;struct drm_connector *connector;@@ -4830,11 +4830,11 @@ static int register_outbox_irq_handlers(struct amdgpu_device *adev)* Acquires the lock for the atomic state object and returns * the new atomic state. * * This should only be called during atomic check. */ -int dm_atomic_get_state (struct drm_atomic_state *state, +int dm_atomic_get_state (struct drm_atomic_commit *state,struct dm_atomic_state **dm_state) {struct drm_device *dev = state->dev;struct amdgpu_device *adev =drm_to_adev (dev);struct amdgpu_display_manager *dm = &adev->dm;@@ -4851,11 +4851,11 @@ int dm_atomic_get_state(struct drm_atomic_state *state,return 0 ; }static struct dm_atomic_state * -dm_atomic_get_new_state (struct drm_atomic_state *state) +dm_atomic_get_new_state (struct drm_atomic_commit *state) {struct drm_device *dev = state->dev;struct amdgpu_device *adev =drm_to_adev (dev);struct amdgpu_display_manager *dm = &adev->dm;struct drm_private_obj *obj;@@ -8293,11 +8293,11 @@ static int fill_hdr_info_packet(const struct drm_connector_state *state,return 0 ; }static int amdgpu_dm_connector_atomic_check (struct drm_connector *conn, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_connector_state *new_con_state =drm_atomic_get_new_connector_state (state, conn);struct drm_connector_state *old_con_state =drm_atomic_get_old_connector_state (state, conn);@@ -8415,11 +8415,11 @@ int convert_dc_color_depth_into_bpc(enum dc_color_depth display_color_depth)static int dm_encoder_helper_atomic_check (struct drm_encoder *encoder,struct drm_crtc_state *crtc_state,struct drm_connector_state *conn_state) { -struct drm_atomic_state *state = crtc_state->state; +struct drm_atomic_commit *state = crtc_state->state;struct drm_connector *connector = conn_state->connector;struct amdgpu_dm_connector *aconnector =to_amdgpu_dm_connector (connector);struct dm_connector_state *dm_new_connector_state =to_dm_connector_state (conn_state);const struct drm_display_mode *adjusted_mode = &crtc_state->adjusted_mode;struct drm_dp_mst_topology_mgr *mst_mgr;@@ -8487,11 +8487,11 @@ static int dm_encoder_helper_atomic_check(struct drm_encoder *encoder,const struct drm_encoder_helper_funcs amdgpu_dm_encoder_helper_funcs = { .disable = dm_encoder_helper_disable, .atomic_check = dm_encoder_helper_atomic_check }; -static int dm_update_mst_vcpi_slots_for_dsc (struct drm_atomic_state *state, +static int dm_update_mst_vcpi_slots_for_dsc (struct drm_atomic_commit *state,struct dc_state *dc_state,struct dsc_mst_fairness_vars *vars) {struct dc_stream_state *stream =NULL ;struct drm_connector *connector;@@ -9773,11 +9773,11 @@ static void amdgpu_dm_handle_vrr_transition(struct dm_crtc_state *old_state,drm_dbg_driver (new_state->base.crtc->dev,"%s: crtc=%u VRR on->off: Drop vblank ref\n" , __func__, new_state->base.crtc->base.id); } } -static void amdgpu_dm_commit_cursors (struct drm_atomic_state *state) +static void amdgpu_dm_commit_cursors (struct drm_atomic_commit *state) {struct drm_plane *plane;struct drm_plane_state *old_plane_state;int i;@@ -9920,11 +9920,11 @@ static void amdgpu_dm_enable_self_refresh(struct amdgpu_crtc *acrtc_attach, }else { acrtc_attach->dm_irq_params.allow_sr_entry = false; } } -static void amdgpu_dm_commit_planes (struct drm_atomic_state *state, +static void amdgpu_dm_commit_planes (struct drm_atomic_commit *state,struct drm_device *dev,struct amdgpu_display_manager *dm,struct drm_crtc *pcrtc,bool wait_for_vblank) {@@ -10314,11 +10314,11 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state, cleanup:kfree (bundle); }static void amdgpu_dm_commit_audio (struct drm_device *dev, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct amdgpu_device *adev =drm_to_adev (dev);struct amdgpu_dm_connector *aconnector;struct drm_connector *connector;struct drm_connector_state *old_con_state, *new_con_state;@@ -10414,11 +10414,11 @@ static void dm_clear_writeback(struct amdgpu_display_manager *dm, struct dm_crtc_state *crtc_state) {dc_stream_remove_writeback (dm->dc, crtc_state->stream,0 ); } -static void amdgpu_dm_commit_streams (struct drm_atomic_state *state, +static void amdgpu_dm_commit_streams (struct drm_atomic_commit *state,struct dc_state *dc_state) {struct drm_device *dev = state->dev;struct amdgpu_device *adev =drm_to_adev (dev);struct amdgpu_display_manager *dm = &adev->dm;@@ -10714,11 +10714,11 @@ static void dm_set_writeback(struct amdgpu_display_manager *dm, acrtc->wb_pending = true; acrtc->wb_conn = wb_conn;drm_writeback_queue_job (wb_conn, new_con_state); } -static void amdgpu_dm_update_hdcp (struct drm_atomic_state *state) +static void amdgpu_dm_update_hdcp (struct drm_atomic_commit *state) {struct drm_connector_state *old_con_state, *new_con_state;struct drm_device *dev = state->dev;struct drm_connector *connector;struct amdgpu_device *adev =drm_to_adev (dev);@@ -10829,11 +10829,11 @@ static void amdgpu_dm_update_hdcp(struct drm_atomic_state *state) new_con_state->hdcp_content_type, enable_encryption); } } } -static int amdgpu_dm_atomic_setup_commit (struct drm_atomic_state *state) +static int amdgpu_dm_atomic_setup_commit (struct drm_atomic_commit *state) {struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state, *new_crtc_state;struct dm_crtc_state *dm_old_crtc_state, *dm_new_crtc_state;int i, ret;@@ -10870,11 +10870,11 @@ static int amdgpu_dm_atomic_setup_commit(struct drm_atomic_state *state)* * This will tell DC to commit the constructed DC state from atomic_check, * programming the hardware. Any failures here implies a hardware failure, since * atomic check should have filtered anything non-kosher. */ -static void amdgpu_dm_atomic_commit_tail (struct drm_atomic_state *state) +static void amdgpu_dm_atomic_commit_tail (struct drm_atomic_commit *state) {struct drm_device *dev = state->dev;struct amdgpu_device *adev =drm_to_adev (dev);struct amdgpu_display_manager *dm = &adev->dm;struct dm_atomic_state *dm_state;@@ -11175,11 +11175,11 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state)static int dm_force_atomic_commit (struct drm_connector *connector) {int ret =0 ;struct drm_device *ddev = connector->dev; -struct drm_atomic_state *state =drm_atomic_state_alloc (ddev); +struct drm_atomic_commit *state =drm_atomic_commit_alloc (ddev);struct amdgpu_crtc *disconnected_acrtc =to_amdgpu_crtc (connector->encoder->crtc);struct drm_plane *plane = disconnected_acrtc->base.primary;struct drm_connector_state *conn_state;struct drm_crtc_state *crtc_state;struct drm_plane_state *plane_state;@@ -11190,21 +11190,21 @@ static int dm_force_atomic_commit(struct drm_connector *connector) state->acquire_ctx = ddev->mode_config.acquire_ctx;/* Construct an atomic state to restore previous display setting */ /* -* Attach connectors to drm_atomic_state +* Attach connectors to drm_atomic_commit */ conn_state =drm_atomic_get_connector_state (state, connector);/* Check for error in getting connector state */ if (IS_ERR (conn_state)) { ret =PTR_ERR (conn_state); goto out; } -/* Attach crtc to drm_atomic_state*/ +/* Attach crtc to drm_atomic_commit*/ crtc_state =drm_atomic_get_crtc_state (state, &disconnected_acrtc->base);/* Check for error in getting crtc state */ if (IS_ERR (crtc_state)) { ret =PTR_ERR (crtc_state);@@ -11212,11 +11212,11 @@ static int dm_force_atomic_commit(struct drm_connector *connector) }/* force a restore */ crtc_state->mode_changed = true; -/* Attach plane to drm_atomic_state */ +/* Attach plane to drm_atomic_commit */ plane_state =drm_atomic_get_plane_state (state, plane);/* Check for error in getting plane state */ if (IS_ERR (plane_state)) { ret =PTR_ERR (plane_state);@@ -11225,11 +11225,11 @@ static int dm_force_atomic_commit(struct drm_connector *connector)/* Call commit internally with the state we just constructed */ ret =drm_atomic_commit (state); out: -drm_atomic_state_put (state); +drm_atomic_commit_put (state);if (ret)drm_err (ddev,"Restoring old state failed with %i\n" , ret);return ret; }@@ -11274,11 +11274,11 @@ void dm_restore_drm_connector_state(struct drm_device *dev,/* * Grabs all modesetting locks to serialize against any blocking commits, * Waits for completion of all non blocking commits. */ static int do_aquire_global_lock (struct drm_device *dev, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc *crtc;struct drm_crtc_commit *commit;long ret;@@ -11419,11 +11419,11 @@ static void set_freesync_fixed_config(struct dm_crtc_state *dm_new_crtc_state) res =div_u64 (num, den); dm_new_crtc_state->freesync_config.fixed_refresh_in_uhz = res; }static int dm_update_crtc_state (struct amdgpu_display_manager *dm, -struct drm_atomic_state *state, +struct drm_atomic_commit *state,struct drm_crtc *crtc,struct drm_crtc_state *old_crtc_state,struct drm_crtc_state *new_crtc_state,bool enable,bool *lock_and_validation_needed)@@ -11693,11 +11693,11 @@ static int dm_update_crtc_state(struct amdgpu_display_manager *dm,if (new_stream)dc_stream_release (new_stream);return ret; } -static bool should_reset_plane (struct drm_atomic_state *state, +static bool should_reset_plane (struct drm_atomic_commit *state,struct drm_plane *plane,struct drm_plane_state *old_plane_state,struct drm_plane_state *new_plane_state) {struct drm_plane *other;@@ -11951,11 +11951,11 @@ static int dm_check_native_cursor_state(struct drm_crtc *new_plane_crtc, }return 0 ; } -static bool dm_should_update_native_cursor (struct drm_atomic_state *state, +static bool dm_should_update_native_cursor (struct drm_atomic_commit *state,struct drm_crtc *old_plane_crtc,struct drm_crtc *new_plane_crtc,bool enable) {struct drm_crtc_state *old_crtc_state, *new_crtc_state;@@ -11981,11 +11981,11 @@ static bool dm_should_update_native_cursor(struct drm_atomic_state *state,return dm_new_crtc_state->cursor_mode ==DM_CURSOR_NATIVE_MODE ; } } static int dm_update_plane_state(struct dc *dc, - struct drm_atomic_state *state, + struct drm_atomic_commit *state, struct drm_plane *plane, struct drm_plane_state *old_plane_state, struct drm_plane_state *new_plane_state, bool enable, bool *lock_and_validation_needed,@@ -12189,11 +12189,11 @@ dm_get_plane_scale(struct drm_plane_state *plane_state,* between enabled/disabled planes in the atomic state. We need a unique value * so that the iterator will not generate the same object twice, or loop * indefinitely. */ static inline struct __drm_planes_state *__get_next_zpos ( -struct drm_atomic_state *state, +struct drm_atomic_commit *state,struct __drm_planes_state *prev) {unsigned int highest_zpos =0 , prev_zpos =256 ;uint32_t highest_id =0 , prev_id =UINT_MAX ;struct drm_plane_state *new_plane_state;@@ -12239,11 +12239,11 @@ static inline struct __drm_planes_state *__get_next_zpos(for_each_if (((plane) = __i->ptr, \ (void )(plane)/* Only to avoid unused-but-set-variable warning */ , \ (old_plane_state) = __i->old_state, \ (new_plane_state) = __i->new_state, 1)) -static int add_affected_mst_dsc_crtcs (struct drm_atomic_state *state,struct drm_crtc *crtc) +static int add_affected_mst_dsc_crtcs (struct drm_atomic_commit *state,struct drm_crtc *crtc) {struct drm_connector *connector;struct drm_connector_state *conn_state, *old_conn_state;struct amdgpu_dm_connector *aconnector =NULL ;int i;@@ -12306,11 +12306,11 @@ static int add_affected_mst_dsc_crtcs(struct drm_atomic_state *state, struct drm* * Return: 0 on success, or an error code if getting the cursor plane state * failed. */ static int dm_crtc_get_cursor_mode (struct amdgpu_device *adev, -struct drm_atomic_state *state, +struct drm_atomic_commit *state,struct dm_crtc_state *dm_crtc_state,enum amdgpu_dm_cursor_mode *cursor_mode) {struct drm_plane_state *old_plane_state, *plane_state, *cursor_state;struct drm_crtc_state *crtc_state = &dm_crtc_state->base;@@ -12433,11 +12433,11 @@ static int dm_crtc_get_cursor_mode(struct amdgpu_device *adev,return 0 ; }static bool amdgpu_dm_crtc_mem_type_changed (struct drm_device *dev, -struct drm_atomic_state *state, +struct drm_atomic_commit *state,struct drm_crtc_state *crtc_state) {struct drm_plane *plane;struct drm_plane_state *new_plane_state, *old_plane_state;@@ -12482,11 +12482,11 @@ static bool amdgpu_dm_crtc_mem_type_changed(struct drm_device *dev,* be possible but non-trivial - a possible TODO item. * * Return: -Error code if validation failed. */ static int amdgpu_dm_atomic_check (struct drm_device *dev, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct amdgpu_device *adev =drm_to_adev (dev);struct dm_atomic_state *dm_state =NULL ;struct dc *dc = adev->dm.dc;struct drm_connector *connector;drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +3
-3@@ -596,11 +596,11 @@ struct amdgpu_display_manager {* * Periodic work for idle events. */ struct idle_workqueue *idle_workqueue; -struct drm_atomic_state *cached_state; +struct drm_atomic_commit *cached_state;struct dc_state *cached_dc_state;struct dm_compressor_info compressor;const struct firmware *fw_dmcu;@@ -1130,15 +1130,15 @@ struct dc_stream_state * create_validate_stream_for_sink(struct drm_connector *connector, const struct drm_display_mode *drm_mode, const struct dm_connector_state *dm_state, const struct dc_stream_state *old_stream); -int dm_atomic_get_state (struct drm_atomic_state *state, +int dm_atomic_get_state (struct drm_atomic_commit *state,struct dm_atomic_state **dm_state);struct drm_connector * -amdgpu_dm_find_first_crtc_matching_connector (struct drm_atomic_state *state, +amdgpu_dm_find_first_crtc_matching_connector (struct drm_atomic_commit *state,struct drm_crtc *crtc);int convert_dc_color_depth_into_bpc (enum dc_color_depth display_color_depth);struct idle_workqueue *idle_create_workqueue (struct amdgpu_device *adev);drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c +6
-6@@ -1497,11 +1497,11 @@ __set_dm_plane_colorop_degamma(struct drm_plane_state *plane_state,struct dc_plane_state *dc_plane_state, struct drm_colorop *colorop) { struct drm_colorop *old_colorop;struct drm_colorop_state *colorop_state =NULL , *new_colorop_state; -struct drm_atomic_state *state = plane_state->state; +struct drm_atomic_commit *state = plane_state->state;int i =0 ; old_colorop = colorop;/* 1st op: 1d curve - degamma */ @@ -1524,11 +1524,11 @@ __set_dm_plane_colorop_3x4_matrix(struct drm_plane_state *plane_state,struct dc_plane_state *dc_plane_state, struct drm_colorop *colorop) { struct drm_colorop *old_colorop;struct drm_colorop_state *colorop_state =NULL , *new_colorop_state; -struct drm_atomic_state *state = plane_state->state; +struct drm_atomic_commit *state = plane_state->state;const struct drm_device *dev = colorop->dev;const struct drm_property_blob *blob;struct drm_color_ctm_3x4 *ctm =NULL ;int i =0 ;@@ -1565,11 +1565,11 @@ __set_dm_plane_colorop_multiplier(struct drm_plane_state *plane_state,struct dc_plane_state *dc_plane_state, struct drm_colorop *colorop) { struct drm_colorop *old_colorop;struct drm_colorop_state *colorop_state =NULL , *new_colorop_state; -struct drm_atomic_state *state = plane_state->state; +struct drm_atomic_commit *state = plane_state->state;const struct drm_device *dev = colorop->dev;int i =0 ;/* Multiplier */ old_colorop = colorop;@@ -1594,11 +1594,11 @@ __set_dm_plane_colorop_shaper(struct drm_plane_state *plane_state,struct dc_plane_state *dc_plane_state, struct drm_colorop *colorop) { struct drm_colorop *old_colorop;struct drm_colorop_state *colorop_state =NULL , *new_colorop_state; -struct drm_atomic_state *state = plane_state->state; +struct drm_atomic_commit *state = plane_state->state;enum dc_transfer_func_predefined default_tf =TRANSFER_FUNCTION_LINEAR ;struct dc_transfer_func *tf = &dc_plane_state->in_shaper_func;const struct drm_color_lut32 *shaper_lut;struct drm_device *dev = colorop->dev;bool enabled = false;@@ -1702,11 +1702,11 @@ __set_dm_plane_colorop_3dlut(struct drm_plane_state *plane_state, struct drm_colorop *colorop) {struct drm_colorop *old_colorop;struct drm_colorop_state *colorop_state =NULL , *new_colorop_state;struct dc_transfer_func *tf = &dc_plane_state->in_shaper_func; -struct drm_atomic_state *state = plane_state->state; +struct drm_atomic_commit *state = plane_state->state;const struct amdgpu_device *adev =drm_to_adev (colorop->dev);bool has_3dlut = adev->dm.dc->caps.color.dpp.hw_3d_lut || adev->dm.dc->caps.color.mpc.preblend;const struct drm_device *dev = colorop->dev;const struct drm_color_lut32 *lut3d;uint32_t lut3d_size;@@ -1757,11 +1757,11 @@ __set_dm_plane_colorop_blend(struct drm_plane_state *plane_state,struct dc_plane_state *dc_plane_state, struct drm_colorop *colorop) { struct drm_colorop *old_colorop;struct drm_colorop_state *colorop_state =NULL , *new_colorop_state; -struct drm_atomic_state *state = plane_state->state; +struct drm_atomic_commit *state = plane_state->state;enum dc_transfer_func_predefined default_tf =TRANSFER_FUNCTION_LINEAR ;struct dc_transfer_func *tf = &dc_plane_state->blend_tf;const struct drm_color_lut32 *blend_lut =NULL ;struct drm_device *dev = colorop->dev;uint32_t blend_size =0 ;drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +2
-2@@ -595,11 +595,11 @@ static void amdgpu_dm_crtc_helper_disable(struct drm_crtc *crtc) { }static int amdgpu_dm_crtc_count_crtc_active_planes (struct drm_crtc_state *new_crtc_state) { -struct drm_atomic_state *state = new_crtc_state->state; +struct drm_atomic_commit *state = new_crtc_state->state;struct drm_plane *plane;int num_active =0 ;drm_for_each_plane_mask (plane, state->dev, new_crtc_state->plane_mask) {struct drm_plane_state *new_plane_state;@@ -648,11 +648,11 @@ static bool amdgpu_dm_crtc_helper_mode_fixup(struct drm_crtc *crtc, {return true; }static int amdgpu_dm_crtc_helper_atomic_check (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct amdgpu_device *adev =drm_to_adev (crtc->dev);struct dc *dc = adev->dm.dc;drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +11
-11@@ -495,11 +495,11 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector)return ret; }static struct drm_encoder *dm_mst_atomic_best_encoder (struct drm_connector *connector, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_connector_state *connector_state =drm_atomic_get_new_connector_state (state, connector);struct amdgpu_device *adev =drm_to_adev (connector->dev);struct amdgpu_crtc *acrtc =to_amdgpu_crtc (connector_state->crtc);@@ -577,11 +577,11 @@ dm_dp_mst_detect(struct drm_connector *connector,return connection_status; }static int dm_dp_mst_atomic_check (struct drm_connector *connector, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct amdgpu_dm_connector *aconnector =to_amdgpu_dm_connector (connector);struct drm_dp_mst_topology_mgr *mst_mgr = &aconnector->mst_root->mst_mgr;struct drm_dp_mst_port *mst_port = aconnector->mst_output_port;@@ -984,11 +984,11 @@ static int bpp_x16_from_pbn(struct dsc_mst_fairness_params param, int pbn) &dsc_config);return dsc_config.bits_per_pixel; } -static int increase_dsc_bpp(struct drm_atomic_state *state, +static int increase_dsc_bpp(struct drm_atomic_commit *state, struct drm_dp_mst_topology_state *mst_state, struct dc_link *dc_link, struct dsc_mst_fairness_params *params, struct dsc_mst_fairness_vars *vars, int count,@@ -1088,11 +1088,11 @@ static int increase_dsc_bpp(struct drm_atomic_state *state, remaining_to_increase--; }return 0 ; } -static int try_disable_dsc (struct drm_atomic_state *state, +static int try_disable_dsc (struct drm_atomic_commit *state,struct dc_link *dc_link,struct dsc_mst_fairness_params *params,struct dsc_mst_fairness_vars *vars,int count,int k)@@ -1181,11 +1181,11 @@ static void log_dsc_params(int count, struct dsc_mst_fairness_vars *vars, int k)for (i =0 ; i < count; i++)DRM_DEBUG_DRIVER ("MST_DSC DSC params: stream #%d --- dsc_enabled = %d, bpp_x16 = %d, pbn = %d\n" , i, vars[i + k].dsc_enabled, vars[i + k].bpp_x16, vars[i + k].pbn); } -static int compute_mst_dsc_configs_for_link (struct drm_atomic_state *state, +static int compute_mst_dsc_configs_for_link (struct drm_atomic_commit *state,struct dc_state *dc_state,struct dc_link *dc_link,struct dsc_mst_fairness_vars *vars,struct drm_dp_mst_topology_mgr *mgr,int *link_vars_start_index)@@ -1346,11 +1346,11 @@ static int compute_mst_dsc_configs_for_link(struct drm_atomic_state *state,return 0 ; }static bool is_dsc_need_re_compute ( -struct drm_atomic_state *state, +struct drm_atomic_commit *state,struct dc_state *dc_state,struct dc_link *dc_link) {int i, j;bool is_dsc_need_re_compute = false;@@ -1477,11 +1477,11 @@ static bool is_dsc_need_re_compute( __func__, is_dsc_need_re_compute ? "required" : "not required");return is_dsc_need_re_compute; } -int compute_mst_dsc_configs_for_state (struct drm_atomic_state *state, +int compute_mst_dsc_configs_for_state (struct drm_atomic_commit *state,struct dc_state *dc_state,struct dsc_mst_fairness_vars *vars) {int i, j;struct dc_stream_state *stream;@@ -1547,11 +1547,11 @@ int compute_mst_dsc_configs_for_state(struct drm_atomic_state *state, }return ret; } -static int pre_compute_mst_dsc_configs_for_state (struct drm_atomic_state *state, +static int pre_compute_mst_dsc_configs_for_state (struct drm_atomic_commit *state,struct dc_state *dc_state,struct dsc_mst_fairness_vars *vars) {int i, j;struct dc_stream_state *stream;@@ -1600,11 +1600,11 @@ static int pre_compute_mst_dsc_configs_for_state(struct drm_atomic_state *state, }return ret; } -static int find_crtc_index_in_state_by_stream (struct drm_atomic_state *state, +static int find_crtc_index_in_state_by_stream (struct drm_atomic_commit *state,struct dc_stream_state *stream) {int i;struct drm_crtc *crtc;struct drm_crtc_state *new_state, *old_state;@@ -1631,11 +1631,11 @@ static bool is_link_to_dschub(struct dc_link *dc_link) dsc_caps->fields.dsc_support.DSC_PASSTHROUGH_SUPPORT))return false;return true; } -static bool is_dsc_precompute_needed (struct drm_atomic_state *state) +static bool is_dsc_precompute_needed (struct drm_atomic_commit *state) {int i;struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state, *new_crtc_state;bool ret = false;@@ -1652,11 +1652,11 @@ static bool is_dsc_precompute_needed(struct drm_atomic_state *state) ret = true; }return ret; } -int pre_validate_dsc (struct drm_atomic_state *state, +int pre_validate_dsc (struct drm_atomic_commit *state,struct dm_atomic_state **dm_state_ptr,struct dsc_mst_fairness_vars *vars) {int i;struct dm_atomic_state *dm_state;drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.h +2
-2@@ -78,17 +78,17 @@ struct dsc_mst_fairness_vars {bool dsc_enabled;int bpp_x16;struct amdgpu_dm_connector *aconnector; }; -int compute_mst_dsc_configs_for_state (struct drm_atomic_state *state, +int compute_mst_dsc_configs_for_state (struct drm_atomic_commit *state,struct dc_state *dc_state,struct dsc_mst_fairness_vars *vars);bool needs_dsc_aux_workaround (struct dc_link *link); -int pre_validate_dsc (struct drm_atomic_state *state, +int pre_validate_dsc (struct drm_atomic_commit *state,struct dm_atomic_state **dm_state_ptr,struct dsc_mst_fairness_vars *vars); enum dc_status dm_dp_mst_is_port_support_mode( struct amdgpu_dm_connector *aconnector,drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c +3
-3@@ -1227,11 +1227,11 @@ int amdgpu_dm_plane_fill_dc_scaling_info(struct amdgpu_device *adev,return 0 ; }static int amdgpu_dm_plane_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct amdgpu_device *adev =drm_to_adev (plane->dev);struct dc *dc = adev->dm.dc;@@ -1274,11 +1274,11 @@ static int amdgpu_dm_plane_atomic_check(struct drm_plane *plane,return -EINVAL ; }static int amdgpu_dm_plane_atomic_async_check (struct drm_plane *plane, -struct drm_atomic_state *state,bool flip) +struct drm_atomic_commit *state,bool flip) {struct drm_crtc_state *new_crtc_state;struct drm_plane_state *new_plane_state;struct dm_crtc_state *dm_new_crtc_state;@@ -1415,11 +1415,11 @@ void amdgpu_dm_plane_handle_cursor_update(struct drm_plane *plane,mutex_unlock (&adev->dm.dc_lock); } }static void amdgpu_dm_plane_atomic_async_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_state =drm_atomic_get_new_plane_state (state, plane);struct drm_plane_state *old_state =drm_atomic_get_old_plane_state (state, plane);drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h +10
-10@@ -106,11 +106,11 @@ TRACE_EVENT(amdgpu_dm_connector_atomic_check,TP_ARGS (state),TP_STRUCT__entry ( __field(uint32_t, conn_id)__field (const struct drm_connector_state *,conn_state ) - __field(const struct drm_atomic_state *, state) + __field(const struct drm_atomic_commit *, state) __field(const struct drm_crtc_commit *, commit)__field (uint32_t, crtc_id)__field (uint32_t, best_encoder_id) __field(enum drm_link_status, link_status) __field(bool, self_refresh_aware)@@ -161,11 +161,11 @@ TRACE_EVENT(amdgpu_dm_connector_atomic_check, TRACE_EVENT(amdgpu_dm_crtc_atomic_check, TP_PROTO(const struct drm_crtc_state *state), TP_ARGS(state), TP_STRUCT__entry( - __field(const struct drm_atomic_state *, state) + __field(const struct drm_atomic_commit *, state) __field(const struct drm_crtc_state *, crtc_state) __field(const struct drm_crtc_commit *, commit) __field(uint32_t, crtc_id) __field(bool, enable) __field(bool, active)@@ -227,11 +227,11 @@ DECLARE_EVENT_CLASS(amdgpu_dm_plane_state_template,TP_ARGS (state),TP_STRUCT__entry ( __field(uint32_t, plane_id)__field (enum drm_plane_type ,plane_type ) __field(const struct drm_plane_state *, plane_state) - __field(const struct drm_atomic_state *, state) + __field(const struct drm_atomic_commit *, state)__field (uint32_t, crtc_id)__field (uint32_t, fb_id)__field (uint32_t, fb_format)__field (uint8_t, fb_planes) __field(uint64_t, fb_modifier)@@ -313,15 +313,15 @@ DEFINE_EVENT(amdgpu_dm_plane_state_template, amdgpu_dm_plane_atomic_check,DEFINE_EVENT (amdgpu_dm_plane_state_template, amdgpu_dm_atomic_update_cursor, TP_PROTO(const struct drm_plane_state *state),TP_ARGS (state)); TRACE_EVENT(amdgpu_dm_atomic_state_template, - TP_PROTO(const struct drm_atomic_state *state), + TP_PROTO(const struct drm_atomic_commit *state), TP_ARGS(state), TP_STRUCT__entry( - __field(const struct drm_atomic_state *, state) + __field(const struct drm_atomic_commit *, state) __field(bool, allow_modeset) __field(bool, legacy_cursor_update) __field(bool, async_update) __field(bool, duplicated) __field(int, num_connector)@@ -345,27 +345,27 @@ TRACE_EVENT(amdgpu_dm_atomic_state_template, __entry->async_update, __entry->duplicated, __entry->num_connector, __entry->num_private_objs) );DEFINE_EVENT (amdgpu_dm_atomic_state_template, amdgpu_dm_atomic_commit_tail_begin, - TP_PROTO(const struct drm_atomic_state *state), + TP_PROTO(const struct drm_atomic_commit *state),TP_ARGS (state));DEFINE_EVENT (amdgpu_dm_atomic_state_template, amdgpu_dm_atomic_commit_tail_finish, - TP_PROTO(const struct drm_atomic_state *state), + TP_PROTO(const struct drm_atomic_commit *state),TP_ARGS (state));DEFINE_EVENT (amdgpu_dm_atomic_state_template, amdgpu_dm_atomic_check_begin, - TP_PROTO(const struct drm_atomic_state *state), + TP_PROTO(const struct drm_atomic_commit *state),TP_ARGS (state)); TRACE_EVENT(amdgpu_dm_atomic_check_finish, - TP_PROTO(const struct drm_atomic_state *state, int res), + TP_PROTO(const struct drm_atomic_commit *state, int res), TP_ARGS(state, res), TP_STRUCT__entry( - __field(const struct drm_atomic_state *, state) + __field(const struct drm_atomic_commit *, state) __field(int, res) __field(bool, async_update) __field(bool, allow_modeset) ),drivers/gpu/drm/arm/display/komeda/komeda_crtc.c +4
-4@@ -73,11 +73,11 @@ static void komeda_crtc_update_clock_ratio(struct komeda_crtc_state *kcrtc_st)* RETURNS: * Zero for success or -errno */ static int komeda_crtc_atomic_check (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct komeda_crtc *kcrtc =to_kcrtc (crtc);struct komeda_crtc_state *kcrtc_st =to_kcrtc_st (crtc_state);@@ -277,11 +277,11 @@ komeda_crtc_do_flush(struct drm_crtc *crtc, mdev->funcs->flush (mdev, master->id, kcrtc_st->active_pipes); }static void komeda_crtc_atomic_enable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *old =drm_atomic_get_old_crtc_state (state, crtc);pm_runtime_get_sync (crtc->dev->dev);komeda_crtc_prepare (to_kcrtc (crtc));@@ -323,11 +323,11 @@ komeda_crtc_flush_and_wait_for_flip_done(struct komeda_crtc *kcrtc, } }static void komeda_crtc_atomic_disable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *old =drm_atomic_get_old_crtc_state (state, crtc);struct komeda_crtc *kcrtc =to_kcrtc (crtc);struct komeda_crtc_state *old_st =to_kcrtc_st (old);@@ -385,11 +385,11 @@ komeda_crtc_atomic_disable(struct drm_crtc *crtc,pm_runtime_put (crtc->dev->dev); }static void komeda_crtc_atomic_flush (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct drm_crtc_state *old =drm_atomic_get_old_crtc_state (state, crtc);drivers/gpu/drm/arm/display/komeda/komeda_kms.c +5
-5@@ -65,11 +65,11 @@ static const struct drm_driver komeda_kms_driver = { .desc = "Arm Komeda Display Processor driver", .major = 0, .minor = 1, }; -static void komeda_kms_atomic_commit_hw_done (struct drm_atomic_state *state) +static void komeda_kms_atomic_commit_hw_done (struct drm_atomic_commit *state) {struct drm_device *dev = state->dev;struct komeda_kms_dev *kms =to_kdev (dev);int i;@@ -84,11 +84,11 @@ static void komeda_kms_atomic_commit_hw_done(struct drm_atomic_state *state) } }drm_atomic_helper_commit_hw_done (state); } -static void komeda_kms_commit_tail (struct drm_atomic_state *old_state) +static void komeda_kms_commit_tail (struct drm_atomic_commit *old_state) {struct drm_device *dev = old_state->dev;bool fence_cookie =dma_fence_begin_signalling ();drm_atomic_helper_commit_modeset_disables (dev, old_state);@@ -151,11 +151,11 @@ static int komeda_plane_state_list_add(struct drm_plane_state *plane_st, }static int komeda_crtc_normalize_zpos (struct drm_crtc *crtc,struct drm_crtc_state *crtc_st) { -struct drm_atomic_state *state = crtc_st->state; +struct drm_atomic_commit *state = crtc_st->state;struct komeda_crtc *kcrtc =to_kcrtc (crtc);struct komeda_crtc_state *kcrtc_st =to_kcrtc_st (crtc_st);struct komeda_plane_state *kplane_st;struct drm_plane_state *plane_st;struct drm_plane *plane;@@ -214,11 +214,11 @@ static int komeda_crtc_normalize_zpos(struct drm_crtc *crtc,return 0 ; }static int komeda_kms_check (struct drm_device *dev, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc *crtc;struct drm_crtc_state *new_crtc_st;int i, err;@@ -226,11 +226,11 @@ static int komeda_kms_check(struct drm_device *dev,if (err)return err;/* Komeda need to re-calculate resource assumption in every commit * so need to add all affected_planes (even unchanged) to -* drm_atomic_state. +* drm_atomic_commit. */ for_each_new_crtc_in_state (state, crtc, new_crtc_st, i) { err =drm_atomic_add_affected_planes (state, crtc);if (err)return err;drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h +7
-7@@ -153,11 +153,11 @@ struct komeda_component_output {* component_state is the data flow configuration of the component, and it's * the superclass of all specific component_state like @komeda_layer_state, * @komeda_scaler_state */ struct komeda_component_state { -/** @obj: tracking component_state by drm_atomic_state */ +/** @obj: tracking component_state by drm_atomic_commit */ struct drm_private_state obj;/** @component: backpointer to the component */ struct komeda_component *component;/** * @binding_user: @@ -386,11 +386,11 @@ struct komeda_pipeline_funcs {* struct komeda_pipeline * * Represent a complete display pipeline and hold all functional components. */ struct komeda_pipeline { -/** @obj: link pipeline as private obj of drm_atomic_state */ +/** @obj: link pipeline as private obj of drm_atomic_commit */ struct drm_private_obj obj;/** @mdev: the parent komeda_dev */ struct komeda_dev *mdev;/** @pxlclk: pixel clock */ struct clk *pxlclk;@@ -446,14 +446,14 @@ struct komeda_pipeline {/** * struct komeda_pipeline_state * * NOTE: * Unlike the pipeline, pipeline_state doesn’t gather any component_state -* into it. It because all component will be managed by drm_atomic_state. +* into it. It because all component will be managed by drm_atomic_commit. */ struct komeda_pipeline_state { -/** @obj: tracking pipeline_state by drm_atomic_state */ +/** @obj: tracking pipeline_state by drm_atomic_commit */ struct drm_private_state obj;/** @pipe: backpointer to the pipeline */ struct komeda_pipeline *pipe;/** @crtc: currently bound crtc */ struct drm_crtc *crtc;@@ -553,15 +553,15 @@ int komeda_build_wb_split_data_flow(struct komeda_layer *wb_layer,int komeda_release_unclaimed_resources (struct komeda_pipeline *pipe,struct komeda_crtc_state *kcrtc_st);struct komeda_pipeline_state *komeda_pipeline_get_old_state (struct komeda_pipeline *pipe, -struct drm_atomic_state *state); +struct drm_atomic_commit *state);bool komeda_pipeline_disable (struct komeda_pipeline *pipe, -struct drm_atomic_state *old_state); +struct drm_atomic_commit *old_state);void komeda_pipeline_update (struct komeda_pipeline *pipe, -struct drm_atomic_state *old_state); +struct drm_atomic_commit *old_state);void komeda_complete_data_flow_cfg (struct komeda_layer *layer,struct komeda_data_flow_cfg *dflow,struct drm_framebuffer *fb);drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c +14
-14@@ -20,11 +20,11 @@ static inline bool is_switching_user(void *old, void *new)return old != new; }static struct komeda_pipeline_state *komeda_pipeline_get_state (struct komeda_pipeline *pipe, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_private_state *priv_st; priv_st =drm_atomic_get_private_obj_state (state, &pipe->obj);if (IS_ERR (priv_st))@@ -33,11 +33,11 @@ komeda_pipeline_get_state(struct komeda_pipeline *pipe,return priv_to_pipe_st (priv_st); }struct komeda_pipeline_state *komeda_pipeline_get_old_state (struct komeda_pipeline *pipe, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_private_state *priv_st; priv_st =drm_atomic_get_old_private_obj_state (state, &pipe->obj);if (priv_st)@@ -45,11 +45,11 @@ komeda_pipeline_get_old_state(struct komeda_pipeline *pipe,return NULL ; }static struct komeda_pipeline_state *komeda_pipeline_get_new_state (struct komeda_pipeline *pipe, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_private_state *priv_st; priv_st =drm_atomic_get_new_private_obj_state (state, &pipe->obj);if (priv_st)@@ -58,11 +58,11 @@ komeda_pipeline_get_new_state(struct komeda_pipeline *pipe, }/* Assign pipeline for crtc */ static struct komeda_pipeline_state *komeda_pipeline_get_state_and_set_crtc (struct komeda_pipeline *pipe, -struct drm_atomic_state *state, +struct drm_atomic_commit *state,struct drm_crtc *crtc) {struct komeda_pipeline_state *st; st =komeda_pipeline_get_state (pipe, state);@@ -95,11 +95,11 @@ komeda_pipeline_get_state_and_set_crtc(struct komeda_pipeline *pipe,return st; }static struct komeda_component_state *komeda_component_get_state (struct komeda_component *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_private_state *priv_st;WARN_ON (!drm_modeset_is_locked (&c->pipeline->obj.lock));@@ -110,11 +110,11 @@ komeda_component_get_state(struct komeda_component *c,return priv_to_comp_st (priv_st); }static struct komeda_component_state *komeda_component_get_old_state (struct komeda_component *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_private_state *priv_st; priv_st =drm_atomic_get_old_private_obj_state (state, &c->obj);if (priv_st)@@ -147,11 +147,11 @@ komeda_component_get_old_state(struct komeda_component *c,* CRTC. if the pipeline is busy (assigned to another CRTC), even the required * component is free, the component still cannot be assigned to the direct user. */ static struct komeda_component_state *komeda_component_get_state_and_set_user (struct komeda_component *c, -struct drm_atomic_state *state, +struct drm_atomic_commit *state,void *user,struct drm_crtc *crtc) {struct komeda_pipeline_state *pipe_st;struct komeda_component_state *st;@@ -251,11 +251,11 @@ komeda_component_validate_private(struct komeda_component *c, }/* Get current available scaler from the component->supported_outputs */ static struct komeda_scaler *komeda_component_get_avail_scaler (struct komeda_component *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct komeda_pipeline_state *pipe_st;u32 avail_scalers; pipe_st =komeda_pipeline_get_state (c->pipeline, state);@@ -503,11 +503,11 @@ komeda_scaler_check_cfg(struct komeda_scaler *scaler,static int komeda_scaler_validate (void *user,struct komeda_crtc_state *kcrtc_st,struct komeda_data_flow_cfg *dflow) { -struct drm_atomic_state *drm_st = kcrtc_st->base.state; +struct drm_atomic_commit *drm_st = kcrtc_st->base.state;struct komeda_component_state *c_st;struct komeda_scaler_state *st;struct komeda_scaler *scaler;int err =0 ;@@ -667,11 +667,11 @@ void pipeline_composition_size(struct komeda_crtc_state *kcrtc_st,static int komeda_compiz_set_input (struct komeda_compiz *compiz,struct komeda_crtc_state *kcrtc_st,struct komeda_data_flow_cfg *dflow) { -struct drm_atomic_state *drm_st = kcrtc_st->base.state; +struct drm_atomic_commit *drm_st = kcrtc_st->base.state;struct komeda_component_state *c_st, *old_st;struct komeda_compiz_input_cfg *cin;u16 compiz_w, compiz_h;int idx = dflow->blending_zorder;@@ -1225,11 +1225,11 @@ int komeda_build_display_data_flow(struct komeda_crtc *kcrtc,static int komeda_pipeline_unbound_components (struct komeda_pipeline *pipe,struct komeda_pipeline_state *new) { -struct drm_atomic_state *drm_st = new->obj.state; +struct drm_atomic_commit *drm_st = new->obj.state;struct komeda_pipeline_state *old =priv_to_pipe_st (pipe->obj.state);struct komeda_component_state *c_st;struct komeda_component *c;u32 id;unsigned long disabling_comps;@@ -1253,11 +1253,11 @@ komeda_pipeline_unbound_components(struct komeda_pipeline *pipe,/* release unclaimed pipeline resource */ int komeda_release_unclaimed_resources (struct komeda_pipeline *pipe,struct komeda_crtc_state *kcrtc_st) { -struct drm_atomic_state *drm_st = kcrtc_st->base.state; +struct drm_atomic_commit *drm_st = kcrtc_st->base.state;struct komeda_pipeline_state *st;/* ignore the pipeline which is not affected */ if (!pipe || !has_bit (pipe->id, kcrtc_st->affected_pipes))return 0 ;@@ -1283,11 +1283,11 @@ int komeda_release_unclaimed_resources(struct komeda_pipeline *pipe,* RETURNS: * true: disable is not complete, needs a phase 2 disable. * false: disable is complete. */ bool komeda_pipeline_disable (struct komeda_pipeline *pipe, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {struct komeda_pipeline_state *old;struct komeda_component *c;struct komeda_component_state *c_st;u32 id;@@ -1328,11 +1328,11 @@ bool komeda_pipeline_disable(struct komeda_pipeline *pipe,return old->active_comps ? true : false; }void komeda_pipeline_update (struct komeda_pipeline *pipe, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {struct komeda_pipeline_state *new =priv_to_pipe_st (pipe->obj.state);struct komeda_pipeline_state *old;struct komeda_component *c;u32 id;drivers/gpu/drm/arm/display/komeda/komeda_plane.c +2
-2@@ -67,11 +67,11 @@ komeda_plane_init_data_flow(struct drm_plane_state *st,* RETURNS: * Zero for success or -errno */ static int komeda_plane_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct komeda_plane *kplane =to_kplane (plane);struct komeda_plane_state *kplane_st =to_kplane_st (new_plane_state);@@ -114,11 +114,11 @@ komeda_plane_atomic_check(struct drm_plane *plane,/* plane doesn't represent a real HW, so there is no HW update for plane. * komeda handles all the HW update in crtc->atomic_flush */ static void komeda_plane_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) { }static const struct drm_plane_helper_funcs komeda_plane_helper_funcs = { .atomic_check = komeda_plane_atomic_check,drivers/gpu/drm/arm/hdlcd_crtc.c +5
-5@@ -173,22 +173,22 @@ static void hdlcd_crtc_mode_set_nofb(struct drm_crtc *crtc)clk_set_rate (hdlcd->clk, m->crtc_clock *1000 ); }static void hdlcd_crtc_atomic_enable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct hdlcd_drm_private *hdlcd =crtc_to_hdlcd_priv (crtc);clk_prepare_enable (hdlcd->clk);hdlcd_crtc_mode_set_nofb (crtc);hdlcd_write (hdlcd,HDLCD_REG_COMMAND ,1 );drm_crtc_vblank_on (crtc); }static void hdlcd_crtc_atomic_disable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct hdlcd_drm_private *hdlcd =crtc_to_hdlcd_priv (crtc);drm_crtc_vblank_off (crtc);hdlcd_write (hdlcd,HDLCD_REG_COMMAND ,0 );@@ -210,11 +210,11 @@ static enum drm_mode_status hdlcd_crtc_mode_valid(struct drm_crtc *crtc,return MODE_OK ; }static void hdlcd_crtc_atomic_begin (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_pending_vblank_event *event = crtc->state->event;if (event) { crtc->state->event =NULL ;@@ -234,11 +234,11 @@ static const struct drm_crtc_helper_funcs hdlcd_crtc_helper_funcs = { .atomic_enable = hdlcd_crtc_atomic_enable, .atomic_disable = hdlcd_crtc_atomic_disable, };static int hdlcd_plane_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);int i;struct drm_crtc *crtc;@@ -265,11 +265,11 @@ static int hdlcd_plane_atomic_check(struct drm_plane *plane,return 0 ; }static void hdlcd_plane_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct drm_framebuffer *fb = new_plane_state->fb;struct hdlcd_drm_private *hdlcd;drivers/gpu/drm/arm/malidp_crtc.c +3
-3@@ -45,11 +45,11 @@ static enum drm_mode_status malidp_crtc_mode_valid(struct drm_crtc *crtc,return MODE_OK ; }static void malidp_crtc_atomic_enable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct malidp_drm *malidp =crtc_to_malidp_device (crtc);struct malidp_hw_device *hwdev = malidp->dev;struct videomode vm;int err =pm_runtime_get_sync (crtc->dev->dev);@@ -69,11 +69,11 @@ static void malidp_crtc_atomic_enable(struct drm_crtc *crtc, hwdev->hw->leave_config_mode (hwdev);drm_crtc_vblank_on (crtc); }static void malidp_crtc_atomic_disable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *old_state =drm_atomic_get_old_crtc_state (state, crtc);struct malidp_drm *malidp =crtc_to_malidp_device (crtc);struct malidp_hw_device *hwdev = malidp->dev;@@ -332,11 +332,11 @@ static int malidp_crtc_atomic_check_scaling(struct drm_crtc *crtc,return -EINVAL ;return 0 ; }static int malidp_crtc_atomic_check (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct malidp_drm *malidp =crtc_to_malidp_device (crtc);struct malidp_hw_device *hwdev = malidp->dev;drivers/gpu/drm/arm/malidp_drv.c +2
-2@@ -188,11 +188,11 @@ static int malidp_set_and_wait_config_valid(struct drm_device *drm) msecs_to_jiffies(MALIDP_CONF_VALID_TIMEOUT));return (ret >0 ) ?0 : -ETIMEDOUT ; } -static void malidp_atomic_commit_hw_done (struct drm_atomic_state *state) +static void malidp_atomic_commit_hw_done (struct drm_atomic_commit *state) {struct drm_device *drm = state->dev;struct malidp_drm *malidp =drm_to_malidp (drm);int loop =5 ;@@ -229,11 +229,11 @@ static void malidp_atomic_commit_hw_done(struct drm_atomic_state *state)spin_unlock_irq (&drm->event_lock); }drm_atomic_helper_commit_hw_done (state); } -static void malidp_atomic_commit_tail (struct drm_atomic_state *state) +static void malidp_atomic_commit_tail (struct drm_atomic_commit *state) {struct drm_device *drm = state->dev;struct malidp_drm *malidp =drm_to_malidp (drm);struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state;drivers/gpu/drm/arm/malidp_mw.c +1
-1@@ -235,11 +235,11 @@ int malidp_mw_connector_init(struct drm_device *drm)return 0 ; }void malidp_mw_atomic_commit (struct drm_device *drm, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {struct malidp_drm *malidp =drm_to_malidp (drm);struct drm_writeback_connector *mw_conn = &malidp->mw_connector;struct drm_connector_state *conn_state = mw_conn->base.state;struct malidp_hw_device *hwdev = malidp->dev;drivers/gpu/drm/arm/malidp_mw.h +1
-1@@ -8,7 +8,7 @@#ifndef __MALIDP_MW_H__#define __MALIDP_MW_H__int malidp_mw_connector_init (struct drm_device *drm);void malidp_mw_atomic_commit (struct drm_device *drm, -struct drm_atomic_state *old_state); +struct drm_atomic_commit *old_state);#endif drivers/gpu/drm/arm/malidp_planes.c +3
-3@@ -488,11 +488,11 @@ static void malidp_de_prefetch_settings(struct malidp_plane *mp, ms->mmu_prefetch_mode =malidp_mmu_prefetch_select_mode (ms, &ms->mmu_prefetch_pgsize); }static int malidp_de_plane_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct malidp_plane *mp =to_malidp_plane (plane);struct malidp_plane_state *ms =to_malidp_plane_state (new_plane_state);@@ -777,11 +777,11 @@ static void malidp_de_set_plane_afbc(struct drm_plane *plane)malidp_hw_write (mp->hwdev, val, mp->layer->afbc_decoder_offset); }static void malidp_de_plane_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *old_state =drm_atomic_get_old_plane_state (state, plane);struct malidp_plane *mp;struct malidp_plane_state *ms =to_malidp_plane_state (plane->state);@@ -898,11 +898,11 @@ static void malidp_de_plane_update(struct drm_plane *plane,malidp_hw_write (mp->hwdev, val, mp->layer->base +MALIDP_LAYER_CONTROL ); }static void malidp_de_plane_disable (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct malidp_plane *mp =to_malidp_plane (plane); malidp_hw_clearbits(mp->hwdev, LAYER_ENABLE | LAYER_FLOWCFG(LAYER_FLOWCFG_MASK),drivers/gpu/drm/armada/armada_crtc.c +5
-5@@ -412,11 +412,11 @@ static void armada_drm_crtc_mode_set_nofb(struct drm_crtc *crtc)armada_drm_crtc_update_regs (dcrtc, regs);spin_unlock_irqrestore (&dcrtc->irq_lock, flags); }static int armada_drm_crtc_atomic_check (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);DRM_DEBUG_KMS ("[CRTC:%d:%s]\n" , crtc->base.id, crtc->name);@@ -428,11 +428,11 @@ static int armada_drm_crtc_atomic_check(struct drm_crtc *crtc,return 0 ; }static void armada_drm_crtc_atomic_begin (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct armada_crtc *dcrtc =drm_to_armada_crtc (crtc);@@ -444,11 +444,11 @@ static void armada_drm_crtc_atomic_begin(struct drm_crtc *crtc, dcrtc->regs_idx =0 ; dcrtc->regs = dcrtc->atomic_regs; }static void armada_drm_crtc_atomic_flush (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct armada_crtc *dcrtc =drm_to_armada_crtc (crtc);@@ -472,11 +472,11 @@ static void armada_drm_crtc_atomic_flush(struct drm_crtc *crtc,spin_unlock_irq (&dcrtc->irq_lock); } }static void armada_drm_crtc_atomic_disable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *old_state =drm_atomic_get_old_crtc_state (state, crtc);struct armada_crtc *dcrtc =drm_to_armada_crtc (crtc);struct drm_pending_vblank_event *event;@@ -510,11 +510,11 @@ static void armada_drm_crtc_atomic_disable(struct drm_crtc *crtc, } } }static void armada_drm_crtc_atomic_enable (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *old_state =drm_atomic_get_old_crtc_state (state, crtc);struct armada_crtc *dcrtc =drm_to_armada_crtc (crtc);drivers/gpu/drm/armada/armada_overlay.c +5
-5@@ -67,11 +67,11 @@ static inline u32 armada_csc(struct drm_plane_state *state) CFG_CSC_YUV_CCIR709 : CFG_CSC_YUV_CCIR601); }/* === Plane support === */ static void armada_drm_overlay_plane_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *old_state =drm_atomic_get_old_plane_state (state, plane);struct drm_plane_state *new_state =drm_atomic_get_new_plane_state (state, plane);@@ -218,11 +218,11 @@ static void armada_drm_overlay_plane_atomic_update(struct drm_plane *plane, dcrtc->regs_idx += idx; }static void armada_drm_overlay_plane_atomic_disable (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *old_state =drm_atomic_get_old_plane_state (state, plane);struct armada_crtc *dcrtc;struct armada_regs *regs;@@ -260,19 +260,19 @@ armada_overlay_plane_update(struct drm_plane *plane, struct drm_crtc *crtc,struct drm_framebuffer *fb, int crtc_x, int crtc_y, unsigned crtc_w, unsigned crtc_h, uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h, struct drm_modeset_acquire_ctx *ctx) { - struct drm_atomic_state *state; + struct drm_atomic_commit *state;struct drm_plane_state *plane_state;int ret =0 ;trace_armada_ovl_plane_update (plane, crtc, fb, crtc_x, crtc_y, crtc_w, crtc_h, src_x, src_y, src_w, src_h); - state =drm_atomic_state_alloc (plane->dev); + state =drm_atomic_commit_alloc (plane->dev);if (!state)return -ENOMEM ; state->acquire_ctx = ctx; plane_state =drm_atomic_get_plane_state (state, plane);@@ -295,11 +295,11 @@ armada_overlay_plane_update(struct drm_plane *plane, struct drm_crtc *crtc, plane_state->src_h = src_h; plane_state->src_w = src_w; ret =drm_atomic_nonblocking_commit (state); fail: -drm_atomic_state_put (state); +drm_atomic_commit_put (state);return ret; }static void armada_overlay_reset (struct drm_plane *plane) {drivers/gpu/drm/armada/armada_plane.c +3
-3@@ -78,11 +78,11 @@ void armada_drm_plane_calc(struct drm_plane_state *state, u32 addrs[2][3], addrs[1 ][i] = addrs[0 ][i]; } }int armada_drm_plane_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct armada_plane_state *st =to_armada_plane_state (new_plane_state);struct drm_crtc *crtc = new_plane_state->crtc;@@ -128,11 +128,11 @@ int armada_drm_plane_atomic_check(struct drm_plane *plane,return 0 ; }static void armada_drm_primary_plane_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *old_state =drm_atomic_get_old_plane_state (state, plane);struct drm_plane_state *new_state =drm_atomic_get_new_plane_state (state, plane);@@ -218,11 +218,11 @@ static void armada_drm_primary_plane_atomic_update(struct drm_plane *plane, dcrtc->regs_idx += idx; }static void armada_drm_primary_plane_atomic_disable (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *old_state =drm_atomic_get_old_plane_state (state, plane);struct armada_crtc *dcrtc;struct armada_regs *regs;drivers/gpu/drm/armada/armada_plane.h +1
-1@@ -22,11 +22,11 @@ struct armada_plane_state {void armada_drm_plane_calc (struct drm_plane_state *state,u32 addrs[2 ][3 ],u16 pitches[3 ],bool interlaced);void armada_drm_plane_cleanup_fb (struct drm_plane *plane,struct drm_plane_state *old_state);int armada_drm_plane_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state); +struct drm_atomic_commit *state);void armada_plane_reset (struct drm_plane *plane);struct drm_plane_state *armada_plane_duplicate_state (struct drm_plane *plane);void armada_plane_destroy_state (struct drm_plane *plane,struct drm_plane_state *state);drivers/gpu/drm/ast/ast_cursor.c +3
-3@@ -162,11 +162,11 @@ static const uint32_t ast_cursor_plane_formats[] = {DRM_FORMAT_ARGB4444 , DRM_FORMAT_ARGB8888, };static int ast_cursor_plane_helper_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct drm_framebuffer *new_fb = new_plane_state->fb;struct drm_crtc_state *new_crtc_state =NULL ;int ret;@@ -242,11 +242,11 @@ static const u8 *ast_cursor_plane_get_argb4444(struct ast_cursor_plane *ast_cursreturn argb4444; }static void ast_cursor_plane_helper_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ast_cursor_plane *ast_cursor_plane =to_ast_cursor_plane (plane);struct ast_plane *ast_plane =to_ast_plane (plane);struct drm_plane_state *plane_state =drm_atomic_get_new_plane_state (state, plane);struct drm_shadow_plane_state *shadow_plane_state =to_drm_shadow_plane_state (plane_state);@@ -307,11 +307,11 @@ static void ast_cursor_plane_helper_atomic_update(struct drm_plane *plane,/* Dummy write to enable HWC and make the HW pick-up the changes. */ ast_set_cursor_enabled (ast, true); }static void ast_cursor_plane_helper_atomic_disable (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (plane->dev);ast_set_cursor_enabled (ast, false); }drivers/gpu/drm/ast/ast_dp.c +2
-2@@ -357,11 +357,11 @@ static void ast_astdp_encoder_helper_atomic_mode_set(struct drm_encoder *encoderast_set_index_reg (ast,AST_IO_VGACRI ,0xe1 , vgacre1);ast_set_index_reg (ast,AST_IO_VGACRI ,0xe2 , vgacre2); }static void ast_astdp_encoder_helper_atomic_enable (struct drm_encoder *encoder, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (encoder->dev);struct ast_connector *ast_connector = &ast->output.astdp.connector;if (ast_connector->physical_status == connector_status_connected) {@@ -372,11 +372,11 @@ static void ast_astdp_encoder_helper_atomic_enable(struct drm_encoder *encoder,ast_dp_set_enable (ast, true); } }static void ast_astdp_encoder_helper_atomic_disable (struct drm_encoder *encoder, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (encoder->dev);ast_dp_set_enable (ast, false);ast_dp_set_phy_sleep (ast, true);drivers/gpu/drm/ast/ast_dp501.c +2
-2@@ -475,19 +475,19 @@ void ast_init_3rdtx(struct ast_device *ast)static const struct drm_encoder_funcs ast_dp501_encoder_funcs = { .destroy = drm_encoder_cleanup, };static void ast_dp501_encoder_helper_atomic_enable (struct drm_encoder *encoder, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (encoder->dev);ast_set_dp501_video_output (ast,1 ); }static void ast_dp501_encoder_helper_atomic_disable (struct drm_encoder *encoder, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (encoder->dev);ast_set_dp501_video_output (ast,0 ); }drivers/gpu/drm/ast/ast_mode.c +9
-9@@ -491,11 +491,11 @@ static const uint32_t ast_primary_plane_formats[] = {DRM_FORMAT_RGB565 , DRM_FORMAT_C8, };static int ast_primary_plane_helper_atomic_check (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_device *dev = plane->dev;struct drm_plane_state *new_plane_state =drm_atomic_get_new_plane_state (state, plane);struct drm_crtc_state *new_crtc_state =NULL ;struct ast_crtc_state *new_ast_crtc_state;@@ -539,11 +539,11 @@ static void ast_handle_damage(struct ast_plane *ast_plane, struct iosys_map *srcdrm_fb_memcpy (&dst, fb->pitches, src, fb, clip);#endif }static void ast_primary_plane_helper_atomic_update (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_device *dev = plane->dev;struct ast_device *ast =to_ast_device (dev);struct drm_plane_state *plane_state =drm_atomic_get_new_plane_state (state, plane);struct drm_shadow_plane_state *shadow_plane_state =to_drm_shadow_plane_state (plane_state);@@ -583,11 +583,11 @@ static void ast_primary_plane_helper_atomic_update(struct drm_plane *plane,if (!old_fb || old_fb->pitches[0 ] != fb->pitches[0 ])ast_set_offset_reg (ast, fb); }static void ast_primary_plane_helper_atomic_enable (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (plane->dev);struct ast_plane *ast_plane =to_ast_plane (plane);/* @@ -598,11 +598,11 @@ static void ast_primary_plane_helper_atomic_enable(struct drm_plane *plane,*/ ast_set_start_address_crt1 (ast, (u32 )ast_plane->offset); }static void ast_primary_plane_helper_atomic_disable (struct drm_plane *plane, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {/* * Keep this empty function to avoid calling * atomic_update when disabling the plane. */ @@ -706,11 +706,11 @@ static void ast_crtc_helper_mode_set_nofb(struct drm_crtc *crtc)ast_set_crtthd_reg (ast);ast_set_sync_reg (ast, adjusted_mode, vmode); }static int ast_crtc_helper_atomic_check (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct drm_display_mode *adjusted_mode = &crtc_state->adjusted_mode;struct drm_crtc_state *old_crtc_state =drm_atomic_get_old_crtc_state (state, crtc);struct ast_crtc_state *old_ast_crtc_state =to_ast_crtc_state (old_crtc_state);@@ -806,11 +806,11 @@ static int ast_crtc_helper_atomic_check(struct drm_crtc *crtc,return 0 ; }static void ast_crtc_helper_atomic_flush (struct drm_crtc *crtc, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *crtc_state =drm_atomic_get_new_crtc_state (state, crtc);struct drm_device *dev = crtc->dev;struct ast_device *ast =to_ast_device (dev);@@ -828,11 +828,11 @@ ast_crtc_helper_atomic_flush(struct drm_crtc *crtc,else ast_crtc_fill_gamma (ast, ast_crtc_state->format); } } -static void ast_crtc_helper_atomic_enable (struct drm_crtc *crtc,struct drm_atomic_state *state) +static void ast_crtc_helper_atomic_enable (struct drm_crtc *crtc,struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (crtc->dev);u8 vgacr17 =0x00 ;u8 vgacrb6 =0xff ;@@ -841,11 +841,11 @@ static void ast_crtc_helper_atomic_enable(struct drm_crtc *crtc, struct drm_atomast_set_index_reg_mask (ast,AST_IO_VGACRI ,0x17 ,0x7f , vgacr17);ast_set_index_reg_mask (ast,AST_IO_VGACRI ,0xb6 ,0xfc , vgacrb6); } -static void ast_crtc_helper_atomic_disable (struct drm_crtc *crtc,struct drm_atomic_state *state) +static void ast_crtc_helper_atomic_disable (struct drm_crtc *crtc,struct drm_atomic_commit *state) {struct drm_crtc_state *old_crtc_state =drm_atomic_get_old_crtc_state (state, crtc);struct ast_device *ast =to_ast_device (crtc->dev);u8 vgacr17 =0xff ;@@ -950,11 +950,11 @@ static int ast_crtc_init(struct ast_device *ast)/* * Mode config */ -static void ast_mode_config_helper_atomic_commit_tail (struct drm_atomic_state *state) +static void ast_mode_config_helper_atomic_commit_tail (struct drm_atomic_commit *state) {struct ast_device *ast =to_ast_device (state->dev);/* * Concurrent operations could possibly trigger a call to drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c +5
-5@@ -198,11 +198,11 @@ atmel_hlcdc_crtc_mode_valid(struct drm_crtc *c,return atmel_hlcdc_dc_mode_valid (crtc->dc, mode); }static void atmel_hlcdc_crtc_atomic_disable (struct drm_crtc *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_device *dev = c->dev;struct atmel_hlcdc_crtc *crtc =drm_crtc_to_atmel_hlcdc_crtc (c);struct regmap *regmap = crtc->dc->hlcdc->regmap;unsigned int status;@@ -250,11 +250,11 @@ static void atmel_hlcdc_crtc_atomic_disable(struct drm_crtc *c,pm_runtime_put_sync (dev->dev); }static void atmel_hlcdc_crtc_atomic_enable (struct drm_crtc *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_device *dev = c->dev;struct atmel_hlcdc_crtc *crtc =drm_crtc_to_atmel_hlcdc_crtc (c);struct regmap *regmap = crtc->dc->hlcdc->regmap;unsigned int status;@@ -456,11 +456,11 @@ static int atmel_hlcdc_crtc_select_output_mode(struct drm_crtc_state *state) }return 0 ; }static int atmel_hlcdc_crtc_atomic_check (struct drm_crtc *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_crtc_state *s =drm_atomic_get_new_crtc_state (state, c);int ret; ret =atmel_hlcdc_crtc_select_output_mode (s);@@ -473,17 +473,17 @@ static int atmel_hlcdc_crtc_atomic_check(struct drm_crtc *c,return atmel_hlcdc_plane_prepare_ahb_routing (s); }static void atmel_hlcdc_crtc_atomic_begin (struct drm_crtc *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {drm_crtc_vblank_on (c); }static void atmel_hlcdc_crtc_atomic_flush (struct drm_crtc *c, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct atmel_hlcdc_crtc *crtc =drm_crtc_to_atmel_hlcdc_crtc (c);unsigned long flags;spin_lock_irqsave (&c->dev->event_lock, flags);drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +1
-1@@ -981,11 +981,11 @@ static void atmel_hlcdc_dc_drm_shutdown(struct platform_device *pdev)static int atmel_hlcdc_dc_drm_suspend (struct device *dev) {struct drm_device *drm_dev =dev_get_drvdata (dev);struct atmel_hlcdc_dc *dc = drm_dev->dev_private;struct regmap *regmap = dc->hlcdc->regmap; -struct drm_atomic_state *state; +struct drm_atomic_commit *state; state =drm_atomic_helper_suspend (drm_dev);if (IS_ERR (state))return PTR_ERR (state);drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h +1
-1@@ -352,11 +352,11 @@ struct atmel_hlcdc_dc {struct drm_crtc *crtc;struct drm_device dev;struct atmel_hlcdc_layer *layers[ATMEL_HLCDC_MAX_LAYERS ];struct {u32 imr; -struct drm_atomic_state *state; +struct drm_atomic_commit *state; } suspend; };struct atmel_hlcdc_plane_state ;drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c +3
-3@@ -716,11 +716,11 @@ atmel_hlcdc_plane_update_disc_area(struct atmel_hlcdc_plane *plane,ATMEL_HLCDC_LAYER_DISC_SIZE (state->disc_w, state->disc_h)); }static int atmel_hlcdc_plane_atomic_check (struct drm_plane *p, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *s =drm_atomic_get_new_plane_state (state, p);struct atmel_hlcdc_plane *plane =drm_plane_to_atmel_hlcdc_plane (p);struct atmel_hlcdc_plane_state *hstate =drm_plane_state_to_atmel_hlcdc_plane_state (s);@@ -867,11 +867,11 @@ static void atmel_xlcdc_atomic_disable(struct atmel_hlcdc_plane *plane,/* Clear all pending interrupts */ atmel_hlcdc_layer_read_reg (&plane->layer,ATMEL_XLCDC_LAYER_ISR ); }static void atmel_hlcdc_plane_atomic_disable (struct drm_plane *p, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct atmel_hlcdc_plane *plane =drm_plane_to_atmel_hlcdc_plane (p);struct atmel_hlcdc_dc *dc = plane->base.dev->dev_private; dc->desc->ops->lcdc_atomic_disable (plane, dc);@@ -917,11 +917,11 @@ static void atmel_xlcdc_atomic_update(struct atmel_hlcdc_plane *plane,ATMEL_XLCDC_OVR1_UPDATE |ATMEL_XLCDC_OVR3_UPDATE | ATMEL_XLCDC_HEO_UPDATE); }static void atmel_hlcdc_plane_atomic_update (struct drm_plane *p, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_plane_state *new_s =drm_atomic_get_new_plane_state (state, p);struct atmel_hlcdc_plane *plane =drm_plane_to_atmel_hlcdc_plane (p); struct atmel_hlcdc_plane_state *hstate =drivers/gpu/drm/bridge/adv7511/adv7511_drv.c +2
-2@@ -781,11 +781,11 @@ static const struct adv7511 *bridge_to_adv7511_const(const struct drm_bridge *br { return container_of(bridge, struct adv7511, bridge); }static void adv7511_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct adv7511 *adv =bridge_to_adv7511 (bridge);struct drm_connector *connector;struct drm_connector_state *conn_state;struct drm_crtc_state *crtc_state;@@ -810,11 +810,11 @@ static void adv7511_bridge_atomic_enable(struct drm_bridge *bridge,drm_atomic_helper_connector_hdmi_update_infoframes (connector, state); }static void adv7511_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct adv7511 *adv =bridge_to_adv7511 (bridge);adv7511_power_off (adv); }drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +7
-7@@ -889,11 +889,11 @@ analogix_dp_best_encoder(struct drm_connector *connector)return dp->encoder; }static int analogix_dp_atomic_check (struct drm_connector *connector, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct analogix_dp_device *dp =to_dp (connector);struct drm_connector_state *conn_state;struct drm_crtc_state *crtc_state;@@ -993,11 +993,11 @@ static int analogix_dp_bridge_attach(struct drm_bridge *bridge,return 0 ; }static struct drm_crtc *analogix_dp_get_old_crtc (struct analogix_dp_device *dp, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_encoder *encoder = dp->encoder;struct drm_connector *connector;struct drm_connector_state *conn_state;@@ -1012,11 +1012,11 @@ struct drm_crtc *analogix_dp_get_old_crtc(struct analogix_dp_device *dp,return conn_state->crtc; }static struct drm_crtc *analogix_dp_get_new_crtc (struct analogix_dp_device *dp, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_encoder *encoder = dp->encoder;struct drm_connector *connector;struct drm_connector_state *conn_state;@@ -1030,11 +1030,11 @@ struct drm_crtc *analogix_dp_get_new_crtc(struct analogix_dp_device *dp,return conn_state->crtc; }static void analogix_dp_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {struct analogix_dp_device *dp =to_dp (bridge);struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state;@@ -1161,11 +1161,11 @@ static void analogix_dp_bridge_mode_set(struct drm_bridge *bridge,if (of_property_read_bool (dp_node,"interlaced" )) video->interlaced = true; }static void analogix_dp_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {struct analogix_dp_device *dp =to_dp (bridge);struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state, *new_crtc_state;int timeout_loop =0 ;@@ -1226,11 +1226,11 @@ static void analogix_dp_bridge_disable(struct drm_bridge *bridge) dp->psr_supported = false; dp->dpms_mode =DRM_MODE_DPMS_OFF ; }static void analogix_dp_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {struct analogix_dp_device *dp =to_dp (bridge);struct drm_crtc *old_crtc, *new_crtc;struct drm_crtc_state *old_crtc_state =NULL ;struct drm_crtc_state *new_crtc_state =NULL ;@@ -1264,11 +1264,11 @@ static void analogix_dp_bridge_atomic_disable(struct drm_bridge *bridge,analogix_dp_bridge_disable (bridge); }static void analogix_dp_bridge_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *old_state) +struct drm_atomic_commit *old_state) {struct analogix_dp_device *dp =to_dp (bridge);struct drm_crtc *crtc;struct drm_crtc_state *new_crtc_state;int ret;drivers/gpu/drm/bridge/analogix/anx7625.c +2
-2@@ -2557,11 +2557,11 @@ static int anx7625_bridge_atomic_check(struct drm_bridge *bridge,return 0 ; }static void anx7625_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct anx7625_data *ctx =bridge_to_anx7625 (bridge);struct device *dev = ctx->dev;struct drm_connector *connector;struct drm_connector_state *conn_state;@@ -2596,11 +2596,11 @@ static void anx7625_bridge_atomic_enable(struct drm_bridge *bridge, } } }static void anx7625_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct anx7625_data *ctx =bridge_to_anx7625 (bridge);struct device *dev = ctx->dev;dev_dbg (dev,"drm atomic disable\n" );drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c +2
-2@@ -589,11 +589,11 @@ cdns_dsi_bridge_mode_valid(struct drm_bridge *bridge,return MODE_OK ; }static void cdns_dsi_bridge_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct cdns_dsi_input *input =bridge_to_cdns_dsi_input (bridge);struct cdns_dsi *dsi =input_to_dsi (input);u32 val;@@ -699,11 +699,11 @@ static void cdns_dsi_init_link(struct cdns_dsi *dsi) dsi->link_initialized = true; }static void cdns_dsi_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct cdns_dsi_input *input =bridge_to_cdns_dsi_input (bridge);struct cdns_dsi *dsi =input_to_dsi (input);struct cdns_dsi_output *output = &dsi->output;struct drm_connector_state *conn_state;drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c +3
-3@@ -1748,11 +1748,11 @@ static void cdns_mhdp_sst_enable(struct cdns_mhdp_device *mhdp,cdns_mhdp_configure_video (mhdp, mode); }static void cdns_mhdp_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct cdns_mhdp_device *mhdp =bridge_to_mhdp (bridge);struct cdns_mhdp_bridge_state *mhdp_state;struct drm_crtc_state *crtc_state;struct drm_connector_state *conn_state;@@ -1839,11 +1839,11 @@ static void cdns_mhdp_atomic_enable(struct drm_bridge *bridge,if (ret <0 )schedule_work (&mhdp->modeset_retry_work); }static void cdns_mhdp_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct cdns_mhdp_device *mhdp =bridge_to_mhdp (bridge);u32 resp;dev_dbg (mhdp->dev,"%s\n" , __func__);@@ -1961,11 +1961,11 @@ static int cdns_mhdp_atomic_check(struct drm_bridge *bridge, struct drm_connector_state *conn_state) {struct cdns_mhdp_device *mhdp =bridge_to_mhdp (bridge);const struct drm_display_mode *mode = &crtc_state->adjusted_mode;struct drm_connector_state *old_state, *new_state; -struct drm_atomic_state *state = crtc_state->state; +struct drm_atomic_commit *state = crtc_state->state;struct drm_connector *conn = mhdp->connector;u64 old_cp, new_cp;mutex_lock (&mhdp->link_mutex);drivers/gpu/drm/bridge/chipone-icn6211.c +3
-3@@ -339,11 +339,11 @@ static void chipone_configure_pll(struct chipone *icn,chipone_writeb (icn,PLL_REF_DIV , ref_div);chipone_writeb (icn,PLL_INT (0 ), best_m); }static void chipone_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct chipone *icn =bridge_to_chipone (bridge);struct drm_display_mode *mode = &icn->mode;const struct drm_bridge_state *bridge_state;u16 hfp, hbp, hsync;@@ -442,11 +442,11 @@ static void chipone_atomic_enable(struct drm_bridge *bridge,usleep_range (10000 ,11000 ); }static void chipone_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct chipone *icn =bridge_to_chipone (bridge);int ret;if (icn->vdd1) {@@ -479,11 +479,11 @@ static void chipone_atomic_pre_enable(struct drm_bridge *bridge,usleep_range (10000 ,11000 ); }static void chipone_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct chipone *icn =bridge_to_chipone (bridge);clk_disable_unprepare (icn->refclk);drivers/gpu/drm/bridge/fsl-ldb.c +2
-2@@ -122,11 +122,11 @@ static int fsl_ldb_attach(struct drm_bridge *bridge,return drm_bridge_attach (encoder, fsl_ldb->panel_bridge, bridge, flags); }static void fsl_ldb_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct fsl_ldb *fsl_ldb =to_fsl_ldb (bridge);const struct drm_bridge_state *bridge_state;const struct drm_crtc_state *crtc_state;const struct drm_display_mode *mode;@@ -226,11 +226,11 @@ static void fsl_ldb_atomic_enable(struct drm_bridge *bridge,regmap_write (fsl_ldb->regmap, fsl_ldb->devdata->lvds_ctrl, reg); }static void fsl_ldb_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct fsl_ldb *fsl_ldb =to_fsl_ldb (bridge);/* Stop channel(s). */ if (fsl_ldb->devdata->lvds_en_bit)drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c +2
-2@@ -47,11 +47,11 @@ static int imx8mp_hdmi_pvi_bridge_attach(struct drm_bridge *bridge,return drm_bridge_attach (encoder, pvi->bridge.next_bridge, bridge, flags); }static void imx8mp_hdmi_pvi_bridge_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct imx8mp_hdmi_pvi *pvi =to_imx8mp_hdmi_pvi (bridge);struct drm_connector_state *conn_state;struct drm_bridge_state *bridge_state;const struct drm_display_mode *mode;@@ -87,11 +87,11 @@ static void imx8mp_hdmi_pvi_bridge_enable(struct drm_bridge *bridge,writel (val, pvi->regs +HTX_PVI_CTRL ); }static void imx8mp_hdmi_pvi_bridge_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct imx8mp_hdmi_pvi *pvi =to_imx8mp_hdmi_pvi (bridge);writel (0x0 , pvi->regs +HTX_PVI_CTRL );drivers/gpu/drm/bridge/imx/imx8qm-ldb.c +2
-2@@ -199,11 +199,11 @@ imx8qm_ldb_bridge_mode_set(struct drm_bridge *bridge,regmap_update_bits (ldb->regmap,SS_CTRL ,CH_HSYNC_M (chno),CH_PHSYNC (chno)); }static void imx8qm_ldb_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ldb_channel *ldb_ch = bridge->driver_private;struct ldb *ldb = ldb_ch->ldb;struct imx8qm_ldb_channel *imx8qm_ldb_ch =base_to_imx8qm_ldb_channel (ldb_ch);@@ -245,11 +245,11 @@ static void imx8qm_ldb_bridge_atomic_enable(struct drm_bridge *bridge,ldb_bridge_enable_helper (bridge); }static void imx8qm_ldb_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ldb_channel *ldb_ch = bridge->driver_private;struct ldb *ldb = ldb_ch->ldb;struct imx8qm_ldb_channel *imx8qm_ldb_ch =base_to_imx8qm_ldb_channel (ldb_ch);drivers/gpu/drm/bridge/imx/imx8qxp-ldb.c +3
-3@@ -214,11 +214,11 @@ imx8qxp_ldb_bridge_mode_set(struct drm_bridge *bridge,if (is_split && companion) companion->funcs->mode_set (companion, mode, adjusted_mode); }static void imx8qxp_ldb_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ldb_channel *ldb_ch = bridge->driver_private;struct ldb *ldb = ldb_ch->ldb;struct imx8qxp_ldb *imx8qxp_ldb =base_to_imx8qxp_ldb (ldb);struct drm_bridge *companion = imx8qxp_ldb->companion;@@ -230,11 +230,11 @@ static void imx8qxp_ldb_bridge_atomic_pre_enable(struct drm_bridge *bridge,if (is_split && companion) companion->funcs->atomic_pre_enable (companion, state); }static void imx8qxp_ldb_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ldb_channel *ldb_ch = bridge->driver_private;struct ldb *ldb = ldb_ch->ldb;struct imx8qxp_ldb_channel *imx8qxp_ldb_ch =base_to_imx8qxp_ldb_channel (ldb_ch);@@ -264,11 +264,11 @@ static void imx8qxp_ldb_bridge_atomic_enable(struct drm_bridge *bridge,if (is_split && companion) companion->funcs->atomic_enable (companion, state); }static void imx8qxp_ldb_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ldb_channel *ldb_ch = bridge->driver_private;struct ldb *ldb = ldb_ch->ldb;struct imx8qxp_ldb_channel *imx8qxp_ldb_ch =base_to_imx8qxp_ldb_channel (ldb_ch);drivers/gpu/drm/bridge/imx/imx8qxp-pixel-combiner.c +1
-1@@ -174,11 +174,11 @@ imx8qxp_pc_bridge_mode_set(struct drm_bridge *bridge,clk_disable_unprepare (pc->clk_apb); }static void imx8qxp_pc_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct imx8qxp_pc_channel *ch = bridge->driver_private;struct imx8qxp_pc *pc = ch->pc;pm_runtime_put (pc->dev);drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c +2
-2@@ -152,21 +152,21 @@ imx8qxp_pixel_link_bridge_mode_set(struct drm_bridge *bridge,imx8qxp_pixel_link_set_mst_addr (pl); }static void imx8qxp_pixel_link_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct imx8qxp_pixel_link *pl = bridge->driver_private;imx8qxp_pixel_link_enable_mst_en (pl);imx8qxp_pixel_link_enable_mst_vld (pl);imx8qxp_pixel_link_enable_sync (pl); }static void imx8qxp_pixel_link_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct imx8qxp_pixel_link *pl = bridge->driver_private;imx8qxp_pixel_link_disable_mst_en (pl);imx8qxp_pixel_link_disable_mst_vld (pl);drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c +1
-1@@ -131,11 +131,11 @@ imx8qxp_pxl2dpi_bridge_mode_set(struct drm_bridge *bridge, adjusted_mode); } }static void imx8qxp_pxl2dpi_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct imx8qxp_pxl2dpi *p2d = bridge->driver_private;pm_runtime_put (p2d->dev);drivers/gpu/drm/bridge/inno-hdmi.c +3
-3@@ -754,11 +754,11 @@ static int inno_hdmi_config_video_timing(struct inno_hdmi *hdmi,hdmi_writeb (hdmi,HDMI_PHY_FEEDBACK_DIV_RATIO_HIGH ,0x01 );return 0 ; } -static int inno_hdmi_setup (struct inno_hdmi *hdmi,struct drm_atomic_state *state) +static int inno_hdmi_setup (struct inno_hdmi *hdmi,struct drm_atomic_commit *state) {struct drm_bridge *bridge = &hdmi->bridge;struct drm_connector *connector;struct drm_display_info *info;struct drm_connector_state *new_conn_state;@@ -861,19 +861,19 @@ inno_hdmi_bridge_edid_read(struct drm_bridge *bridge, struct drm_connector *connreturn drm_edid; }static void inno_hdmi_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct inno_hdmi *hdmi =bridge_to_inno_hdmi (bridge);inno_hdmi_setup (hdmi, state); }static void inno_hdmi_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct inno_hdmi *hdmi =bridge_to_inno_hdmi (bridge);inno_hdmi_standby (hdmi); }drivers/gpu/drm/bridge/ite-it6263.c +2
-2@@ -577,22 +577,22 @@ static int it6263_read_edid(void *data, u8 *buf, unsigned int block, size_t len)return 0 ; }static void it6263_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct it6263 *it =bridge_to_it6263 (bridge);regmap_write_bits (it->hdmi_regmap,HDMI_REG_GCP ,AVMUTE ,AVMUTE );regmap_write (it->hdmi_regmap,HDMI_REG_PKT_GENERAL_CTRL ,0 );regmap_write (it->hdmi_regmap,HDMI_REG_AFE_DRV_CTRL ,AFE_DRV_RST |AFE_DRV_PWD ); }static void it6263_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct it6263 *it =bridge_to_it6263 (bridge);const struct drm_crtc_state *crtc_state;struct regmap *regmap = it->hdmi_regmap;const struct drm_display_mode *mode;drivers/gpu/drm/bridge/ite-it6505.c +4
-4@@ -3117,11 +3117,11 @@ it6505_bridge_mode_valid(struct drm_bridge *bridge,return MODE_OK ; }static void it6505_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct it6505 *it6505 =bridge_to_it6505 (bridge);struct device *dev = it6505->dev;struct hdmi_avi_infoframe frame;struct drm_crtc_state *crtc_state;@@ -3171,11 +3171,11 @@ static void it6505_bridge_atomic_enable(struct drm_bridge *bridge,drm_dp_link_power_up (&it6505->aux, it6505->link.revision); }static void it6505_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct it6505 *it6505 =bridge_to_it6505 (bridge);struct device *dev = it6505->dev;DRM_DEV_DEBUG_DRIVER (dev,"start" );@@ -3185,22 +3185,22 @@ static void it6505_bridge_atomic_disable(struct drm_bridge *bridge,it6505_video_disable (it6505); } }static void it6505_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct it6505 *it6505 =bridge_to_it6505 (bridge);struct device *dev = it6505->dev;DRM_DEV_DEBUG_DRIVER (dev,"start" );pm_runtime_get_sync (dev); }static void it6505_bridge_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct it6505 *it6505 =bridge_to_it6505 (bridge);struct device *dev = it6505->dev;DRM_DEV_DEBUG_DRIVER (dev,"start" );drivers/gpu/drm/bridge/ite-it66121.c +2
-2@@ -720,21 +720,21 @@ static u32 *it66121_bridge_atomic_get_input_bus_fmts(struct drm_bridge *bridge,return input_fmts; }static void it66121_bridge_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) { struct it66121_ctx *ctx = container_of(bridge, struct it66121_ctx, bridge); ctx->connector =drm_atomic_get_new_connector_for_encoder (state, bridge->encoder);it66121_set_mute (ctx, false); }static void it66121_bridge_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) { struct it66121_ctx *ctx = container_of(bridge, struct it66121_ctx, bridge);it66121_set_mute (ctx, true);drivers/gpu/drm/bridge/lontium-lt9211.c +2
-2@@ -453,11 +453,11 @@ static int lt9211_configure_tx(struct lt9211 *ctx, bool jeida,return 0 ; }static void lt9211_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct lt9211 *ctx =bridge_to_lt9211 (bridge);const struct drm_bridge_state *bridge_state;const struct drm_crtc_state *crtc_state;const struct drm_display_mode *mode;@@ -550,11 +550,11 @@ static void lt9211_atomic_enable(struct drm_bridge *bridge,dev_dbg (ctx->dev,"LT9211 enabled.\n" ); }static void lt9211_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct lt9211 *ctx =bridge_to_lt9211 (bridge);int ret;/* drivers/gpu/drm/bridge/lontium-lt9611.c +4
-4@@ -655,11 +655,11 @@ lt9611_get_edid_block(void *data, u8 *buf, unsigned int block, size_t len)return 0 ; }/* bridge funcs */ static void lt9611_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct lt9611 *lt9611 =bridge_to_lt9611 (bridge);struct drm_connector *connector;struct drm_connector_state *conn_state;struct drm_crtc_state *crtc_state;@@ -702,11 +702,11 @@ static void lt9611_bridge_atomic_enable(struct drm_bridge *bridge,/* Enable HDMI output */ regmap_write (lt9611->regmap,0x8130 ,0xea ); }static void lt9611_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct lt9611 *lt9611 =bridge_to_lt9611 (bridge);int ret;/* Disable HDMI output */ @@ -780,11 +780,11 @@ static enum drm_mode_status lt9611_bridge_mode_valid(struct drm_bridge *bridge,return MODE_OK ; }static void lt9611_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct lt9611 *lt9611 =bridge_to_lt9611 (bridge);static const struct reg_sequence reg_cfg[] = { {0x8102 ,0x12 }, {0x8123 ,0x40 },@@ -800,11 +800,11 @@ static void lt9611_bridge_atomic_pre_enable(struct drm_bridge *bridge, lt9611->sleep = false; }static void lt9611_bridge_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct lt9611 *lt9611 =bridge_to_lt9611 (bridge);lt9611_sleep_setup (lt9611); }drivers/gpu/drm/bridge/nwl-dsi.c +2
-2@@ -735,11 +735,11 @@ static int nwl_dsi_disable(struct nwl_dsi *dsi)return 0 ; }static void nwl_dsi_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct nwl_dsi *dsi =bridge_to_dsi (bridge);int ret;nwl_dsi_disable (dsi);@@ -896,11 +896,11 @@ nwl_dsi_bridge_mode_set(struct drm_bridge *bridge, runtime_put:pm_runtime_put_sync (dev); }static void nwl_dsi_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct nwl_dsi *dsi =bridge_to_dsi (bridge);int ret;/* Step 5 from DSI reset-out instructions */ drivers/gpu/drm/bridge/panel.c +4
-4@@ -109,11 +109,11 @@ static void panel_bridge_detach(struct drm_bridge *bridge)if (connector->dev)drm_connector_cleanup (connector); }static void panel_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *atomic_state) +struct drm_atomic_commit *atomic_state) {struct panel_bridge *panel_bridge =drm_bridge_to_panel_bridge (bridge);struct drm_encoder *encoder = bridge->encoder;struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state;@@ -128,11 +128,11 @@ static void panel_bridge_atomic_pre_enable(struct drm_bridge *bridge,drm_panel_prepare (panel_bridge->panel); }static void panel_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *atomic_state) +struct drm_atomic_commit *atomic_state) {struct panel_bridge *panel_bridge =drm_bridge_to_panel_bridge (bridge);struct drm_encoder *encoder = bridge->encoder;struct drm_crtc *crtc;struct drm_crtc_state *old_crtc_state;@@ -147,11 +147,11 @@ static void panel_bridge_atomic_enable(struct drm_bridge *bridge,drm_panel_enable (panel_bridge->panel); }static void panel_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *atomic_state) +struct drm_atomic_commit *atomic_state) {struct panel_bridge *panel_bridge =drm_bridge_to_panel_bridge (bridge);struct drm_encoder *encoder = bridge->encoder;struct drm_crtc *crtc;struct drm_crtc_state *new_crtc_state;@@ -166,11 +166,11 @@ static void panel_bridge_atomic_disable(struct drm_bridge *bridge,drm_panel_disable (panel_bridge->panel); }static void panel_bridge_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *atomic_state) +struct drm_atomic_commit *atomic_state) {struct panel_bridge *panel_bridge =drm_bridge_to_panel_bridge (bridge);struct drm_encoder *encoder = bridge->encoder;struct drm_crtc *crtc;struct drm_crtc_state *new_crtc_state;drivers/gpu/drm/bridge/parade-ps8640.c +2
-2@@ -435,11 +435,11 @@ static const struct dev_pm_ops ps8640_pm_ops = {SET_SYSTEM_SLEEP_PM_OPS (pm_runtime_force_suspend, pm_runtime_force_resume) };static void ps8640_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ps8640 *ps_bridge =bridge_to_ps8640 (bridge);struct regmap *map = ps_bridge->regmap[PAGE2_TOP_CNTL ];struct device *dev = &ps_bridge->page[PAGE0_DP_CNTL ]->dev;int ret;@@ -470,11 +470,11 @@ static void ps8640_atomic_pre_enable(struct drm_bridge *bridge, ps_bridge->pre_enabled = true; }static void ps8640_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ps8640 *ps_bridge =bridge_to_ps8640 (bridge); ps_bridge->pre_enabled = false;drivers/gpu/drm/bridge/samsung-dsim.c +4
-4@@ -1638,11 +1638,11 @@ static int samsung_dsim_init(struct samsung_dsim *dsi)return 0 ; }static void samsung_dsim_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct samsung_dsim *dsi =bridge_to_dsi (bridge);int ret;if (dsi->state &DSIM_STATE_ENABLED )@@ -1666,22 +1666,22 @@ static void samsung_dsim_atomic_pre_enable(struct drm_bridge *bridge,return ; } }static void samsung_dsim_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct samsung_dsim *dsi =bridge_to_dsi (bridge);samsung_dsim_set_display_mode (dsi);samsung_dsim_set_display_enable (dsi, true); dsi->state |=DSIM_STATE_VIDOUT_AVAILABLE ; }static void samsung_dsim_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct samsung_dsim *dsi =bridge_to_dsi (bridge);if (!(dsi->state &DSIM_STATE_ENABLED ))return ;@@ -1689,11 +1689,11 @@ static void samsung_dsim_atomic_disable(struct drm_bridge *bridge,samsung_dsim_set_display_enable (dsi, false); dsi->state &= ~DSIM_STATE_VIDOUT_AVAILABLE ; }static void samsung_dsim_atomic_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct samsung_dsim *dsi =bridge_to_dsi (bridge); dsi->state &= ~DSIM_STATE_ENABLED ;pm_runtime_put_sync (dsi->dev);drivers/gpu/drm/bridge/sii902x.c +2
-2@@ -319,11 +319,11 @@ static int sii902x_get_modes(struct drm_connector *connector)static const struct drm_connector_helper_funcs sii902x_connector_helper_funcs = { .get_modes = sii902x_get_modes, };static void sii902x_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct sii902x *sii902x =bridge_to_sii902x (bridge);mutex_lock (&sii902x->mutex);@@ -333,11 +333,11 @@ static void sii902x_bridge_atomic_disable(struct drm_bridge *bridge,mutex_unlock (&sii902x->mutex); }static void sii902x_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct sii902x *sii902x =bridge_to_sii902x (bridge);struct drm_connector *connector;u8 output_mode =SII902X_SYS_CTRL_OUTPUT_DVI ;drivers/gpu/drm/bridge/ssd2825.c +3
-3@@ -480,11 +480,11 @@ static int ssd2825_setup_pll(struct ssd2825_priv *priv,return 0 ; }static void ssd2825_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ssd2825_priv *priv =bridge_to_ssd2825 (bridge);struct mipi_dsi_device *dsi_dev = priv->output.dev;const struct drm_crtc_state *crtc_state;const struct drm_display_mode *mode;@@ -583,11 +583,11 @@ static void ssd2825_bridge_atomic_pre_enable(struct drm_bridge *bridge,if (priv->output.panel)drm_panel_enable (priv->output.panel); }static void ssd2825_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ssd2825_priv *priv =bridge_to_ssd2825 (bridge);struct mipi_dsi_device *dsi_dev = priv->output.dev;u16 config;@@ -605,11 +605,11 @@ static void ssd2825_bridge_atomic_enable(struct drm_bridge *bridge,ssd2825_write_reg (priv,SSD2825_PLL_CTRL_REG ,0x0001 );ssd2825_write_reg (priv,SSD2825_VC_CTRL_REG ,0x0000 ); }static void ssd2825_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct ssd2825_priv *priv =bridge_to_ssd2825 (bridge);int ret;msleep (100 );drivers/gpu/drm/bridge/synopsys/dw-dp.c +2
-2@@ -1642,11 +1642,11 @@ static int dw_dp_link_enable(struct dw_dp *dp)return ret; }static void dw_dp_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_dp *dp =bridge_to_dp (bridge);struct drm_connector *connector;struct drm_connector_state *conn_state;int ret;@@ -1695,11 +1695,11 @@ static void dw_dp_reset(struct dw_dp *dp)regmap_write (dp->regmap,DW_DP_HPD_STATUS ,HPD_HOT_PLUG );enable_irq (dp->irq); }static void dw_dp_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_dp *dp =bridge_to_dp (bridge);dw_dp_video_disable (dp);dw_dp_link_disable (dp);drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c +2
-2@@ -748,11 +748,11 @@ static struct i2c_adapter *dw_hdmi_qp_i2c_adapter(struct dw_hdmi_qp *hdmi)return adap; }static void dw_hdmi_qp_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_hdmi_qp *hdmi = bridge->driver_private;struct drm_connector_state *conn_state;struct drm_connector *connector;unsigned int op_mode;@@ -783,11 +783,11 @@ static void dw_hdmi_qp_bridge_atomic_enable(struct drm_bridge *bridge,drm_atomic_helper_connector_hdmi_update_infoframes (connector, state); }static void dw_hdmi_qp_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_hdmi_qp *hdmi = bridge->driver_private; hdmi->tmds_char_rate =0 ;drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +3
-3@@ -2527,11 +2527,11 @@ static int dw_hdmi_connector_get_modes(struct drm_connector *connector)return ret; }static int dw_hdmi_connector_atomic_check (struct drm_connector *connector, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct drm_connector_state *old_state =drm_atomic_get_old_connector_state (state, connector);struct drm_connector_state *new_state =drm_atomic_get_new_connector_state (state, connector);@@ -2960,11 +2960,11 @@ static void dw_hdmi_bridge_mode_set(struct drm_bridge *bridge,mutex_unlock (&hdmi->mutex); }static void dw_hdmi_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_hdmi *hdmi = bridge->driver_private;mutex_lock (&hdmi->mutex); hdmi->disabled = true;@@ -2974,11 +2974,11 @@ static void dw_hdmi_bridge_atomic_disable(struct drm_bridge *bridge,handle_plugged_change (hdmi, false);mutex_unlock (&hdmi->mutex); }static void dw_hdmi_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_hdmi *hdmi = bridge->driver_private;struct drm_connector *connector; connector = drm_atomic_get_new_connector_for_encoder(state,drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c +3
-3@@ -933,11 +933,11 @@ static void dw_mipi_dsi_clear_err(struct dw_mipi_dsi *dsi)dsi_write (dsi,DSI_INT_MSK0 ,0 );dsi_write (dsi,DSI_INT_MSK1 ,0 ); }static void dw_mipi_dsi_bridge_post_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_mipi_dsi *dsi =bridge_to_dsi (bridge);const struct dw_mipi_dsi_phy_ops *phy_ops = dsi->plat_data->phy_ops;/* @@ -1021,11 +1021,11 @@ static void dw_mipi_dsi_mode_set(struct dw_mipi_dsi *dsi,if (phy_ops->power_on) phy_ops->power_on (dsi->plat_data->priv_data); }static void dw_mipi_dsi_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_mipi_dsi *dsi =bridge_to_dsi (bridge);/* Power up the dsi ctl into a command mode */ dw_mipi_dsi_mode_set (dsi, &dsi->mode);@@ -1042,11 +1042,11 @@ static void dw_mipi_dsi_bridge_mode_set(struct drm_bridge *bridge,/* Store the display mode for later use in pre_enable callback */ drm_mode_copy (&dsi->mode, adjusted_mode); }static void dw_mipi_dsi_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_mipi_dsi *dsi =bridge_to_dsi (bridge);/* Switch to video mode for panel-bridge enable & panel enable */ dw_mipi_dsi_set_mode (dsi,MIPI_DSI_MODE_VIDEO );drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c +3
-3@@ -744,11 +744,11 @@ static int dw_mipi_dsi2_bridge_atomic_check(struct drm_bridge *bridge,return 0 ; }static void dw_mipi_dsi2_bridge_post_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_mipi_dsi2 *dsi2 =bridge_to_dsi2 (bridge);const struct dw_mipi_dsi2_phy_ops *phy_ops = dsi2->plat_data->phy_ops;regmap_write (dsi2->regmap,DSI2_IPI_PIX_PKT_CFG ,0 );@@ -820,11 +820,11 @@ static void dw_mipi_dsi2_mode_set(struct dw_mipi_dsi2 *dsi2,dw_mipi_dsi2_ipi_set (dsi2); }static void dw_mipi_dsi2_bridge_atomic_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_mipi_dsi2 *dsi2 =bridge_to_dsi2 (bridge);/* Power up the dsi ctl into a command mode */ dw_mipi_dsi2_mode_set (dsi2, &dsi2->mode);@@ -839,11 +839,11 @@ static void dw_mipi_dsi2_bridge_mode_set(struct drm_bridge *bridge,/* Store the display mode for later use in pre_enable callback */ drm_mode_copy (&dsi2->mode, adjusted_mode); }static void dw_mipi_dsi2_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct dw_mipi_dsi2 *dsi2 =bridge_to_dsi2 (bridge);/* Switch to video mode for panel-bridge enable & panel enable */ if (dsi2->mode_flags &MIPI_DSI_MODE_VIDEO )drivers/gpu/drm/bridge/tc358762.c +3
-3@@ -148,11 +148,11 @@ static int tc358762_init(struct tc358762 *ctx)return tc358762_clear_error (ctx); }static void tc358762_post_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct tc358762 *ctx =bridge_to_tc358762 (bridge);int ret;/* @@ -171,11 +171,11 @@ static void tc358762_post_disable(struct drm_bridge *bridge,if (ret <0 )dev_err (ctx->dev,"error disabling regulators (%d)\n" , ret); }static void tc358762_pre_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct tc358762 *ctx =bridge_to_tc358762 (bridge);int ret; ret =regulator_enable (ctx->regulator);@@ -189,11 +189,11 @@ static void tc358762_pre_enable(struct drm_bridge *bridge, ctx->pre_enabled = true; }static void tc358762_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct tc358762 *ctx =bridge_to_tc358762 (bridge);int ret; ret =tc358762_init (ctx);drivers/gpu/drm/bridge/tc358767.c +4
-4@@ -1555,11 +1555,11 @@ static int tc_edp_stream_disable(struct tc_data *tc)return 0 ; }static void tc_dpi_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct tc_data *tc =bridge_to_tc (bridge);int ret;@@ -1570,22 +1570,22 @@ static void tc_dpi_bridge_atomic_enable(struct drm_bridge *bridge,return ; } }static void tc_dpi_bridge_atomic_disable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct tc_data *tc =bridge_to_tc (bridge);int ret; ret =tc_dpi_stream_disable (tc);if (ret <0 )dev_err (tc->dev,"main link stream stop error: %d\n" , ret); }static void tc_edp_bridge_atomic_enable (struct drm_bridge *bridge, -struct drm_atomic_state *state) +struct drm_atomic_commit *state) {struct tc_data *tc =bridge_to_tc (bridge);int ret; ret =tc_get_display_props (tc);@@ -1607,11 +1607,11 @@ static void tc_edp_bridge_atomic_enable(struct drm_bridge *bridge,return ; }Lines of this file are not shown. View the raw message.
drivers/gpu/drm/bridge/ti-sn65dsi86.c +11
-11Lines of this file are not shown. View the raw message.
drivers/gpu/drm/ci/xfails/vkms-none-skips.txt +10
-10Lines of this file are not shown. View the raw message.
drivers/gpu/drm/display/drm_bridge_connector.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/display/drm_dp_mst_topology.c +13
-13Lines of this file are not shown. View the raw message.
drivers/gpu/drm/display/drm_dp_tunnel.c +7
-7Lines of this file are not shown. View the raw message.
drivers/gpu/drm/display/drm_hdmi_state_helper.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/drm_atomic_state_helper.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/drm_self_refresh_helper.c +6
-6Lines of this file are not shown. View the raw message.
drivers/gpu/drm/drm_simple_kms_helper.c +5
-5Lines of this file are not shown. View the raw message.
drivers/gpu/drm/exynos/exynos_drm_crtc.c +5
-5Lines of this file are not shown. View the raw message.
drivers/gpu/drm/exynos/exynos_drm_plane.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c +6
-6Lines of this file are not shown. View the raw message.
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_dp.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +7
-7Lines of this file are not shown. View the raw message.
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/g4x_hdmi.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/g4x_hdmi.h +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_atomic.c +8
-8Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_atomic.h +6
-6Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_audio.c +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_crt.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display.c +11
-11Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display.h +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display_core.h +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display_driver.c +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display_driver.h +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display_reset.c +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display_types.h +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_dp.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_dp_mst.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_fdi.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_hdmi.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_load_detect.c +10
-10Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_load_detect.h +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_modeset_lock.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_modeset_setup.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_pipe_crc.c +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_plane.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_psr.c +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_sdvo.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_sprite_uapi.c +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_tc.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_tv.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/imx/ipuv3/imx-drm-core.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/ingenic/ingenic-drm-drv.c +12
-12Lines of this file are not shown. View the raw message.
drivers/gpu/drm/logicvc/logicvc_layer.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/loongson/lsdc_output_7a1000.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/loongson/lsdc_output_7a2000.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/loongson/lsdc_plane.c +11
-11Lines of this file are not shown. View the raw message.
drivers/gpu/drm/meson/meson_encoder_cvbs.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/meson/meson_encoder_dsi.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/meson/meson_encoder_hdmi.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_drv.h +13
-13Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200eh.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200eh3.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200eh5.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200er.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200ev.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200ew3.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200se.c +5
-5Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_g200wb.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mgag200/mgag200_vga_bmc.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c +6
-6Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c +6
-6Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.h +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/dpu1/dpu_writeback.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c +5
-5Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c +5
-5Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.h +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.h +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/msm_disp_snapshot.h +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/dispnv50/atom.h +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/dispnv50/disp.c +34
-34Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/dispnv50/head.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/dispnv50/wndw.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nouveau_connector.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nouveau_display.h +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nouveau_encoder.h +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_du_crtc.c +9
-9Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_du_kms.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_du_plane.h +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_lvds.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.h +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rz-du/rzg2l_du_crtc.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rz-du/rzg2l_du_vsp.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/dw_dp-rockchip.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +11
-11Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c +9
-9Lines of this file are not shown. View the raw message.
drivers/gpu/drm/sun4i/sun4i_framebuffer.c +1
-1Lines of this file are not shown. View the raw message.
drivers/gpu/drm/sysfb/drm_sysfb_helper.h +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/sysfb/drm_sysfb_modeset.c +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/tests/drm_atomic_commit_test.c renamed from drivers/gpu/drm/tests/drm_atomic_state_test.c +6
-6Lines of this file are not shown. View the raw message.
drivers/gpu/drm/tests/drm_bridge_test.c +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c +44
-44Lines of this file are not shown. View the raw message.
drivers/gpu/drm/tests/drm_kunit_helpers.c +9
-9Lines of this file are not shown. View the raw message.
drivers/gpu/drm/vc4/tests/vc4_mock_output.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c +25
-25Lines of this file are not shown. View the raw message.
drivers/gpu/drm/verisilicon/vs_bridge.c +3
-3Lines of this file are not shown. View the raw message.
drivers/gpu/drm/verisilicon/vs_primary_plane.c +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/virtio/virtgpu_display.c +4
-4Lines of this file are not shown. View the raw message.
drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c +2
-2Lines of this file are not shown. View the raw message.
drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.h +2
-2Lines of this file are not shown. View the raw message.
include/drm/display/drm_dp_mst_helper.h +16
-16Lines of this file are not shown. View the raw message.
include/drm/display/drm_hdmi_state_helper.h +3
-3Lines of this file are not shown. View the raw message.
include/drm/drm_modeset_helper_vtables.h +22
-22Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 6 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)
Part of the diff is not shown here. View the raw message.
Maxime Ripard
maintainerHi Thomas,
Quoted 19 lines · Thomas Zimmermann
Am 31.03.26 um 16:41 schrieb Maxime Ripard:
Quoted 6 lines
The KMS framework uses two slightly different definitions for the state concept. For a given object (plane, CRTC, encoder, etc., so drm_$OBJECT_state), the state is the entire state of that object. However, at the device level,
drm_atomic_staterefers to a state update for a limited number of objects.Quoted 6 lines
Thus,
drm_atomic_stateisn't the entire device state, but only the full state of some objects in that device. This has been an endless source of confusion and thus bugs.We can rename
drm_atomic_statetodrm_atomic_committo make it less confusing.Nit: The subject should already spell out the new name.
Quoted 3 lines
This patch was created using:
Quoted 7 lines
Quoted 3 lines
rg -l
drm_atomic_state| \
xargs sed -i 's/drm_atomic_state/drm_atomic_commit/g; s/drm_atomic_commit_helper/drm_atomic_state_helper/g'
mvdrivers/gpu/drm/tests/drm_atomic_state_test.cdrivers/gpu/drm/tests/drm_atomic_commit_test.cWe now have many places that read like "struct
drm_atomic_commit*state', which mixes up terminology. Is there a way of transforming this automatically to use 'commit' for the variable's name?
I know what you're saying, but it would be much more intrusive and I'm not sure I feel comfortable doing it in one go. I had a try this morning to come up with a coccinelle script and it looks like it chokes up a bit on it too.
I'm sure we could blame my coccinelle skills, but how about we do this driver by driver later on? I can do it if you want me to, and we don't really need to have that one big commit, it can be split into smaller units that would be easier to test and merge.
Maxime
Thomas Zimmermann
maintainerHi
Am 01.04.26 um 10:06 schrieb Maxime Ripard:
Quoted 31 lines
Hi Thomas,
Quoted 15 lines · Thomas Zimmermann
Am 31.03.26 um 16:41 schrieb Maxime Ripard:
Quoted 6 lines
The KMS framework uses two slightly different definitions for the state concept. For a given object (plane, CRTC, encoder, etc., so drm_$OBJECT_state), the state is the entire state of that object. However, at the device level,
drm_atomic_staterefers to a state update for a limited number of objects.Quoted 6 lines
Thus,
drm_atomic_stateisn't the entire device state, but only the full state of some objects in that device. This has been an endless source of confusion and thus bugs.We can rename
drm_atomic_statetodrm_atomic_committo make it less confusing.Nit: The subject should already spell out the new name.
Quoted 8 lines
Quoted 5 lines
This patch was created using:
rg -l
drm_atomic_state| \
xargs sed -i 's/drm_atomic_state/drm_atomic_commit/g; s/drm_atomic_commit_helper/drm_atomic_state_helper/g'
mvdrivers/gpu/drm/tests/drm_atomic_state_test.cdrivers/gpu/drm/tests/drm_atomic_commit_test.cWe now have many places that read like "struct
drm_atomic_commit*state', which mixes up terminology. Is there a way of transforming this automatically to use 'commit' for the variable's name?I know what you're saying, but it would be much more intrusive and I'm not sure I feel comfortable doing it in one go. I had a try this morning to come up with a coccinelle script and it looks like it chokes up a bit on it too.
Quoted 4 lines
I'm sure we could blame my coccinelle skills, but how about we do this driver by driver later on? I can do it if you want me to, and we don't really need to have that one big commit, it can be split into smaller units that would be easier to test and merge.
No problem, there's no hurry. It was just a question.
Best regards
Thomas
Quoted 2 lines
Maxime
Signature · 6 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)
Hi Maxime,
Quoted 15 lines · Maxime Ripard
The KMS framework uses two slightly different definitions for the state concept. For a given object (plane, CRTC, encoder, etc., so drm_$OBJECT_state), the state is the entire state of that object. However, at the device level,
drm_atomic_staterefers to a state update for a limited number of objects.Thus,
drm_atomic_stateisn't the entire device state, but only the full state of some objects in that device. This has been an endless source of confusion and thus bugs.We can rename
drm_atomic_statetodrm_atomic_committo make it less confusing.This patch was created using:
Quoted 7 lines
rg -l
drm_atomic_state| \
xargs sed -i 's/drm_atomic_state/drm_atomic_commit/g; s/drm_atomic_commit_helper/drm_atomic_state_helper/g'
mvdrivers/gpu/drm/tests/drm_atomic_state_test.cdrivers/gpu/drm/tests/drm_atomic_commit_test.cAcked-by Simona Vetter <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
And with a couple minor tweaks to apply on my work branch based on v7.0-rc6:
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Re: [PATCH v2 2/2] Documentation: drm: Remove drm_atomic_state rename entry
In reply to Maxime RipardQuoted 3 lines · Maxime Ripard
We just did that item so we can remove it.
Signed-off-by Maxime Ripard <[email protected]>
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Quoted 8 lines · Maxime Ripard
We've been discussing for a long time about renaming
drm_atomic_stateto a better suited name, since the current one is a source of confusion and bugs.To minimize the impact, this should probably go through drm-next directly.
Let me know what you think,
I don't really have strong opinions on this one, except I agree this should go directly through drm-next before the merge window so everyone can backmerge it. Otherwise it's going to be a conflicts galore.
IMO drivers can do the variable renames afterwards at leisure.
For the i915 parts,
Signature · 1 line
Jani Nikula, Intel