From patchwork Fri May 3 13:01:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13652780 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 1F7C6C4345F for ; Fri, 3 May 2024 13:02:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ADFF46B008C; Fri, 3 May 2024 09:02:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A918A6B0093; Fri, 3 May 2024 09:02:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 97F256B0096; Fri, 3 May 2024 09:02:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 8029F6B008C for ; Fri, 3 May 2024 09:02:03 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 0781981139 for ; Fri, 3 May 2024 13:02:03 +0000 (UTC) X-FDA: 82077097326.29.D77ED42 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf26.hostedemail.com (Postfix) with ESMTP id AF08714000B for ; Fri, 3 May 2024 13:01:59 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1714741319; 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=qHuOu1z46rPW34oVvLWofFqZQlecCLnKF1jlWSzrNJQ=; b=vuatluIwLeH1z289fJ9yuU4VEoGxLmfFVFr/5OhtcpqG3VgctPCiARA7rt5g/YCG6PRg5k 1sySqyb0B4R31iDodiuWOoA8uU5crumyCmhNQJ9CXdHN7L0HA43K1IgqHbqJrJ4yvlDutv xLjX19zWQOmkMQtN942F5SWKqpNy84Q= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714741319; a=rsa-sha256; cv=none; b=eFk8gOBTpfX+lR14Dlad46J0l39oqAu+qtgcKncwD99h4A0m7NQeLzNDDBUTYUI8tN6UQb 9QAl1iEMyZeQ7l0ba6aEhXa/nxdppi5SzXW2i8b3DJFnsGSwvkPwpn3yQG6yCwxGEnYhJx u+4Sq0r9gi+9Nlg0U4922T/TzZS1/A8= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of joey.gouly@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=joey.gouly@arm.com; dmarc=pass (policy=none) header.from=arm.com 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 206C41474; Fri, 3 May 2024 06:02:24 -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 C40D03F73F; Fri, 3 May 2024 06:01:55 -0700 (PDT) From: Joey Gouly To: linux-arm-kernel@lists.infradead.org Cc: akpm@linux-foundation.org, aneesh.kumar@kernel.org, aneesh.kumar@linux.ibm.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, szabolcs.nagy@arm.com, tglx@linutronix.de, will@kernel.org, x86@kernel.org, kvmarm@lists.linux.dev Subject: [PATCH v4 01/29] powerpc/mm: add ARCH_PKEY_BITS to Kconfig Date: Fri, 3 May 2024 14:01:19 +0100 Message-Id: <20240503130147.1154804-2-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240503130147.1154804-1-joey.gouly@arm.com> References: <20240503130147.1154804-1-joey.gouly@arm.com> MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: z1bouuqus6b87uhjgkornzdiudnb49og X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: AF08714000B X-HE-Tag: 1714741319-809989 X-HE-Meta: U2FsdGVkX1/erqOLDVQWI0L7dMzjpk+WEVbGF4FlS/vmNgzm+PvB6WUzddEHUu11pLKj8fxRe7bhe21yLJUzMdmuNaRwhVCGv+cSH7Vi0GzA73L/IX8fDbcVV3rOqseoKvQpEf14RfQ/LBo/1Eb8fjYBowE9dhxfRT0ODTcXCcs+bKlQLUbzme4Vz8VOgkB2LF7bdTUDeDvi+a37mVH7RHL7ykRzJRS0eAS7Y3khXtpMMn5X4nDSatL1oiK7F5cQo1Ie98Z/DFFCJmJUkCoP0TY1cX2G3eTCkX2Zxi9PYYohWxvETNMhfhHLIq0bs75ywrcnN39vMmNtaHo7f7YjcVeGtnIGIcii8ILc1B5EojCVmiU4MbhQAyY15j1uMAFf+dLm2RG3mOwy3RY6Q14cBf701Xd071sIc6jtePvzaKl72lyKZCZkFKgDPU5eJwt1mtNdQsGepF1GBhTgDuJYRUp2LJauWjqFw7oTnP9PeNjOGktlLxY0Zl5ympMA3ZYgIdCZHr/tTptN0vDNJkEkYXVQL7SOvadcpnyjIJHc5clwzeZn3EmK6aRlSywRQPQ/6EAJgFCWDTt1+4mdpMBQIlaGZWMcPEJg5E8lljJKxxLKuKh9nM1riE/aW4AZZOQHb/2BgYVwcqofIdrd1gy/w6Vfan40HhjS4fhor8F7zaLXkvrgbchwe7bXWWJitMPKZ6ZF7q0ifGAYPUTQ36/nUwZergiIfvV3HQ2TnwlZua2vCRiFFsCXXQ7kVkYZqkLi04qjRmwmMTRm95bfDSD+B52mXrRXvy1RCfqbHeoUrzJgZYa1LyDQP/iM9smUhT/f4V/SZkRIv/RXJVdfDVEpb6JDVTclctvSptZ5tSqp+C06i+laUuXdv/nWE3YA1IAGjOm+f54L+vkL+1s/fMpswaTaPJsaQamMi3RZuzZPoh20DGhmcWRZhr1V6TDf2YHnMAmlYNtAjyFtcf3hwKL mHkINd/R 6gzDB47LiZmBYxCeyGO+5RJrq5OttjoEGxrwFQ2K7f4Zvp+GoLk0W63QvwRHxFnog1YD9XVAGvixa1dWmPeZFOGH8p6IqSbviZHjbwPFPER/Twfnet8Rf3YZ1L30vJD88ONdxK6jJHR8iwcM/kBPrhlzZk04MGgWORE7q2dckJQ8dVxib5zRPWZcdMPRnFx94vNdfsCkNBlBEr0oM8W66wCoUctXSP1tzg1/NIZNf4LiaUwceDbEB5IOnWYUdfgCFkfUZjdnSEW8t9Gz1H4FJwneuJgpjbcE7WN6yhngkexG50Y37QcBnGgLNA2Bp72ACkoBWG1DZZVxUfEVWS033qrZJa+zdluw2Uu6IfZOC1tMtLtE4baztn+Usb8xEFWJVJy8rpO5oIaoplFEYLdGXU9+UKA/I+kpR7pfpPZ6v/Sli4jY= 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 (powerpc) --- arch/powerpc/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 1c4be3373686..6e33e4726856 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -1020,6 +1020,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