Files
geramyloveless f269f1e6d1 display: off by default, opt-in per personality
Display Core is compiled in, but linuxu_driver_bootstrap() now sets the
amdgpu.dc module parameter to 0 unless display was requested. With
amdgpu.dc=0, amdgpu_device_has_dc_support() is false, discovery adds no
DM IP block and no display interrupt, connector or modeset state exists:
the probe compute users had before CONFIG_DRM_AMD_DC was enabled.

linuxu_driver_set_display() (rt/bootstrap.h) requests display before
bootstrap; it restores upstream's default amdgpu.dc=-1 (DC on every ASIC
that has a display engine) and returns -EBUSY while the modules run. The
dext reads an optional boolean "MacLinuxGPUDisplay" from its IOKit
personality next to "MacLinuxGPUKFDSessions"; it is absent from the
shipped Info.plist, so display stays off.

test_bootstrap checks the default, the request and the -EBUSY rule.
2026-10-02 20:56:37 -07:00

27 lines
855 B
C

/* Explicit lifecycle for the linked Linux DRM and AMDGPU modules. */
#ifndef LINUXU_RT_BOOTSTRAP_H
#define LINUXU_RT_BOOTSTRAP_H
#ifdef __cplusplus
extern "C" {
#endif
/* Call only after the Linux shim runtime is ready. No constructors run this. */
int linuxu_driver_bootstrap(void);
void linuxu_driver_shutdown(void);
/* Display (upstream Display Core / amdgpu_dm) is compiled in but off by
* default: bootstrap sets the amdgpu.dc module parameter to 0, so amdgpu
* adds no display IP block and probe is the compute-only probe. Passing a
* non-zero value before linuxu_driver_bootstrap() restores upstream's
* amdgpu.dc=-1 (DC on every ASIC that has it). Returns 0, or -EBUSY while
* the modules are starting or running. */
int linuxu_driver_set_display(int enable);
int linuxu_driver_display_enabled(void);
#ifdef __cplusplus
}
#endif
#endif