From: Thomas Zimmermann <tzimmermann@suse.de>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: nathan@kernel.org, tglx@linutronix.de, mingo@redhat.com,
bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org,
hpa@zytor.com, bhelgaas@google.com, arnd@arndb.de,
zohar@linux.ibm.com, dmitry.kasatkin@gmail.com,
paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com,
javierm@redhat.com, linux-arch@vger.kernel.org,
linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-pci@vger.kernel.org, linux-integrity@vger.kernel.org,
linux-security-module@vger.kernel.org
Subject: Re: [PATCH v5 0/4] arch/x86: Remove unnecessary dependencies on bootparam.h
Date: Mon, 15 Jan 2024 08:58:45 +0100 [thread overview]
Message-ID: <3e2f70ab-c4de-4fae-9365-4f6f77c847c5@suse.de> (raw)
In-Reply-To: <CAMj1kXGxNTvCca+9TfUfvp06ppyD9XiyO59khYXg88VkyFm1rw@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2579 bytes --]
Hi
Am 12.01.24 um 18:28 schrieb Ard Biesheuvel:
> On Fri, 12 Jan 2024 at 10:50, Thomas Zimmermann <tzimmermann@suse.de> wrote:
>>
>> Reduce build time in some cases by removing unnecessary include statements
>> for <asm/bootparam.h>. Reorganize some header files accordingly.
>>
>> While working on the kernel's boot-up graphics, I noticed that touching
>> include/linux/screen_info.h triggers a complete rebuild of the kernel
>> on x86. It turns out that the architecture's PCI and EFI headers include
>> <asm/bootparam.h>, which depends on <linux/screen_info.h>. But none of
>> the drivers have any business with boot parameters or the screen_info
>> state.
>>
>> The patchset moves code from bootparam.h and efi.h into separate header
>> files and removes obsolete include statements on x86. I did
>>
>> make allmodconfig
>> make -j28
>> touch include/linux/screen_info.h
>> time make -j28
>>
>> to measure the time it takes to rebuild. Results without the patchset
>> are around 20 minutes.
>>
>> real 20m46,705s
>> user 354m29,166s
>> sys 28m27,359s
>>
>> And with the patchset applied it goes down to less than one minute.
>>
>> real 0m56,643s
>> user 4m0,661s
>> sys 0m32,956s
>>
>> The test system is an Intel i5-13500.
>>
>> v5:
>> * silence clang warnings for real-mode code (Nathan)
>> * revert boot/compressed/misc.h (kernel test robot)
>> v4:
>> * fix fwd declaration in compressed/misc.h (Ard)
>> v3:
>> * keep setup_header in bootparam.h (Ard)
>> * implement arch_ima_efi_boot_mode() in source file (Ard)
>> v2:
>> * only keep struct boot_params in bootparam.h (Ard)
>> * simplify arch_ima_efi_boot_mode define (Ard)
>> * updated cover letter
>>
>> Thomas Zimmermann (4):
>> arch/x86: Move UAPI setup structures into setup_data.h
>> arch/x86: Move internal setup_data structures into setup_data.h
>> arch/x86: Implement arch_ima_efi_boot_mode() in source file
>> arch/x86: Do not include <asm/bootparam.h> in several files
>>
>
> This looks ok to me, thanks for sticking with it.
>
> For the series,
>
> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Thank you so much. Can this series go through the x86 tree?
Best regards
Thomas
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
next prev parent reply other threads:[~2024-01-15 7:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-12 9:44 [PATCH v5 0/4] arch/x86: Remove unnecessary dependencies on bootparam.h Thomas Zimmermann
2024-01-12 9:44 ` [PATCH v5 1/4] arch/x86: Move UAPI setup structures into setup_data.h Thomas Zimmermann
2024-01-12 9:44 ` [PATCH v5 2/4] arch/x86: Move internal setup_data " Thomas Zimmermann
2024-01-12 9:44 ` [PATCH v5 3/4] arch/x86: Implement arch_ima_efi_boot_mode() in source file Thomas Zimmermann
2024-01-12 9:44 ` [PATCH v5 4/4] arch/x86: Do not include <asm/bootparam.h> in several files Thomas Zimmermann
2024-01-12 17:28 ` [PATCH v5 0/4] arch/x86: Remove unnecessary dependencies on bootparam.h Ard Biesheuvel
2024-01-15 7:58 ` Thomas Zimmermann [this message]
2024-01-15 10:55 ` Ard Biesheuvel
2024-01-15 11:00 ` Borislav Petkov
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=3e2f70ab-c4de-4fae-9365-4f6f77c847c5@suse.de \
--to=tzimmermann@suse.de \
--cc=ardb@kernel.org \
--cc=arnd@arndb.de \
--cc=bhelgaas@google.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=dmitry.kasatkin@gmail.com \
--cc=hpa@zytor.com \
--cc=javierm@redhat.com \
--cc=jmorris@namei.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=nathan@kernel.org \
--cc=paul@paul-moore.com \
--cc=serge@hallyn.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
--cc=zohar@linux.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox