diff options
| author | Karol Wachowski <[email protected]> | 2023-10-28 15:59:34 +0000 |
|---|---|---|
| committer | Stanislaw Gruszka <[email protected]> | 2023-10-31 15:45:45 +0000 |
| commit | 3bcc5209ba6af1019487b54b30fc226ecf79193d (patch) | |
| tree | 330449d7aeaec40025b1d4300e3355f5735c38df /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | accel/ivpu: Print CMDQ errors after consumer timeout (diff) | |
| download | kernel-3bcc5209ba6af1019487b54b30fc226ecf79193d.tar.gz kernel-3bcc5209ba6af1019487b54b30fc226ecf79193d.zip | |
accel/ivpu: Make DMA allocations for MMU600 write combined
Previously using dma_alloc_wc() API we created cache coherent
(mapped as write-back) mappings.
Because we disable MMU600 snooping it was required to do costly
page walk and cache flushes after each page table modification.
With write-combined buffers it's possible to do a single write memory
barrier to flush write-combined buffer to memory which simplifies the
driver and significantly reduce time of map/unmap operations.
Mapping time of 255 MB is reduced from 2.5 ms to 500 us.
Signed-off-by: Karol Wachowski <[email protected]>
Reviewed-by: Stanislaw Gruszka <[email protected]>
Reviewed-by: Jeffrey Hugo <[email protected]>
Signed-off-by: Stanislaw Gruszka <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
