[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250413-msm-gpu-split-v1-0-1132f4b616c7@oss.qualcomm.com>
Date: Sun, 13 Apr 2025 19:32:54 +0300
From: Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com>
To: Rob Clark <robdclark@...il.com>, Abhinav Kumar <quic_abhinavk@...cinc.com>,
Dmitry Baryshkov <lumag@...nel.org>, Sean Paul <sean@...rly.run>,
Marijn Suijten <marijn.suijten@...ainline.org>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
Konrad Dybcio <konradybcio@...nel.org>
Cc: linux-arm-msm@...r.kernel.org, dri-devel@...ts.freedesktop.org,
freedreno@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: [PATCH 0/7] drm/msm: rework the ties between KMS and GPU parts of
the driver
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@....qualcomm.com>
---
Dmitry Baryshkov (7):
drm/msm: move wq handling to KMS code
drm/msm: move helper calls to msm_kms.c
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
drivers/gpu/drm/msm/Kconfig | 34 ++++--
drivers/gpu/drm/msm/Makefile | 16 +--
drivers/gpu/drm/msm/adreno/adreno_device.c | 39 ++-----
drivers/gpu/drm/msm/dp/dp_debug.c | 4 +
drivers/gpu/drm/msm/msm_debugfs.c | 97 ++++++++++-------
drivers/gpu/drm/msm/msm_drv.c | 168 +++++++++++++++++++----------
drivers/gpu/drm/msm/msm_drv.h | 13 ++-
drivers/gpu/drm/msm/msm_kms.c | 36 ++++++-
drivers/gpu/drm/msm/msm_kms.h | 25 +++++
9 files changed, 285 insertions(+), 147 deletions(-)
---
base-commit: a4e1d05abd6847ba11edf46734efecec86a1fe2c
change-id: 20250411-msm-gpu-split-2701e49e40f0
Best regards,
--
Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com>
Powered by blists - more mailing lists