search for: amdgpu_bo_in_cpu_visible_vram

Displaying 2 results from an estimated 2 matches for "amdgpu_bo_in_cpu_visible_vram".

2023 Jan 25
0
[PATCH v2 1/4] drm/amdgpu: Use cursor start instead of ttm resource start
...0, bo->resource->size, &cursor); > + offset = cursor.start; That won't work like this. We use a virtual resource start for this check here. > if ((offset + bo->base.size) <= adev->gmc.visible_vram_size) > return 0; Just replace this whole test with calling amdgpu_bo_in_cpu_visible_vram(). > > @@ -1378,7 +1380,8 @@ vm_fault_t amdgpu_bo_fault_reserve_notify(struct ttm_buffer_object *bo) > else if (unlikely(r)) > return VM_FAULT_SIGBUS; > > - offset = bo->resource->start << PAGE_SHIFT; > + amdgpu_res_first(bo->resource, 0, bo->res...
2023 Jan 25
5
[PATCH v2 1/4] drm/amdgpu: Use cursor start instead of ttm resource start
cleanup PAGE_SHIFT operation and replacing ttm_resource resource->start with cursor start using amdgpu_res_first API. v1 -> v2: reorder patch sequence Signed-off-by: Somalapuram Amaranath <Amaranath.Somalapuram at amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 11 ++++++++--- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 10 +++++++--- 2 files changed, 15 insertions(+), 6