Re: [PATCH] drm/amdgpu: fix clearing mappings for BOs that are always valid in VM

2023-06-16 Thread Christian König
Am 16.06.23 um 08:27 schrieb Samuel Pitoiset: If the BO has been moved the PT should be updated, otherwise the VAs might point to invalid PT. You might want to update this sentence a bit. Something like: Per VM BOs must be marked as moved or otherwise their ranges are not updated on use

[PATCH] drm/amdgpu: fix clearing mappings for BOs that are always valid in VM

2023-06-16 Thread Samuel Pitoiset
If the BO has been moved the PT should be updated, otherwise the VAs might point to invalid PT. This fixes random GPU hangs when replacing sparse mappings from the userspace, while OP_MAP/OP_UNMAP works fine because always valid BOs are correctly handled there. Cc: sta...@vger.kernel.org