aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorAradhya Bhatia <[email protected]>2025-06-05 17:15:21 +0000
committerMaxime Ripard <[email protected]>2025-06-06 12:24:56 +0000
commitf6ee26f5887089bb2ea9032d2d169e5b2cb14e95 (patch)
treecf74005ebeded8ecf5b1101572a6c006f9833350 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentdrm/panthor: Clean up 64-bit register definitions (diff)
downloadkernel-f6ee26f5887089bb2ea9032d2d169e5b2cb14e95.tar.gz
kernel-f6ee26f5887089bb2ea9032d2d169e5b2cb14e95.zip
drm/atomic-helper: Refactor crtc & encoder-bridge op loops into separate functions
The way any singular display pipeline, in need of a modeset, gets enabled is as follows - crtc enable (all) bridge pre-enable encoder enable (all) bridge enable - and the disable sequence is exactly the reverse of this. The crtc operations occur by looping over the old and new crtc states, while the encoder and bridge operations occur together, by looping over the connector states of the display pipelines. Refactor these operations - crtc enable/disable, and encoder & bridge (pre/post) enable/disable - into separate functions each, to make way for the re-ordering of the enable/disable sequences. This patch doesn't alter the sequence of crtc/encoder/bridge operations in any way, but helps to cleanly pave the way for the next two patches, by maintaining logical bisectability. Reviewed-by: Tomi Valkeinen <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Thomas Zimmermann <[email protected]> Tested-by: Tomi Valkeinen <[email protected]> Tested-by: Alexander Sverdlin <[email protected]> Signed-off-by: Aradhya Bhatia <[email protected]> Signed-off-by: Aradhya Bhatia <[email protected]> Tested-by: Devarsh Thakkar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Maxime Ripard <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions