Re: [PATCH] drm/amdgpu: Fix the EPERM error when get user pages

2023-05-15 Thread Ma, Jun
, Alejandro (Alex) ; Ma, Jun >> ; Kuehling, Felix ; Koenig, >> Christian >> Subject: [PATCH] drm/amdgpu: Fix the EPERM error when get user pages >> >> Check and pass the readonly flags when set amdgpu_ttm_tt flags >> >&g

RE: [PATCH] drm/amdgpu: Fix the EPERM error when get user pages

2023-05-15 Thread Deucher, Alexander
Subject: [PATCH] drm/amdgpu: Fix the EPERM error when get user pages > > Check and pass the readonly flags when set amdgpu_ttm_tt flags > > for readonly ptr pages. Otherwise, there is EPERM error returned > > during the KFDExceptionTest.PermissionFaultUserPointer test

[PATCH] drm/amdgpu: Fix the EPERM error when get user pages

2023-05-14 Thread Ma Jun
Check and pass the readonly flags when set amdgpu_ttm_tt flags for readonly ptr pages. Otherwise, there is EPERM error returned during the KFDExceptionTest.PermissionFaultUserPointer test on ploaris10. Signed-off-by: Ma Jun --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 9 - 1