[PATCH 1/2] drm/amdgpu: refine amdgpu_bo_create_kernel_at()

2023-07-27 Thread Lang Yu
amdgpu_bo_create_kernel_at() is used to create a physical contiguous VRAM BO at the specific offset. It calls amdgpu_bo_create_reserved() to create a VRAM BO first, then frees its old memory and allocates new memory at the specific offset. But amdgpu_bo_create_reserved() would fail if requested VRA

Re: [PATCH 1/2] drm/amdgpu: refine amdgpu_bo_create_kernel_at()

2023-07-27 Thread Christian König
Am 27.07.23 um 09:56 schrieb Lang Yu: amdgpu_bo_create_kernel_at() is used to create a physical contiguous VRAM BO at the specific offset. It calls amdgpu_bo_create_reserved() to create a VRAM BO first, then frees its old memory and allocates new memory at the specific offset. But amdgpu_bo_creat

Re: [PATCH 1/2] drm/amdgpu: refine amdgpu_bo_create_kernel_at()

2023-07-27 Thread Lang Yu
On 07/27/ , Christian König wrote: > Am 27.07.23 um 09:56 schrieb Lang Yu: > > amdgpu_bo_create_kernel_at() is used to create a physical > > contiguous VRAM BO at the specific offset. It calls > > amdgpu_bo_create_reserved() to create a VRAM BO first, > > then frees its old memory and allocates new

Re: [PATCH 1/2] drm/amdgpu: refine amdgpu_bo_create_kernel_at()

2023-07-27 Thread Christian König
Am 27.07.23 um 10:15 schrieb Lang Yu: On 07/27/ , Christian König wrote: Am 27.07.23 um 09:56 schrieb Lang Yu: amdgpu_bo_create_kernel_at() is used to create a physical contiguous VRAM BO at the specific offset. It calls amdgpu_bo_create_reserved() to create a VRAM BO first, then frees its old

Re: [PATCH 1/2] drm/amdgpu: refine amdgpu_bo_create_kernel_at()

2023-07-27 Thread Lang Yu
On 07/27/ , Christian König wrote: > Am 27.07.23 um 10:15 schrieb Lang Yu: > > On 07/27/ , Christian König wrote: > > > Am 27.07.23 um 09:56 schrieb Lang Yu: > > > > amdgpu_bo_create_kernel_at() is used to create a physical > > > > contiguous VRAM BO at the specific offset. It calls > > > > amdgpu_