lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 12 Apr 2019 16:04:12 +0000
From:   Thomas Hellstrom <>
To:     "" <>,
        Linux-graphics-maintainer <>,
        "" <>
CC:     Thomas Hellstrom <>,
        Andrew Morton <>,
        Matthew Wilcox <>,
        Will Deacon <>,
        Peter Zijlstra <>,
        Rik van Riel <>,
        Minchan Kim <>,
        Michal Hocko <>,
        Huang Ying <>,
        Souptick Joarder <>,
        Jérôme Glisse <>,
        Christian König <>,
        "" <>
Subject: [PATCH 0/9] Emulated coherent graphics memory

Graphics APIs like OpenGL 4.4 and Vulkan require the graphics driver
to provide coherent graphics memory, meaning that the GPU sees any
content written to the coherent memory on the next GPU operation that
touches that memory, and the CPU sees any content written by the GPU
to that memory immediately after any fence object trailing the GPU
operation has signaled.

Paravirtual drivers that otherwise require explicit synchronization
needs to do this by hooking up dirty tracking to pagefault handlers
and buffer object validation. This is a first attempt to do that for
the vmwgfx driver.

The mm patches has been out for RFC. I think I have addressed all the
feedback I got, except a possible softdirty breakage. But although the
dirty-tracking and softdirty may write-protect PTEs both care about,
that shouldn't really cause any operation interference. In particular
since we use the hardware dirty PTE bits and softdirty uses other PTE bits.

For the TTM changes they are hopefully in line with the long-term
strategy of making helpers out of what's left of TTM.

The code has been tested and excercised by a tailored version of mesa
where we disable all explicit synchronization and assume graphics memory
is coherent. The performance loss varies of course; a typical number is
around 5%.

Any feedback greatly appreciated.

Cc: Andrew Morton <>
Cc: Matthew Wilcox <>
Cc: Will Deacon <>
Cc: Peter Zijlstra <>
Cc: Rik van Riel <>
Cc: Minchan Kim <>
Cc: Michal Hocko <>
Cc: Huang Ying <>
Cc: Souptick Joarder <>
Cc: "Jérôme Glisse" <>
Cc: "Christian König" <>

Powered by blists - more mailing lists