drm/nouveau/nvkm: fini object children in reverse order
authorBen Skeggs <bskeggs@redhat.com>
Thu, 25 May 2023 00:30:57 +0000 (10:30 +1000)
committerKarol Herbst <kherbst@redhat.com>
Thu, 6 Jul 2023 15:22:32 +0000 (17:22 +0200)
commit83775e158a3d2dc437132ab357ed6c9214ef0ae9
tree617a00f22c1761c1590c7645eab60d5cc3f3c91a
parentc69f9d92f7ca5cf88690b63af8a7d74cad2bc668
drm/nouveau/nvkm: fini object children in reverse order

Turns out, we're currently tearing down the disp core channel *before*
the satellite channels (wndw, etc) during suspend.

This makes RM return NV_ERR_NOT_SUPPORTED on attempting to reallocate
the core channel on resume for some reason, but we probably shouldn't
be doing it on HW either.

Tear down children in the reverse of allocation order instead.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230525003106.3853741-1-skeggsb@gmail.com
drivers/gpu/drm/nouveau/nvkm/core/object.c