Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1426574imm; Thu, 5 Jul 2018 23:13:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpciD3rJvPMkFkKf24G68b28I5KMC8WrQDB8lrRFW3UU21s+5cGe8xYKvNhJgFCDcmmCaQg5 X-Received: by 2002:a63:7b4d:: with SMTP id k13-v6mr8223343pgn.64.1530857636733; Thu, 05 Jul 2018 23:13:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530857636; cv=none; d=google.com; s=arc-20160816; b=nE/43EAI2UrtLwkSPOYXIuxi3Ipf8SkunRO+zGiySveUz2WHvnthXYePMOQK7sTXLG I63QQ5/+lAeK2rU/hSEnzIewSn5ed+aeTyyfKoP1oTNffDKhlABEHQ6JhkeqZhw3Y879 wcLFbaGasVbHsJ0pbiBJKDoVV3Uz8rRBzjgpoIJvW+tQqaKWr0cO5Gz4hySiklEJlMt1 LIFGJnxheBxx/lZSfcoq6HkuCpJ5R9q4dj48n8Z2vhIT+dRBpZ/wqe4vOKBcyDgLy0RH couBGi0rX9xZYFzksTqE5jDjV+l1aXG3oyfldzA//hlJEWp9YuCes1OWzsx0Qo2YU2j0 bxHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=D+MIFdaeTV03eUBLjmaYvu8PjnzCfERj5QputBCPw90=; b=LCXirSg46JnIZi1GrXN9J0kt45/uIxAz5tr1aloM8bvd2N4D9FjSS/zTBuqwSLUvIT VrU0+LUXczOCV2L95Aug+jQoLqoH4pNXfd3QQyDrRpWYI1p2LYqGjBEJQph4PiVMSHPv QHo25O8wm46CKYXxnMm/mQ/onxXdjrillJZDxq5Zo2hGVFqUZNw8PRf4r+SVQvrIYX3p VZoHS/XRkd+qm8tT61Fgw37v7Jy2AWSSu1P37olqccJYKt95YQEeOBik0iVeePq7sN93 u4VUhwh/WYiHFDQm2X0i/DnqLHlk0+PYVJxPB4QKo1Pp+dCyx33B6rt09lfnnAw7AayJ 0o2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T2EDyGD6; 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 q63-v6si7651800pfb.309.2018.07.05.23.13.42; Thu, 05 Jul 2018 23:13:56 -0700 (PDT) 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=T2EDyGD6; 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 S1754028AbeGFGLl (ORCPT + 99 others); Fri, 6 Jul 2018 02:11:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:45558 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753287AbeGFGJr (ORCPT ); Fri, 6 Jul 2018 02:09:47 -0400 Received: from localhost (unknown [223.226.33.155]) (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 7F73E2402E; Fri, 6 Jul 2018 06:09:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530857387; bh=UFn4zduuWz1/khnzf/5hzGTE7uJXKdoQGeD+EaszxpY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T2EDyGD6uaQUJ5GSDMwuQpMPho/fltuYvinvcWZq+nGHa8tnl2XK8tHSujO8ZpntY 0wY+n/vayTSgUa6nYWfpGSTy/64vaRyq+nqdY9P+HAQwtl6xG3mVCTB/AqMgQdoKKR qjSNVk+HSp2gSWIlo3hVjnIjK8ldSCeEBaFwlncM= Date: Fri, 6 Jul 2018 11:39:38 +0530 From: Vinod To: Guodong Xu Cc: Rob Herring , Mark Rutland , dan.j.williams@intel.com, liyu65@hisilicon.com, Suzhuangluan , "xuhongtao (A)" , zhongkaihua , Xuezhiliang , "xupeng (Q)" , sunliang10@huawei.com, "Fengbaopeng (kevin, Kirin Solution Dept)" , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] k3dma: add support to reserved minimum channels Message-ID: <20180706060938.GU22377@vkoul-mobl> References: <20180622032416.20133-1-guodong.xu@linaro.org> <20180622032416.20133-3-guodong.xu@linaro.org> <20180628060239.GO22377@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06-07-18, 11:05, Guodong Xu wrote: > On Thu, Jun 28, 2018 at 2:02 PM Vinod wrote: > > > > On 22-06-18, 11:24, Guodong Xu wrote: > > > From: Li Yu > > > > > > On k3 series of SoC, DMA controller reserves some channels for > > > other on-chip coprocessors. By adding support to dma_min_chan, kernel > > > will not be able to use these reserved channels. > > > > > > One example is on Hi3660 platform, channel 0 is reserved to lpm3. > > > > > > Please also refer to Documentation/devicetree/bindings/dma/k3dma.txt > > > > and if some other platform has channel X marked for co-processor, maybe > > a last channel or something in middle, how will this work then? > > > Hi, Vinod > > Sorry for delayed response. We checked with Kirin hardware design > team, so far their design strategy is all Kirin SoC series reserve > only from minimum side, saying channel 0, then 1, then 2. That impacts > the current SoC in upstreaming, Kirin960 (Hi3660), and next versions > in Kirin SoC, Kirin970 and 980, which may hit upstream later. And what guarantees that they will not change their mind.. > > I am thinking this should be a mask, rather than min. > > > > So, since this driver k3dma.c is only used by Kirin SoC DMA > controllers, I would prefer to keep the current design dma_min_chan > unchanged. > > What do you think? I would still prefer bitmask to expose the channels you are supposed to use -- ~Vinod