diff options
author | Tomer Tayar <[email protected]> | 2023-08-04 17:12:58 +0300 |
---|---|---|
committer | Oded Gabbay <[email protected]> | 2023-10-09 12:37:21 +0300 |
commit | dfdbc55a9c8c5ab00ae2d5963ac1199fdc9da2d3 (patch) | |
tree | e4bc2068000a5c3a67450682e1e93cd475d22c9f /tools/perf/scripts/python/gecko.py | |
parent | 051868d93cfd342b4ff8e6297b93a6a43dbe81b3 (diff) |
accel/habanalabs: always pass exported size to alloc_sgt_from_device_pages()
For Gaudi1 the exported dma-buf is always composed of a single page, and
therefore the exported size is equal to this page's size.
When calling alloc_sgt_from_device_pages(), we pass 0 as the exported
size and internally calculate it as "number of pages * page size".
This makes alloc_sgt_from_device_pages() less clear, because the
exported size parameter is not understood as a restriction on the pages'
size.
Modify to always pass the exported size explicitly.
Signed-off-by: Tomer Tayar <[email protected]>
Reviewed-by: Oded Gabbay <[email protected]>
Signed-off-by: Oded Gabbay <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions