nvc0: properly allocate copy engine class before using it
authorBen Skeggs <bskeggs@redhat.com>
Thu, 4 Nov 2021 01:21:47 +0000 (11:21 +1000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 9 Nov 2022 21:21:22 +0000 (21:21 +0000)
commit5a1ccd0a888052bda65fa49af338c84cab604519
tree56461059b67cd99e24d9caec130e50a1c45c625e
parent7ad20e7ba93d18efc6b49907d5fb1497ef786f2d
nvc0: properly allocate copy engine class before using it

Important for upcoming kernel changes to more correctly manage the CE
context on Volta and newer, or the channel will be killed in response
to a CTXNOTVALID error from the GPU.

The kernel will have a workaround for Volta and Turing GPUs to preserve
ABI, but will require userspace to behave correctly on Ampere and newer.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Acked-by: M Henning <drawoc@darkrefraction.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17633>
src/gallium/drivers/nouveau/nv_object.xml.h
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
src/gallium/drivers/nouveau/nvc0/nvc0_screen.h