Re: [PATCH v2 00/12] treewide: break dependencies on x86's RM header
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Ingo Molnar <mingo@xxxxxxxxxx>
- Subject: Re: [PATCH v2 00/12] treewide: break dependencies on x86's RM header
- From: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>
- Date: Wed, 27 Nov 2019 06:47:03 -0800
- Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, x86@xxxxxxxxxx, "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx>, Len Brown <len.brown@xxxxxxxxx>, Pavel Machek <pavel@xxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>, Mark Rutland <mark.rutland@xxxxxxx>, Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>, Jiri Olsa <jolsa@xxxxxxxxxx>, Namhyung Kim <namhyung@xxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, Steven Rostedt <rostedt@xxxxxxxxxxx>, Ard Biesheuvel <ard.biesheuvel@xxxxxxxxxx>, Darren Hart <dvhart@xxxxxxxxxxxxx>, Andy Shevchenko <andy@xxxxxxxxxxxxx>, Nadav Amit <nadav.amit@xxxxxxxxx>, "VMware, Inc." <pv-drivers@xxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, Hans de Goede <hdegoede@xxxxxxxxxx>, Cezary Rojewski <cezary.rojewski@xxxxxxxxx>, Pierre-Louis Bossart <pierre-louis.bossart@xxxxxxxxxxxxxxx>, Liam Girdwood <liam.r.girdwood@xxxxxxxxxxxxxxx>, Jie Yang <yang.jie@xxxxxxxxxxxxxxx>, Mark Brown <broonie@xxxxxxxxxx>, Jaroslav Kysela <perex@xxxxxxxx>, Takashi Iwai <tiwai@xxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-pm@xxxxxxxxxxxxxxx, linux-efi@xxxxxxxxxxxxxxx, platform-driver-x86@xxxxxxxxxxxxxxx, linux-acpi@xxxxxxxxxxxxxxx, alsa-devel@xxxxxxxxxxxxxxxx
- In-reply-to: <20191127072057.GB94748@gmail.com>
- References: <20191126165417.22423-1-sean.j.christopherson@intel.com> <20191127072057.GB94748@gmail.com>
- User-agent: Mutt/1.5.24 (2015-08-30)
On Wed, Nov 27, 2019 at 08:20:57AM +0100, Ingo Molnar wrote:
>
> * Sean Christopherson <sean.j.christopherson@xxxxxxxxx> wrote:
>
> > x86's asm/realmode.h, which defines low level structures, variables and
> > helpers used to bring up APs during SMP boot, ends up getting included in
> > practically every nook and cranny of the kernel because the address used
> > by ACPI for resuming from S3 also happens to be stored in the real mode
> > header, and ACPI bleeds the dependency into its widely included headers.
> >
> > As a result, modifying realmode.h for even the most trivial change to the
> > boot code triggers a full kernel rebuild, which is frustrating to say the
> > least as it some of the most difficult code to get exactly right *and* is
> > also some of the most functionally isolated code in the kernel.
> >
> > To break the kernel's widespread dependency on realmode.h, add a wrapper
> > in the aforementioned ACPI S3 code to access the real mode header instead
> > of derefencing the header directly in asm/acpi.h and thereby exposing it
> > to the world via linux/acpi.h.
> >
> > v2:
> > - Rebased on tip/x86/cleanups, commit b74374fef924 ("x86/setup: Enhance
> > the comments").
> > - Use acpi_get_wakeup_address() as new function name. [Boris and Pavel]
> > - Capture acpi_get_wakeup_address() in a local address. [Pavel]
> > - Collect acks. I didn't add Rafael's acks on patches 11 and 12 due to
> > the above changes.
> > - Explicitly call out the removal of <asm/realmode.h> from <asm/acpi.h>
> > in patch 12. [Ingo]
> > - Remove superfluous Fixes: tags. [Ard]
>
> You didn't include every patch from v1 though, such us my fix to Quark:
>
> [PATCH] x86/platform/intel/quark: Explicitly include linux/io.h for virt_to_phys()
>
> I've applied that one too and your updated patches, and it's now all
> pushed out into tip:WIP.core/headers.
Sorry, it wasn't clear to me whether or not to include that one. Next
time I'll ask.
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]