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: 11681171 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 441A6138A for ; Thu, 23 Jul 2020 15:08:43 +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 1AFA720771 for ; Thu, 23 Jul 2020 15:08:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="I2i2d1by"; 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 1AFA720771 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=CO6yaUUjnzFGmeMF253kmVECURijeyXVv2dKIUO0eco=; b=I2i2d1bySaNGqmV+nt0SaGhJe TERYXsEJ0BOME0W+MyajBOqID9bpAzj2O1vuEOzy0HcFEcwq8s72yJ5A6HqVVtua3ilzSm5omIB8i nKENaw6IfnpGTbLvkNLZLrFGPS+x8rjDBqobE003Vkxx3usySwvq9QVjDlCdNWJ434LjNQHwTTPyk aeUTgEt0/bP0qxucDpcMvbHfUIMDWqvPbpAfaUGABnDjGOkMMg7rF1NnoBOnluB1XgjUHU4WqXE1H P9WxU7KSZPD7WJD8ONyShQxuW7yEuFADAm7p7ywkII1SPaFl3VE++iaodS8f2R4xW2fs9aH4X5DjN 2/Rz20CFg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jycoF-0002kf-5m; Thu, 23 Jul 2020 15:06:59 +0000 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jycnC-0002NX-2T for linux-arm-kernel@lists.infradead.org; Thu, 23 Jul 2020 15:06:01 +0000 Received: by mail-ed1-x543.google.com with SMTP id h28so4774183edz.0 for ; Thu, 23 Jul 2020 08:05:53 -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=X8joprq0OqVh6vY1Y8WwgCw2g7V1IcmRmn3JvmjWhBYXx3qUFOINAgcWFTtnts7TPx W88mmuFXz4OSV1UeKNSSUpQfOjPRHAYGxJ/S6QFMS2Ls3tKeyK8cavc3lh+jlJUq83+a 9LIXRU1zXHM+JRvrVr5GEAALPRnbengY4LreC2W7iwUQS70j35tmaaVjLbR9Gug68s9A NcetnmhU8DgTfKzHnbb2cMfpZXZuPE4RSS1sA8i7xrooqO05ZqeRaXeoZN9x8/rwZM69 ee1QXFTYvUxCmI5ZOdhzlESLPzqhaC6xNzgL/PfqBxTpm6EWcV+hpnS2S/hkKk5vq6by 4Mtg== X-Gm-Message-State: AOAM5314UQ5nJxyU7l1rJYEfvPKbBJFsdLtFzQ2brel1JbU9AtAfSjZ4 mAJsEYaj6G71SaI/QRE5pUl6oQ== 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200723_110554_254889_2B068CAC X-CRM114-Status: GOOD ( 10.70 ) 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:543 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_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's 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, hch@infradead.org, zhengxiang9@huawei.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 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)