Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp455723rdb; Mon, 15 Jan 2024 02:56:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2eVLwh+91TKjxjoreUcqWOENmDlULvzIg94nW00o9HdLL4Luus6hhgAPEg+0DLlYnL/hB X-Received: by 2002:a05:6a00:21cf:b0:6d9:447a:963a with SMTP id t15-20020a056a0021cf00b006d9447a963amr7930739pfj.34.1705316161224; Mon, 15 Jan 2024 02:56:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705316161; cv=none; d=google.com; s=arc-20160816; b=uvoqgZG7b43PhwcsvZUrrxwuyP1wih+fJ8dmTQ2HlsxHzPlRiktZdFb/HBCSo7WrW0 MVJ7DC4oyFjE0UsM3YlmYu19YK+f/RrWVFbl8oeIE6CT/T0cFg71EtoJKx6i0V35WanZ VN6H+dOQpgG5itmzFPAVHCdiUtlqYby3fTz1tcOgHGH0YPgJjNFxnU68OiELFq35aWDD ZfRKEsAz1n/k54LyZRso3i3VxVaZYJUPZKZnPYo9CvRBK5t0LX4+ZKj1YHo7UGugZu4c 1RX0KBjxcOahLQI0xSf+mGj/HXbxflNI8raciO8qlcd2rpa6pEAIW6LuDIy1UpnD/DAS MbvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=wfqddgn3s4E6+ejG/FcQ+91MKPtiz+so6iYVfiYimSQ=; fh=+Kyi03oiSUecqh/i/Q7K/+oMDtBdGUDz1Y3lC2PA1bs=; b=VhZYL5bNk+c5/3QuitPsiuqgoTw8bS91p7YEfJc3T7s5vwB7MlsRJuPnBDqp3nQk0q eBVrDmafb9thdq9UzcejFOJQ9n5TffvLwH3Ah7abORA+IMCiU8s5dQand5GYkEgOxh3D urNtU5J3rUuZ6ebmJZJfDvVse5VMC5+Zhq8bqpOL0SrQ90h7mAi3Pw45zpbC6Y9A7fI6 ciKsNt/hX93dPktk/KX79/5Ea94a/eIUSZNWvx0TGImHF0XQSR7xGP1ZGR9Yap0TrCqz x/WyS47qrtTY7xLMrcVrA9k28QfnRzAi+GpNyxReHzir1k3U8UzzTJS840ZoXiUHGuhV GJCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A4IVxdbM; spf=pass (google.com: domain of linux-kernel+bounces-25905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25905-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id fb39-20020a056a002da700b006d9a9eb73e2si8945413pfb.267.2024.01.15.02.56.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 02:56:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A4IVxdbM; spf=pass (google.com: domain of linux-kernel+bounces-25905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25905-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 59895282416 for ; Mon, 15 Jan 2024 10:56:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4AD7B2BB04; Mon, 15 Jan 2024 10:55:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="A4IVxdbM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 69BBB18E00; Mon, 15 Jan 2024 10:55:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEC42C43142; Mon, 15 Jan 2024 10:55:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705316150; bh=rfREZzmiD9nPW8TbesDDnUUTWye4kt++Bv0KP8PLvFk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=A4IVxdbM5n6+Wri6LKPCFt4boNRWCZk+x+FvjGA0rMzBKnTq0PG2P4HgdoibE34JU 7I+sl3ic4kVgy6alkJ1V+WOxCGZ2ZCdHvSZazXxPfmb5arAkTMCAyiEierrpoLCjzM Ygj8ldj/YeV7xxWj3T+cJucDy6g0wviAclEb83PQYKh4IA3J10TosGkmbLnZg7vRG5 klaKs9ycUq3mSQ8r8jOJecX0Mq/uJGiy1/elHSc22WoW1AxZktex9NE9JrxYS5mS2+ cE8gPHQUwUZeynpCd6W3njl/YBfE5cxvvdBerqY16hvAfFGT43Lf9OM8ZBsaDE8gEI oLYOyEDKggW0A== Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-50eaaf2c7deso9635020e87.2; Mon, 15 Jan 2024 02:55:49 -0800 (PST) X-Gm-Message-State: AOJu0YxdnEmOWayncYpTcwpapO5T9U7QvQyR1lgCXFPUaZhDDk0Xgoa4 sLHZZC3R7KyEeShjc05qn4OEMu7gpa2F7aSXYxA= X-Received: by 2002:a05:6512:130c:b0:50e:df4f:44d7 with SMTP id x12-20020a056512130c00b0050edf4f44d7mr2867593lfu.90.1705316148087; Mon, 15 Jan 2024 02:55:48 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240112095000.8952-1-tzimmermann@suse.de> <3e2f70ab-c4de-4fae-9365-4f6f77c847c5@suse.de> In-Reply-To: <3e2f70ab-c4de-4fae-9365-4f6f77c847c5@suse.de> From: Ard Biesheuvel Date: Mon, 15 Jan 2024 11:55:36 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 0/4] arch/x86: Remove unnecessary dependencies on bootparam.h To: Thomas Zimmermann 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 Content-Type: text/plain; charset="UTF-8" On Mon, 15 Jan 2024 at 08:58, Thomas Zimmermann wrote: > > Hi > > Am 12.01.24 um 18:28 schrieb Ard Biesheuvel: > > On Fri, 12 Jan 2024 at 10:50, Thomas Zimmermann wrote: > >> > >> Reduce build time in some cases by removing unnecessary include statements > >> for . 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 > >> , which depends on . 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 in several files > >> > > > > This looks ok to me, thanks for sticking with it. > > > > For the series, > > > > Reviewed-by: Ard Biesheuvel > > Thank you so much. Can this series go through the x86 tree? > Yes, this should be taken through the -tip tree. But I am not a -tip maintainer. But please be aware that we are in the middle of the merge window right now, and I suspect that the -tip maintainers may have some feedback of their own. So give it at least a week or so, and ping this thread again to ask how to proceed. Also, please trim the cc list a bit when you do - this is mostly a x86 specific reshuffle of headers so no need to keep all the other subsystem maintainers on cc while we finish up the discussion.