Message ID | 20231027180850.1068089-17-joey.gouly@arm.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 65177C25B47 for <linux-mm@archiver.kernel.org>; Fri, 27 Oct 2023 18:09:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EEBC86B03E5; Fri, 27 Oct 2023 14:09:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E26EB6B03E6; Fri, 27 Oct 2023 14:09:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CEED76B03E7; Fri, 27 Oct 2023 14:09:45 -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 BEBEA6B03E5 for <linux-mm@kvack.org>; Fri, 27 Oct 2023 14:09:45 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 96592120B83 for <linux-mm@kvack.org>; Fri, 27 Oct 2023 18:09:45 +0000 (UTC) X-FDA: 81392029530.05.A750A65 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf04.hostedemail.com (Postfix) with ESMTP id E656740006 for <linux-mm@kvack.org>; Fri, 27 Oct 2023 18:09:43 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf04.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=1698430184; 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=1NBkBmk8bigeGNpS26xTL/7Z+EWv1U3KFpqluXIv+FM=; b=gJKx2J//edEcm1I50g3pwJBmeZEYfeSPTmMaawnNoUY7Uww0sZMh1kmIRduTjhlYo4GNGE cuP44VpaLyahfdC3Fdg7d55Ibgu0CP+gEmLgE6gZzjda0+2x7lPjATvVBwXJqOCw+JR9ok U1GDtjQpt8uo5Wui8xxfngwrNE6ZcoE= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf04.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=1698430184; a=rsa-sha256; cv=none; b=LQXApsLEfh2csvPp56I6qSL7Ozc90hs/7/EcbUGpBC25ykPf11jEPwLUQsW+QdtDIn7Pe3 51dFz0HUsaFK1uhtx/wteD97Rv3ErSZvw7s4Q9rBOVJt+5vlnuFM9/ZmHLApvNa75iFG1z /Lr+EDsXEDbLgEYwuYN4RFA58SRojWo= 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 E220F153B; Fri, 27 Oct 2023 11:10: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 2050F3F64C; Fri, 27 Oct 2023 11:09:41 -0700 (PDT) From: Joey Gouly <joey.gouly@arm.com> To: linux-arm-kernel@lists.infradead.org Cc: akpm@linux-foundation.org, aneesh.kumar@linux.ibm.com, broonie@kernel.org, catalin.marinas@arm.com, dave.hansen@linux.intel.com, joey.gouly@arm.com, maz@kernel.org, oliver.upton@linux.dev, shuah@kernel.org, will@kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, James Morse <james.morse@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Zenghui Yu <yuzenghui@huawei.com> Subject: [PATCH v2 16/24] arm64: enable PKEY support for CPUs with S1POE Date: Fri, 27 Oct 2023 19:08:42 +0100 Message-Id: <20231027180850.1068089-17-joey.gouly@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231027180850.1068089-1-joey.gouly@arm.com> References: <20231027180850.1068089-1-joey.gouly@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: E656740006 X-Stat-Signature: m7q6utc6hriyqwez9di3ofqbf5abd1mc X-HE-Tag: 1698430183-573592 X-HE-Meta: U2FsdGVkX1+PVVr1Lznz/jzAp/0PP2pqaKhIh8+dmBIu/ZhpUJj+jGhGsH/Lfpag3BmtHG+uVLm6bqBzgnpcRrtZSGGIp7Oq16ighue/Ye+yAK+B1g17SEThfdUsyyfHGzM70HUdOZfGGMEuoHruXbxHtUS1M/u4Q/IfiO0oMUV13C5+ppI83OjPrCx+FlUB7gO3nGRHnoE2hbrr459zeIu0WXpG9iG6Rjkkxs3140fXCHiyZ8+PBIWZ90KL9QM6SdVX3LpJuFH081OEsmwEp1VelH+FRMXW45DVFCE36oCCfX2Z3FlJCghKPk7/LHv5YU+g8I1vUtv1N/9Y2hQU8m1SmYIdNChoefzezzrHCE3xXCi7q82IhaazDZwfPG7v0Z7WIyYa2o/7IxvCvQbBzf68EfiMT2eUtAx7Df+8yDj+TZ1u89KgcQhRud6A1ZAN6tG7WhdgHZJe/P03UBUF1I3BpquE+Q71Kip7wnEFzgbtxZ6OeGraqqSzVea6cS0GqBJgNCVGz8zgctiPyvw/lfDpm3TR2eWUy9vAxeIwn+B0ka4q4tMxJcbPtjUZPRnii0RgYg7hGr38cZIApOQVBjF5ssq+bys4z46A5I8LlYYdxqkgc9Sg6eHYoiaU8RCLJvw2fAjz+B5AhoKBytCrWdj3aGaJ3UeDZ3nNIk4QIbRQVdkckXksSeiH3fLoZakROYatxzuwGduAwADZnySZgpX5hkUG6cnY+FUrtdn4ZAsskwwy60Vj+la66tlo/6Mf8lNMDDM7CPmN7d2nrEUWG34vvfhUQLKU7q1yghJWWFvijrv3z6T3nYxuRxIW6VUpQ54J8P/bVbEt6op/g1yFN+hhDOOD0yG2U/uPwcSMzPM6PsgJheqPduUUbOuClJe0/bglBVcecpYNXS3oAf4s9Tebk+fFPh25+kL8RbWEnrbuoeObAOhPO1xmOBQVi8pPXCLUTlXvI97BbVfcWyc KrAzNIZS V9sVLSZh1nHRQrOWxHfstqKnIg/W6WBXOPWICbZ7zbeuKORF1gDo47nQoUeKwzootCi6bDE30jY9UNXjlq2rrd9ncuI1B6cFtaQU5Ymjy6Jd7ueXHQs7MKl1aRvt+XqhOvhaIyS40ZC5ezPKEUYUEIVy3jrA2v4fPcrohmXInWnsO+DrdJJUtMwHDgNdSsCoA3VxjSXnH2lxSllwBFxc5svia8w== 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Permission Overlay Extension
|
expand
|
diff --git a/arch/arm64/include/asm/pkeys.h b/arch/arm64/include/asm/pkeys.h index a80c654da93d..23c473300058 100644 --- a/arch/arm64/include/asm/pkeys.h +++ b/arch/arm64/include/asm/pkeys.h @@ -17,7 +17,7 @@ int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, static inline bool arch_pkeys_enabled(void) { - return false; + return system_supports_poe(); } static inline int vma_pkey(struct vm_area_struct *vma)
Now that PKEYs support has been implemented, enable it for CPUs that support S1POE. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> --- arch/arm64/include/asm/pkeys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)