Re: [PATCH v3 1/2] x86/ioremap: fix the pfn calculation mistake in __ioremap_check_ram()

From: Yaohui Wang
Date: Fri Jul 02 2021 - 06:05:18 EST




On 2021/7/1 22:41, Dave Hansen wrote:
Was this issue found by inspection, or is it causing an actual problem
in practice?

This issus truly caused terrible perforamnce downgrade in the practice.
When developing an out of tree module in our testing environment,
invoking ioremap() on normal RAM causes apparent CLI lag. The Unixbench
score also decreases a lot (5x slowdown in the worst case).

Debugging such performance issue is extremely difficult, especially when
the code of the faulty module itself is already very complex. I tested
the system in many aspects before finally located this problem.

Also, it would be really nice to include the original authors when you
send Fixes: for patches. BTW, scripts/get_maintainer.pl would have done
this for you. I've added Tom and Brijesh. Please cc them in the future.

I'll pay attention to this in the future. Thank you for your time and
patience!