On 10/04/17 14:02, Anshuman Khandual wrote:
On 04/10/2017 07:34 AM, Rashmica Gupta wrote:
Current behaviour assumes that memory in RAM is contiguous and
iterates from the start of RAM to (start + size of memory). When the
memory isn't physically contiguous, this approach doesn't work.
In dis contiguous platform, we just finish up walking linear
mapping prematurely before the end of the RAM ?
Yes, that is what the following example explains.
If memory exists at 0-5 GB and 6-10 GB then the current approach will
check if entries exist in the hash table from 0GB to 9GB. This patch
changes the behaviour to iterate up to the end of RAM.
So it fixes the commit which added memblock_phys_mem_size().
Hence needs "Fixes: " tag as well.
Woops, will add that!