* + mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch added to mm-unstable branch
@ 2023-06-05 21:56 Andrew Morton
2023-06-08 12:50 ` Liam Ni
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Morton @ 2023-06-05 21:56 UTC (permalink / raw)
To: mm-commits, zhiguangni01, akpm
The patch titled
Subject: mm/early_ioremap.c: improve the execution efficiency of early_ioremap_setup()
has been added to the -mm mm-unstable branch. Its filename is
mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
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 via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Liam Ni <zhiguangni01@gmail.com>
Subject: mm/early_ioremap.c: improve the execution efficiency of early_ioremap_setup()
Date: Sat, 3 Jun 2023 10:31:16 +0800
Reduce the number of invalid loops of the function early_ioremap_setup()
to improve the efficiency of function execution
Link: https://lkml.kernel.org/r/CACZJ9cU6t5sLoDwE6_XOg+UJLpZt4+qHfjYN2bA0s+3y9y6pQQ@mail.gmail.com
Signed-off-by: LiamNi <zhiguangni01@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/early_ioremap.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
--- a/mm/early_ioremap.c~mm-improve-the-execution-efficiency-of-early_ioremap_setup
+++ a/mm/early_ioremap.c
@@ -72,12 +72,10 @@ void __init early_ioremap_setup(void)
{
int i;
- for (i = 0; i < FIX_BTMAPS_SLOTS; i++)
- if (WARN_ON(prev_map[i]))
- break;
-
- for (i = 0; i < FIX_BTMAPS_SLOTS; i++)
+ for (i = 0; i < FIX_BTMAPS_SLOTS; i++) {
+ WARN_ON_ONCE(prev_map[i]);
slot_virt[i] = __fix_to_virt(FIX_BTMAP_BEGIN - NR_FIX_BTMAPS*i);
+ }
}
static int __init check_early_ioremap_leak(void)
_
Patches currently in -mm which might be from zhiguangni01@gmail.com are
mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: + mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch added to mm-unstable branch
2023-06-05 21:56 + mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch added to mm-unstable branch Andrew Morton
@ 2023-06-08 12:50 ` Liam Ni
0 siblings, 0 replies; 2+ messages in thread
From: Liam Ni @ 2023-06-08 12:50 UTC (permalink / raw)
To: Andrew Morton; +Cc: mm-commits
Hi Andrew,
i am a new developer,I have some questions to ask
On Tue, 6 Jun 2023 at 05:56, Andrew Morton <akpm@linux-foundation.org> wrote:
>
>
> The patch titled
> Subject: mm/early_ioremap.c: improve the execution efficiency of early_ioremap_setup()
> has been added to the -mm mm-unstable branch. Its filename is
> mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch
>
> This patch will shortly appear at
> https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch
>
> This patch will later appear in the mm-unstable branch at
> git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
, does this mean that patch will upcoming mainline?
>
> 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
I get mailing list by script "./scripts/checkpatch.pl",Do you mean my
mailing list is wrong?
> c) Ideally: find the original patch on the mailing list and do a
> reply-to-all to that, adding suitable additional cc's
“ original patch” means reply to all with the link below ?
[PATCH] mm:Improve the execution efficiency of
early_ioremap_setup() - Liam Ni (kernel.org)
>
> *** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
>
> The -mm tree is included into linux-next via the mm-everything
> branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
> and is updated there every 2-3 working days
>
> ------------------------------------------------------
> From: Liam Ni <zhiguangni01@gmail.com>
> Subject: mm/early_ioremap.c: improve the execution efficiency of early_ioremap_setup()
> Date: Sat, 3 Jun 2023 10:31:16 +0800
>
> Reduce the number of invalid loops of the function early_ioremap_setup()
> to improve the efficiency of function execution
>
> Link: https://lkml.kernel.org/r/CACZJ9cU6t5sLoDwE6_XOg+UJLpZt4+qHfjYN2bA0s+3y9y6pQQ@mail.gmail.com
> Signed-off-by: LiamNi <zhiguangni01@gmail.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> mm/early_ioremap.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> --- a/mm/early_ioremap.c~mm-improve-the-execution-efficiency-of-early_ioremap_setup
> +++ a/mm/early_ioremap.c
> @@ -72,12 +72,10 @@ void __init early_ioremap_setup(void)
> {
> int i;
>
> - for (i = 0; i < FIX_BTMAPS_SLOTS; i++)
> - if (WARN_ON(prev_map[i]))
> - break;
> -
> - for (i = 0; i < FIX_BTMAPS_SLOTS; i++)
> + for (i = 0; i < FIX_BTMAPS_SLOTS; i++) {
> + WARN_ON_ONCE(prev_map[i]);
> slot_virt[i] = __fix_to_virt(FIX_BTMAP_BEGIN - NR_FIX_BTMAPS*i);
> + }
> }
>
> static int __init check_early_ioremap_leak(void)
> _
>
> Patches currently in -mm which might be from zhiguangni01@gmail.com are
>
> mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-08 12:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-05 21:56 + mm-improve-the-execution-efficiency-of-early_ioremap_setup.patch added to mm-unstable branch Andrew Morton
2023-06-08 12:50 ` Liam Ni
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.