diff options
| author | Peng Fan <peng.fan@nxp.com> | 2021-10-19 01:15:45 +0300 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-10-19 09:22:03 +0300 |
| commit | 5173ed72bcfcddda21ff274ee31c6472fa150f29 (patch) | |
| tree | d93b6b01805b04628a733f811165fdf274cad25a /scripts/gcc-plugins/gcc-common.h | |
| parent | b15fa9224e6e1239414525d8d556d824701849fc (diff) | |
| download | linux-5173ed72bcfcddda21ff274ee31c6472fa150f29.tar.xz | |
memblock: check memory total_size
mem=[X][G|M] is broken on ARM64 platform, there are cases that even
type.cnt is 1, but total_size is not 0 because regions are merged into
1. So only check 'cnt' is not enough, total_size should be used,
othersize bootargs 'mem=[X][G|B]' not work anymore.
Link: https://lkml.kernel.org/r/20210930024437.32598-1-peng.fan@oss.nxp.com
Fixes: e888fa7bb882 ("memblock: Check memory add/cap ordering")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions
