]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/nouveau/bar/gm20b: Avoid BAR1 teardown during init
authorThierry Reding <treding@nvidia.com>
Mon, 16 Sep 2019 14:19:26 +0000 (16:19 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 17 Sep 2019 04:50:16 +0000 (14:50 +1000)
commitb568db62c5c46c8d859f1b9538495ea0fcbe7000
tree54aedd05407125fa570bcffbe31e8295c8d8cac0
parent641f53c07d2760f1a53288c3cab0300030f049cb
drm/nouveau/bar/gm20b: Avoid BAR1 teardown during init

Writing the 0x1704 (BUS_BAR1_BLOCK) register causes the GPU to probe the
memory region at the programmed address. The result is an address decode
error in the external memory controller because address 0, which is what
is written to the register, is not designated as accessible to devices.

Avoid triggering DMA from the GPU by removing teardown of the BAR1.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/bar/gm20b.c