On 2/4/2025 1:46 AM, Jacek Lawrynowicz wrote:
From: Tomasz Rusinowicz <tomasz.rusinow...@intel.com>

Use ivpu_gem_prime_import() based on drm_gem_prime_import_dev()
for importing buffers, removing optimization for same device
imports. This optimization reused the same ivpu_bo object in multiple
contexts but a single buffer can be MMU-mapped only to a single context.
Each import now creates a new instance of ivpu_bo object that shares
the same sg_table but have separate MMU mappings.

Reviewed-by: Jacek Lawrynowicz <jacek.lawrynow...@linux.intel.com>
Signed-off-by: Tomasz Rusinowicz <tomasz.rusinow...@intel.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynow...@linux.intel.com>

Reviewed-by: Jeffrey Hugo <quic_jh...@quicinc.com>

Reply via email to