Re: [PATCH] drm/amdkfd: pages_addr offset must be 0 for system range

2021-06-05 Thread Christian König
Am 05.06.21 um 01:10 schrieb Philip Yang: prange->offset is for VRAM range mm_nodes, if multiple ranges share same mm_nodes, migrate range back to VRAM will reuse the VRAM at offset of the same mm_nodes. For system memory pages_addr array, the offset is always 0, otherwise, update GPU mapping wil

Re: [PATCH] drm/amdkfd: pages_addr offset must be 0 for system range

2021-06-04 Thread Felix Kuehling
Am 2021-06-04 um 7:10 p.m. schrieb Philip Yang: > prange->offset is for VRAM range mm_nodes, if multiple ranges share same > mm_nodes, migrate range back to VRAM will reuse the VRAM at offset of > the same mm_nodes. For system memory pages_addr array, the offset is > always 0, otherwise, update GPU

[PATCH] drm/amdkfd: pages_addr offset must be 0 for system range

2021-06-04 Thread Philip Yang
prange->offset is for VRAM range mm_nodes, if multiple ranges share same mm_nodes, migrate range back to VRAM will reuse the VRAM at offset of the same mm_nodes. For system memory pages_addr array, the offset is always 0, otherwise, update GPU mapping will use incorrect system memory page, and caus