On Wed, May 07, 2025 at 09:45:26AM -0700, Rob Clark wrote: > On Sat, May 3, 2025 at 12:17 AM Dmitry Baryshkov > <dmitry.barysh...@oss.qualcomm.com> wrote: > > > > Some of the platforms don't have onboard GPU or don't provide support > > for the GPU in the drm/msm driver. Make it possible to disable the GPU > > part of the driver and build the KMS-only part. > > > > Signed-off-by: Dmitry Baryshkov <dmitry.barysh...@oss.qualcomm.com> > > --- > > drivers/gpu/drm/msm/Kconfig | 20 +++-- > > drivers/gpu/drm/msm/Makefile | 14 ++-- > > drivers/gpu/drm/msm/msm_debugfs.c | 135 > > ++++++++++++++++++---------------- > > drivers/gpu/drm/msm/msm_drv.c | 37 ++++++++-- > > drivers/gpu/drm/msm/msm_drv.h | 3 + > > drivers/gpu/drm/msm/msm_gpu.h | 71 +++++++++++++++--- > > drivers/gpu/drm/msm/msm_submitqueue.c | 12 +-- > > 7 files changed, 191 insertions(+), 101 deletions(-) > > > > diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig > > index > > f6360931ae55a2923264f0e6cc33c6af0d50c706..5605d2bc93a8ad9cb33afcb8ca9da44c68250620 > > 100644 > > --- a/drivers/gpu/drm/msm/Kconfig > > +++ b/drivers/gpu/drm/msm/Kconfig > > @@ -15,29 +15,37 @@ config DRM_MSM > > select IOMMU_IO_PGTABLE > > select QCOM_MDT_LOADER if ARCH_QCOM > > select REGULATOR > > - select DRM_EXEC > > - select DRM_SCHED > > select SHMEM > > select TMPFS > > select QCOM_SCM > > select WANT_DEV_COREDUMP > > select SND_SOC_HDMI_CODEC if SND_SOC > > - select SYNC_FILE > > fwiw, atomic depends on SYNC_FILE... otoh it is selected at the > toplevel by CONFIG_DRM
Within drm/msm it is only used by GEM_SUBMIT code, so I still think this is correct. -- With best wishes Dmitry