linux_dsm_epyc7002/drivers/misc/habanalabs
Oded Gabbay d9973871da habanalabs: keep track of the device's dma mask
This patch refactors the code that is responsible to set the DMA mask for
the device.

Upon each change of the dma mask, the driver will save the new value that
was set. This is needed in order to make sure we don't try to increase the
mask a second time, in case we failed in the first time. This is
especially relevant for Power machines, as that may cause a change in
configuration of the TVT which will break the device.

Goya will first try to set the device's dma mask to 39 bits, so that the
memory that is allocated on the host machine for communication with the
device's cpu will be in a bus address which is lower then 39 bits. Later,
Goya will try to increase that mask to 48 bits, but only if setting the
mask to 39 bits was successful.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
2019-03-07 18:03:23 +02:00
..
goya habanalabs: keep track of the device's dma mask 2019-03-07 18:03:23 +02:00
include habanalabs: Move PCI code into common file 2019-03-05 16:48:42 +02: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: ratelimit warnings at start of IOCTLs 2019-03-05 13:53:22 +02:00
context.c habanalabs: add virtual memory and MMU modules 2019-02-18 09:46:46 +01:00
debugfs.c habanalabs: Allow accessing DRAM virtual addresses via debugfs 2019-03-12 13:53:17 +02:00
device.c habanalabs: prevent host crash during suspend/resume 2019-03-03 22:29:20 +02:00
firmware_if.c habanalabs: Move device CPU code into common file 2019-03-04 10:22:09 +02:00
habanalabs_drv.c habanalabs: keep track of the device's dma mask 2019-03-07 18:03:23 +02:00
habanalabs_ioctl.c habanalabs: Add a printout with the name of a busy engine 2019-03-07 14:26:02 +02:00
habanalabs.h habanalabs: keep track of the device's dma mask 2019-03-07 18:03:23 +02:00
hw_queue.c habanalabs: perform accounting for active CS 2019-03-03 15:13:15 +02: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: Move PCI code into common file 2019-03-05 16:48:42 +02: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
pci.c habanalabs: keep track of the device's dma mask 2019-03-07 18:03:23 +02:00
sysfs.c habanalabs: fix little-endian<->cpu conversion warnings 2019-02-28 13:07:52 +01:00