summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorJames Zhu <James.Zhu@amd.com>2025-05-28 19:38:58 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-08-06 21:19:12 +0300
commitbd6093e2f1601c0c83906f5115a2efb6b93050b1 (patch)
tree0d3bdb1927aff3e6182e56b6b483eb8b77a1d1ce /tools/perf/scripts/python/sched-migration.py
parent5c15a05b52553ad99c68a661b832aff3eeb2a7b7 (diff)
downloadlinux-bd6093e2f1601c0c83906f5115a2efb6b93050b1.tar.xz
drm/amdkfd: return migration pages from copy function
dst MIGRATE_PFN_VALID bit and src MIGRATE_PFN_MIGRATE bit should always be set when migration success. cpage includes src MIGRATE_PFN_MIGRATE bit set and MIGRATE_PFN_VALID bit unset pages for both ram and vram when memory is only allocated without being populated before migration, those ram pages should be counted as migrate pages and those vram pages should not be counted as migrate pages. Here migration pages refer to how many vram pages involved. -v2 use dst to check MIGRATE_PFN_VALID bit (suggested-by Philip) -v3 add warning when vram pages is less than migration pages return migration pages directly from copy function -v4 correct comments and copy function return mpage (suggested-by Felix) Signed-off-by: James Zhu <James.Zhu@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions