Re: [PATCH v19 6/7] firmware: arm_rmm: Ensure the RMM has GPT entries for memory
From: Jonathan Cameron
Date: Fri Sep 25 2026 - 11:52:44 EST
>
> >> +
> >> +static int rmi_init_metadata(void)
> >> +{
> >> + phys_addr_t start, end;
> >> + struct memblock_region *r;
> >> +
> >> + for_each_mem_region(r) {
> >> + int ret;
> >> +
> >> + /* Firmware-reserved NOMAP regions are not usable system RAM */
> >> + if (memblock_is_nomap(r))
> >> + continue;
> >> +
> >> + start = PAGE_ALIGN(r->base);
> >> + end = PAGE_ALIGN_DOWN(r->base + r->size);
> >
> > Add a comment on why rounding down. Doe we expect that to ever be relevant?
>
> Do we really need a comment here ? We always deal with PAGE_SIZE and if
> in the odd case this region boundary is not PAGE aligned we stick to the
> page that we can use from the region. I can stick in a comment if you
> really think so.
>
Ok. I was mostly thinking that it was an odd thing to happen.