From patchwork Fri Sep 18 10:18:46 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: 11784587 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 32548618 for ; Fri, 18 Sep 2020 10:20:51 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E851C2075E for ; Fri, 18 Sep 2020 10:20:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Q+3c6OqD"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HK6W3eRZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E851C2075E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=uAnF7e0a3ks9qwPbnEwRIPLzkOpq1rZ7/iXn6mVX+9M=; b=Q+3c6OqD2VtX12VNqIVlJj3pU 4bfOtrGouW+B240sKwfVcANLnRiDKkkdOD5aZdFTf85ljms2Kk3/2Cd7LtXOeQjsC5NRdobBGq2qX V4SCz7IhzJcgHLuBA3D5TUzH1pn5V6wY2Hv9LTyz++v30lfgbYT0PETriVWT9MHAXIYKlG4jtX7H5 u286xdjXHDD9khc2buy1GawrKEysAEDcPPlSAhLQac3PLjqqHmG2UxknldOsiO0YN2hPdmO619hFM iEMtS7HFOckH5wznnpMqDE73sDEYS2KLuVhROkdYCVTC2BoawwWMjVvueXaKe50/otS/flFuttXnq FLWRAyw3g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJDVM-0005OO-V3; Fri, 18 Sep 2020 10:20:37 +0000 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJDUo-0005Cd-GT for linux-arm-kernel@lists.infradead.org; Fri, 18 Sep 2020 10:20:07 +0000 Received: by mail-ed1-x541.google.com with SMTP id j2so5524454eds.9 for ; Fri, 18 Sep 2020 03:20:02 -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=zi2qM10ir5XJwLPnhpYJ3YOcstRDmhGueiLzKISpezQ=; b=HK6W3eRZ8r4bPJme3K64Zxv5CKzy7svH/SpUMlfMyzgVA7tcvSPR07SfE2GFMhOiRo f7KFf8RebEfq1UA4YfK9PoQowQgH/tAk3HbZxYcXMQNo5Y+mHTuoJZrx0YErg3WiTD+m 0oP2+T40QGMM4h7/jKC72WBZbXu1c5huzRYn7+HxI0B1dQ2G9nlsOZfmzx6KDnLxs4S2 re/6qYwOKcR+OekNFSvywlCaUCFFroHeuvPYjebtSKwc/EjhoLzd/o843VLtN0sJ/vU+ gA93yimHxG22C3G7Z0J+R8gcVyaIGWp8wSwwlo/LWluSHxw6B4VKpS8y0AdeisjXPT4Z y0Kw== 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=zi2qM10ir5XJwLPnhpYJ3YOcstRDmhGueiLzKISpezQ=; b=aRCR1yyomrKDhxeZ4lpY63p/LwA3rc7d4ZSvSnmvRGJWRjPB221wEgWPJtA+ilcnFp W73/P/WQpBZCXYnVV/+/HzAmuEb/xewLO+XpPeIeAS/95f5P+fgYT8ptUASzftTztshv GksLKf6JGq9OBwflRLKpy4OrjdihXr0ZWIBA9MM8nJPd8/eVaP3KzWwiMoBRohaun9pu rY4xD1bZUpr0GMaI6nlJfF44l+WRKOwsAAQFEIZMVQ8K7ID7f5ORxt7jNwUDN2vgwmKz ojBiomed3ugJd9j6WI1zRhKl5t0piTNcMfJZ+xw5RkdT8admDJN9Odsjxm8+tgO5hUQF sI8g== X-Gm-Message-State: AOAM532s18mMdHNkqyak0sF5p86NeDC8HAhx+YWwlgeZ8UFpi8yx2SXF fHKFfExXO0hXhZciK8Xse+a7pw== X-Google-Smtp-Source: ABdhPJxzV876qoFBLFGCOytfeZusWmrwZCMbEnIjvbs4kvbdc0vDdxojTIyKclpxEmPtQgE5t4eVyA== X-Received: by 2002:a05:6402:17b5:: with SMTP id j21mr36719671edy.276.1600424401524; Fri, 18 Sep 2020 03:20:01 -0700 (PDT) Received: from localhost.localdomain ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id r16sm1940674edc.57.2020.09.18.03.20.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2020 03:20:00 -0700 (PDT) From: Jean-Philippe Brucker To: iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org Subject: [PATCH v10 06/13] arm64: cpufeature: Export symbol read_sanitised_ftr_reg() Date: Fri, 18 Sep 2020 12:18:46 +0200 Message-Id: <20200918101852.582559-7-jean-philippe@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200918101852.582559-1-jean-philippe@linaro.org> References: <20200918101852.582559-1-jean-philippe@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200918_062002_696624_342176FE X-CRM114-Status: GOOD ( 12.55 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:541 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fenghua.yu@intel.com, jacob.jun.pan@linux.intel.com, Jean-Philippe Brucker , catalin.marinas@arm.com, joro@8bytes.org, Suzuki K Poulose , robin.murphy@arm.com, eric.auger@redhat.com, Jonathan.Cameron@huawei.com, zhangfei.gao@linaro.org, will@kernel.org, xuzaibo@huawei.com, baolu.lu@linux.intel.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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 6424584be01e..07f10ad8855c 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)