nouveau: reset the bo resource bus info after an eviction
[ Upstream commit f35c9af45ea7a4b1115b193d84858b14d13517fc ] Later attempts to refault the bo won't happen and the whole GPU does to lunch. I think Christian's refactoring of this code out to the driver broke this not very well tested path. Fixes: 141b15e59175 ("drm/nouveau: move io_reserve_lru handling into the driver v5") Cc: Christian König <christian.koenig@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Danilo Krummrich <dakr@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240311072037.287905-1-airlied@gmail.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d23e49f4e4
commit
d2034a6b92
@ -1194,6 +1194,8 @@ out:
|
|||||||
drm_vma_node_unmap(&nvbo->bo.base.vma_node,
|
drm_vma_node_unmap(&nvbo->bo.base.vma_node,
|
||||||
bdev->dev_mapping);
|
bdev->dev_mapping);
|
||||||
nouveau_ttm_io_mem_free_locked(drm, nvbo->bo.resource);
|
nouveau_ttm_io_mem_free_locked(drm, nvbo->bo.resource);
|
||||||
|
nvbo->bo.resource->bus.offset = 0;
|
||||||
|
nvbo->bo.resource->bus.addr = NULL;
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user