Re: [PATCH 0/3] x86/platform/UV: Update Memory Block Size Setting

From: Michal Hocko
Date: Wed May 16 2018 - 06:36:31 EST


On Tue 15-05-18 09:08:10, Mike Travis wrote:
[...]
> Hi Michal,
>
> I will add more info but this patch does not address anything about
> incomplete memblocks. They have existed in 2GB mem block size form since
> 2009 (v2.6) with the first UV1 system release. I am not changing any of
> that handling.
>
> The fixing part was to adapt to what Intel BIOS was using as a different
> boundary to align the PMEM NVDIMMs. This is explained in both patch 1 and
> patch 2:
>
> "Add a new function to "adjust" the current fixed UV memory block size of
> 2GB so it can be changed to a different physical boundary. This is out of
> necessity so UV BIOS can accommodate Intel BIOS changes for NVDIMM's, which
> can align these new PMEM modules at other than 2GB boundaries."
>
> "Add a call to the new function to "adjust" the current fixed UV memory
> block size of 2GB so it can be changed to a different physical boundary.
> This accommodates changes in the Intel BIOS, and therefore UV BIOS, which
> now can align boundaries different than the previous UV standard of 2GB. It
> also flags any UV Mem boundaries that cause a change in the mem block size
> boundary."
>
> I can't explain why the Intel BIOS changed the boundaries, it probably has
> something to do with accommodating other areas of the NVDIMMs physical
> address space. This caused a boundary alignment to be less than 2GB which
> UV had been using. From one of the UV BIOS engineers I found out that Intel
> really only guarantees a 64MB boundary (which is actually less than the
> current Linux minimum of 128MB.) Our own UVHUB requirements dictated that
> 2GB was an acceptable boundary up until now.
>
> So let me know how much more info is needed on how I need to explain _this_
> change.

Thanks for the additional information. It helps to some extend but still
feel rather magic. It doesn't explain why this is UV specific and
require an UV specific fix. Why cannot we fix the generic hotplug code
instead and potentially allow other 128 unaigned memory ranges instead?
--
Michal Hocko
SUSE Labs