Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp273035ybl; Thu, 23 Jan 2020 23:31:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxo43R/VnZXGx/AWFZ372YEJyFyVzaY+hMTli/2dC3E77pitwTcXxn79aVVRePY4i6cEjFz X-Received: by 2002:a05:6830:1f13:: with SMTP id u19mr1658744otg.237.1579851112579; Thu, 23 Jan 2020 23:31:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579851112; cv=none; d=google.com; s=arc-20160816; b=oPkOXwQvHdweZiDtisZakH5UWDoppbFt4/ht3LaR5jwsosMS09lI0jSkhz58MiaZku KmXptQjiVqdG1za8A+w2off7LsE3UDiWV2ImFi5xkKr7vdCz1PA9kysWg3lrPp5/rnp6 lu7nf3TSf9dhVq+Azu4uTrTexsX05Bf2NbQif2QZzLKnKbnRj7AdZ1O4gmvNrGt40tKv zQLK76vglOUtRjFL2meQ3A52ePS9C9U5CC02SHaLM15/fzmzTgQk7CClndJV+x3wB1c1 L0W++2LBNsCupDQsCQ7LfuQfiXzXTqrEZ4GqsctyNcZ94glb3xZGl7KzgFg2X9NEciKx HAXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=fwxS2W+1ZFB+/kTUBBZJRc5qB3L808Q64mTzFJjeHn8=; b=pTTB460CbCEahd9wCcLY4JazZE3NbwLftUhfaF8hv7kS3nqk8Lr2CByJgrFsYFp0u0 7A05Vys4pJlrtxCSAEA5iBB0vm54N/A5HBZ+7XSXZWSjMiqA7o5Rij5y3jQjGYKhAaWf Daht48qjo80KpX6zr+QaHuFZCl8SfW3XmEBzPpUbf8V+VQIVkKLwnQ8kpRUZO9+DoDCi FlXkyBq62tAiYW8HZ7XlLJ64flSUL8V4d+fW7xFY1a5co4t6YmOHCu0gpq87JJkPDhdI CUD1gKGylW1b772iSE2jSPuZPrY++j31EAZGbGzX5i9oLJ9gGCgGqQWE/bVaBixvTmTa RMug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XJGwy4YI; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19si495295oth.312.2020.01.23.23.31.41; Thu, 23 Jan 2020 23:31:52 -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=@ti.com header.s=ti-com-17Q1 header.b=XJGwy4YI; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730302AbgAXHat (ORCPT + 99 others); Fri, 24 Jan 2020 02:30:49 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:53954 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725817AbgAXHat (ORCPT ); Fri, 24 Jan 2020 02:30:49 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 00O7UgH4116840; Fri, 24 Jan 2020 01:30:42 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1579851042; bh=fwxS2W+1ZFB+/kTUBBZJRc5qB3L808Q64mTzFJjeHn8=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=XJGwy4YIdXgSZk88O/d8FgdrO9f8V34sMnIWgUjqUYAl0K8aJBreAXyTR3TSBXm+S gJ88SFhdSEj+aFTqP1QRtyL6zJZO21RqQ4lK/CgsVVzKU6UbxJE4gUtQWGkXKiOY5d tkKMuPCkzdsMqZNJJFNsJKCnIr9/AOWXFg5IqHv8= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 00O7UgZv124740; Fri, 24 Jan 2020 01:30:42 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Fri, 24 Jan 2020 01:30:41 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Fri, 24 Jan 2020 01:30:41 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 00O7Ud4h086929; Fri, 24 Jan 2020 01:30:39 -0600 Subject: Re: [PATCH v2] dmaengine: Create symlinks between DMA channels and slaves To: Vinod Koul , Geert Uytterhoeven CC: Dan Williams , , Linux-Renesas , Linux Kernel Mailing List References: <20200117153056.31363-1-geert+renesas@glider.be> <1cdc4f71-f365-8c9e-4634-408c59e6a3f9@ti.com> <20200122094002.GS2841@vkoul-mobl> <20200124061359.GF2841@vkoul-mobl> From: Peter Ujfalusi Message-ID: <876eb72f-db74-86b5-5f2c-7fc9a5252421@ti.com> Date: Fri, 24 Jan 2020 09:31:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200124061359.GF2841@vkoul-mobl> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. gpiolib have a nice implementation for us to lift and adapt. - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki