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
Omer Shpigelman d12a5e2458 habanalabs: fix mapping with page size bigger than 4KB
This patch fixes the mapping of virtual address to physical addresses on
architectures where PAGE_SIZE is bigger than 4KB.
The break down to the device page size was done only for the virtual
address while it should have been done for the physical address as well.
As a result virtual addresses were mapped to wrong physical address.
The fix is to apply the break down for the physical addresses as well in
order to get correct mappings.

Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
2019-03-14 16:54:45 +02:00
..
goya habanalabs: use %px instead of %p in error print 2019-03-02 12:03:56 +01:00
include habanalabs: set DMA0 completion to SOB 1007 2019-02-28 13:04:59 +01:00
asid.c habanalabs: add context and ASID modules 2019-02-18 09:46:44 +01:00
command_buffer.c habanalabs: fix memory leak with CBs with unaligned size 2019-02-28 13:06:09 +01:00
command_submission.c habanalabs: soft-reset device if context-switch fails 2019-02-28 13:07:52 +01:00
context.c habanalabs: add virtual memory and MMU modules 2019-02-18 09:46:46 +01:00
debugfs.c habanalabs: fix MMU number of pages calculation 2019-03-05 10:59:16 +02:00
device.c habanalabs: complete user context cleanup before hard reset 2019-03-13 13:36:28 +02:00
habanalabs_drv.c habanalabs: make functions static or declare them 2019-02-27 16:00:20 +01:00
habanalabs_ioctl.c habanalabs: fix little-endian<->cpu conversion warnings 2019-02-28 13:07:52 +01:00
habanalabs.h habanalabs: fix MMU number of pages calculation 2019-03-05 10:59:16 +02:00
hw_queue.c habanalabs: fix little-endian<->cpu conversion warnings 2019-02-28 13:07:52 +01:00
hwmon.c habanalabs: fix little-endian<->cpu conversion warnings 2019-02-28 13:07:52 +01:00
irq.c habanalabs: fix little-endian<->cpu conversion warnings 2019-02-28 13:07:52 +01:00
Kconfig habanalabs: adjust Kconfig to fix build errors 2019-03-02 12:03:56 +01:00
Makefile habanalabs: add debugfs support 2019-02-18 09:46:46 +01:00
memory.c habanalabs: fix bug when mapping very large memory area 2019-03-07 15:47:19 +02:00
mmu.c habanalabs: fix mapping with page size bigger than 4KB 2019-03-14 16:54:45 +02:00
sysfs.c habanalabs: fix little-endian<->cpu conversion warnings 2019-02-28 13:07:52 +01:00