Re: [PATCH v5 07/15] drm: Add a prefetching memcpy_from_wc

2021-05-28 Thread Christian König
Am 28.05.21 um 17:10 schrieb Thomas Hellström: On 5/28/21 4:19 PM, Christian König wrote: Am 27.05.21 um 16:47 schrieb Thomas Hellström: 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.

Re: [PATCH v5 07/15] drm: Add a prefetching memcpy_from_wc

2021-05-28 Thread Thomas Hellström
On 5/28/21 4:19 PM, Christian König wrote: Am 27.05.21 um 16:47 schrieb Thomas Hellström: 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

Re: [PATCH v5 07/15] drm: Add a prefetching memcpy_from_wc

2021-05-28 Thread Christian König
Am 27.05.21 um 16:47 schrieb Thomas Hellström: 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 us

[PATCH v5 07/15] drm: Add a prefetching memcpy_from_wc

2021-05-27 Thread Thomas Hellström
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 b