[PATCH v2 07/10] ARM: p2v: use relative references in patch site arrays

Ard Biesheuvel ardb at kernel.org
Tue Sep 22 05:50:53 EDT 2020


On Tue, 22 Sep 2020 at 11:05, Linus Walleij <linus.walleij at linaro.org> wrote:
>
> On Mon, Sep 21, 2020 at 5:41 PM Ard Biesheuvel <ardb at kernel.org> wrote:
>
> > Free up a register in the p2v patching code by switching to relative
> > references, which don't require keeping the phys-to-virt displacement
> > live in a register.
> >
> > Signed-off-by: Ard Biesheuvel <ardb at kernel.org>
>
> Neat!
> Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
>

Thanks.

I just realized, though, that this patch requires the R_ARM_REL32 from
[0] as well, as there are a few rare occurrences of phys_to_virt() in
module code (musb_hdrc and vivid)

[0] https://lore.kernel.org/linux-arm-kernel/20200914095706.3985-4-ardb@kernel.org/

If nobody minds, I will just fold it into the PR, as it has been
reviewed and discussed already between Russel, Nico and myself.



More information about the linux-arm-kernel mailing list