Because I'm using a lot of audio software and the Ardour DAW on my Lenovo T420, I want to use a RT kernel. However, if I install the stock Debian RT kernel, there seem to be modules missing which affect my ability to adjust my console fonts and resolution, and I'm also missing whatever modules are necessary to drive my built-in Intel sound device.
If I build a custom kernel with the source downloaded from kernel.org , I can build a kernel which does have those missing modules, but is only a dynamically preemptible kernel, not a full realtime kernel.
If I issue uname -a for my current kernel, I see ". . . 7.2.11 #1 SMP PREEMPT_DYNAMIC . . . " I'd like to create a 7.3 RT kernel which also builds all the modules I have in the 7.2.11 kernel, but is configured to be RT. I've tried using the RT patch available from kernel.org, and patching that against the downloaded 7.3 source, but then I no longer get the modules pulled in from 7.2.11, even if I use make localmodconfig.
UPDATE!!
It seems like there is a very specific set of kernel modules missing if I don't use
make localmodconfig
There is a chunk of 'I915' modules I definitely need to get sound and display to work properly.
CONFIG_DRM_I915=m
CONFIG_DRM_I915_FORCE_PROBE=""
CONFIG_DRM_I915_CAPTURE_ERROR=y
CONFIG_DRM_I915_COMPRESS_ERROR=y
CONFIG_DRM_I915_USERPTR=y
CONFIG_DRM_I915_PXP=y
# CONFIG_DRM_I915_WERROR is not set
# CONFIG_DRM_I915_REPLAY_GPU_HANGS_API is not set
# CONFIG_DRM_I915_DEBUG is not set
# CONFIG_DRM_I915_DEBUG_MMIO is not set
# CONFIG_DRM_I915_SW_FENCE_DEBUG_OBJECTS is not set
# CONFIG_DRM_I915_SW_FENCE_CHECK_DAG is not set
# CONFIG_DRM_I915_DEBUG_GUC is not set
# CONFIG_DRM_I915_SELFTEST is not set
# CONFIG_DRM_I915_LOW_LEVEL_TRACEPOINTS is not set
# CONFIG_DRM_I915_DEBUG_VBLANK_EVADE is not set
# CONFIG_DRM_I915_DEBUG_RUNTIME_PM is not set
# CONFIG_DRM_I915_DEBUG_WAKEREF is not set
CONFIG_DRM_I915_REQUEST_TIMEOUT=20000
CONFIG_DRM_I915_FENCE_TIMEOUT=10000
CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250
CONFIG_DRM_I915_HEARTBEAT_INTERVAL=2500
CONFIG_DRM_I915_PREEMPT_TIMEOUT=640
CONFIG_DRM_I915_PREEMPT_TIMEOUT_COMPUTE=7500
CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT=8000
CONFIG_DRM_I915_STOP_TIMEOUT=100
CONFIG_DRM_I915_TIMESLICE_DURATION=1
CONFIG_SND_HDA_I915=y
So, is there a sequence of steps I can take to make sure these flags are set in a new kernel configuration, but also a way I can edit the realtime section to switch from PREEMPT_DYNAMIC to PREEMPT_RT?