From patchwork Tue Jul 25 22:06:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9863981 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 471C66038C for ; Tue, 25 Jul 2017 22:07:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E13328650 for ; Tue, 25 Jul 2017 22:07:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32B35286E4; Tue, 25 Jul 2017 22:07:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 996AC28650 for ; Tue, 25 Jul 2017 22:07:03 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=Ua6lL2Wk54KGyC/i0JjT//t7WJxOC4RCNolrQ706Zl4=; b=Ci42TQh8CcqYCs5seS/NAkVSE1 5hY5oOa1FAi0PTeltOaHJLmvKuNvbflGY51qOXYwbA6lkttOVWADuFNpGkmuXjU5RUx+N12Ie9pKX 7M2F6QUPxh6JS/DsgQDxHtHK3cUeWJ76X0mOu0TNzB1orwAl9P1TWK8y/yFkapuxS5M8qUT3JUgYw 2BhV34hmsJx1Q1yo0s6L3YqGtB3wY5bETUBHIpPdw9dMQy4XXqfXqXeRSZUQM78hIYnJBwWuIWmT9 WF1ugXTVjzuMeuOQ+bLEV0hfOPMxIrKx59HSZgWHwq27omB3BUKIjpGjqr7CkpMOvq19qSwZUZJ7H qmt8ACcA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1da7yl-0001rZ-EA; Tue, 25 Jul 2017 22:06:59 +0000 Received: from mail-qt0-x235.google.com ([2607:f8b0:400d:c0d::235]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1da7yS-0001aI-DV for linux-arm-kernel@lists.infradead.org; Tue, 25 Jul 2017 22:06:42 +0000 Received: by mail-qt0-x235.google.com with SMTP id p3so35089489qtg.2 for ; Tue, 25 Jul 2017 15:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9D+u3sneR8SsndS+vx/0RR9TUKCHZ+BAwGTf+puWXVM=; b=SiU5vybPINfbZIfDKwkkyl8+HWZpSbES29Av97YMYtpRxC4Jpd3WemfF3q9CYeYmI+ bPnUlfbBJrpdDDu2FD5ld//nQNv7hoirxt/hLFAgqw8jG3NYRagZcOaq002zA1JGSq73 Ohb1QJ1EY2O3Bm11og3u0vJmFDA0+rcwXr9uo= 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; bh=9D+u3sneR8SsndS+vx/0RR9TUKCHZ+BAwGTf+puWXVM=; b=hdT3oBFQK600okdvHGktui3L2v9kThOPisjbUbslXZjqo5pqTIKWhGmN9pCjzoev1x DRClqofa9MY/5QVY1wV7E952ppAdm5exbob5XU7blHjaPAVOO3c++ySFMyqtXT1PtK7N OlYow7K0nqKtROt1R1h/amlR2uKsm+5nkFPLSBSYA4GFVh0r1twpJkHuhpgup5KnsriD F7bJhmz7jWjekxyITZMq3id3nDs7kMVBb4XB0E1K8VAh+Fj2I8R66ow7V3P5ih2+gpdC /FHqL3yhcwwwHcpi80HTzmMx9+d/w2AcBPPDy7/IlQP5iLpllOrckFW5XyIaYWbI4tTT i3HQ== X-Gm-Message-State: AIVw113CmpWgrAcj/OHDn57JOlBKu/+SsSLjfhZONR7VnUXuoVAx50wj 8fsKc+JVs0M1XU576FU= X-Received: by 10.200.3.171 with SMTP id t43mr26861557qtg.232.1501020378537; Tue, 25 Jul 2017 15:06:18 -0700 (PDT) Received: from venom ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id 48sm10936786qto.33.2017.07.25.15.06.16 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 25 Jul 2017 15:06:18 -0700 (PDT) Received: by venom (sSMTP sendmail emulation); Tue, 25 Jul 2017 18:06:15 -0400 From: Jon Mason To: Florian Fainelli , Rob Herring , Mark Rutland Subject: [PATCH 1/3] ARM: dts: NSP: Add dma-coherent to relevant DT entries Date: Tue, 25 Jul 2017 18:06:10 -0400 Message-Id: <1501020372-19607-2-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501020372-19607-1-git-send-email-jon.mason@broadcom.com> References: <1501020372-19607-1-git-send-email-jon.mason@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170725_150640_579300_BC1AF94F X-CRM114-Status: GOOD ( 12.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Cache related issues with DMA rings and performance issues related to caching are being caused by not properly setting the "dma-coherent" flag in the device tree entries. Adding it here to correct the issue. Signed-off-by: Jon Mason Fixes: 5fa1026a3e4d ("ARM: dts: NSP: Add PL330 support") Fixes: 3107fa5bcfb2 ("ARM: dts: NSP: Add SD/MMC support") Fixes: 13d04f20935c ("ARM: dts: NSP: Add AMAC entries") Fixes: 5aeda7bf8a1e ("ARM: dts: NSP: Add and enable amac2") Fixes: 17d517172300 ("ARM: dts: NSP: Add mailbox (PDC) to NSP") Fixes: 1d8ece6639e1 ("ARM: dts: NSP: Add EHCI/OHCI USB nodes to device tree") Fixes: bf2289bedef4 ("ARM: dts: NSP: Add Switch Register Access Block node") Fixes: 0f9f27a36d09 ("ARM: dts: NSP: Add I2C support to the DT") Fixes: 8dbcad020f2e ("ARM: dts: nsp: Add sata device tree entry") Fixes: 522199029fdc ("ARM: dts: NSP: Fix PCIE DT issue") --- arch/arm/boot/dts/bcm-nsp.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index 7204d1def23d..c8d734d9f5fc 100644 --- a/arch/arm/boot/dts/bcm-nsp.dtsi +++ b/arch/arm/boot/dts/bcm-nsp.dtsi @@ -207,6 +207,7 @@ clocks = <&iprocslow>; clock-names = "apb_pclk"; #dma-cells = <1>; + dma-coherent; }; sdio: sdhci@21000 { @@ -215,6 +216,7 @@ interrupts = ; sdhci,auto-cmd12; clocks = <&lcpll0 BCM_NSP_LCPLL0_SDIO_CLK>; + dma-coherent; status = "disabled"; }; @@ -224,6 +226,7 @@ <0x110000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = ; + dma-coherent; status = "disabled"; }; @@ -233,6 +236,7 @@ <0x111000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = ; + dma-coherent; status = "disabled"; }; @@ -242,6 +246,7 @@ <0x112000 0x1000>; reg-names = "amac_base", "idm_base"; interrupts = ; + dma-coherent; status = "disabled"; }; @@ -252,6 +257,7 @@ #mbox-cells = <1>; brcm,rx-status-len = <32>; brcm,use-bcm-hdr; + dma-coherent; }; nand: nand@26000 { @@ -325,6 +331,7 @@ compatible = "generic-ehci"; reg = <0x2a000 0x100>; interrupts = ; + dma-coherent; status = "disabled"; }; @@ -332,6 +339,7 @@ compatible = "generic-ohci"; reg = <0x2b000 0x100>; interrupts = ; + dma-coherent; status = "disabled"; }; @@ -364,6 +372,7 @@ #address-cells = <1>; #size-cells = <0>; + dma-coherent; status = "disabled"; /* ports are defined in board DTS */ @@ -376,6 +385,7 @@ #size-cells = <0>; interrupts = ; clock-frequency = <100000>; + dma-coherent; status = "disabled"; }; @@ -446,6 +456,7 @@ interrupts = ; #address-cells = <1>; #size-cells = <0>; + dma-coherent; status = "disabled"; sata0: sata-port@0 { @@ -483,6 +494,7 @@ */ ranges = <0x82000000 0 0x08000000 0x08000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi0>; @@ -519,6 +531,7 @@ */ ranges = <0x82000000 0 0x40000000 0x40000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi1>; @@ -555,6 +568,7 @@ */ ranges = <0x82000000 0 0x48000000 0x48000000 0 0x8000000>; + dma-coherent; status = "disabled"; msi-parent = <&msi2>;