aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@gmail.com>2019-08-08 15:45:58 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2019-08-12 09:01:10 +0300
commitb9040c99414ba5b85090595a61abc686a5dbb388 (patch)
tree9f54aa00eb5b48078e8edd906d8e46438bf8e357 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c
parent4e87334a0ef43663019dbaf3638ad10fd8c3320c (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c')
0 files changed, 0 insertions, 0 deletions