Skip to content
Commit ef5fa0ab authored by Eric Anholt's avatar Eric Anholt Committed by Ingo Molnar
Browse files

x86: work around PAGE_KERNEL_WC not getting WC in iomap_atomic_prot_pfn.



In the absence of PAT, PAGE_KERNEL_WC ends up mapping to a memory type that
gets UC behavior even in the presence of a WC MTRR covering the area in
question.  By swapping to PAGE_KERNEL_UC_MINUS, we can get the actual
behavior the caller wanted (WC if you can manage it, UC otherwise).

This recovers the 40% performance improvement of using WC in the DRM
to upload vertex data.

Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent e1b4d114
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment