-
- Downloads
drm/msm/dpu: move resource allocation to CRTC
All resource allocation is centered around the LMs. Then other blocks (except DSCs) are allocated basing on the LMs that was selected, and LM powers up the CRTC rather than the encoder. Moreover if at some point the driver supports encoder cloning, allocating resources from the encoder will be incorrect, as all clones will have different encoder IDs, while LMs are to be shared by these encoders. In addition, move mode_changed() to dpu_crtc as encoder no longer has access to topology information Signed-off-by:Dmitry Baryshkov <dmitry.baryshkov@linaro.org> [quic_abhinavk@quicinc.com: Refactored resource allocation for CDM] Signed-off-by:
Abhinav Kumar <quic_abhinavk@quicinc.com> [quic_jesszhan@quicinc.com: Changed to grabbing exising global state] Signed-off-by:
Jessica Zhang <quic_jesszhan@quicinc.com> [DB: rebased on top of msm-next] [DB: fixed resource allcoation to ignore the active_changed flag] Patchwork: https://patchwork.freedesktop.org/patch/637487/ Link: https://lore.kernel.org/r/20250214-concurrent-wb-v6-2-a44c293cf422@quicinc.com Signed-off-by:
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Showing
- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c 81 additions, 1 deletiondrivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h 2 additions, 0 deletionsdrivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h
- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c 52 additions, 115 deletionsdrivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h 7 additions, 4 deletionsdrivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h
- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 3 additions, 14 deletionsdrivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
Loading
Please register or sign in to comment