drm/nv50/gpio: post-nv92 cards have 32 interrupt lines
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 11 Jul 2013 16:28:03 +0000 (17:28 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 30 Jul 2013 03:04:14 +0000 (13:04 +1000)
commit8ff860564076f99aeb4f6d35dcb6ea008624e64e
tree149d6c7333e6814abecc1a38c0acd0e2f989d9ac
parentdedaa8f0e6967edb9127a6643d0259e794196ed2
drm/nv50/gpio: post-nv92 cards have 32 interrupt lines

Since the original merge of nouveau to upstream kernel, we were assuming
that nv90 (and later) cards have 32 lines.

Based on mmio traces of the binary driver, as well as PBUS error messages
during read/write of the e070/e074 registers, we can conclude that nv92
has only 16 lines whereas nv94 (and later) cards have 32.

Reported-and-tested-by: David M. Lloyd <david.lloyd@redhat.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Cc: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/gpio/nv50.c