Re: [PATCH 2/3] drm/amdkfd: track unified memory reservation with xnack off

2022-07-16 Thread Felix Kuehling
On 2022-07-11 21:56, Alex Sierra wrote: [WHY] Unified memory with xnack off should be tracked, as userptr mappings and legacy allocations do. To avoid oversuscribe system memory when xnack off. [How] Exposing functions reserve_mem_limit and unreserve_mem_limit to SVM API and call them on every pr

[PATCH 2/3] drm/amdkfd: track unified memory reservation with xnack off

2022-07-11 Thread Alex Sierra
[WHY] Unified memory with xnack off should be tracked, as userptr mappings and legacy allocations do. To avoid oversuscribe system memory when xnack off. [How] Exposing functions reserve_mem_limit and unreserve_mem_limit to SVM API and call them on every prange creation and free. Signed-off-by: Al

Re: [PATCH 2/3] drm/amdkfd: track unified memory reservation with xnack off

2022-07-05 Thread Felix Kuehling
On 2022-07-05 12:09, philip yang wrote: On 2022-06-27 20:23, Alex Sierra wrote: [WHY] Unified memory with xnack off should be tracked, as userptr mappings and legacy allocations do. To avoid oversuscribe system memory when xnack off. I think this also apply to XNACK ON (remove p->xnack_enabl

Re: [PATCH 2/3] drm/amdkfd: track unified memory reservation with xnack off

2022-07-05 Thread philip yang
On 2022-06-27 20:23, Alex Sierra wrote: [WHY] Unified memory with xnack off should be tracked, as userptr mappings and legacy allocations do. To avoid oversuscribe system memory when xnack off. I think this also apply to XNACK ON (remove p->xnack_enabled

[PATCH 2/3] drm/amdkfd: track unified memory reservation with xnack off

2022-06-27 Thread Alex Sierra
[WHY] Unified memory with xnack off should be tracked, as userptr mappings and legacy allocations do. To avoid oversuscribe system memory when xnack off. [How] Exposing functions reserve_mem_limit and unreserve_mem_limit to SVM API and call them on every prange creation and free. Signed-off-by: Al