Hi Ray,

On Wed, 21 Oct 2026 10:58:49 +0800 Huang Rui wrote:

> +     if (new_attrs->prefetch_loc != AMDGPU_SVM_LOCATION_UNDEFINED &&
> +         new_attrs->prefetch_loc != AMDGPU_SVM_LOCATION_SYSMEM)
> +             trigger |= AMDGPU_SVM_ATTR_TRIGGER_PREFETCH;

I'm not sure about excluding SYSMEM here... The proposed libhsakmt
adaptation maps a CPU prefetch target to SYSMEM. If the pages are in
VRAM and the update fully covers an existing mapped SVM range, nothing
gets mapped or migrated eagerly. The GPU PTEs can be zapped, but the
pages stay in VRAM even though SET_ATTR can return success.

Is SYSMEM prefetch meant to move pages back to RAM, or only to set the
attribute for a later CPU fault?

Thanks,
Aveline Noir

Reply via email to