From patchwork Thu Aug 22 15:10:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13773671 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A933C52D7C for ; Thu, 22 Aug 2024 15:11:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C54B180031; Thu, 22 Aug 2024 11:11:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C03FC8001E; Thu, 22 Aug 2024 11:11:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AA5C580031; Thu, 22 Aug 2024 11:11:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 8A4C38001E for ; Thu, 22 Aug 2024 11:11:32 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 33523A8DC6 for ; Thu, 22 Aug 2024 15:11:32 +0000 (UTC) X-FDA: 82480220424.13.3D6A361 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf03.hostedemail.com (Postfix) with ESMTP id 89E2420022 for ; Thu, 22 Aug 2024 15:11:29 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf03.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724339472; a=rsa-sha256; cv=none; b=cja5DG+plWNTyqV629g/E3buPgS0p8q6T7vLU707CcRwWr2SoMfR45jSZH1vm6RH24CwAu 08KyIyVg7uHfb8EgUp7UYXL1l9kJYWXhwAuBLhm0K2DQG7MtIR/kmb1493btWB4vIwlN3J Fum/815PEebCTgjCNWVrYr8RjJCzZwk= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf03.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724339472; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EkzhGaH1vpd9S+OVn0bTPh0Beh0aCRj5TChd371GEgM=; b=fTq4jG54VT8FsoL9mKnfkvVAPjb0R3jAol2Jd4TrGocQgd35fJfwXvo0mYZSplpAjzLn5I XcOgl4pTCUKRXuAcXrRc/tOYoG4H7T5caolWZ0jxciMKnB4tO3gAbQA92o4nXKaSaYOzPk 9mU07dgbprE4zBPkYtYh1gKw/iYTo58= Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A8DFFFEC; Thu, 22 Aug 2024 08:11:54 -0700 (PDT) Received: from e124191.cambridge.arm.com (e124191.cambridge.arm.com [10.1.197.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8A4E13F58B; Thu, 22 Aug 2024 08:11:24 -0700 (PDT) From: Joey Gouly To: linux-arm-kernel@lists.infradead.org Cc: nd@arm.com, akpm@linux-foundation.org, aneesh.kumar@kernel.org, aneesh.kumar@linux.ibm.com, anshuman.khandual@arm.com, bp@alien8.de, broonie@kernel.org, catalin.marinas@arm.com, christophe.leroy@csgroup.eu, dave.hansen@linux.intel.com, hpa@zytor.com, joey.gouly@arm.com, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, maz@kernel.org, mingo@redhat.com, mpe@ellerman.id.au, naveen.n.rao@linux.ibm.com, npiggin@gmail.com, oliver.upton@linux.dev, shuah@kernel.org, skhan@linuxfoundation.org, szabolcs.nagy@arm.com, tglx@linutronix.de, will@kernel.org, x86@kernel.org, kvmarm@lists.linux.dev, linux-kselftest@vger.kernel.org Subject: [PATCH v5 01/30] powerpc/mm: add ARCH_PKEY_BITS to Kconfig Date: Thu, 22 Aug 2024 16:10:44 +0100 Message-Id: <20240822151113.1479789-2-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240822151113.1479789-1-joey.gouly@arm.com> References: <20240822151113.1479789-1-joey.gouly@arm.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 89E2420022 X-Rspamd-Server: rspam01 X-Stat-Signature: 4soufozsurab6t9zfg3eo65oxwaqgpmo X-HE-Tag: 1724339489-955756 X-HE-Meta: U2FsdGVkX1+6vhkF9fr7Ou4yssgN26+98kJTnvIlQg5pSoCrIKDDjnGeE8vvrHKjrbW/NisvCUWq+uWEiVgIwbnhGzntSDlsbPTyswk1V8+K/z//qTStUQaCRZT+3g6YVKWda4dUrkzUtRuVCk7zgiJtcxNr4RnRninPdt3uDX8uokmt1ZGuqGpDNemWMBXVvdnzDt16yrUBBOHueCHdDefi4hTMJcYyY2LnEwILAdxm1uccaJOASL731eBSGnMXyS6gORP0ru9r7WID7CkL7JOwo7kVJuY7Tqh+GG3VwOTsGZg4l5UOnBqBlONwePgjQeI8/7G9avS/HEUK8tHCWM8urh41NO2hROTlsRF/RhIgWOUnT72YVJLATi5DF6MDMfDu6Yi96W/MRS+EP61lO+2mQKf9cx8pJRn/6FTgAtOctyBW/xla9PiPVEfq/hX95ItfWH8HdOBYFGXymhXWFbc4TMQ7t4AuUhqlfz1JsVSnyuWraqL99vYI/dENogOYMsBfFEhhptPL+mmSjix4qHhcrQD2VC4Ok2A5mSHBE4U7SGAEz7sDZ/fLCxr/Ri2nifH5kc3UKuJ8iPAC5sZdzg08qyngMKcJ4LUN5p1+CvdoSGiylrJlVPVr0tjLUWFIzMLirkIz7J6oTsPTVay0u1gzwN5c6NCEKyPwDm8VlWYCqm6Y3rq/lx0e9ezxrBg98TJ3UJcw2lAJENQMZPxrTBCNhP3PIrOECH6Q2jlkOwE2Cq3p9MuB8Mi1GmBVnzMQpqaUINLoGBNoMOgeG388VtWxK+VgtvGNIT0K16Dgt0CA68ItJBme5ZLKQPiObVQJBbstomulOakbCcX2zPT4GM8beKsx/vunQJFgSKOUXNQJikUn+qLlRKdpOCjDPjeug8SBQ19ku9wWE221zxoSR+3bVFQFk/sE1uRBvfrRg4uCDxjfYQWElyKm5xsF9kzDTmwcBbZzp0QBrnJMOhR /EgGBqx1 RFBPZbckl3vKj2E2gNVdqr6ds+8oR4UayQKft5s5FTLvdA7kE8OWy44/qvfinSJY/8/RpsJosvTW3SPQ744P4Pmid0z4AhbCCw5yTvRwV4JXq9RWBq+E5uy54uoUkO5G9mmzs/BEswznamqfSzMgrfMRLnQbt1G+64610K5UfmvJjfASfpTDEJO6flvlj/uyJhPbtitHUJWQuRpZeJ3oY4hJucbNJe6dHA1V4WdTe0tGDzeAEDygUX8PMxigX9c4FlC+YsnbTxkTa+tQHlP+CJNt/rk2/89ZtYjv6MWiG6oWDhjXkXio0Y0/nKlS2QaZPomjom7M5JzZyR6kWWUARLIfPNK/F4/Z5TUJRR0RdKZgrJjS0JTGyWhyeMmRsIPVdkBvKsyiRqsbXcAbt9AtQQ/UcwL3rYqhkbEQv99e1G4RY+wE= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The new config option specifies how many bits are in each PKEY. Signed-off-by: Joey Gouly Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: "Aneesh Kumar K.V" Cc: "Naveen N. Rao" Cc: linuxppc-dev@lists.ozlabs.org Acked-by: Michael Ellerman --- arch/powerpc/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git arch/powerpc/Kconfig arch/powerpc/Kconfig index d7b09b064a8a..8a4ee57cd4ef 100644 --- arch/powerpc/Kconfig +++ arch/powerpc/Kconfig @@ -1026,6 +1026,10 @@ config PPC_MEM_KEYS If unsure, say y. +config ARCH_PKEY_BITS + int + default 5 + config PPC_SECURE_BOOT prompt "Enable secure boot support" bool