mirror of
https://github.com/lemonade-sdk/mac_linuxgpu.git
synced 2026-11-22 23:57:31 -10:00
Add drivers/gpu/drm/display/ to the sparse checkout and compile the display side of upstream amdgpu: - mk/upstream_sources.mk gains the 498 objects of AMD_DISPLAY_FILES (amd/display/Makefile and the Makefiles it includes, evaluated with DRM_AMD_DC=y, DRM_AMD_DC_FP=y, DEBUG_FS=y), the drm_display_helper module for the DRM_DISPLAY_* helpers amdgpu selects, the whole drm_kms_helper module and the panel orientation/backlight quirk tables. DCN 4.0.1 links the dcn10..dcn35 code it reuses, so every DCN is built. - mk/kernel_config.mk and linux/autoconf.h enable DRM_AMD_DC, DC_FP and the display helper configs; CEC, DP AUX chardev/CEC, DP tunnel, bridge connector, SI DCE and secure display stay off. - INCPATHS carries the subdir-ccflags-y include roots of the display Makefiles in upstream order. - CONFIG_DRM_AMD_DC_FP is declared in patches/manifest.json as a config intervention: Kconfig drops it for clang+arm64 because of kernel FPU rules that do not apply to userspace. scripts/verify-upstream.py checks that each declared config intervention names a Kconfig symbol and is set in autoconf.h. - linux/kconfig.h provides IS_ENABLED/IS_REACHABLE as kbuild's forced include does; autoconf.h pulls it in after the CONFIG table. Display stays off at runtime by default; that gating follows separately.
49 lines
1.6 KiB
C
49 lines
1.6 KiB
C
/* linuxu: SHIM — mk/kernel_config.mk documents the same table. */
|
|
#ifndef __LINUXU_AUTOCONF_H
|
|
#define __LINUXU_AUTOCONF_H
|
|
/* static checked-in CONFIG table. y -> #define ... 1 ; n -> absent. */
|
|
/* NOTE: CONFIG_X86 and CONFIG_X86_64 stay UNDEFINED on Apple Silicon — see
|
|
* the X86 override at the bottom. */
|
|
#define CONFIG_DRM 1
|
|
#define CONFIG_DRM_KMS 1
|
|
#define CONFIG_DRM_KMS_HELPER 1
|
|
#define CONFIG_DRM_TTM 1
|
|
#define CONFIG_DRM_TTM_HELPER 1
|
|
#define CONFIG_DRM_SCHED 1
|
|
#define CONFIG_DRM_EXEC 1
|
|
#define CONFIG_DRM_CLIENT 1
|
|
#define CONFIG_DRM_SUBALLOC_HELPER 1
|
|
#define CONFIG_DRM_AMDGPU 1
|
|
#define CONFIG_DRM_AMDGPU_USERPTR 1
|
|
/* Display Core is compiled in; linuxu_driver_bootstrap() keeps it off
|
|
* (amdgpu_dc=0) unless display is requested. CONFIG_DRM_AMD_DC_FP is a
|
|
* declared intervention (patches/manifest.json config_interventions). */
|
|
#define CONFIG_DRM_AMD_DC 1
|
|
#define CONFIG_DRM_AMD_DC_FP 1
|
|
#define CONFIG_DRM_DISPLAY_HELPER 1
|
|
#define CONFIG_DRM_DISPLAY_DP_HELPER 1
|
|
#define CONFIG_DRM_DISPLAY_DSC_HELPER 1
|
|
#define CONFIG_DRM_DISPLAY_HDCP_HELPER 1
|
|
#define CONFIG_DRM_DISPLAY_HDMI_HELPER 1
|
|
#define CONFIG_HSA_AMD 1
|
|
/* No recoverable GPU faults/SVM or peer GPU access over this TB5 path. */
|
|
#define CONFIG_64BIT 1
|
|
#define CONFIG_SMP 1
|
|
#define CONFIG_RCU 1
|
|
#define CONFIG_PCI 1
|
|
#define CONFIG_I2C 1
|
|
#define CONFIG_PM 1
|
|
#define CONFIG_MMU_NOTIFIER 1
|
|
#define CONFIG_HMM_MIRROR 1
|
|
#define CONFIG_ZONE_DEVICE 1
|
|
#define CONFIG_MMU 1
|
|
#define CONFIG_DMA_BUF 1
|
|
#define CONFIG_DEBUG_FS 1
|
|
#define CONFIG_SYSFS 1
|
|
#define CONFIG_DEV_COREDUMP 1
|
|
|
|
/* IS_ENABLED()/IS_BUILTIN()/IS_REACHABLE(), as kbuild's forced kconfig.h. */
|
|
#include <linux/kconfig.h>
|
|
|
|
#endif
|