Skip to content

Add support for isp buffers

Pratap Nirujogi amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1drm/amd/amdgpu: Add support for isp buffersdrivers/gpu/drm/amd/amdgpu/amdgpu_object.c drivers/gpu/drm/amd/amdgpu/amdgpu_object.h+107 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] Add support for isp buffers

Add support to create user BOs with MC address for isp using the dma-buf handle of the buffers allocated from system memory in isp driver.

Steps followed:

- Import using dma-buf to create user BO
- Pin user BO to GTT domain
- Get GPU MC address of BO
- MC address is required for ISP WDMAs to write camera output

This approach mmaps isp buffers allocated in system memory for userspace access, and eliminates the need to export kernel BOs to userspace involving ttm->pages[] insertion into userspace vma region.

Exported amdgpu_bo_create_kernel() and amdgpu_bo_free_kernel() as well for isp to allocate GTT internal buffers required for fw to run. These buffers are always allcoated from GTT domain, scope is limited to kernel and will not be exposed to userspace.

Pratap Nirujogi (1):
drm/amd/amdgpu: Add support for isp buffers

 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 103 +++++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h |   4 +
 2 files changed, 107 insertions(+)
Signature · 1 line
2.34.1