From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
To: Rob Clark <robdclark@gmail.com>,
Abhinav Kumar <quic_abhinavk@quicinc.com>,
Dmitry Baryshkov <lumag@kernel.org>, Sean Paul <sean@poorly.run>,
Marijn Suijten <marijn.suijten@somainline.org>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Konrad Dybcio <konradybcio@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2 00/11] drm/msm: rework the ties between KMS and GPU parts of the driver
Date: Sat, 03 May 2025 10:16:59 +0300 [thread overview]
Message-ID: <20250503-msm-gpu-split-v2-0-1292cba0f5ad@oss.qualcomm.com> (raw)
Currently the KMS and GPU parts of the msm driver are pretty much
intertwined. It is impossible to register a KMS-only device and
registering a GPU-only DRM device requires modifying the DT. Not to
mention that binding the GPU-only device creates an interim platform
devices, which complicates IOMMU setup.
Rework the driver:
- Make it possible to disable KMS parts (if MDP4, MDP5 and DPU drivers
are disabled).
- Register GPU-only devices without an interim platform device.
- Add module param that makes msm driver register GPU and KMS devices
separately.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
Changes in v2:
- Got rid of mdp4_crtc.id and msm_drm_private.num_crtcs
- Moved msm_drm_private.wq and msm_drm_private.event_thread to struct
msm_kms (Rob Clark)
- Moved HDMI / DSI / DP pointers to msm_kms (Abhinav)
- Link to v1: https://lore.kernel.org/r/20250413-msm-gpu-split-v1-0-1132f4b616c7@oss.qualcomm.com
---
Dmitry Baryshkov (11):
drm/msm: move wq handling to KMS code
drm/msm: move helper calls to msm_kms.c
drm/msm/mdp4: get rid of mdp4_crtc.id
drm/msm: get rid of msm_drm_private::num_crtcs
drm/msm: move KMS driver data to msm_kms
drm/msm: make it possible to disable KMS-related code.
drm/msm: bail out late_init_minor() if it is not a GPU device
drm/msm: rearrange symbol selection
drm/msm: rework binding of Imageon GPUs
drm/msm: enable separate binding of GPU and display devices
drm/msm: make it possible to disable GPU support
drivers/gpu/drm/msm/Kconfig | 54 ++++--
drivers/gpu/drm/msm/Makefile | 31 +--
drivers/gpu/drm/msm/adreno/adreno_device.c | 39 +---
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 4 +-
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 13 +-
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 35 ++--
drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c | 9 +-
drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 13 +-
drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.h | 2 +-
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 2 +-
drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 17 +-
drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 12 +-
drivers/gpu/drm/msm/dp/dp_debug.c | 4 +
drivers/gpu/drm/msm/dp/dp_display.c | 6 +-
drivers/gpu/drm/msm/dsi/dsi.c | 4 +-
drivers/gpu/drm/msm/hdmi/hdmi.c | 13 +-
drivers/gpu/drm/msm/msm_debugfs.c | 222 ++++++++++++----------
drivers/gpu/drm/msm/msm_drv.c | 205 +++++++++++++-------
drivers/gpu/drm/msm/msm_drv.h | 34 ++--
drivers/gpu/drm/msm/msm_gpu.h | 71 ++++++-
drivers/gpu/drm/msm/msm_kms.c | 41 +++-
drivers/gpu/drm/msm/msm_kms.h | 46 +++++
drivers/gpu/drm/msm/msm_submitqueue.c | 12 +-
23 files changed, 549 insertions(+), 340 deletions(-)
---
base-commit: 37ff6e9a2ce321b7932d3987701757fb4d87b0e6
change-id: 20250411-msm-gpu-split-2701e49e40f0
Best regards,
--
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
next reply other threads:[~2025-05-03 7:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-03 7:16 Dmitry Baryshkov [this message]
2025-05-03 7:17 ` [PATCH v2 01/11] drm/msm: move wq handling to KMS code Dmitry Baryshkov
2025-05-03 7:17 ` [PATCH v2 02/11] drm/msm: move helper calls to msm_kms.c Dmitry Baryshkov
2025-05-03 7:17 ` [PATCH v2 03/11] drm/msm/mdp4: get rid of mdp4_crtc.id Dmitry Baryshkov
2025-05-03 7:17 ` [PATCH v2 04/11] drm/msm: get rid of msm_drm_private::num_crtcs Dmitry Baryshkov
2025-05-03 7:17 ` [PATCH v2 05/11] drm/msm: move KMS driver data to msm_kms Dmitry Baryshkov
2025-05-03 7:17 ` [PATCH v2 06/11] drm/msm: make it possible to disable KMS-related code Dmitry Baryshkov
2025-05-03 7:17 ` [PATCH v2 07/11] drm/msm: bail out late_init_minor() if it is not a GPU device Dmitry Baryshkov
2025-05-03 7:17 ` [PATCH v2 08/11] drm/msm: rearrange symbol selection Dmitry Baryshkov
2025-05-03 7:17 ` [PATCH v2 09/11] drm/msm: rework binding of Imageon GPUs Dmitry Baryshkov
2025-05-03 7:17 ` [PATCH v2 10/11] drm/msm: enable separate binding of GPU and display devices Dmitry Baryshkov
2025-05-07 16:43 ` Rob Clark
2025-05-07 17:29 ` Dmitry Baryshkov
2025-05-03 7:17 ` [PATCH v2 11/11] drm/msm: make it possible to disable GPU support Dmitry Baryshkov
2025-05-07 16:45 ` Rob Clark
2025-05-18 10:32 ` Dmitry Baryshkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250503-msm-gpu-split-v2-0-1292cba0f5ad@oss.qualcomm.com \
--to=dmitry.baryshkov@oss.qualcomm.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=konradybcio@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lumag@kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=quic_abhinavk@quicinc.com \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox