Commit 61c1f340 authored by Ben Skeggs's avatar Ben Skeggs Committed by Dave Airlie

drm/nouveau/nvkm: use list_add_tail() when building object tree

Fixes resume from hibernate failing on (at least) TU102, where cursor
channel init failed due to being performed before the core channel.

Not solid idea why suspend-to-ram worked, but, presumably HW being in
an entirely clean state has something to do with it.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent c4feba47
...@@ -128,7 +128,7 @@ nvkm_ioctl_new(struct nvkm_client *client, ...@@ -128,7 +128,7 @@ nvkm_ioctl_new(struct nvkm_client *client,
if (ret == 0) { if (ret == 0) {
ret = nvkm_object_init(object); ret = nvkm_object_init(object);
if (ret == 0) { if (ret == 0) {
list_add(&object->head, &parent->tree); list_add_tail(&object->head, &parent->tree);
if (nvkm_object_insert(object)) { if (nvkm_object_insert(object)) {
client->data = object; client->data = object;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment