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(+) -- 2.34.1