From patchwork Thu Jul 23 14:57:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 11681133 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A3BF913B4 for ; Thu, 23 Jul 2020 15:06:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7007A207BB for ; Thu, 23 Jul 2020 15:06:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QGvAr7eI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7007A207BB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3DE576B0002; Thu, 23 Jul 2020 11:06:13 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 38D806B0005; Thu, 23 Jul 2020 11:06:13 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 27BEE6B0006; Thu, 23 Jul 2020 11:06:13 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0092.hostedemail.com [216.40.44.92]) by kanga.kvack.org (Postfix) with ESMTP id 14B006B0002 for ; Thu, 23 Jul 2020 11:06:13 -0400 (EDT) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id BF6B7BF18 for ; Thu, 23 Jul 2020 15:06:12 +0000 (UTC) X-FDA: 77069666184.05.voice56_390a6e426f3f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin05.hostedemail.com (Postfix) with ESMTP id 635221801E334 for ; Thu, 23 Jul 2020 15:06:07 +0000 (UTC) X-Spam-Summary: 1,0,0,42ce12a1c347444f,d41d8cd98f00b204,jean-philippe@linaro.org,,RULES_HIT:41:334:355:368:369:379:541:800:960:973:988:989:1260:1311:1314:1345:1359:1437:1515:1534:1540:1711:1714:1730:1747:1777:1792:2198:2199:2393:2559:2562:2731:3138:3139:3140:3141:3142:3350:3865:3867:3870:4250:4321:5007:6261:6653:6742:7903:7904:10004:11026:11473:11658:11914:12043:12114:12297:12438:12517:12519:12555:12895:13069:13138:13161:13229:13231:13311:13357:13894:14181:14384:14394:14721:21080:21222:21444:21451:21627:21990:30054:30080:30089,0,RBL:209.85.208.66:@linaro.org:.lbl8.mailshell.net-62.2.10.100 66.100.201.201;04yrijhfdsagefta4jc83agpkix79yc8mwxuxwgh6ry4pspww5a477hckzikd9h.bbwgymmdo1spuamr3f3hwmitgmxhybq6bfior6tx6t8etyrqzeqtqkwnfgeioib.w-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:26,LUA_SUMMARY:none X-HE-Tag: voice56_390a6e426f3f X-Filterd-Recvd-Size: 4188 Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) by imf11.hostedemail.com (Postfix) with ESMTP for ; Thu, 23 Jul 2020 15:05:54 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id a8so4773401edy.1 for ; Thu, 23 Jul 2020 08:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wEZcqIGYqwEOQrL51rqxhyVNs0I0pb8HH3i02KmnnVs=; b=QGvAr7eIz2NPXC6cBdK7i4d4trJ+B8qTxmoUzieiiSlZrXgai9Ns3CqIvbPgVyRyeM cdLleZcpIONx3HPqg0jUbMKhXfQdSBwn8QSKhagvJZsvNY7wfm6r4d94OB9b+9K1Vg34 eEvZ7ZLE6F4CN+ytXxD3DQWTWpHOiAnYxm39JZejeV5BAYdQH3qdHCVjQX/Nj/jqlz6H DKyI7A8FX2caXOt6PFMVADhmCi+R0icDhxTHcpYS1/gzmbYQpVGksNwVpgMNChxuvxyV qq5D+42WF4kKJMxwqarulYrhQGNnMJgJbDpQ9MegJpCG2QU9IPfH5eXs+l55aQGq36gt dkNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wEZcqIGYqwEOQrL51rqxhyVNs0I0pb8HH3i02KmnnVs=; b=mkCu1n4RBg3jgf/EpOUad3ncGe0Rz3Fti3e3xKhaE5KJgQ6xUPtJG1ZHQ1wIj9fi+D ctofqu09mJxytRrkNh/Sr7wMbteUXUufI8vvqeJZ2X3JGGOqp2q4FOT5o/YrQmjy0lJG rqlOVWWSFtcNaOD4gYBh71bUXk4I16l9f60JbyuJj3qNa72ooqBw3eFyBEAzjXakvofU cOcsIRNmn6qDaNcjReiurhRv1YNEjGLW5Y34VD9UrAraDqSGY99bSqREIOzxKW1vNmJN OhkaVUe3fbRPHEqU4VJitIBJbPnKtHkCkiCQFEJxO7crAeG/uI/knVt3KHn8s2bu5E3q NYWA== X-Gm-Message-State: AOAM530ukbsijIYsJkPPzGMRqSeSlNBphbsUREw8PACskRvUFy7jlW0m W4TeBeX63RgiYxdd0fGGsBS2Yg== X-Google-Smtp-Source: ABdhPJx4fNwTfUFLzi/fYdsIJQfH1+RwBv+2YVOyYHLcBTwcTU9qUrY0wiaVlC4MG3drv028RhX/oA== X-Received: by 2002:a05:6402:158d:: with SMTP id c13mr4553675edv.103.1595516753225; Thu, 23 Jul 2020 08:05:53 -0700 (PDT) Received: from localhost.localdomain ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id k15sm2145952eji.49.2020.07.23.08.05.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 08:05:52 -0700 (PDT) From: Jean-Philippe Brucker To: iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org Cc: joro@8bytes.org, catalin.marinas@arm.com, will@kernel.org, robin.murphy@arm.com, baolu.lu@linux.intel.com, Jonathan.Cameron@huawei.com, jacob.jun.pan@linux.intel.com, zhangfei.gao@linaro.org, xuzaibo@huawei.com, zhengxiang9@huawei.com, fenghua.yu@intel.com, hch@infradead.org, Jean-Philippe Brucker , Suzuki K Poulose Subject: [PATCH v9 06/13] arm64: cpufeature: Export symbol read_sanitised_ftr_reg() Date: Thu, 23 Jul 2020 16:57:18 +0200 Message-Id: <20200723145724.3014766-7-jean-philippe@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200723145724.3014766-1-jean-philippe@linaro.org> References: <20200723145724.3014766-1-jean-philippe@linaro.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 635221801E334 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 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: The SMMUv3 driver would like to read the MMFR0 PARANGE field in order to share CPU page tables with devices. Allow the driver to be built as module by exporting the read_sanitized_ftr_reg() cpufeature symbol. Acked-by: Suzuki K Poulose Signed-off-by: Jean-Philippe Brucker --- arch/arm64/kernel/cpufeature.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 9fae0efc80c1..ac2ed25c43d3 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -1068,6 +1068,7 @@ u64 read_sanitised_ftr_reg(u32 id) return 0; return regp->sys_val; } +EXPORT_SYMBOL_GPL(read_sanitised_ftr_reg); #define read_sysreg_case(r) \ case r: return read_sysreg_s(r)