Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3157644ybl; Sun, 26 Jan 2020 21:09:41 -0800 (PST) X-Google-Smtp-Source: APXvYqzqtwhcHWRSVETd0YYGEUMYTlQFiRoNgBHF/JeN5mp7YSbp94UVXWRQdDaHN4goFqRFQJa1 X-Received: by 2002:aca:d6c8:: with SMTP id n191mr6717157oig.103.1580101781366; Sun, 26 Jan 2020 21:09:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580101781; cv=none; d=google.com; s=arc-20160816; b=SBnBlJxN3mg2wm6hxPQQAr0P7jBCzfwSHb8eLaMi9LYKGYXCyPJpyRI0Y8i4fivVbm rs2y7I5+tZdfjeDUuRgHuIAsPBrzoo3rtr4IOdjSPW9P3s2QLwPiQkySfZs+GIcpPCXA mDc8sBqTng3Odsc7/ixI1q09vnhkV8BZofvdEmsJynaCaTd0CHN6L6+DYLZ/UyOx2Qbw zIZZXQqMYs63kniVWlLPl0mxJcAE+tY22lf2eVMKkHPPr5YHl2g43Bg4kewpLknNYRpu EeU9gRg5cgKXA2vtgOOEaqsA7EEytH+lE9puGJPXd0saJqhO+H4dsGQ5rvgdzysqHtA+ OE7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ar5QDTr+5uBGVI9aWFZQcakTdw44qdalpDv49eNch2Q=; b=x6+nX/OT69S70xAwYApvfJWya3GY0h6v709/EjrYuR8QSYAqrt6j2pWGaFktDl7DfT Ys32A3sgTsqe7J4FSXCf3SAmDzAOMK8VUVW3I1eAPyDx5QoexUDc5b6cQ6YI+a6EAgpB G1tWdagve6Fg9YmY7DgHLg/5Fmi2ytxcW16UNGlxr9cn2TdCZ5eOW6pfc/n49EzOuADs T1zQ+Tb3//4Xb9QN6yDdPw327+6A+npfuduKjLBVhCAz62Sx6vyS3c2FMo0cgIr+3hgs 0sndGInclah46FLY8vUxu5ip2fjlau/GtBMxFUniajJaBw3n4+sszMSOghDC89uQdVul vCbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Wx8aPOpT; 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 e73si3130793oib.145.2020.01.26.21.09.29; Sun, 26 Jan 2020 21:09:41 -0800 (PST) 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=Wx8aPOpT; 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 S1727107AbgA0FIf (ORCPT + 99 others); Mon, 27 Jan 2020 00:08:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:57590 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbgA0FIe (ORCPT ); Mon, 27 Jan 2020 00:08:34 -0500 Received: from localhost (unknown [122.181.201.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9E87720716; Mon, 27 Jan 2020 05:08:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580101714; bh=sh4gpOdiYLotpOkB88cXx9+mmjB24ViBFWqv5LExZ4k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wx8aPOpTS+Kb2Sy5Wmlm+U+6x5esBaImXY6fF8DDRxJiOuDQ2Gthx9hRn5n1quRzx hnI7vjTugmK/dGJ8BV7fRkGx9TGps7+BxXI0/Ho2D7B7MUdXVpDw1QOr8OUUxTnVgM FGMR+Aml/vS6dPUaDOXay9A0w9g3UwsPu1iErjGY= Date: Mon, 27 Jan 2020 10:38:28 +0530 From: Vinod Koul To: Peter Ujfalusi Cc: Geert Uytterhoeven , Dan Williams , dmaengine@vger.kernel.org, Linux-Renesas , Linux Kernel Mailing List Subject: Re: [PATCH v2] dmaengine: Create symlinks between DMA channels and slaves Message-ID: <20200127050828.GH2841@vkoul-mobl> References: <20200117153056.31363-1-geert+renesas@glider.be> <1cdc4f71-f365-8c9e-4634-408c59e6a3f9@ti.com> <20200122094002.GS2841@vkoul-mobl> <20200124061359.GF2841@vkoul-mobl> <876eb72f-db74-86b5-5f2c-7fc9a5252421@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <876eb72f-db74-86b5-5f2c-7fc9a5252421@ti.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24-01-20, 09:31, Peter Ujfalusi wrote: > Vinod, Geert, > > On 24/01/2020 8.13, Vinod Koul wrote: > > On 22-01-20, 15:10, Vinod Koul wrote: > > > >> I like the idea of adding this in debugfs and giving more info, I would > >> actually love to add bytes_transferred and few more info (descriptors > >> submitted etc) to it... > >> > >>>> This way we will have all the information in one place, easy to look up > >>>> and you don't need to manage symlinks dynamically, just check all > >>>> channels if they have slave_device/name when they are in_use (in_use w/o > >>>> slave_device is 'non slave') > >>>> > >>>> Some drivers are requesting and releasing the DMA channel per transfer > >>>> or when they are opened/closed or other variations. > >>>> > >>>>> What do other people think? > >>> > >>> Vinod: do you have some guidance for your minions? ;-) > >> > >> > >> That said, I am not against merging this patch while we add more > >> (debugfs)... So do my minions agree or they have better ideas :-) > > > > So no new ideas, I am going to apply this and queue for 5.6, something > > is better than nothing. > > My only issue with the symlink is that it is created/removed on some > setups quite frequently as they request/release channel per transfer or > open/close. > It might be a small hit in performance, but it is going to be for them. > > > And I am looking forward for debugfs to give better picture, volunteers? > > Well, I still feel that the debugfs can give better view in one place > and in production it can be disabled to save few bytes per channel and > code is not complied in. > > If we have the debugfs we can remove some of the sysfs devices files > probably. Sure I dont mind if we move to something better :) We went from zero to something and can do better! Thanks -- ~Vinod