mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Yinghai Lu" <yhlu.kernel@gmail.com>
To: "Ingo Molnar" <mingo@elte.hu>
Cc: "Thomas Gleixner" <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86: Merge setup_32/64.c into setup.c
Date: Wed, 25 Jun 2008 08:44:59 -0700	[thread overview]
Message-ID: <86802c440806250844s51b50311va1c8e9c9fc1da510@mail.gmail.com> (raw)
In-Reply-To: <20080625153614.GB18796@elte.hu>

On Wed, Jun 25, 2008 at 8:36 AM, Ingo Molnar <mingo@elte.hu> wrote:
>
> * Yinghai Lu <yhlu.kernel@gmail.com> wrote:
>
>>
>> Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
>>
>> ---
>>  arch/x86/kernel/Makefile   |    2
>>  arch/x86/kernel/setup.c    |  676 ++++++++++++++++++++++++++++++++++++++++++++-
>>  arch/x86/kernel/setup_32.c |  543 ------------------------------------
>>  arch/x86/kernel/setup_64.c |  381 -------------------------
>>  include/asm-x86/setup.h    |    2
>>  5 files changed, 670 insertions(+), 934 deletions(-)
>
> very nice!
>
> could we please split this up into several, gradual steps that bring
> setup_32.c and setup_64.c to exactly the same content - where the final
> patch just renames arch/x86/kernel/setup_32.c to arch/x86/kernel/setup.c
> and deletes arch/x86/kernel/setup_64.c ?

OK,  someone (Mike Triavis) already stole setup.c for X86_NUMA.

You need to change that setup.c to other name. or split it away...

>
> it would still result in exactly the same end result - but is much more
> bisectable (and reviewable, etc.). A bit like how arch/x86/mm/ioremap.c
> or arch/x86/mm/pageattr.c was unified.
>
> maybe it can be done in less than 10 patches - but it guess it should be
> rather something in the neighborhood of 20 patches. Changes like this:
>
> -       /*
> -        * NOTE: before this point _nobody_ is allowed to allocate
> -        * any memory using the bootmem allocator.  Although the
> -        * allocator is now initialised only the first 8Mb of the kernel
> -        * virtual address space has been mapped.  All allocations before
> -        * paging_init() has completed must use the alloc_bootmem_low_pages()
> -        * variant (which allocates DMA'able memory) and care must be taken
> -        * not to exceed the 8Mb limit.
> -        */
>
> should be in a separate patch - you removed this restriction from the
> x86 architecture via your earlier patches, so the removal of the comment
> comes from that (and deserves a separate commit), not purely from the
> mechanic unification in the end.

OK.

>
> other changes like this:
>
> -#ifdef CONFIG_X86_FIND_SMP_CONFIG
> +#if defined(CONFIG_X86_FIND_SMP_CONFIG) && defined(CONFIG_X86_32) || \
> +    defined(CONFIG_X86_MPPARSE) && defined(CONFIG_X86_64)
>
> here you fix coding style:
>
> -        /*
> -         * Parse SRAT to discover nodes.
> -         */
> -        acpi_numa_init();
> +       /*
> +        * Parse SRAT to discover nodes.
> +        */
> +       acpi_numa_init();
>

OK

> etc. etc. You do a lot more very useful work than the plain single
> unification patch you sent tells us - all these changes should be split
> up.

YH

  reply	other threads:[~2008-06-25 15:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-25  5:13 [PATCH] x86: numa 32 using apicid_2_node to get node for logical_apicid Yinghai Lu
2008-06-25  5:14 ` [PATCH] x86: remove end_pfn in 64bit Yinghai Lu
2008-06-25  8:14   ` [PATCH] x86: Merge setup_32/64.c into setup.c Yinghai Lu
2008-06-25 15:36     ` Ingo Molnar
2008-06-25 15:44       ` Yinghai Lu [this message]
2008-06-25 16:43         ` Ingo Molnar
2008-06-25 17:28           ` Yinghai Lu
2008-06-25 17:38             ` Mike Travis
2008-06-25 17:46               ` Yinghai Lu
2008-06-25 17:48                 ` H. Peter Anvin
2008-06-25 15:41   ` [PATCH] x86: remove end_pfn in 64bit Ingo Molnar
2008-06-25 21:31     ` Jeremy Fitzhardinge
2008-06-25 21:57       ` Yinghai Lu
2008-06-25 22:21         ` Jeremy Fitzhardinge
2008-06-25 23:14           ` Yinghai Lu
2008-06-25 23:16             ` Jeremy Fitzhardinge
2008-06-26 10:04       ` Ingo Molnar

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=86802c440806250844s51b50311va1c8e9c9fc1da510@mail.gmail.com \
    --to=yhlu.kernel@gmail.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®