OSDN Git Service

drm/nouveau/disp/gf119-: avoid creating non-existent heads
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 3 Jul 2017 17:06:26 +0000 (13:06 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 22 Aug 2017 08:04:22 +0000 (18:04 +1000)
commiteba5e56db65b7a44d57a98f5f382b2a2b9991321
tree85e3b36620dfcb15c42c034abf639694a628f062
parent9d60b9c9d0b6bacee794db9cd18671296b7db072
drm/nouveau/disp/gf119-: avoid creating non-existent heads

We assume that each board has 4 heads for GF119+. However this is not
necessarily true - in the case of a GP108 board, the register indicated
that there were only 2.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101601
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/headgf119.c