diff options
author | 2023-10-31 08:31:53 +0100 | |
---|---|---|
committer | 2023-11-08 16:26:34 +0100 | |
commit | b035224134626f506c1af73ca32bbc64dd2925ad (patch) | |
tree | e5b11469fe6aced287372de1595f2db2195e9f78 /drivers/accel/ivpu/ivpu_gem.h | |
parent | MAINTAINERS: Drop Emma Anholt from all M lines. (diff) | |
download | linux-b035224134626f506c1af73ca32bbc64dd2925ad.tar.gz linux-b035224134626f506c1af73ca32bbc64dd2925ad.tar.bz2 linux-b035224134626f506c1af73ca32bbc64dd2925ad.zip |
accel/ivpu: Allocate vpu_addr in gem->open() callback
Use gem->open() callback to simplify the code and prepare for gem_shmem
conversion. It is called during handle creation for a gem object,
during prime import and in BO_CREATE ioctl. Hence can be used for vpu_addr
allocation. On the way remove unused bo->user_ptr field.
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231031073156.1301669-2-stanislaw.gruszka@linux.intel.com
Diffstat (limited to 'drivers/accel/ivpu/ivpu_gem.h')
-rw-r--r-- | drivers/accel/ivpu/ivpu_gem.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/accel/ivpu/ivpu_gem.h b/drivers/accel/ivpu/ivpu_gem.h index a0b4d4a32b3b..9bbbcd779265 100644 --- a/drivers/accel/ivpu/ivpu_gem.h +++ b/drivers/accel/ivpu/ivpu_gem.h @@ -29,7 +29,6 @@ struct ivpu_bo { u64 vpu_addr; u32 handle; u32 flags; - uintptr_t user_ptr; u32 job_status; }; |