Skip to contentSkip to conversation

Why is nouveau using a separate swap storage?

DISCUSSION Christian König 3 participants 3 messages Sep 17, 2020

lore
Share & tools
lore
#0 lore raw

Hi guys,

just another TTM feature which is only used by nouveau.

We have this bo->bo.persistent_swap_storage pointer which is only set by nouveau to the GEM filp and used when a BO is swapped to a shmem file.

As far as I can see this doesn't make any sense at all? What is the background here.

Thanks,
Christian.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw
Quoted 10 lines · Christian König

Hi guys,

just another TTM feature which is only used by nouveau.

We have this bo->bo.persistent_swap_storage pointer which is only set by nouveau to the GEM filp and used when a BO is swapped to a shmem file.

As far as I can see this doesn't make any sense at all? What is the background here.

No specific reason I can remember, likely cargo-cult from very very early versions of TTM/GEM stuff.

Ben.

Quoted 7 lines

Thanks,
Christian.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

Am 17.09.20 um 12:51 schrieb Ben Skeggs:

Quoted 6 lines
Quoted 4 lines · Christian König

Hi guys,

just another TTM feature which is only used by nouveau.

Quoted 7 lines
Quoted 5 lines

We have this bo->bo.persistent_swap_storage pointer which is only set by nouveau to the GEM filp and used when a BO is swapped to a shmem file.

As far as I can see this doesn't make any sense at all? What is the background here.

No specific reason I can remember, likely cargo-cult from very very early versions of TTM/GEM stuff.

Ok, going to send something out to drop this then.

Thanks,
Christian.

Quoted 9 lines

Ben.

Quoted 6 lines

Thanks,
Christian.
_______________________________________________
dri-devel mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fdri-devel&data=02%7C01%7Cchristian.koenig%40amd.com%7C70ce7559f13c4bf181fb08d85af7b85b%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637359367286020632&sdata=ncJ2%2FkCY7DuGb119M%2BR%2BLtSUA1qjEK5nhGVjKjEd6jQ%3D&reserved=0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel