From patchwork Mon Aug 17 17:15:52 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: 11718873 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 093D815E6 for ; Mon, 17 Aug 2020 17:18:48 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CA86420657 for ; Mon, 17 Aug 2020 17:18:47 +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="HdY3UMps" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CA86420657 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 A4A436B000C; Mon, 17 Aug 2020 13:18:37 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9FBBC6B000D; Mon, 17 Aug 2020 13:18:37 -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 8C1F66B000E; Mon, 17 Aug 2020 13:18:37 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0076.hostedemail.com [216.40.44.76]) by kanga.kvack.org (Postfix) with ESMTP id 7208A6B000C for ; Mon, 17 Aug 2020 13:18:37 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 2DC93181AEF3C for ; Mon, 17 Aug 2020 17:18:37 +0000 (UTC) X-FDA: 77160719874.18.start69_5e1441b27018 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin18.hostedemail.com (Postfix) with ESMTP id EA79E100EC661 for ; Mon, 17 Aug 2020 17:18:36 +0000 (UTC) X-Spam-Summary: 1,0,0,316013a0fdeae001,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:5007:6261:6653:6742:7903:7904:10004:11026:11473:11658:11914:12043:12114:12297:12438:12517:12519:12555:12895:13069:13138:13161:13229:13231:13255: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-66.100.201.201 62.2.84.100;04ygasyxwnf9r4mgd1shhzhjqk6phoc8mwxuxwgh6ry4pspww5a477hckzikd9h.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:ft,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: start69_5e1441b27018 X-Filterd-Recvd-Size: 4170 Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Mon, 17 Aug 2020 17:18:36 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id i6so12891341edy.5 for ; Mon, 17 Aug 2020 10:18:36 -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=xAI4tW8Sd4qwo2LwzvQq9a4HDeBi7JUGf6WbxKMhMtc=; b=HdY3UMpsIG6P36/EZPxC5TOek26U3SzSg5oCDHf7GXV4MG1fcY2+0w7JjDSCM/riWM 8NgRT4R5DmKniz/jbgzsm+ayvm9lx6r8nIjij+ZEfLKZhkCU2seNP1hcdHHs8IKaFxPW wlB15OgrU0MTruCv6Xsp6OsTtaYbM7pmuZEaWU4p4/IeRYlg4SF95lcSMet2x0dWYaea xl8lvA12VneRBGrOFd18Sr5BkI+4Y41vDB2aeoSp4SJPgH8/A9T6IphzMD5Q7h5xEZRN lwq8/5qDALP+AlegMr3+EDpDBNDCMeUksBf8GOgLKxDaDqdkqY9aoi0gtQKlsuIVCWTx soJg== 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=xAI4tW8Sd4qwo2LwzvQq9a4HDeBi7JUGf6WbxKMhMtc=; b=XiTPucC9HYp9YY7nnUyGK9EU3NCgevjNQTfW96IMSQ+adL8uRKYxgBTyg5/fugHIeq U+uapoJBUiHxa7eZ34D7kAou6tkj43U56jp/oIlpgemmhuFqSImon+5nW51G4caPVZDE fu0cYxb4ApYQcVGIX1/CPP3bjBDLbdxZyM2syPbejORwL7A2bNIAyTsix4W60VByndqE jiB7OAgcx1bBApyFBgXYGUBhrNtCSGtfgy3ZQgpBT9YohToCJgMK2SKC2nWFD01QC9kA 7d/rvqtP/3JNkRHkBU7+/ka9qXZHbUFZp02CCbfqDhmRaQtccC9DTYnUUhJwkjPSlEQE jb2A== X-Gm-Message-State: AOAM530X6YKKZr+zlauUP/rc258KDOpKEPu77YuFKcLRWa+/JpvXjUFo tiylmDoBloEG6BxrF0+Xj230UA== X-Google-Smtp-Source: ABdhPJyP5Y5MpD0YB8+dyaifXxCyKDE5gN7qRt1wotAqYWR1y6+qzi5cQp7FPsY/uvIqK+78YHkUxA== X-Received: by 2002:aa7:dd94:: with SMTP id g20mr15446073edv.238.1597684715386; Mon, 17 Aug 2020 10:18:35 -0700 (PDT) Received: from localhost.localdomain ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id lc18sm14672502ejb.29.2020.08.17.10.18.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 10:18:34 -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, Jean-Philippe Brucker , Suzuki K Poulose Subject: [PATCH RESEND v9 06/13] arm64: cpufeature: Export symbol read_sanitised_ftr_reg() Date: Mon, 17 Aug 2020 19:15:52 +0200 Message-Id: <20200817171558.325917-7-jean-philippe@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817171558.325917-1-jean-philippe@linaro.org> References: <20200817171558.325917-1-jean-philippe@linaro.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: EA79E100EC661 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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 a389b999482e..c53666a47e1d 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -1111,6 +1111,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)