Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp919500ybg; Fri, 18 Oct 2019 09:16:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyaIxONVlBzZu3IYJRcpy8A8SDOfgV/ZmVBCYc4VU5Pp+TiGQcroJ9W6OxapAf+0FM1kFPk X-Received: by 2002:a17:906:4806:: with SMTP id w6mr9847805ejq.44.1571415366046; Fri, 18 Oct 2019 09:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571415366; cv=none; d=google.com; s=arc-20160816; b=QIVvRYi/szo4ICDebFLrivK24yAYL3ey6QDdIWz+fYxkX5mHPwbVx8aimzZhWL21rC Ijpf4IRQ7XhIx0QorYRXvoOVo4tkv1GedVh1c8+6VhctzcmLlu92VcFZhONZCJqe+ISP EH/9gaIMBJpVTRYS83HCrfQoOZRFyufwuHY6iiFDCCF9voraYTzyPF/L76H2E3UDP9AB oFMgBEebPYRa612gubR1OUg9o+Cx0VnLn8XovErm8bj8MyOLMVL4EpPe/kVhpipIW0Jm 60hHeDuZuqTAI+mSOT/YUKgu1uL1xqj7/f1aF5QW5hmIfwyPSSigE7MceGEs/HoO4/oJ 982w== 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=5u20USY/s4HHNK/WJjZUp9XjZ4TBr++4uGGKtVZYWvQ=; b=eyXhyxCX7SMtE399mk48/1Neih4PFXur0pJdmWTfIjq8pg8B2K9BQdx2rltfXmIvU5 4qwWxQy+S2o/KfkeJBb6DrOogCvJz3Rrln06ZZ0ZR7WzlW/JUsNIMfw1dqV8VSbc3kH6 fH2mfrl0xKN665KpseW5/ROwkpNiVUFqfuGJtupVmliXD7MUA9BP7I2GuMTPGxPoHuR+ UyD9c46lI4P2F9qwf4FNueZ5AQJZudyTdasbrYP6OV/63sk9qYRv24RbTq8DzGO67NlM FRvJghS8ErUMEloxBYeqUZ7vyQTO+AJzkAsjSO6kE5fCQq+TWImlzZaspGUAKiJ1+u4Q pOkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=B3STYhDz; 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 b35si4532008edb.204.2019.10.18.09.15.43; Fri, 18 Oct 2019 09:16:06 -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=B3STYhDz; 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 S2436864AbfJQOEK (ORCPT + 99 others); Thu, 17 Oct 2019 10:04:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:38362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727542AbfJQOEK (ORCPT ); Thu, 17 Oct 2019 10:04:10 -0400 Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) (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 7258621848; Thu, 17 Oct 2019 14:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571321048; bh=Q+CIbW5hWN6LU9dHP1eWy5eKT4TsIQ0X62levLVmljg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=B3STYhDzZ4yKr8riMTRMxdXQ18ObBJlcjzutrorC5ZT6vGzaADCEN3oTnBA962ooX RJ0Dfvgi2HxIEflMVaNQ33N2DhCDnOI23So8VfH1iS5DQW5p3Umhe0CwIJVl0hnlTX GZSuTcMxvr3TtpzFXPtsycB2zTUR7B66JewywZ/o= Received: by mail-yb1-f177.google.com with SMTP id t4so731600ybk.3; Thu, 17 Oct 2019 07:04:08 -0700 (PDT) X-Gm-Message-State: APjAAAWDQBYHcX6JFcpUnNoDA6ntka/jRCiPL4eOAHrdOoUy4hJGm/qc IbLtc+Uxedq6etoLxd6jzagsJyGQV0w34dQ/0g== X-Received: by 2002:a25:3ce:: with SMTP id 197mr2185522ybd.255.1571321047509; Thu, 17 Oct 2019 07:04:07 -0700 (PDT) MIME-Version: 1.0 References: <20191001061704.2399-1-peter.ujfalusi@ti.com> <20191001061704.2399-8-peter.ujfalusi@ti.com> <20191010175232.GA24556@bogus> In-Reply-To: From: Rob Herring Date: Thu, 17 Oct 2019 09:03:55 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 07/14] dt-bindings: dma: ti: Add document for K3 UDMA To: Peter Ujfalusi Cc: Nishanth Menon , devicetree@vger.kernel.org, Grygorii Strashko , Lokesh Vutla , Keerthy , "linux-kernel@vger.kernel.org" , Tero Kristo , Tony Lindgren , Vinod , Santosh Shilimkar , "open list:DMA GENERIC OFFLOAD ENGINE SUBSYSTEM" , Dan Williams , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" 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 Tue, Oct 15, 2019 at 12:29 PM Peter Ujfalusi wrote: > > Rob, > > On 10/11/19 10:30 AM, Peter Ujfalusi wrote: > > > > I have already moved the TR vs Packet mode channel selection, which does > > make sense as it was Linux's choice to use TR for certain cases. > > > > If I move these to code then we need to have big tables > > struct psil_config am654_psil[32767] = {}; > > struct psil_config j721e_psil[32767] = {}; > > After thinking about this a bit more, I think we can move all the PSI-L > endpoint configuration to the kernel as not all the 32767 threads are > actually in use. Sure it is going to be some amount of static data in > the kernel, but it is an acceptable compromise. > > The DMA binding can look like this: > > dmas = <&main_udmap 0xc400>, > <&main_udmap 0x4400>; > dma-names = "tx", "rx"; > > or > dmas = <&main_udmap 0x4400 UDMA_DIR_TX>, > <&main_udmap 0x4400 UDMA_DIR_RX>; > dma-names = "tx", "rx"; > > If I keep the direction. > 0xc400 is destination ID, which is 0x4400 | 0x8000 as per PSI-L > specification. > In the TRM only the source threads can be found as a map (thread IDs < > 0x7fff), but the binding document can cover this. > > This way we don't need another dtsi file and I can create the map in the > kernel. > > This will hide some details of the HW from DT, but since the PSI-L > thread configuration is static in hardware I believe it is acceptable. > > However we still have uncovered features in the binding or in code, like > a case when the RX does not have access to the DMA channel, only flows. > Not sure if I should reserve the direction parameter as an indication to > this or find other way. > Basically we communicate on the given PSI-L thread without having a DMA > channel as other core is owning the channel. > > What do you think? Seems like a reasonable solution though I don't really follow the last issue. Rob