summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorXiaogang Chen <xiaogang.chen@amd.com>2026-08-23 15:47:15 -0500
committerAlex Deucher <alexander.deucher@amd.com>2026-08-25 18:22:00 -0400
commit520e345ffe05aabef1db82beda4288afb1757ff2 (patch)
treeedc36c312ec11f6ebf54d3e4aa71f0b5499c19c4 /scripts/const_structs.checkpatch
parent960c4a8069bfd352c48cc88592618f1ebe24c69e (diff)
downloadlinux-520e345ffe05aabef1db82beda4288afb1757ff2.tar.gz
linux-520e345ffe05aabef1db82beda4288afb1757ff2.zip
drm/amdkfd: Fix the case that vm range is hole at svm_migrate_copy_to_vram
When migration vm range is hole at cpu side(MIGRATE_PFN_MIGRATE set + MIGRATE_PFN_VALID unset) driver still allocates device pages. There is no dma map of src pages and migration. j is 0 and svm_migrate_copy_memory_gart() will return an uninitialized r. That can trigger out_free_vram_pages to drop all VRAM just set up. Initialize r and only call the last svm_migrate_copy_memory_gart if j > 0. Current code postponed the last page to the final copy. This patch flushes on the last page when reach to the end of current drm_buddy_block; avoids another svm_migrate_copy_memory_gart. Cc: stable@vger.kernel.org Signed-off-by: Xiaogang Chen <xiaogang.chen@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions