All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Rapoport <rppt@kernel.org>
To: akpm@linux-foundation.org
Cc: david@redhat.com, geert+renesas@glider.be,
	mm-commits@vger.kernel.org, peng.fan@nxp.com
Subject: Re: + memblock-check-memory-total_size.patch added to -mm tree
Date: Thu, 30 Sep 2021 15:53:19 -0700	[thread overview]
Message-ID: <YVY/3zdc6ZYmsq6j@kernel.org> (raw)
In-Reply-To: <20210930222304.--OL_47EE%akpm@linux-foundation.org>

On Thu, Sep 30, 2021 at 03:23:04PM -0700, akpm@linux-foundation.org wrote:
> 
> The patch titled
>      Subject: memblock: check memory total_size
> has been added to the -mm tree.  Its filename is
>      memblock-check-memory-total_size.patch
> 
> This patch should soon appear at
>     https://ozlabs.org/~akpm/mmots/broken-out/memblock-check-memory-total_size.patch
> and later at
>     https://ozlabs.org/~akpm/mmotm/broken-out/memblock-check-memory-total_size.patch
> 
> Before you just go and hit "reply", please:
>    a) Consider who else should be cc'ed
>    b) Prefer to cc a suitable mailing list as well
>    c) Ideally: find the original patch on the mailing list and do a
>       reply-to-all to that, adding suitable additional cc's
> 
> *** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
> 
> The -mm tree is included into linux-next and is updated
> there every 3-4 working days
> 
> ------------------------------------------------------
> From: Peng Fan <peng.fan@nxp.com>
> Subject: 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>
> Cc: Mike Rapoport <rppt@kernel.org>
> Cc: Geert Uytterhoeven <geert+renesas@glider.be>
> Cc: David Hildenbrand <david@redhat.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

I was planing to take it via memblock tree but since it's already in mmotm:

Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>

> ---
> 
>  mm/memblock.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/mm/memblock.c~memblock-check-memory-total_size
> +++ a/mm/memblock.c
> @@ -1687,7 +1687,7 @@ void __init memblock_cap_memory_range(ph
>  	if (!size)
>  		return;
>  
> -	if (memblock.memory.cnt <= 1) {
> +	if (!memblock_memory->total_size) {
>  		pr_warn("%s: No memory registered yet\n", __func__);
>  		return;
>  	}
> _
> 
> Patches currently in -mm which might be from peng.fan@nxp.com are
> 
> memblock-check-memory-total_size.patch
> 

-- 
Sincerely yours,
Mike.

      reply	other threads:[~2021-09-30 22:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-30 22:23 + memblock-check-memory-total_size.patch added to -mm tree akpm
2021-09-30 22:53 ` Mike Rapoport [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YVY/3zdc6ZYmsq6j@kernel.org \
    --to=rppt@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=david@redhat.com \
    --cc=geert+renesas@glider.be \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=peng.fan@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.