Skip to content

kconfig: Use minimized distro config

Lucas De Marchi requested to merge tip-distro-config into main

Our kernel config comes from years of running CI without much structure on how the config was updated. This replaces the current config by a distro-based config so our results are more inline with what distros will get.

This commit used a Ubuntu config as baseline, config-6.2.0-36-generic, but any distro config could be used if in future we switch to another one.

The following configs are added to match what we currently have:

CONFIG_DRM_KUNIT_TEST=m
CONFIG_DRM_XE=m
CONFIG_DRM_XE_FORCE_PROBE="*"
CONFIG_DRM_XE_WERROR=y
CONFIG_DRM_XE_DEBUG=y
CONFIG_DRM_XE_DEBUG_VM=y
CONFIG_DRM_XE_DEBUG_MEM=y
CONFIG_DRM_XE_KUNIT_TEST=m
CONFIG_KUNIT=m

Note that these recently introduced configs are not needed since they are already part of the default:

CONFIG_NUMA=y
CONFIG_PGTABLE_LEVELS=5
CONFIG_X86_5LEVEL=y
CONFIG_DYNAMIC_MEMORY_LAYOUT=y

In order not to keep the kernel slim the modules not needed by our machines were then removed by resorting to make localmodconfig on ADL-P, MTL, LNL and machines used in our CI with the discrete cards PVC, ATS-M and DG2. This should cover all the modules needed by our uses.

In future we may want to keep the xe-specific or even CI-specific options in a different snippet file so it's easier to update the baseline. However this will probably need some CI preparation, so for now keep it hardcoded.

Signed-off-by: Lucas De Marchi lucas.demarchi@intel.com

Merge request reports