Maciej W. Rozycki
d01501f852
MIPS: Fix `dma_alloc_coherent' returning a non-coherent allocation
...
Fix a MIPS `dma_alloc_coherent' regression from commit bc3ec75de5
("dma-mapping: merge direct and noncoherent ops") that causes a cached
allocation to be returned on noncoherent cache systems.
This is due to an inverted check now used in the MIPS implementation of
`arch_dma_alloc' on the result from `dma_direct_alloc_pages' before
doing the cached-to-uncached mapping of the allocation address obtained.
The mapping has to be done for a non-NULL rather than NULL result,
because a NULL result means the allocation has failed.
Invert the check for correct operation then.
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Fixes: bc3ec75de5 ("dma-mapping: merge direct and noncoherent ops")
Patchwork: https://patchwork.linux-mips.org/patch/20965/
2018-11-05 10:08:13 -08:00
..
alchemy
mtd: rawnand: Move platform_nand_xxx definitions out of rawnand.h
2018-10-03 11:12:25 +02:00
ar7
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
ath25
mips: unify prom_putchar() declarations
2018-07-17 09:40:17 -07:00
ath79
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
bcm47xx
MIPS: BCM47XX: Enable USB power on Netgear WNDR3400v3
2018-08-29 11:11:00 -07:00
bcm63xx
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
bmips
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
boot
Here are the main MIPS updates for 4.20:
2018-10-26 14:43:48 -07:00
cavium-octeon
MIPS: OCTEON: fix out of bounds array access on CN68XX
2018-11-05 10:03:35 -08:00
cobalt
configs
MIPS: generic: Add Network, SPI and I2C to ocelot_defconfig
2018-10-15 23:11:15 -07:00
crypto
dec
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
emma
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
fw
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
generic
MIPS: mscc: add PCB120 to the ocelot fitImage
2018-10-09 10:38:29 -07:00
include
treewide: remove current_text_addr
2018-10-31 08:54:12 -07:00
jazz
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
jz4740
JFFS2 changes:
2018-08-14 10:57:44 -07:00
kernel
memblock: stop using implicit alignment to SMP_CACHE_BYTES
2018-10-31 08:54:16 -07:00
kvm
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
lantiq
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
lasat
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
lib
MIPS: lib: Use kernel_pref & user_pref in memcpy()
2018-10-15 23:11:14 -07:00
loongson32
MIPS: Loongson: Merge load addresses
2018-07-30 18:59:01 -07:00
loongson64
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
math-emu
mm
MIPS: Fix `dma_alloc_coherent' returning a non-coherent allocation
2018-11-05 10:08:13 -08:00
mti-malta
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
net
netlogic
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
oprofile
paravirt
mips: unify prom_putchar() declarations
2018-07-17 09:40:17 -07:00
pci
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
pic32
mips: unify prom_putchar() declarations
2018-07-17 09:40:17 -07:00
pistachio
pmcs-msp71xx
MIPS: Remove no-op/identity casts
2018-08-31 11:49:20 -07:00
pnx833x
mtd: rawnand: Move platform_nand_xxx definitions out of rawnand.h
2018-10-03 11:12:25 +02:00
power
ralink
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
rb532
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
sgi-ip22
MIPS: Remove no-op/identity casts
2018-08-31 11:49:20 -07:00
sgi-ip27
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
sgi-ip32
sibyte
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
sni
tools
MIPS: Use a custom elf-entry program to find kernel entry point
2018-08-30 09:39:22 -07:00
txx9
mm: remove include/linux/bootmem.h
2018-10-31 08:54:16 -07:00
vdso
kbuild: replace cc-name test with CONFIG_CC_IS_CLANG
2018-11-02 22:49:00 +09:00
vr41xx
Kbuild
Kbuild.platforms
Kconfig
mm: remove CONFIG_HAVE_MEMBLOCK
2018-10-31 08:54:15 -07:00
Kconfig.debug
Kconfig: consolidate the "Kernel hacking" menu
2018-08-02 08:06:48 +09:00
Makefile
kbuild: replace cc-name test with CONFIG_CC_IS_CLANG
2018-11-02 22:49:00 +09:00
Makefile.postlink