]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 25 Jul 2017 05:30:27 +0000 (15:30 +1000)
commit1994fca0d94b435cab31ac39f7a784219dd3556f
tree890007acc9d7f8a8b7ec2a923434a7845818a8c1
parentd6ef40a4b294bea4e51a86d7230e8c1982047f83
drm/nouveau/bar/gf100: fix access to upper half of BAR2

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>
Cc: stable@vger.kernel.org # 4.3+
drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c