Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2551560ybk; Tue, 12 May 2020 02:11:44 -0700 (PDT) X-Google-Smtp-Source: APiQypJkiMSO/Qz/KOKfdN4kJHZS4KNx9jnB3FXc1IJPkQL/571xGSJF5GHrYhf1doShVcqK7ln6 X-Received: by 2002:a05:6402:221c:: with SMTP id cq28mr16001662edb.50.1589274704083; Tue, 12 May 2020 02:11:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589274704; cv=none; d=google.com; s=arc-20160816; b=LiUlX/fxe9geodM7/JYPtyqFfOhsHRpIGd9KB4I9EicTL1jySHBu13qTcykhk27x4j okvBmnXDiPwWUhssxLIMuXBARrDLwGVJWmyus4ihgO/k9qAHNIs8J1hAgV0vdVhUa1d4 8SAkcOBP6F1GDU7XhsobMZa7ymXtB7rzGNao+/UZGoBKLpXeVnbFfl8HJuzXjzkWabMT 9G6vc2YjbVkBiO/LIOOQD0QxykWUWCfLwhJLS2NsjQ0CRhLy2bUhiHL5yfRahTKv/JMO dEt8GDtMRgUEhrlcOrgp7EflbMJ5OtJE5tDh3GI4Z5wskn7HH8ZRZ+LVA2h/37S1ZQIn 6Jlw== 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:ironport-sdr:ironport-sdr; bh=xlQ16EIrd5iQsnMlAvyNW2LG3F+rG5bSnPTbOamwKG8=; b=Dwo2X09bwWN3RitEeC2QSXyWquArsZSS+Enzei4qmp0yGPABGyQdIGqXjTzTRzS7Z1 4KbUWY4NJWApi5KIVmtixds/DSoSCZkELc9fukZQGzwyQ+IsmuZcCJ+36FDwf04Flm/d +rKetfks2Jc6LbM0aG6iHFDpzD1Aw59qaVmFeT1UZ0rh4fij7oWGb6LRFu353quBWJqC JtftjWRxUH2sY7R5jn5+8yTF62AEcwbBFDnOilC0ANso+sowiluZ7cBpklDZqimjbU2t +1TCI/De5ap10xuhCrKiJVjIrBr9rG3g0bWnjmVNurABS887L29mQTu8Z5fJcmDbW9xF H3IA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l19si7107892edr.184.2020.05.12.02.11.19; Tue, 12 May 2020 02:11:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729234AbgELJIG (ORCPT + 99 others); Tue, 12 May 2020 05:08:06 -0400 Received: from mga12.intel.com ([192.55.52.136]:40872 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725889AbgELJIF (ORCPT ); Tue, 12 May 2020 05:08:05 -0400 IronPort-SDR: C6eIVAzKrKUdAjWa4LxTUXAN9hAYi/2yMG73h0gScD+45i5hE4+CukNgg1veYTv7oM348Y0Zf4 j/GaWXogP7tg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2020 02:08:05 -0700 IronPort-SDR: tK8Y1hj8lywcychMAVWY2TQBVdiHUmt66zVihP/hHXEbPQEzpNav1j/mL8IDsfr+cdnbEG0t44 teUKiXogRV6g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,383,1583222400"; d="scan'208";a="265443794" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga006.jf.intel.com with ESMTP; 12 May 2020 02:08:01 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jYQtQ-00694C-A8; Tue, 12 May 2020 12:08:04 +0300 Date: Tue, 12 May 2020 12:08:04 +0300 From: Andy Shevchenko To: Serge Semin Cc: Serge Semin , Vinod Koul , Viresh Kumar , Rob Herring , Alexey Malahov , Thomas Bogendoerfer , Paul Burton , Ralf Baechle , Arnd Bergmann , Dan Williams , linux-mips@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/6] dt-bindings: dma: dw: Add max burst transaction length property Message-ID: <20200512090804.GR185537@smile.fi.intel.com> References: <20200306131048.ADBE18030797@mail.baikalelectronics.ru> <20200508105304.14065-1-Sergey.Semin@baikalelectronics.ru> <20200508105304.14065-3-Sergey.Semin@baikalelectronics.ru> <20200508111242.GH185537@smile.fi.intel.com> <20200511200528.nfkc2zkh3bvupn7l@mobilestation> <20200511210138.GN185537@smile.fi.intel.com> <20200511213531.wnywlljiulvndx6s@mobilestation> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200511213531.wnywlljiulvndx6s@mobilestation> 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 Tue, May 12, 2020 at 12:35:31AM +0300, Serge Semin wrote: > On Tue, May 12, 2020 at 12:01:38AM +0300, Andy Shevchenko wrote: > > On Mon, May 11, 2020 at 11:05:28PM +0300, Serge Semin wrote: > > > On Fri, May 08, 2020 at 02:12:42PM +0300, Andy Shevchenko wrote: > > > > On Fri, May 08, 2020 at 01:53:00PM +0300, Serge Semin wrote: > > > > > This array property is used to indicate the maximum burst transaction > > > > > length supported by each DMA channel. > > > > > > > > > + snps,max-burst-len: > > > > > + $ref: /schemas/types.yaml#/definitions/uint32-array > > > > > + description: | > > > > > + Maximum length of burst transactions supported by hardware. > > > > > + It's an array property with one cell per channel in units of > > > > > + CTLx register SRC_TR_WIDTH/DST_TR_WIDTH (data-width) field. > > > > > + items: > > > > > + maxItems: 8 > > > > > + items: > > > > > > > > > + enum: [4, 8, 16, 32, 64, 128, 256] > > > > > > > > Isn't 1 allowed? > > > > > > Burst length of 1 unit is supported, but in accordance with Data Book the MAX > > > burst length is limited to be equal to a value from the set I submitted. So the > > > max value can be either 4, or 8, or 16 and so on. > > > > Hmm... It seems you mistakenly took here DMAH_CHx_MAX_MULT_SIZE pre-silicon > > configuration parameter instead of runtime as described in Table 26: > > CTLx.SRC_MSIZE and DEST_MSIZE Decoding. > > No. You misunderstood what I meant. We shouldn't use a runtime parameters values > here. Why would we? Because what we describe in the DTS is what user may do to the hardware. In some cases user might want to limit this to 1, how to achieve that? Rob, is there any clarification that schema describes only synthesized values? Or i.o.w. shall we allow user to setup whatever hardware supports at run time? > Property "snps,max-burst-len" matches DMAH_CHx_MAX_MULT_SIZE > config parameter. Why? User should have a possibility to ask whatever hardware supports at run time. > See a comment to the "SRC_MSIZE" and "DEST_MSIZE" fields of the > registers. You'll find out that their maximum value is determined by the > DMAH_CHx_MAX_MULT_SIZE parameter, which must belong to the set [4, 8, 16, 32, 64, > 128, 256]. So no matter how you synthesize the DW DMAC block you'll have at least > 4x max burst length supported. That's true. -- With Best Regards, Andy Shevchenko