diff options
author | Thomas Hellström <[email protected]> | 2021-06-02 10:38:11 +0200 |
---|---|---|
committer | Thomas Hellström <[email protected]> | 2021-06-07 16:07:08 +0200 |
commit | b7e32bef4ae5f9149276203564b7911fac466588 (patch) | |
tree | b8752329b4d43041fe4837a322cf684513bd697d /scripts/gdb/linux/tasks.py | |
parent | 3bf3710e3718a5aebdf465343bc1125b6e8cca96 (diff) |
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 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions