Skip to content
Snippets Groups Projects
Forked from Panfrost / linux
Source project has a limited visibility.
  • Tomeu Vizoso's avatar
    3ccf9b11
    accel/rocket: Add IOCTLs for synchronizing memory accesses · 3ccf9b11
    Tomeu Vizoso authored
    
    The NPU cores have their own access to the memory bus, and this isn't
    cache coherent with the CPUs.
    
    Add IOCTLs so userspace can mark when the caches need to be flushed, and
    also when a writer job needs to be waited for before the buffer can be
    accessed from the CPU.
    
    Initially based on the same IOCTLs from the Etnaviv driver.
    
    v2:
    - Don't break UABI by reordering the IOCTL IDs (Jeffrey Hugo)
    
    Signed-off-by: Tomeu Vizoso's avatarTomeu Vizoso <tomeu@tomeuvizoso.net>
    3ccf9b11
    History
    accel/rocket: Add IOCTLs for synchronizing memory accesses
    Tomeu Vizoso authored
    
    The NPU cores have their own access to the memory bus, and this isn't
    cache coherent with the CPUs.
    
    Add IOCTLs so userspace can mark when the caches need to be flushed, and
    also when a writer job needs to be waited for before the buffer can be
    accessed from the CPU.
    
    Initially based on the same IOCTLs from the Etnaviv driver.
    
    v2:
    - Don't break UABI by reordering the IOCTL IDs (Jeffrey Hugo)
    
    Signed-off-by: Tomeu Vizoso's avatarTomeu Vizoso <tomeu@tomeuvizoso.net>