Skip to content

Commit ae1aadb

Browse files
airlieddakr
authored andcommitted
nouveau: don't fail driver load if no display hw present.
If we get back ENODEV don't fail load. There are nvidia devices that don't have display blocks and the driver should work on those. Fixes: 1574054 ("drm/nouveau/devinit/tu102-: prepare for GSP-RM") Link: https://gitlab.freedesktop.org/drm/nouveau/-/issues/270 Signed-off-by: Dave Airlie <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 430143b commit ae1aadb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/nouveau/nouveau_display.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,11 @@ nouveau_display_create(struct drm_device *dev)
726726

727727
if (nouveau_modeset != 2) {
728728
ret = nvif_disp_ctor(&drm->client.device, "kmsDisp", 0, &disp->disp);
729+
/* no display hw */
730+
if (ret == -ENODEV) {
731+
ret = 0;
732+
goto disp_create_err;
733+
}
729734

730735
if (!ret && (disp->disp.outp_mask || drm->vbios.dcb.entries)) {
731736
nouveau_display_create_properties(dev);

0 commit comments

Comments
 (0)