2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 13:43:55 +08:00
linux-next/drivers/misc/habanalabs
Ben Segal 75035fe22b habanalabs: fix F/W download in BE architecture
writeX macros might perform byte-swapping in BE architectures. As our F/W
is in LE format, we need to make sure no byte-swapping will occur.

There is a standard kernel function (called memcpy_toio) for copying data
to I/O area which is used in a lot of drivers to download F/W to PCIe
adapters. That function also makes sure the data is copied "as-is",
without byte-swapping.

This patch use that function to copy the F/W to the GOYA ASIC instead of
writeX macros.

Signed-off-by: Ben Segal <bpsegal20@gmail.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
2019-07-29 11:40:25 +03:00
..
goya habanalabs: use %pad for printing a dma_addr_t 2019-07-08 14:39:32 +02:00
include habanalabs: Update the device idle check 2019-07-01 13:59:44 +00:00
asid.c habanalabs: initialize device CPU queues after MMU init 2019-05-29 14:24:51 +03:00
command_buffer.c habanalabs: rename functions to improve code readability 2019-05-01 11:47:04 +03:00
command_submission.c habanalabs: change polling functions to macros 2019-05-09 01:48:23 +03:00
context.c habanalabs: initialize MMU context for driver 2019-05-29 15:27:48 +03:00
debugfs.c habanalabs: Add busy engines bitmask to HW idle IOCTL 2019-07-01 13:59:45 +00:00
device.c habanalabs: de-couple MMU and VM module initialization 2019-05-29 14:43:04 +03:00
firmware_if.c habanalabs: fix F/W download in BE architecture 2019-07-29 11:40:25 +03:00
habanalabs_drv.c habanalabs: remove dead code in habanalabs_drv.c 2019-05-08 09:55:23 +03:00
habanalabs_ioctl.c habanalabs: Add busy engines bitmask to HW idle IOCTL 2019-07-01 13:59:45 +00:00
habanalabs.h habanalabs: Add busy engines bitmask to HW idle IOCTL 2019-07-01 13:59:45 +00:00
hw_queue.c habanalabs: pass device pointer to asic-specific function 2019-05-12 16:53:16 +03:00
hwmon.c habanalabs: fix little-endian<->cpu conversion warnings 2019-02-28 13:07:52 +01:00
irq.c habanalabs: rename functions to improve code readability 2019-05-01 11:47:04 +03:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
memory.c habanalabs: de-couple MMU and VM module initialization 2019-05-29 14:43:04 +03:00
mmu.c habanalabs: add WARN in case of bad MMU mapping 2019-05-31 18:25:20 +03:00
pci.c habanalabs: increase PCI ELBI timeout for Palladium 2019-05-13 14:44:50 +03:00
sysfs.c habanalabs: remove simulator dedicated code 2019-06-04 15:07:11 +03:00