Skip to content

turnip: add cached and cached-coherent memory types

vkd3d requires cached memory type.

MSM backed supports cached-coherent but not cached non-coherent since there is no way to flush and invalidate the memory.

KGSL supports both.

Note, CTS tests doesn't seem good at testing flushing and invalidating, the ones I found passed on KGSL with both functions being no-op.

Based on the old patch from Jonathan Marek.

Closes: #7636 (closed)


Original MR: !6949 (closed)


Regarding non-coherent cached memory on MSM, I think the last attempt to provide the functionality in kernel stalled long time ago: https://lore.kernel.org/lkml/20201001002709.21361-3-jonathan@marek.ca/

@robclark I guess no other alternative to it went through?

Merge request reports