test-dm-offline now continues past dm_hw_init the way amdgpu_pci_probe
does: drm_dev_register(), with the PCI function as the DRM device's
parent and a client file opened like amdgpu_driver_open_kms opens one
(its VM with CPU page-table updates, a scheduler no job reaches, the
real amdgpu_driver_postclose_kms), so dumb buffers and framebuffers are
amdgpu's own.
Two connectors get a sink the way Linux emulates a monitor (forced on,
a synthetic EDID through drm_edid_override_set, as video=<conn>:e and
debugfs edid_override do): HDMI-A-1 with a CTA-861 HDMI block and DP-2
with a base block only; DP-1 and DP-3 stay empty. The test then checks:
- connector sysfs as Linux shows it under drm/card0: status unknown
before probing, connected/disconnected after, enabled, dpms, the mode
list and the EDID bytes;
- probe: status, mode count, EDID size and the 1920x1080@60 preferred
mode per connector;
- refusals: an unknown pattern (-EINVAL), an output with no sink and a
connector that does not exist (-ENOENT), each leaving nothing behind;
- show on one connector, then on the other, then on every connected
output (each on its own CRTC), with the pattern bytes in VRAM, an OTG
programmed with 2200x1125 totals and a HUBP scanning out the
framebuffer address;
- off: the recorded configuration restored (enabled=disabled, the OTG's
master enable cleared), and the session-close stop;
- drm_dev_unregister() removing the connector and glue directories.
The fixture runs no DMCUB firmware, so DMUB and power-gate waits time
out and a run takes about three minutes.