From patchwork Tue Jul 9 15:52:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Torvalds X-Patchwork-Id: 13728272 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 201BDC2BD09 for ; Tue, 9 Jul 2024 15:59:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=LJJaGAjdSxSTeulpfbTFSSWeZoltu9jAbG2sWXMgIGs=; b=47Du17Rrt9hsU0LJCPyVPlSvFR 5XXg3kXlxHG9lI4ZB7hjilaEB7Py2cYofYbInUJaQZS6IBxnowtbFzYWG06VV4YZL+ZvTuBP1jnz+ xPFvWd2wFzJbmDBCjtMOwNUXYFoQ5SPGjAIKkHn/f8X3NEp7H6oSEThQ8+fF+OaaZbqKW1uYBugvI TR5LTDVytzIn2W0vt0uaJeMuDlfWSUX0lFmjExqaZB9ALMfO8HwL6alWzJTpj7gDSBd2G1vLr5+8R xxzluaOQqmZemQVMsvziAR0MDC+Ojzu8ocsQY3Xy/abzz33s4T6LdqtlEgYGJyK0vewN+nkcSMVk2 OgyxgOzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRDFJ-00000007pUM-1pkZ; Tue, 09 Jul 2024 15:59:13 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRDF1-00000007pPX-48ZH for linux-arm-kernel@lists.infradead.org; Tue, 09 Jul 2024 15:58:58 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id DA51461495; Tue, 9 Jul 2024 15:58:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 837E8C3277B; Tue, 9 Jul 2024 15:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1720540734; bh=baE7+TKxEk8ZWq7ub7Sl0OP4Ta9291CcTzFINE6Felk=; h=From:To:Cc:Subject:Date:From; b=Jb2aXvg5MmJ22teLO0NacYrXboNDWHZymTRrHk2K+L7El/8KmerhuUSNXinxAx5n0 XuxpGBG4bzIDaVBE17QjJwpod+swtXtycecva9G8EbtRYPKz2T2eiyp5u/WMAaJLpk TZNAAPkrBAqmktB8eMbLIXYV6NBT1RIDDUG5YJA4= From: Linus Torvalds To: Mark Rutland Cc: Linux ARM Subject: [PATCH 0/4] Runtime constants series Date: Tue, 9 Jul 2024 08:52:34 -0700 Message-ID: <20240709155850.1034904-1-torvalds@linux-foundation.org> X-Mailer: git-send-email 2.45.1.209.gc6f12300df MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240709_085856_662179_43C8FD19 X-CRM114-Status: GOOD ( 10.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is also available in the (possibly still to be rebased) git tree at git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git runtime-constants for people who just prefer to do a 'git fetch' and look at things locally. Four patches to make the dentry cache lookup use the new runtime constants feature rather than load the hash table address and size dynamically: vfs: dcache: move hashlen_hash() from callers into d_hash() runtime constants: add default dummy infrastructure runtime constants: add x86 architecture support arm64: add 'runtime constant' support with the diffstat being arch/arm64/include/asm/runtime-const.h | 88 ++++++++++++++++++++++++++++++++++ arch/arm64/kernel/vmlinux.lds.S | 3 ++ arch/x86/include/asm/runtime-const.h | 61 +++++++++++++++++++++++ arch/x86/kernel/vmlinux.lds.S | 3 ++ fs/dcache.c | 17 +++++-- include/asm-generic/Kbuild | 1 + include/asm-generic/runtime-const.h | 15 ++++++ include/asm-generic/vmlinux.lds.h | 8 ++++ 8 files changed, 192 insertions(+), 4 deletions(-) create mode 100644 arch/arm64/include/asm/runtime-const.h create mode 100644 arch/x86/include/asm/runtime-const.h create mode 100644 include/asm-generic/runtime-const.h Thanks, Linus