drm/nouveau/gr/gk20a,gm200-: add terminators to method lists read from fw
authorBen Skeggs <bskeggs@redhat.com>
Thu, 9 Jan 2020 01:46:15 +0000 (11:46 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 14:42:33 +0000 (15:42 +0100)
commitd07d4aafc5f5a11d52e9c58dc369000d6f7f8006
tree0473cc952a34085c3689189f7da887f310788191
parentf426db8c072286b77f2fc9049dd63d522a1f28bc
drm/nouveau/gr/gk20a,gm200-: add terminators to method lists read from fw

[ Upstream commit 7adc77aa0e11f25b0e762859219c70852cd8d56f ]

Method init is typically ordered by class in the FW image as ThreeD,
TwoD, Compute.

Due to a bug in parsing the FW into our internal format, we've been
accidentally sending Twod + Compute methods to the ThreeD class, as
well as Compute methods to the TwoD class - oops.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c