drm/nouveau/bar/gf100: fix access to upper half of BAR2
authorBen Skeggs <bskeggs@redhat.com>
Tue, 25 Jul 2017 01:06:47 +0000 (11:06 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Aug 2017 01:59:41 +0000 (18:59 -0700)
commitae8faca6e2e727105f8ed485783ea25a25a425ee
tree1c2a08b759263b9ded865355e8f68434bcbcf4f6
parent34da5f74eb5caf1ae3873463aa5e2b801fa450c3
drm/nouveau/bar/gf100: fix access to upper half of BAR2

commit 38bcb208f60924a031b9f809f7cd252ea4a94e5f upstream.

Bit 30 being set causes the upper half of BAR2 to stay in physical mode,
mapped over the end of VRAM, even when the rest of the BAR has been set
to virtual mode.

We inherited our initial value from RM, but I'm not aware of any reason
we need to keep it that way.

This fixes severe GPU hang/lockup issues revealed by Wayland on F26.

Shout-out to NVIDIA for the quick response with the potential cause!

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c