-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm: Move client code to clients/ subdirectory
Just move some files around to keep source code well organized. Plus fix a type in the help text of CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM. No functional changes. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241108154600.126162-2-tzimmermann@suse.de
- Loading branch information
Thomas Zimmermann
committed
Nov 15, 2024
1 parent
ae4a812
commit a49e7e8
Showing
6 changed files
with
80 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
|
||
config DRM_CLIENT_LIB | ||
tristate | ||
depends on DRM | ||
select DRM_KMS_HELPER if DRM_FBDEV_EMULATION | ||
select FB_CORE if DRM_FBDEV_EMULATION | ||
help | ||
This option enables the DRM client library and selects all | ||
modules and components according to the enabled clients. | ||
|
||
config DRM_CLIENT_SELECTION | ||
tristate | ||
depends on DRM | ||
select DRM_CLIENT_LIB if DRM_FBDEV_EMULATION | ||
help | ||
Drivers that support in-kernel DRM clients have to select this | ||
option. | ||
|
||
config DRM_CLIENT_SETUP | ||
bool | ||
depends on DRM_CLIENT_SELECTION | ||
help | ||
Enables the DRM client selection. DRM drivers that support the | ||
default clients should select DRM_CLIENT_SELECTION instead. | ||
|
||
menu "Supported DRM clients" | ||
depends on DRM_CLIENT_SELECTION | ||
|
||
config DRM_FBDEV_EMULATION | ||
bool "Enable legacy fbdev support for your modesetting driver" | ||
depends on DRM_CLIENT_SELECTION | ||
select DRM_CLIENT | ||
select DRM_CLIENT_SETUP | ||
select FRAMEBUFFER_CONSOLE_DETECT_PRIMARY if FRAMEBUFFER_CONSOLE | ||
default FB | ||
help | ||
Choose this option if you have a need for the legacy fbdev | ||
support. Note that this support also provides the linux console | ||
support on top of your modesetting driver. | ||
|
||
If in doubt, say "Y". | ||
|
||
config DRM_FBDEV_OVERALLOC | ||
int "Overallocation of the fbdev buffer" | ||
depends on DRM_FBDEV_EMULATION | ||
default 100 | ||
help | ||
Defines the fbdev buffer overallocation in percent. Default | ||
is 100. Typical values for double buffering will be 200, | ||
triple buffering 300. | ||
|
||
config DRM_FBDEV_LEAK_PHYS_SMEM | ||
bool "Shamelessly allow leaking of fbdev physical address (DANGEROUS)" | ||
depends on DRM_FBDEV_EMULATION && EXPERT | ||
default n | ||
help | ||
In order to keep user-space compatibility, we want in certain | ||
use-cases to keep leaking the fbdev physical address to the | ||
user-space program handling the fbdev buffer. | ||
This affects, not only, Amlogic, Allwinner or Rockchip devices | ||
with ARM Mali GPUs using a userspace Blob. | ||
This option is not supported by upstream developers and should be | ||
removed as soon as possible and be considered as a broken and | ||
legacy behaviour from a modern fbdev device driver. | ||
|
||
Please send any bug reports when using this to your proprietary | ||
software vendor that requires this. | ||
|
||
If in doubt, say "N" or spread the word to your closed source | ||
library vendor. | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
|
||
drm_client_lib-y := drm_client_setup.o | ||
drm_client_lib-$(CONFIG_DRM_FBDEV_EMULATION) += drm_fbdev_client.o | ||
obj-$(CONFIG_DRM_CLIENT_LIB) += drm_client_lib.o |
File renamed without changes.
File renamed without changes.