]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/nouveau: Don't WARN_ON VCPI allocation failures
authorLyude Paul <lyude@redhat.com>
Mon, 28 Jan 2019 21:03:50 +0000 (16:03 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 19 Feb 2019 22:59:58 +0000 (08:59 +1000)
This is much louder then we want. VCPI allocation failures are quite
normal, since they will happen if any part of the modesetting process is
interrupted by removing the DP MST topology in question. So just print a
debugging message on VCPI failures instead.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Fixes: 810c68f17dd6 ("drm/nouveau/kms/nv50: initial support for DP 1.2 multi-stream")
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Cc: nouveau@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v4.10+
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/disp.c

index e8bb35f6d015f4cdf409785b1d3540f4b3c77495..3f618ed4ec6f9a8874007f3fc4aa8b37cc259b22 100644 (file)
@@ -817,7 +817,8 @@ nv50_msto_enable(struct drm_encoder *encoder)
 
        r = drm_dp_mst_allocate_vcpi(&mstm->mgr, mstc->port, armh->dp.pbn,
                                     armh->dp.tu);
-       WARN_ON(!r);
+       if (!r)
+               DRM_DEBUG_KMS("Failed to allocate VCPI\n");
 
        if (!mstm->links++)
                nv50_outp_acquire(mstm->outp);