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

2021-06-02 Thread Thomas Hellström
On 6/1/21 2:27 PM, Jani Nikula wrote: On Tue, 01 Jun 2021, Thomas Hellström wrote: 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-m

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

2021-06-01 Thread Jani Nikula
On Tue, 01 Jun 2021, Thomas Hellström wrote: > 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 attemp

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

2021-06-01 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