diff options
| author | Thomas Hellström <[email protected]> | 2021-06-02 08:38:11 +0000 |
|---|---|---|
| committer | Thomas Hellström <[email protected]> | 2021-06-07 14:07:08 +0000 |
| commit | b7e32bef4ae5f9149276203564b7911fac466588 (patch) | |
| tree | b8752329b4d43041fe4837a322cf684513bd697d /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm/ttm: Add a generic TTM memcpy move for page-based iomem (diff) | |
| download | kernel-b7e32bef4ae5f9149276203564b7911fac466588.tar.gz kernel-b7e32bef4ae5f9149276203564b7911fac466588.zip | |
drm: Add a prefetching memcpy_from_wc
Reading out of write-combining mapped memory is typically very slow
since the CPU doesn't prefetch. However some archs have special
instructions to do this.
So add a best-effort memcpy_from_wc taking dma-buf-map pointer
arguments that attempts to use a fast prefetching memcpy and
otherwise falls back to ordinary memcopies, taking the iomem tagging
into account.
The code is largely copied from i915_memcpy_from_wc.
Cc: Daniel Vetter <[email protected]>
Cc: Christian König <[email protected]>
Suggested-by: Daniel Vetter <[email protected]>
Signed-off-by: Thomas Hellström <[email protected]>
Acked-by: Christian König <[email protected]>
Acked-by: Daniel Vetter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
