Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3073845ybt; Mon, 29 Jun 2020 14:37:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgqsG7lFlmn4R5dFZ0QNIewE3dapH/AfSfs448hYoaDIdWqt2IXLBUiRTPT6g5vIq+L38E X-Received: by 2002:a17:906:7712:: with SMTP id q18mr15512413ejm.140.1593466623897; Mon, 29 Jun 2020 14:37:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593466623; cv=none; d=google.com; s=arc-20160816; b=NhTV9t+H1J9rJINPJMoYAxjMHtBIy+0Ns9DsFfMULC2gjNPVD/XJH3L1VcZj+XmdbH MwO1J3td8e32q+vPOfrUvyMkOgbDVLGxvRwEUEs/PMadvf30gjshochmacD5hlbQFsbS O3UEQWHJLQ7/d9t1D6BsF85DbeonGvDH79WwsrItvneQ7Urk1FqxDKaUl/Sn50PUYs6L UMwW76Oyf58imoaoMs5l1h5vpye+j8gK94C3amum3weF3xbFSg0qsdNOnQHIb4OF5KWO clukEucXjlyqsRX5EkySzcYXLN6LqGtsK5x2/U70HdDB+8t7ig22bHO8oMq39JR+9Wao IbzQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wx+7FiWMO+JJGt3sh7/dEVp11i/GmwuNRwUhzFLo8yI=; b=xzIFSuTEbuVJliETpuQ5yioPMCNmuQz/Hu4P7m/iFLsHTKVSL7FfaSJqLsMfK1ZE46 BoizFbSlhngANBjZZp/7eBKMHeLfhFOI402T8YX4ZJwomGD7XFaDEJAGm7abTJwSdH3t +iDYMuBOLiAdb1FlDLJXlyLJHBrQZ1QF0frXvx69FtiDNIrK0xRJq7a1/4nmbE8meQ4W MYmxARntxnnqM8SzgVrWDOwpntjezxoGff0A4h0X3LIWgoFPebKTNuP3u27z4lO3Ncbz Q9LJ1Bp1vxtsWfKIk9X8YG5y74onWywm+Mcw1+UBrBKW9/44eYGSPLLi2Cf5BH+fmH7u UMYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lk8z7Qeu; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n93si408755edc.420.2020.06.29.14.36.41; Mon, 29 Jun 2020 14:37:03 -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; dkim=pass header.i=@kernel.org header.s=default header.b=lk8z7Qeu; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391330AbgF2VgC (ORCPT + 99 others); Mon, 29 Jun 2020 17:36:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:60646 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728486AbgF2Skp (ORCPT ); Mon, 29 Jun 2020 14:40:45 -0400 Received: from localhost (unknown [122.182.251.219]) (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 7D02523D50; Mon, 29 Jun 2020 13:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593436905; bh=LXvcRe88NweP1KRH4lrxCsBpxttGet8FB2YNmIkHxnc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lk8z7Qeu0qofDn4k3ukyl8Sgf9/l0vRWVNNaxxiLCWKdrrkSPK6sw9oFTo8sGJd1R 8PFulkOmFfu4BtOELvFb+dYXpcL58MVebjO7CQKYydYCX0IlDe0Gf+7yT9rjRPWn6R CZCP4xfFBBzpmAeGfiSw66I6ySQrWvLzT2eJBH/s= Date: Mon, 29 Jun 2020 18:51:41 +0530 From: Vinod Koul To: =?iso-8859-1?Q?Andr=E9?= Przywara Cc: Amit Singh Tomar , afaerber@suse.de, manivannan.sadhasivam@linaro.org, dan.j.williams@intel.com, cristian.ciocaltea@gmail.com, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org Subject: Re: [PATCH v4 02/10] dmaengine: Actions: Add support for S700 DMA engine Message-ID: <20200629132141.GM2599@vkoul-mobl> References: <1591697830-16311-1-git-send-email-amittomer25@gmail.com> <1591697830-16311-3-git-send-email-amittomer25@gmail.com> <20200624061529.GF2324254@vkoul-mobl> <75d154d0-2962-99e6-a7c7-bf0928ec8b2a@arm.com> <20200629095446.GH2599@vkoul-mobl> <36274785-f400-4d69-deed-b7d545718d40@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <36274785-f400-4d69-deed-b7d545718d40@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29-06-20, 12:19, Andr? Przywara wrote: > On 29/06/2020 10:54, Vinod Koul wrote: > >> What newer SoCs? I don't think we should try to guess the future here. > > > > In a patch for adding new SoC, quite ironical I would say! > > S700 is not a new SoC, it's just this driver didn't support it yet. What > I meant is that I don't even know about the existence of upcoming SoCs > (Google seems clueless), not to speak of documentation to assess which > DMA controller they use. > > >> We can always introduce further abstractions later, once we actually > >> *know* what we are looking at. > > > > Rather if we know we are adding abstractions, why not add in a way that > > makes it scale better rather than rework again > > I appreciate the effort, but this really tapping around in the dark, > since we don't know which direction any new DMA controller is taking. I > might not even be similar. > > >> Besides, I don't understand what you are after. The max frame length is > >> 1MB in both cases, it's just a matter of where to put FCNT_VAL, either > >> in FLEN or in CTRLB. And having an extra flag for that in driver data > >> sounds a bit over the top at the moment. > > > > Maybe, maybe not. I would rather make it support N SoC when adding > > support for second one rather than keep adding everytime a new SoC is > > added... > > Well, what do you suggest, specifically? At the moment we have two > *slightly* different DMA controllers, so we differentiate between the > two based on the model. Do you want to introduce an extra flag like > FRAME_CNT_IN_CTRLB? That seems to be a bit over the top here, since we > don't know if a future DMA controller is still compatible, or introduces > completely new differences. Fair enough, okay let us go with compatible for now -- ~Vinod