diff options
author | 2023-08-04 17:42:13 +0300 | |
---|---|---|
committer | 2023-10-09 12:37:21 +0300 | |
commit | efbca048c64bb00562c3e980dfc6ca47fff4fa0e (patch) | |
tree | 2c8998b3d9edd98560059506bb94e27718a9b7e7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | accel/habanalabs: always pass exported size to alloc_sgt_from_device_pages() (diff) | |
download | linux-rng-efbca048c64bb00562c3e980dfc6ca47fff4fa0e.tar.xz linux-rng-efbca048c64bb00562c3e980dfc6ca47fff4fa0e.zip |
accel/habanalabs: use exported size from dma_buf and not from phys_pg_pack
The 'exported_size' member in 'struct hl_vm_phys_pg_pack' is used to
keep the exported dma-buf size, to be later used when the buffer is
mapped.
However it is possible that the same phys_pg_pack will be exported more
than once, and independently of when the mapping takes place.
Remove this member from the phys_pg_pack structure, and simply use the
size in the dma-buf object as the exported size when mapping.
Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions