linux_dsm_epyc7002/arch/x86/kernel
Christoph Hellwig 6e4bf58677 x86/dma: Use generic swiotlb_ops
The generic swiotlb DMA ops were based on the x86 ones and provide
equivalent functionality, so use them.

Also fix the sta2x11 case.  For that SOC the DMA map ops need an
additional physical to DMA address translations.  For swiotlb buffers
that is done throught the phys_to_dma helper, but the sta2x11_dma_ops
also added an additional translation on the return value from
x86_swiotlb_alloc_coherent, which is only correct if that functions
returns a direct allocation and not a swiotlb buffer.  With the
generic swiotlb and DMA-direct code phys_to_dma is not always used
and the separate sta2x11_dma_ops can be replaced with a simple
bit that marks if the additional physical to DMA address translation
is needed.

Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Jon Mason <jdmason@kudzu.us>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Muli Ben-Yehuda <mulix@mulix.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: iommu@lists.linux-foundation.org
Link: http://lkml.kernel.org/r/20180319103826.12853-5-hch@lst.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2018-03-20 10:01:57 +01:00
..
acpi ACPI, x86/boot: Introduce the ->reduced_hw_early_init() ACPI callback 2018-03-12 12:32:57 +01:00
apic Merge branch 'x86/pti' into x86/mm, to pick up dependencies 2018-03-12 12:10:03 +01:00
cpu Merge branch 'x86/mm' into x86/dma, to pick up dependencies 2018-03-20 10:01:37 +01:00
fpu
kprobes x86/kprobes: Fix kernel crash when probing .entry_trampoline code 2018-03-09 09:58:36 +01:00
.gitignore
alternative.c
amd_gart_64.c x86/dma: Use DMA-direct (CONFIG_DMA_DIRECT_OPS=y) 2018-03-20 10:01:56 +01:00
amd_nb.c
apb_timer.c
aperture_64.c
apm_32.c
asm-offsets_32.c
asm-offsets_64.c
asm-offsets.c
audit_64.c
bootflag.c
check.c
cpuid.c
crash_dump_32.c
crash_dump_64.c
crash.c
devicetree.c
doublefault.c
dumpstack_32.c
dumpstack_64.c
dumpstack.c
e820.c x86/boot/e820: Implement a range manipulation operator 2018-02-26 08:44:52 +01:00
early_printk.c
early-quirks.c
ebda.c
eisa.c
espfix_64.c
ftrace_32.S
ftrace_64.S
ftrace.c
head32.c
head64.c
head_32.S
head_64.S Merge branch 'x86/pti' into x86/mm, to pick up dependencies 2018-03-12 12:10:03 +01:00
hpet.c
hw_breakpoint.c
i8237.c
i8253.c
i8259.c
idt.c
io_delay.c
ioport.c x86/syscalls: Use proper syscall definition for sys_ioperm() 2018-03-07 07:57:30 +01:00
irq_32.c
irq_64.c
irq_work.c
irq.c
irqinit.c
itmt.c
jailhouse.c
jump_label.c
kdebugfs.c
kexec-bzimage64.c
kgdb.c
ksysfs.c
kvm.c KVM: X86: Avoid traversing all the cpus for pv tlb flush when steal time is disabled 2018-02-24 01:43:49 +01:00
kvmclock.c
ldt.c
livepatch.c
machine_kexec_32.c
machine_kexec_64.c kdump, vmcoreinfo: Export pgtable_l5_enabled value 2018-03-12 09:43:56 +01:00
Makefile x86/dma: Use DMA-direct (CONFIG_DMA_DIRECT_OPS=y) 2018-03-20 10:01:56 +01:00
mmconf-fam10h_64.c
module.c x86: Treat R_X86_64_PLT32 as R_X86_64_PC32 2018-02-22 09:01:10 -08:00
mpparse.c
msr.c
nmi_selftest.c
nmi.c
paravirt_patch_32.c
paravirt_patch_64.c
paravirt-spinlocks.c
paravirt.c
pci-calgary_64.c x86/dma: Use DMA-direct (CONFIG_DMA_DIRECT_OPS=y) 2018-03-20 10:01:56 +01:00
pci-dma.c x86/dma: Use DMA-direct (CONFIG_DMA_DIRECT_OPS=y) 2018-03-20 10:01:56 +01:00
pci-iommu_table.c
pci-nommu.c x86/cpu: Remove the CONFIG_X86_PPRO_FENCE=y quirk 2018-03-20 10:01:05 +01:00
pci-swiotlb.c x86/dma: Use generic swiotlb_ops 2018-03-20 10:01:57 +01:00
pcspeaker.c
perf_regs.c
platform-quirks.c
pmem.c
probe_roms.c
process_32.c
process_64.c
process.c
ptrace.c
pvclock.c
quirks.c
reboot_fixups_32.c
reboot.c
relocate_kernel_32.S
relocate_kernel_64.S
resource.c
rtc.c
setup_percpu.c x86/cpu_entry_area: Sync cpu_entry_area to initial_page_table 2018-03-01 09:48:27 +01:00
setup.c Merge branch 'x86/pti' into x86/mm, to pick up dependencies 2018-03-12 12:10:03 +01:00
signal_compat.c signal/x86: Include the field offsets in the build time checks 2018-03-06 00:29:17 -06:00
signal.c
smp.c
smpboot.c x86/topology: Update the 'cpu cores' field in /proc/cpuinfo correctly across CPU hotplug operations 2018-02-23 08:47:47 +01:00
stacktrace.c
step.c
sys_x86_64.c
sysfb_efi.c
sysfb_simplefb.c
sysfb.c
tboot.c
tce_64.c
time.c
tls.c
tls.h
topology.c
trace_clock.c
tracepoint.c
traps.c
tsc_msr.c
tsc_sync.c
tsc.c
umip.c
unwind_frame.c
unwind_guess.c
unwind_orc.c extable: Make init_kernel_text() global 2018-02-21 16:54:06 +01:00
uprobes.c
verify_cpu.S
vm86_32.c x86/vm86/32: Fix POPF emulation 2018-03-14 09:21:01 +01:00
vmlinux.lds.S x86/kprobes: Fix kernel crash when probing .entry_trampoline code 2018-03-09 09:58:36 +01:00
vsmp_64.c
x86_init.c ACPI, x86/boot: Introduce the ->reduced_hw_early_init() ACPI callback 2018-03-12 12:32:57 +01:00