Skip to content
  • Dave Airlie's avatar
    efifb: allow user to disable write combined mapping. · dd0c41f8
    Dave Airlie authored
    This patch allows the user to disable write combined mapping
    of the efifb framebuffer console using an nowc option.
    
    A customer noticed major slowdowns while logging to the console
    with write combining enabled, on other tasks running on the same
    CPU. (10x or greater slow down on all other cores on the same CPU
    as is doing the logging).
    
    I reproduced this on a machine with dual CPUs.
    Intel(R) Xeon(R) CPU E5-2609 v3 @ 1.90GHz (6 core)
    
    I wrote a test that just mmaps the pci bar and writes to it in
    a loop, while this was running in the background one a single
    core with (taskset -c 1), building a kernel up to init/version.o
    (taskset -c 8) went from 13s to 133s or so. I've yet to explain
    why this occurs or what is going wrong I haven't managed to find
    a perf command that in any way gives insight into this.
    
        11,885,070,715      instructions              #    1.39  insns per cycle
    vs
        12,082,592,342      instructions              #    0.13  insns per cy...
    dd0c41f8