From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D505CC433EF for ; Mon, 9 Sep 2019 11:18:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B40EF2086D for ; Mon, 9 Sep 2019 11:18:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391046AbfIILSW (ORCPT ); Mon, 9 Sep 2019 07:18:22 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:42633 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731115AbfIILSW (ORCPT ); Mon, 9 Sep 2019 07:18:22 -0400 Received: by mail-ot1-f65.google.com with SMTP id c10so12017613otd.9; Mon, 09 Sep 2019 04:18:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zh4V8eaNqjPb0Ic/4Yf7AfafCdOdwH/svi7VuLX2orY=; b=lLN11C23xfAH7i8bFQztnzIUJN81i90GGniVnzsT2bmlyFYCLNrQGkWJob05jaN5Tc 1+AK6jUxUmy+WuYw7ruNK11Ua85dawghegS6qiFg85Unr4yqzA7ar2vr3qf/DXW6KPp9 KVp2ZL96vMi/niRA20+Zrbk8bfuq7BSsP5NhpGIQJlpQUrApK1PRRwTT+5KceYW7q6v5 DgZuGyr5myrXrko2UYb1g5rrEuQ01tQWUYyV1s99xjGpl4pZg8ylnkiHUP2869R5WO5G wS7NWD6eKWAmDOFFJzEnQsEogmxFg62zFdpuF8EAGlLoFeOeOteCQ5wqluIM3G51rHV+ BD/A== X-Gm-Message-State: APjAAAVbDR8NDNeUcE/mvg7XAZroA0fhM/l2EWgBGwRfO0TR+evpDvxi Ys+Bh9rs/QEwzaJMaTHtPoZ6NLXgBHx9pJRMzBQ= X-Google-Smtp-Source: APXvYqxoJ5YE9dczWZW9yBoBQ0LHRTHR+SjV1aqmUHb5bh9Jk8Mb4XXtlEmXIZODlEij2FTkD0l0LwW/9wgClhVgq6E= X-Received: by 2002:a9d:5a06:: with SMTP id v6mr18090742oth.250.1568027900747; Mon, 09 Sep 2019 04:18:20 -0700 (PDT) MIME-Version: 1.0 References: <20190907161634.27378-1-marek.vasut@gmail.com> In-Reply-To: <20190907161634.27378-1-marek.vasut@gmail.com> From: Geert Uytterhoeven Date: Mon, 9 Sep 2019 13:18:07 +0200 Message-ID: Subject: Re: [PATCH] arm64: dts: renesas: Add /soc dma-ranges To: Marek Vasut Cc: Linux ARM , Marek Vasut , Geert Uytterhoeven , Wolfram Sang , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-Renesas Content-Type: text/plain; charset="UTF-8" Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Hi Marek, On Sat, Sep 7, 2019 at 6:16 PM wrote: > From: Marek Vasut > > Add dma-ranges property into /soc node to describe the DMA capabilities > of the bus. This is currently needed to translate PCI DMA ranges, which > are limited to 32bit addresses. > > Signed-off-by: Marek Vasut > --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi > +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi > @@ -330,6 +330,7 @@ > #address-cells = <2>; > #size-cells = <2>; > ranges; > + dma-ranges = <0 0x40000000 0 0x40000000 0 0xc0000000>; Shouldn't the length be 0x80000000 (for all SoCs)? Or should we allow DMA to internal System RAM, too? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds