Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp962126ybi; Fri, 14 Jun 2019 06:21:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWxLK78U0fQyZM1iSyYDXm6g+uHMHhQsnl0KY7XOTg/u0fyl9T4BvmplZLTJS/bemK3smO X-Received: by 2002:a17:902:e6:: with SMTP id a93mr50912210pla.175.1560518515615; Fri, 14 Jun 2019 06:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560518515; cv=none; d=google.com; s=arc-20160816; b=t5BVXwPbndoT/as0xuiuOiCLHDoZj6ir0LPk6ao8/08SeZkmUVoTQZQhZCpjEEnO5R PQ+WYbBaSHxVDwjiE/PWWoGpdRf0ZbCx4zHwWIGKaFj7A8GoDlovxecCG/3UqOjQipDd lX0fUDWg3jZKwbfVfRkrFs3bLNERTssOz5aQHMmQQhDtqRQDq1JDviW/4vk9cHvAtpMi 0zC/LmUcR2PosHvV481P3xj7ZY6DzmZnZ0fjs76lWdhUnkMqt1XrGvhbO60Pa0A5IDUB xGy2Rl0AcYZVFKqUHUIgKmhrGuUfPP5sbBpFXLjT8n58rNe4WkoLKYzBNJsqMIhq7S0P ShoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aVchvmTa9PP+nuPudsUActI48Tdw5WcdPGNUZxvFjZM=; b=HmuHE09adEb7bHMSJdUQ587LNLakS6N8mKay5Qgj1bC/+kvVNFd/AV93UFZm8z2f3C bInfylyCOkGgHSfa3OxHu2sMMpUJQL1aXn5ukGipeMv5zVqXg77xa4IYwC/Hzonq1JaF HmT8TkZeaLn6+bUXHIzxkdv1YzE0E1UPbejkHXtDTQiyyG93MV1C90XwF5+sYwWHj5vb XY7N11rzL/qy+1zTDTExnV4bi/U//r790juH2oYMuXifSa2Lg60lGRbA0wtPJvpIRGFn HDWzGcYnCtJVyKBX4CwxLLbdeT809wdzv419qsdkTGk9xc7qyd4Aw6skaMY7BTQy3/96 lBJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="R/OivYyc"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y23si2587031pgj.185.2019.06.14.06.21.39; Fri, 14 Jun 2019 06:21:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="R/OivYyc"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727946AbfFNNVM (ORCPT + 99 others); Fri, 14 Jun 2019 09:21:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:57308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727696AbfFNNVM (ORCPT ); Fri, 14 Jun 2019 09:21:12 -0400 Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7F5F121537; Fri, 14 Jun 2019 13:21:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560518470; bh=zSqDfvTWi/91oRnFPmD+sDE1OD8meYbhenxAA0rkJpQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=R/OivYycKXCrR4qbnGPXhaeUCc8L4u/YFYrA52THSyhzc7IZ/wON5glZJ4BYkkz28 cM5y1K7zmj5znbVPQ+rM+TGktxk5HKIq8cBKMnjEirB7nBD5wAU2x7Zo2fEayOuA1b 9uyJnkaPsk0m63CXpFrWN38NQwOUSd8J1wr282ZI= Received: by mail-qt1-f181.google.com with SMTP id a15so2372779qtn.7; Fri, 14 Jun 2019 06:21:10 -0700 (PDT) X-Gm-Message-State: APjAAAWmQDFpaIyIbrVi3zBueyUJigPC0jRCM0qSLAg+bMtNqajvFrQ+ TOOBSy+JbXcLrg6VJoYjF4Tb7ZSgN944/fNT0w== X-Received: by 2002:aed:3f10:: with SMTP id p16mr15589221qtf.110.1560518469746; Fri, 14 Jun 2019 06:21:09 -0700 (PDT) MIME-Version: 1.0 References: <20190506123456.6777-1-peter.ujfalusi@ti.com> <20190506123456.6777-10-peter.ujfalusi@ti.com> <20190613181626.GA7039@bogus> In-Reply-To: From: Rob Herring Date: Fri, 14 Jun 2019 07:20:57 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 09/16] dt-bindings: dma: ti: Add document for K3 UDMA To: Peter Ujfalusi Cc: Vinod , Nishanth Menon , Santosh Shilimkar , Dan Williams , "open list:DMA GENERIC OFFLOAD ENGINE SUBSYSTEM" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Grygorii Strashko , Lokesh Vutla , Tero Kristo , Tony Lindgren Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 13, 2019 at 2:33 PM Peter Ujfalusi wrote: > > Rob, > > On 13/06/2019 21.16, Rob Herring wrote: > >> +Remote PSI-L endpoint > >> + > >> +Required properties: > >> +-------------------- > >> +- ti,psil-base: PSI-L thread ID base of the endpoint > >> + > >> +Within the PSI-L endpoint node thread configuration subnodes must present with: > >> +ti,psil-configX naming convention, where X is the thread ID offset. > > > > Don't use vendor prefixes on node names. > > OK. > > >> + > >> +Configuration node Required properties: > >> +-------------------- > >> +- linux,udma-mode: Channel mode, can be: > >> + - UDMA_PKT_MODE: for Packet mode channels (peripherals) > >> + - UDMA_TR_MODE: for Third-Party mode > > > > This is hardly a common linux thing. What determines the value here. > > Unfortunately it is. No, it's a feature of your h/w and in no way is something linux defined which is the point of 'linux' prefix. > Each channel can be configured to Packet or TR mode. For some > peripherals it is true that they only support packet mode, these are the > newer PSI-L native peripherals. > For these channels a udma-mode property would be correct. > > But we have legacy peripherals as well and they are serviced by PDMA > (which is a native peripheral designed to talk to the given legacy IP). > We can use either packet or TR mode in UDMAP to talk to PDMAs, it is in > most cases clear what to use, but for example for audio (McASP) channels > Linux is using TR channel because we need cyclic DMA while for example > RTOS is using Packet mode as it fits their needs better. > > Here I need to prefix the udma-mode with linux as the mode is used by > Linux, but other OS might opt to use different channel mode. So you'd need ,udma-mode? That doesn't work... If the setting is per OS, then it belongs in the OS because the same dtb should work across OS's. > The reason why this needs to be in the DT is that when the channel is > requested we need to configure the mode and it can not be swapped > runtime easily between Packet and TR mode. So when the client makes the channel request, why doesn't it specify the mode? Rob