diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2023-11-07 11:15:19 +0000 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2023-12-05 18:45:14 +0100 |
commit | edc0378eee00200a5bedf1bb9f00ad390e0d1bd4 (patch) | |
tree | 0d0539507e82749c8fd741681e51fc09f94a67f9 /arch/mips/include | |
parent | 8f7aa77a463f47c9e00592d02747a9fcf2271543 (diff) | |
download | linux-stable-edc0378eee00200a5bedf1bb9f00ad390e0d1bd4.tar.gz linux-stable-edc0378eee00200a5bedf1bb9f00ad390e0d1bd4.tar.bz2 linux-stable-edc0378eee00200a5bedf1bb9f00ad390e0d1bd4.zip |
MIPS: Loongson64: Enable DMA noncoherent support
There are some Loongson64 systems come with broken coherent DMA
support, firmware will set a bit in boot_param and pass nocoherentio
in cmdline.
However nonconherent support was missed out when spin off Loongson-2EF
form Loongson64, and that boot_param change never made itself into
upstream.
Support DMA noncoherent properly to get those systems working.
Cc: stable@vger.kernel.org
Fixes: 71e2f4dd5a65 ("MIPS: Fork loongson2ef from loongson64")
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/boot_param.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/include/asm/mach-loongson64/boot_param.h b/arch/mips/include/asm/mach-loongson64/boot_param.h index 035b1a69e2d0..c454ef734c45 100644 --- a/arch/mips/include/asm/mach-loongson64/boot_param.h +++ b/arch/mips/include/asm/mach-loongson64/boot_param.h @@ -117,7 +117,8 @@ struct irq_source_routing_table { u64 pci_io_start_addr; u64 pci_io_end_addr; u64 pci_config_addr; - u32 dma_mask_bits; + u16 dma_mask_bits; + u16 dma_noncoherent; } __packed; struct interface_info { |