Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4812688rwi; Sat, 22 Oct 2022 17:18:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7yuehg8Jei93SfityYS6H73ZuVwnT8Dm0cXrdSoL4YyIr0dfIUnho6FH1ZAZTQQo0jjINC X-Received: by 2002:a05:6a00:3699:b0:565:ef61:ee0d with SMTP id dw25-20020a056a00369900b00565ef61ee0dmr1471297pfb.73.1666484336001; Sat, 22 Oct 2022 17:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666484335; cv=none; d=google.com; s=arc-20160816; b=SFCWIoVPanE6ryrzt129pDFgsU+aEgSh+fc/IXrkDLI4rwB5jRA0JD7zbzkg02R8Gp UdxxM2E3Ce9MjFcUaC8Zy+qGyc9JiS3BrAAhMOOYf+KEBqV9HJLhWjsGsCUy5fNJjt5V /pe/NCcAWa4HhbBLH0bYjk5tysicHQjFBUZGlKfRU9YXyTDw3PhWCKsSmzxypaQb+mOU ZQnBtaa0CzfhgXmhb7+1WHIuGVmC9to71xrQr3MhpFGOhQTsl0hQoAVJw6zgJ7RYeLlU c171ntBxRj7+UoPfGtgkcVhtDonB59XhXcvL6r1qz3NIhW/XfAmdh+PVE7dBfagqGcN4 qYGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=C6At1H3szjViJnkV3q1VRKzRG4v2Bj/cByCEwQ1bgyM=; b=To8xYxF+qgIOtg0qyN/f8OYb150rSrJ3ZRihT5MBi8ER39aUfb4hJpYazJokRbVhuA dCQ7Ev+CWFnAY38SWgonja+fyO/jOqxyA27ZeoJ/QN3jMpU/SkgPasdHVvdqnwvX0uPr Nu1CU+vtVfIt3rNBlMCz2r7jslUHxW2iSHWkSx+z+9CYrNb7ji1EWHiJ08Lkhipxr8aA KQTbFlyVrWMCOAx64SpGGfqxguGPUML/6GzVPBm16QNzz8ZOQmmB6j8p5CMlpWG+x+me ZP9D7R0UCbRRCK3b2i3sYhrk+zBzXVIYoo9DQQ6Fo5LEFPg7r1MuiQZDv+JmYTlFl1Z2 7qEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=VQ7mbzj5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a170902eb8300b00181f1f4fccesi28491582plg.327.2022.10.22.17.18.44; Sat, 22 Oct 2022 17:18:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=VQ7mbzj5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229799AbiJVXkh (ORCPT + 99 others); Sat, 22 Oct 2022 19:40:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbiJVXkf (ORCPT ); Sat, 22 Oct 2022 19:40:35 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D2A4785A1 for ; Sat, 22 Oct 2022 16:40:33 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id by36so8439306ljb.4 for ; Sat, 22 Oct 2022 16:40:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=C6At1H3szjViJnkV3q1VRKzRG4v2Bj/cByCEwQ1bgyM=; b=VQ7mbzj5hN8t52IfZwXU2t2B95RRp7vmkiDpjZTVDaEI1x0VBP/iysdDlLGUa6wPji U26MuG7nEDCxDQwr4XjJqN2lglZacSeRqq0UYk1GLdQiE8y1BqYHPFtR5DstYTRl6Zjh +thhymXHeveBJ8g4OBx7law2Q8osxes7zx8rA+3QoT4iY/4Ux44zYQgZTL7W443zyKjc LLxHO2qd4Zw84SYawq25Tc0tkXK+FwPfaqh36GjAT0tuNpnq9aK3APIr7L0fojratQIo iMpsILAzdk6v4zHxdclu/LFOTEJDXWydP7zQ7IsyTdt9g2m6OxUSFM8qh4pzevB2ThQV 82iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=C6At1H3szjViJnkV3q1VRKzRG4v2Bj/cByCEwQ1bgyM=; b=w346s00S02L+24t/bWj1FMjJJNfskDL8hMZSwdx4iP4wRYZdnBQFv6uWQ5EJgK1UZ+ I4fBu0VLZVajpG3cD+ssjo+Fi/Qmm2jSV7ezpEoPBDiRsA8nLfD6nRIQDEReEPlrVyrX HaXhbayMGi3tkS+H8WuPPbMgInd1wqx6iT7UAQ2C1Y0x8iwRr+VMMG500YugxpeflC/o uDcnsBLhERv3BqIO7FA5vETdhllRszEX7UUpOKQTshUsL0xHqJLhmP6d9WsDawrN1zeB 3UDwztmMPyFHS2Pi4/278wZuVrA9lzby3t1WwpIgarURxtTnR7ooK2mdtAoACElpx+3X Uc/g== X-Gm-Message-State: ACrzQf2mDvMEVXjo9ZwVKQ9bdOCAtcAOsO6vyw0xJ/RHSQxOjmhww9JN o9PP9dVRTo1FEl+VPO8Mt3r3Nw== X-Received: by 2002:a2e:97d7:0:b0:277:4c7:c938 with SMTP id m23-20020a2e97d7000000b0027704c7c938mr571272ljj.294.1666482031813; Sat, 22 Oct 2022 16:40:31 -0700 (PDT) Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id e10-20020a05651236ca00b004949f7cbb6esm3752602lfs.79.2022.10.22.16.40.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Oct 2022 16:40:31 -0700 (PDT) From: Marcin Wojtas To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, hch@lst.de, kabel@kernel.org, jaz@semihalf.com, Marcin Wojtas Subject: [PATCH] ARM: dts: armada-38x: Mark devices as dma-coherent Date: Sun, 23 Oct 2022 01:40:24 +0200 Message-Id: <20221022234024.87475-1-mw@semihalf.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Armada 38x platforms marks all devices as coherent via mvebu_hwcc_notifier(), whereas the standard way to determine this is by of_dma_is_coherent(). Reflect the hardware capabilities by adding 'dma-coherent' properties to the device tree. Signed-off-by: Marcin Wojtas --- arch/arm/boot/dts/armada-380.dtsi | 1 + arch/arm/boot/dts/armada-385.dtsi | 1 + arch/arm/boot/dts/armada-38x.dtsi | 1 + 3 files changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/armada-380.dtsi b/arch/arm/boot/dts/armada-380.dtsi index ce1dddb2269b..25d17550e2fc 100644 --- a/arch/arm/boot/dts/armada-380.dtsi +++ b/arch/arm/boot/dts/armada-380.dtsi @@ -38,6 +38,7 @@ pcie { compatible = "marvell,armada-370-pcie"; status = "disabled"; device_type = "pci"; + dma-coherent; #address-cells = <3>; #size-cells = <2>; diff --git a/arch/arm/boot/dts/armada-385.dtsi b/arch/arm/boot/dts/armada-385.dtsi index 83392b92dae2..6fb8c254cbdc 100644 --- a/arch/arm/boot/dts/armada-385.dtsi +++ b/arch/arm/boot/dts/armada-385.dtsi @@ -37,6 +37,7 @@ pciec: pcie { compatible = "marvell,armada-370-pcie"; status = "disabled"; device_type = "pci"; + dma-coherent; #address-cells = <3>; #size-cells = <2>; diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi index 446861b6b17b..5801873dfcbe 100644 --- a/arch/arm/boot/dts/armada-38x.dtsi +++ b/arch/arm/boot/dts/armada-38x.dtsi @@ -102,6 +102,7 @@ internal-regs { #address-cells = <1>; #size-cells = <1>; ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>; + dma-coherent; sdramc: sdramc@1400 { compatible = "marvell,armada-xp-sdram-controller"; -- 2.29.0