summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/Kconfig
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2022-01-14 12:45:33 +0100
committerThomas Zimmermann <tzimmermann@suse.de>2022-01-17 11:25:44 +0100
commitadb9d5a2cc77e8aefe98fe4c11656c5b7025c248 (patch)
treef981964cd3d44bbe60e6ed7dd202f58e5d687d83 /drivers/gpu/drm/i915/Kconfig
parent3681eb24a9f14e001d05f8d15d2e07a96abef8b3 (diff)
downloadlwn-adb9d5a2cc77e8aefe98fe4c11656c5b7025c248.tar.gz
lwn-adb9d5a2cc77e8aefe98fe4c11656c5b7025c248.zip
drm/dp: Move DisplayPort helpers into separate helper module
Move DisplayPort functions into a separate module to reduce the size of the KMS helpers. Select DRM_DP_HELPER for all users of the code. To avoid naming conflicts, rename drm_dp_helper.c to drm_dp.c This change can help to reduce the size of the kernel binary. Some numbers from a x86-64 test build: Before: drm_kms_helper.ko: 447480 bytes After: drm_dp_helper.ko: 216632 bytes drm_kms_helper.ko: 239424 bytes For early-boot graphics, generic DRM drivers, such as simpledrm, require DRM KMS helpers to be built into the kernel. Generic helper functions for DisplayPort take up a significant portion of DRM KMS helper library. These functions are not used by generic drivers and can be loaded as a module. v3: * fix include statement in DRM selftests v2: * move DP helper code into dp/ (Jani) Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Lyude Paul <lyude@redhat.com> Acked-by: Daniel Vetter <daniel@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20220114114535.29157-4-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/i915/Kconfig')
-rw-r--r--drivers/gpu/drm/i915/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig
index a4c94dc2e216..b68e8b551b83 100644
--- a/drivers/gpu/drm/i915/Kconfig
+++ b/drivers/gpu/drm/i915/Kconfig
@@ -9,6 +9,7 @@ config DRM_I915
# the shmem_readpage() which depends upon tmpfs
select SHMEM
select TMPFS
+ select DRM_DP_HELPER
select DRM_KMS_HELPER
select DRM_PANEL
select DRM_MIPI_DSI