OpenCloudOS-Kernel/drivers
Logan Gunthorpe 2ef5129e43 iommu/dma: return error code from iommu_dma_map_sg()
commit dabb16f672 upstream.

Return appropriate error codes EINVAL or ENOMEM from
iommup_dma_map_sg(). If lower level code returns ENOMEM, then we
return it, other errors are coalesced into EINVAL.

iommu_dma_map_sg_swiotlb() returns -EIO as its an unknown error
from a call that returns DMA_MAPPING_ERROR.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chen Zhuo <sagazchen@tencent.com>
Signed-off-by: Xinghui Li <korantli@tencent.com>
2024-06-11 21:13:36 +08:00
..
accessibility
acpi ACPI: pfr_telemetry: Fix info leak in pfrt_log_ioctl() 2024-06-11 21:12:53 +08:00
amba ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
android ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ata dma-mapping: treat dev->bus_dma_mask as a DMA limit 2024-06-11 21:11:19 +08:00
atm ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
auxdisplay ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
base device property: Add functions for accessing node's parents 2024-06-11 21:11:43 +08:00
bcma bcma: make arrays pwr_info_offset and sprom_sizes static const, shrinks object size 2019-09-13 16:44:49 +03:00
block ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
bluetooth ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
bus ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
cdrom tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
char ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
clk ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
clocksource ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
connector
counter ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
cpufreq cpufreq: Fix Kconfig indentation 2024-06-11 21:12:04 +08:00
cpuidle cpuidle: haltpoll: Call cpuidle_poll_state_init() later 2024-06-11 21:12:28 +08:00
crypto ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
dax ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
dca
devfreq ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
dio
dma dmaengine: idxd: fix resource leak on dmaengine driver disable 2024-06-11 21:09:35 +08:00
dma-buf ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
edac ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
eisa
extcon ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
firewire ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
firmware ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
fpga ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
fsi tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
gnss ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
gpio ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
gpu drm, iommu: Change type of pasid to u32 2024-06-11 21:07:28 +08:00
greybus
hid ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
hsi ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
hv ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
hwmon ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
hwspinlock
hwtracing ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
i2c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
i3c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ide ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
idle cpuidle: intel_idle: Drop redundant backslash at line end 2024-06-11 21:12:29 +08:00
iio ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
infiniband ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
input ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
interconnect ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
iommu iommu/dma: return error code from iommu_dma_map_sg() 2024-06-11 21:13:36 +08:00
ipack ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
irqchip ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
isdn ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
leds ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lightnvm ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
macintosh ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
mailbox ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
mcb
md ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
media ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
memory ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
memstick ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
message ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
mfd mfd: intel_pmt: Add support for DG1 2024-06-11 21:10:46 +08:00
misc lib/genalloc.c: rename addr_in_gen_pool to gen_pool_has_addr 2024-06-11 21:11:20 +08:00
mmc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
mtd ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
mux
net PCI/AER: Fix implicit declaration of function 'pci_cleanup_aer_uncorrect_error_status' 2024-06-11 21:11:45 +08:00
nfc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ntb PCI/AER: Rationalize error status register clearing 2024-06-11 21:10:54 +08:00
nubus
nvdimm ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
nvme ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
nvmem ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
of of/irq: make of_msi_map_get_device_domain() bus agnostic 2024-06-11 21:11:41 +08:00
opp ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
oprofile
parisc dma-mapping: add a new dma_alloc_pages API 2024-06-11 21:11:34 +08:00
parport tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
pci PCI/ERR: Retain status from error notification 2024-06-11 21:12:33 +08:00
pcmcia Merge branch 'next-lockdown' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 2019-09-28 08:14:15 -07:00
perf ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
phy ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
pinctrl ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
platform platform/x86: intel_pmt_crashlog: Fix incorrect macros 2024-06-11 21:10:47 +08:00
pnp
power power: avs: Fix Kconfig indentation 2024-06-11 21:12:04 +08:00
powercap powercap: intel_rapl: add support for Sapphire Rapids 2024-06-11 21:10:26 +08:00
pps
ps3 ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ptp tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
pwm ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
rapidio ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ras ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
regulator ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
remoteproc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
reset tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
rpmsg ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
rtc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
s390 ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
sbus
scsi PCI/AER: Fix implicit declaration of function 'pci_cleanup_aer_uncorrect_error_status' 2024-06-11 21:11:45 +08:00
sfi
sh
siox
slimbus ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
soc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
soundwire ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
spi ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
spmi ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ssb ssb: make array pwr_info_offset static const, makes object smaller 2019-09-13 17:23:18 +03:00
staging ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
target ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
tc
tee ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
thermal ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
thunderbolt ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
tty ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
uio ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
usb ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
vfio iommu: Rename iommu_tlb_* functions to iommu_iotlb_* 2024-06-11 21:11:38 +08:00
vhost ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
video ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
virt ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
virtio ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
visorbus tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
vlynq
vme tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
w1 ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
watchdog ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
xen dma-direct: improve swiotlb error reporting 2024-06-11 21:11:20 +08:00
zorro
Kconfig Staging/IIO driver patches for 5.4-rc1 2019-09-18 11:05:34 -07:00
Makefile tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00