diff options
author | Dafna Hirschfeld <dhirschfeld@habana.ai> | 2022-03-23 17:21:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-05-22 21:01:16 +0200 |
commit | ee8a10c833c4a49720055f23eeb215352b969bda (patch) | |
tree | 70852319f6a8e7c49d097f5cb21d5a91217d6a36 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 234366d3b6dac33dc6f78abf0fbc4abe9bae986b (diff) |
habanalabs: unify code for memory access from debugfs
Currently each asic version implements 4 callbacks:
'debugfs_{read32/write32/read64/write64}'
There is a lot of code duplication among the different
callbacks of all asic versions.
This patch unify the code in order to avoid the code
duplication by iterating the pci_mem_region array
in hl_device and use its fields instead of macros.
Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions