]> www.infradead.org Git - nvme.git/commit
nouveau: set placement to original placement on uvmm validate.
authorDave Airlie <airlied@redhat.com>
Wed, 15 May 2024 02:55:41 +0000 (12:55 +1000)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 31 Jul 2024 23:22:12 +0000 (01:22 +0200)
commit9c685f61722d30a22d55bb8a48f7a48bb2e19bcc
tree4172a91fdd3b512491102772437619148f0f8cd7
parentf85de245c6a8e2654e1e9158588bcf78e38cd5a5
nouveau: set placement to original placement on uvmm validate.

When a buffer is evicted for memory pressure or TTM evict all,
the placement is set to the eviction domain, this means the
buffer never gets revalidated on the next exec to the correct domain.

I think this should be fine to use the initial domain from the
object creation, as least with VM_BIND this won't change after
init so this should be the correct answer.

Fixes: b88baab82871 ("drm/nouveau: implement new VM_BIND uAPI")
Cc: Danilo Krummrich <dakr@redhat.com>
Cc: <stable@vger.kernel.org> # v6.6
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240515025542.2156774-1-airlied@gmail.com
drivers/gpu/drm/nouveau/nouveau_uvmm.c