Re: [RFC PATCH 2/3] drm/amdgpu/ttm: replace duplicate code with exiting function

2021-07-15 Thread Christian König
Am 15.07.21 um 11:29 schrieb Lazar, Lijo: On 7/15/2021 2:56 PM, Christian König wrote: Am 15.07.21 um 10:24 schrieb Kevin Wang: using exiting function to replace duplicate code blocks in amdgpu_ttm_vram_write(). NAK, this should intentionally only use the MM path and not the aper path.

Re: [RFC PATCH 2/3] drm/amdgpu/ttm: replace duplicate code with exiting function

2021-07-15 Thread Lazar, Lijo
On 7/15/2021 2:56 PM, Christian König wrote: Am 15.07.21 um 10:24 schrieb Kevin Wang: using exiting function to replace duplicate code blocks in amdgpu_ttm_vram_write(). NAK, this should intentionally only use the MM path and not the aper path. What about platform configs which don't supp

Re: [RFC PATCH 2/3] drm/amdgpu/ttm: replace duplicate code with exiting function

2021-07-15 Thread Christian König
Am 15.07.21 um 10:24 schrieb Kevin Wang: using exiting function to replace duplicate code blocks in amdgpu_ttm_vram_write(). NAK, this should intentionally only use the MM path and not the aper path. But you could use amdgpu_device_mm_access() here now. Christian. Signed-off-by: Kevin Wang

[RFC PATCH 2/3] drm/amdgpu/ttm: replace duplicate code with exiting function

2021-07-15 Thread Kevin Wang
using exiting function to replace duplicate code blocks in amdgpu_ttm_vram_write(). Signed-off-by: Kevin Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgp