mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 11:33:45 +07:00
2b83878dd7
When __pa is applied to virtual address in uncached KSEG region the result is incorrect. Fix it by checking if the original address is in the uncached KSEG and adjusting the result. It looks better than masking off bits because pfn_valid would correctly work with new __pa results and it may be made working in noMMU case, once we get definition for uncached memory view. This is required for the dma_common_mmap and DMA debug code to work correctly: they both indirectly use __pa with coherent DMA addresses. In case of DMA debug the visible effect is false reports that an address mapped for DMA is accessed by CPU. Cc: stable@vger.kernel.org Tested-by: Boris Brezillon <boris.brezillon@free-electrons.com> Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> |
||
---|---|---|
.. | ||
asm-offsets.h | ||
asm-uaccess.h | ||
asmmacro.h | ||
atomic.h | ||
barrier.h | ||
bitops.h | ||
bootparam.h | ||
bugs.h | ||
cache.h | ||
cacheasm.h | ||
cacheflush.h | ||
checksum.h | ||
cmpxchg.h | ||
coprocessor.h | ||
current.h | ||
delay.h | ||
device.h | ||
dma-mapping.h | ||
dma.h | ||
elf.h | ||
fb.h | ||
fixmap.h | ||
flat.h | ||
ftrace.h | ||
futex.h | ||
highmem.h | ||
hw_breakpoint.h | ||
hw_irq.h | ||
initialize_mmu.h | ||
io.h | ||
irq.h | ||
irqflags.h | ||
Kbuild | ||
kmem_layout.h | ||
mmu_context.h | ||
mmu.h | ||
module.h | ||
mxregs.h | ||
nommu_context.h | ||
page.h | ||
param.h | ||
pci-bridge.h | ||
pci.h | ||
perf_event.h | ||
pgalloc.h | ||
pgtable.h | ||
platform.h | ||
processor.h | ||
ptrace.h | ||
regs.h | ||
segment.h | ||
serial.h | ||
shmparam.h | ||
signal.h | ||
smp.h | ||
spinlock_types.h | ||
spinlock.h | ||
stacktrace.h | ||
string.h | ||
switch_to.h | ||
syscall.h | ||
sysmem.h | ||
thread_info.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
traps.h | ||
types.h | ||
uaccess.h | ||
ucontext.h | ||
unaligned.h | ||
unistd.h | ||
user.h | ||
vectors.h | ||
vga.h |