Skip to content

Commit 92b6f89

Browse files
committed
drm: Add separate Kconfig option for fbdev helpers
For drivers which might want to disable fbdev legacy support. Select the new option in all drivers for now, so this shouldn't result in any change. Drivers need some work anyway to make fbdev support optional (if they have it implemented, that is), so the recommended way to expose this is by adding per-driver options. At least as long as most drivers don't support disabling the fbdev support. v2: Update for new drm drivers msm and rcar-du. Note that Rob's msm driver can already take advantage of this, which allows us to build msm without any fbdev depencies in the kernel! v3: Move the MODULE_* stuff from the fbdev helper file to drm_crtc_helper.c. Cc: David Herrmann <dh.herrmann@gmail.com> Cc: Rob Clark <robdclark@gmail.com> Reviewed-by: Rob Clark <robdclark@gmail.com> Acked-by: Dave Airlie <airlied@linux.ie> Reviewed-by: Chon Ming Lee <chon.ming.lee@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent 25a2e2d commit 92b6f89

19 files changed

Lines changed: 31 additions & 6 deletions

File tree

‎drivers/gpu/drm/Kconfig‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,17 @@ config DRM_USB
2929
config DRM_KMS_HELPER
3030
tristate
3131
depends on DRM
32+
help
33+
CRTC helpers for KMS drivers.
34+
35+
config DRM_KMS_FB_HELPER
36+
bool
37+
depends on DRM_KMS_HELPER
3238
select FB
3339
select FRAMEBUFFER_CONSOLE if !EXPERT
3440
select FRAMEBUFFER_CONSOLE_DETECT_PRIMARY if FRAMEBUFFER_CONSOLE
3541
help
36-
FB and CRTC helpers for KMS drivers.
42+
FBDEV helpers for KMS drivers.
3743

3844
config DRM_LOAD_EDID_FIRMWARE
3945
bool "Allow to specify an EDID data set instead of probing for it"
@@ -64,6 +70,7 @@ config DRM_GEM_CMA_HELPER
6470
config DRM_KMS_CMA_HELPER
6571
bool
6672
select DRM_GEM_CMA_HELPER
73+
select DRM_KMS_FB_HELPER
6774
select FB_SYS_FILLRECT
6875
select FB_SYS_COPYAREA
6976
select FB_SYS_IMAGEBLIT
@@ -96,6 +103,7 @@ config DRM_RADEON
96103
select FB_CFB_IMAGEBLIT
97104
select FW_LOADER
98105
select DRM_KMS_HELPER
106+
select DRM_KMS_FB_HELPER
99107
select DRM_TTM
100108
select POWER_SUPPLY
101109
select HWMON
@@ -130,6 +138,7 @@ config DRM_I915
130138
select SHMEM
131139
select TMPFS
132140
select DRM_KMS_HELPER
141+
select DRM_KMS_FB_HELPER
133142
select FB_CFB_FILLRECT
134143
select FB_CFB_COPYAREA
135144
select FB_CFB_IMAGEBLIT

‎drivers/gpu/drm/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ drm-$(CONFIG_PCI) += ati_pcigart.o
2121

2222
drm-usb-y := drm_usb.o
2323

24-
drm_kms_helper-y := drm_fb_helper.o drm_crtc_helper.o drm_dp_helper.o
24+
drm_kms_helper-y := drm_crtc_helper.o drm_dp_helper.o
2525
drm_kms_helper-$(CONFIG_DRM_LOAD_EDID_FIRMWARE) += drm_edid_load.o
26+
drm_kms_helper-$(CONFIG_DRM_KMS_FB_HELPER) += drm_fb_helper.o
2627
drm_kms_helper-$(CONFIG_DRM_KMS_CMA_HELPER) += drm_fb_cma_helper.o
2728

2829
obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o

‎drivers/gpu/drm/ast/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ config DRM_AST
66
select FB_SYS_FILLRECT
77
select FB_SYS_IMAGEBLIT
88
select DRM_KMS_HELPER
9+
select DRM_KMS_FB_HELPER
910
select DRM_TTM
1011
help
1112
Say yes for experimental AST GPU driver. Do not enable

‎drivers/gpu/drm/cirrus/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ config DRM_CIRRUS_QEMU
55
select FB_SYS_COPYAREA
66
select FB_SYS_IMAGEBLIT
77
select DRM_KMS_HELPER
8+
select DRM_KMS_FB_HELPER
89
select DRM_TTM
910
help
1011
This is a KMS driver for emulated cirrus device in qemu.

‎drivers/gpu/drm/drm_crtc_helper.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
#include <drm/drm_fb_helper.h>
4040
#include <drm/drm_edid.h>
4141

42+
MODULE_AUTHOR("David Airlie, Jesse Barnes");
43+
MODULE_DESCRIPTION("DRM KMS helper");
44+
MODULE_LICENSE("GPL and additional rights");
45+
4246
/**
4347
* drm_helper_move_panel_connectors_to_head() - move panels to the front in the
4448
* connector list

‎drivers/gpu/drm/drm_fb_helper.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@
3939
#include <drm/drm_fb_helper.h>
4040
#include <drm/drm_crtc_helper.h>
4141

42-
MODULE_AUTHOR("David Airlie, Jesse Barnes");
43-
MODULE_DESCRIPTION("DRM KMS helper");
44-
MODULE_LICENSE("GPL and additional rights");
45-
4642
static LIST_HEAD(kernel_fb_helper_list);
4743

4844
/**

‎drivers/gpu/drm/exynos/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ config DRM_EXYNOS
22
tristate "DRM Support for Samsung SoC EXYNOS Series"
33
depends on OF && DRM && (PLAT_SAMSUNG || ARCH_MULTIPLATFORM)
44
select DRM_KMS_HELPER
5+
select DRM_KMS_FB_HELPER
56
select FB_CFB_FILLRECT
67
select FB_CFB_COPYAREA
78
select FB_CFB_IMAGEBLIT

‎drivers/gpu/drm/gma500/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ config DRM_GMA500
55
select FB_CFB_FILLRECT
66
select FB_CFB_IMAGEBLIT
77
select DRM_KMS_HELPER
8+
select DRM_KMS_FB_HELPER
89
select DRM_TTM
910
# GMA500 depends on ACPI_VIDEO when ACPI is enabled, just like i915
1011
select ACPI_VIDEO if ACPI

‎drivers/gpu/drm/mgag200/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ config DRM_MGAG200
55
select FB_SYS_COPYAREA
66
select FB_SYS_IMAGEBLIT
77
select DRM_KMS_HELPER
8+
select DRM_KMS_FB_HELPER
89
select DRM_TTM
910
help
1011
This is a KMS driver for the MGA G200 server chips, it

‎drivers/gpu/drm/msm/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ config DRM_MSM
1414
config DRM_MSM_FBDEV
1515
bool "Enable legacy fbdev support for MSM modesetting driver"
1616
depends on DRM_MSM
17+
select DRM_KMS_FB_HELPER
1718
select FB_SYS_FILLRECT
1819
select FB_SYS_COPYAREA
1920
select FB_SYS_IMAGEBLIT

0 commit comments

Comments
 (0)