Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6835639ybf; Fri, 6 Mar 2020 05:31:18 -0800 (PST) X-Google-Smtp-Source: ADFU+vun14JPnY3EM1bp/Nm8aDQyk40grzwAKkSHY4y17yvJOaeOG9X/gtsuLgBsc/rWdm6Em88D X-Received: by 2002:aca:37c3:: with SMTP id e186mr2619684oia.155.1583501478547; Fri, 06 Mar 2020 05:31:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583501478; cv=none; d=google.com; s=arc-20160816; b=D7FiUfiTewCQCZcEmSkKlHzlUYCjIcCC8F44fM2ZKrfz62OkKq8CzShTZ53l2iY7mJ KdYBKFQ4GSHZnYBzLyfwa7o15+hxXm5Aea3nYTafaRbdw8J/884pY+M8RaTEkudcgwpM whKJFSvx6IZy2kZmSCt6w3KvVBz60ihx4PWJSEFK7iWpezPLCFeF6CGaw3WxvBPtU/ta 1LpLeVgHpHDUJsfB/DI4HbbjxIc77Cc/Q1OykWL8Zg1Yg3gjgOzcyIDmyjvCVmKXYZEr T7Q/SAYqzZhKBVB+UFUpy9/MTibrJ9eNg5m+N+t5VlS2tTd8/uIYwo3R+x3orHSWyqaH qsew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YgVheW7KBNe3g7FSUJf9WbA1kPUTePlOth7LgnIczGM=; b=LiIBpeRZQ0nqEkf5FvPyuRk+QNvQ+m+5M1feiSLCtuddpnDBdt415oMAj8pa/JXwFH gwP95mPtfKNfe4DJRYVe5aAoXiKQUNN3LEB81usJvOyuEDLqowu4O55REyJzMRmMzfhS n2rj8iBLY1qldarvwRGw5fpp7QN28+4fS8IPyBHUHzqjQlddv+laZVYAKmW+XtheUiCo PRuwQyIwHc3WRKI1uBQJWAupwHF5Z7rMStXLUxLjjGDB91nofyfNUzKt8fAwpkpZ/dfQ FLkvxyt82p1c13etcXOvS58OzHVlwsr9cWG8j6EfFla0VPi10BwjhBbhzQURoDqvZVuw b5DA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j65si1347261otc.308.2020.03.06.05.31.05; Fri, 06 Mar 2020 05:31:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727066AbgCFNak (ORCPT + 99 others); Fri, 6 Mar 2020 08:30:40 -0500 Received: from mga07.intel.com ([134.134.136.100]:45451 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbgCFNak (ORCPT ); Fri, 6 Mar 2020 08:30:40 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2020 05:30:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,522,1574150400"; d="scan'208";a="413884310" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga005.jf.intel.com with ESMTP; 06 Mar 2020 05:30:34 -0800 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jAD3j-007MyC-TM; Fri, 06 Mar 2020 15:30:35 +0200 Date: Fri, 6 Mar 2020 15:30:35 +0200 From: Andy Shevchenko To: Sergey.Semin@baikalelectronics.ru Cc: Serge Semin , Alexey Malahov , Maxim Kaurkin , Pavel Parkhomenko , Ramil Zaripov , Ekaterina Skachko , Vadim Vlasov , Thomas Bogendoerfer , Paul Burton , Ralf Baechle , Viresh Kumar , Dan Williams , Vinod Koul , Rob Herring , Mark Rutland , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] dmaengine: dw: Take Baikal-T1 SoC DW DMAC peculiarities into account Message-ID: <20200306133035.GB1748204@smile.fi.intel.com> References: <20200306131048.ADBE18030797@mail.baikalelectronics.ru> <20200306132912.GA1748204@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200306132912.GA1748204@smile.fi.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 06, 2020 at 03:29:12PM +0200, Andy Shevchenko wrote: > On Fri, Mar 06, 2020 at 04:10:29PM +0300, Sergey.Semin@baikalelectronics.ru wrote: > > From: Serge Semin > > > > Baikal-T1 SoC has an DW DMAC on-board to provide a Mem-to-Mem, low-speed > > peripherals Dev-to-Mem and Mem-to-Dev functionality. Mostly it's compatible > > with currently implemented in the kernel DW DMAC driver, but there are some > > peculiarities which must be taken into account in order to have the device > > fully supported. > > > > First of all traditionally we replaced the legacy plain text-based dt-binding > > file with yaml-based one. Secondly Baikal-T1 DW DMA Controller provides eight > > channels, which alas have different max burst length configuration. > > In particular first two channels may burst up to 128 bits (16 bytes) at a time > > while the rest of them just up to 32 bits. We must make sure that the DMA > > subsystem doesn't set values exceeding these limitations otherwise the > > controller will hang up. In third currently we discovered the problem in using > > the DW APB SPI driver together with DW DMAC. The problem happens if there is no > > natively implemented multi-block LLP transfers support and the SPI-transfer > > length exceeds the max lock size. In this case due to asynchronous handling of > > Tx- and Rx- SPI transfers interrupt we might end up with Dw APB SSI Rx FIFO > > overflow. So if DW APB SSI (or any other DMAC service consumer) intends to use > > the DMAC to asynchronously execute the transfers we'd have to at least warn > > the user of the possible errors. > > > > Finally there is a bug in the algorithm of the nollp flag detection. > > In particular even if DW DMAC parameters state the multi-block transfers > > support there is still HC_LLP (hardcode LLP) flag, which if set makes expected > > by the driver true multi-block LLP functionality unusable. This happens cause' > > if HC_LLP flag is set the LLP registers will be hardcoded to zero so the > > contiguous multi-block transfers will be only supported. We must take the > > flag into account when detecting the LLP support otherwise the driver just > > won't work correctly. > > > > This patchset is rebased and tested on the mainline Linux kernel 5.6-rc4: > > commit 98d54f81e36b ("Linux 5.6-rc4"). > > Thank you for your series! > > I'll definitely review it, but it will take time. So, I think due to late > submission this is material at least for v5.8. One thing that I can tell immediately is the broken email thread in this series. Whenever you do a series, use `git format-patch --cover-letter --thread ...`, so, it will link the mail properly. -- With Best Regards, Andy Shevchenko