]> git.itanic.dy.fi Git - linux-stable/commit
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>
Mon, 24 Feb 2020 07:34:47 +0000 (08:34 +0100)
commit9a20047854bc345237442d12e3c149af0cd0c0c7
tree0a47cf9383652ebd670265686ede12aad03aeea6
parent4653672d2b8b792b4e078d4ae91fa0bee90a62ef
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