From patchwork Tue May 12 14:48:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mian Yousaf Kaukab X-Patchwork-Id: 11543317 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 4C90E139F for ; Tue, 12 May 2020 14:48:49 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 2A1F1206A5 for ; Tue, 12 May 2020 14:48:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="c6YmTj1/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A1F1206A5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de 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=bombadil.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=AeC54esBc12u6Kzpw30MDg1jAiAznUKGOE4T49F4kBw=; b=c6YmTj1/X1xoe5 +3qcNo2hHoPWYfn3H1TP3UEX2zsfiYKIIJUIaMPdeXV6MmmAXNXsWPqiE1QO7i2nx+jBfAztd4UDd d3jvyL87L85ZIm9wIqkD77AWe3GHYgfwRANKnX5vsTKfMQdPlzbk0BoxbeeFo1G4SxEHg/KA8r92Y Mcbxa8YE6/UxU2DycY1DU+wsYNrHzmzjibCjPS8tw7Z18HdQLuyLr4BjsSWeb3SFvB82cFEuOhBPj D5cOB67nTx0X1L2flrfr/g17Or37AjgM1yk3OVZ5vT0mtgQd4Dpvb/jd8pTVjhEJkqNwvvwgaDPHo U6ve9OUgvLce01h1c9Pg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYWD9-00069l-5G; Tue, 12 May 2020 14:48:47 +0000 Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYWD6-00068K-Po for linux-arm-kernel@lists.infradead.org; Tue, 12 May 2020 14:48:46 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0E9E4ACC3; Tue, 12 May 2020 14:48:44 +0000 (UTC) From: Mian Yousaf Kaukab To: swarren@wwwdotorg.org, robh+dt@kernel.org, robin.murphy@arm.com Subject: [PATCH 3/4] arm64: tegra186: add reserved-only flag in sysram node Date: Tue, 12 May 2020 16:48:02 +0200 Message-Id: <20200512144803.24344-3-ykaukab@suse.de> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200512144803.24344-1-ykaukab@suse.de> References: <20200512144803.24344-1-ykaukab@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200512_074844_988927_F2499E83 X-CRM114-Status: GOOD ( 12.65 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [195.135.220.15 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.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [195.135.220.15 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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: devicetree@vger.kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, Mian Yousaf Kaukab , linux-kernel@vger.kernel.org, jonathanh@nvidia.com, talho@nvidia.com, thierry.reding@gmail.com, linux-tegra@vger.kernel.org, afaerber@suse.de, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org bpmp driver has reserved regions in sysram. Since sysram is only used by the bpmp driver, add ‘reserved-only’ flag to the sysram node so that only regions used by the bpmp driver are remapped. Other regions of the sysram may not be accessible to the kernel and a speculative access to them can cause SError. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidia/tegra186.dtsi index 58100fb9cd8b..07ce7e7b270c 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra186.dtsi @@ -1219,6 +1219,7 @@ sysram@30000000 { #address-cells = <2>; #size-cells = <2>; ranges = <0 0x0 0x0 0x30000000 0x0 0x50000>; + reserved-only; cpu_bpmp_tx: shmem@4e000 { compatible = "nvidia,tegra186-bpmp-shmem";