]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu/vm: Check PRT uAPI flag instead of PTE flag
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 19 Nov 2025 09:25:42 +0000 (10:25 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Nov 2025 23:08:37 +0000 (18:08 -0500)
commita44592339397bc6715917997c6869bdedd1a7256
treeca40fe107829774b2ccaf48a343179b03148c323
parent80d8a9ad1587b64c545d515ab6cb7ecb9908e1b3
drm/amdgpu/vm: Check PRT uAPI flag instead of PTE flag

This fixes sparse mappings (aka. partially resident textures).

Check the correct flags.
Since a recent refactor, the code works with uAPI flags (for
mapping buffer objects), and not PTE (page table entry) flags.

Fixes: 6716a823d18d ("drm/amdgpu: rework how PTE flags are generated v3")
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 8feeab26c80635b802f72b3ed986c693ff8f3212)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c