linux/drivers/misc/habanalabs/goya
Oded Gabbay b9040c9941 habanalabs: fix endianness handling for internal QMAN submission
The PQs of internal H/W queues (QMANs) can be located in different memory
areas for different ASICs. Therefore, when writing PQEs, we need to use
the correct function according to the location of the PQ. e.g. if the PQ
is located in the device's memory (SRAM or DRAM), we need to use
memcpy_toio() so it would work in architectures that have separate
address ranges for IO memory.

This patch makes the code that writes the PQE to be ASIC-specific so we
can handle this properly per ASIC.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Tested-by: Ben Segal <bpsegal20@gmail.com>
2019-08-12 09:01:10 +03:00
..
goya_coresight.c habanalabs: Read upper bits of trace buffer from RWPHI 2019-06-04 15:13:09 +03:00
goya_hwmgr.c habanalabs: add device reset support 2019-02-18 09:46:45 +01:00
goya_security.c habanalabs: make tpc registers secured 2019-05-30 08:46:01 +00:00
goya.c habanalabs: fix endianness handling for internal QMAN submission 2019-08-12 09:01:10 +03:00
goyaP.h habanalabs: fix endianness handling for internal QMAN submission 2019-08-12 09:01:10 +03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00