[PATCH 0/3] drm: Move several files from DRM core into modules

Thomas Zimmermann tzimmermann at suse.de
Wed Oct 20 13:19:38 UTC 2021


Move a number of files into modules and behind config options.

So far, early boot graphics was provided by fbdev. With simpledrm, and
possibly other generic DRM drivers, it's now possible to have general
early-boot output with DRM. This requires the DRM core to be linked into
the kernel binary image.

The reduction in size here is only ~1%, but the patchset is part of a
larger effort to reduce the size of the DRM core module.

Thomas Zimmermann (3):
  drm: Build drm_irq.o only if CONFIG_DRM_LEGACY has been set
  drm: Link several object files into drm_kms_helper.ko
  drm: Move GEM memory managers into modules

 drivers/gpu/drm/Kconfig                |  4 ++--
 drivers/gpu/drm/Makefile               | 26 +++++++++++++++-----------
 drivers/gpu/drm/drm_gem_cma_helper.c   |  4 ++++
 drivers/gpu/drm/drm_gem_shmem_helper.c |  4 ++++
 drivers/gpu/drm/drm_irq.c              |  2 --
 5 files changed, 25 insertions(+), 15 deletions(-)

--
2.33.0



More information about the dri-devel mailing list