Re: [PATCH] kernel/resource: optimize find_next_iomem_res

Andy Shevchenko
2024-05-31T15:32:46Z

On Thu, May 30, 2024 at 10:36:57PM -0700, Chia-I Wu wrote:
> We can skip children resources when the parent resource does not cover
> the range.

> This should help vmf_insert_* users on x86, such as several DRM drivers.

vmf_insert_*()

> On my AMD Ryzen 5 7520C, when streaming data from cpu memory into amdgpu
> bo, the throughput goes from 5.1GB/s to 6.6GB/s. perf report says

Also in the $Subj (and pay attention to the prefix)

"resource: ... find_next_iomem_res()"

--
With Best Regards,
Andy Shevchenko