Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4819527rwb; Sun, 13 Nov 2022 14:43:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf6RijvSiH5JcaumwUNk1WlhK8Ik+u3UUk99G7/AQHZWfBw2RU9GCf1g5X9JsWmP4cfuHM9o X-Received: by 2002:a05:6a00:1c96:b0:562:e0fb:3c79 with SMTP id y22-20020a056a001c9600b00562e0fb3c79mr11500359pfw.39.1668379433914; Sun, 13 Nov 2022 14:43:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668379433; cv=none; d=google.com; s=arc-20160816; b=wfWg0nCzKk4goxAMtXJee6lcaxFejNKwcsDS+WKILgCYI0uHVTufe4onKsIzuUunpK q+tjtavQ60M3PvS/Q5jbf0kwJALwGb9sMcJVZ1CGLuJR5p+jhF/Cz08qIW/0LX5Wj1ZJ V2UOvhD/vSWOYE7mGFUW42VDak8T1sxcuzToFmI21McIc4fTbRlgsqYqQg848rB3Vd3k Admax5WGTl8nXUgCp0nFYupm3eqgmYcuGMVP1jpLUmsocgLvDRYgtbZiwZhvMQ1zE9+z oAT80bmlqjlmHJfTs3EbMtJhu6BMRfBh0k62ePYoHEokYAAVF4OTsKP2JptFINBKKG+h Tmsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uOsh1TOMrFR8zXTBYSFUDZV72nSOSivSkjCeb0NN8xU=; b=L9n1XQB/gHHHTlbR05gg1GypIbtDbpPy46WS7bjfMt+i9udZjD2ssZks85xFJFFD/G BPjrwFvqYziE3pBFv4IOPQXIaF2FSbjilA7sc69ZnLLgdn3qTTNKZQhvpfFU4iTG3kqQ HaPRXzATGo0U3uu0rx9vQa9aiVzCZeKj03EYEREiLfRhdFxY2EhQXSyXNSV1Llk4aQvR GSr78h6cPH5TaFS+dblJp7/wLgPf7oU03uUqTyH05z3Cgl1TWD1veFguuvoKzGOa06Sb kuoreKgzHjEmrAdJhUQXFIyvkAbG9fY1JL1HvCQ80g2WlhqY8FaSTrbCxxPVT0vPAkwr GD3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fix/Xn9W"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a170903024d00b0018863062f04si9217437plh.432.2022.11.13.14.43.42; Sun, 13 Nov 2022 14:43:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fix/Xn9W"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235501AbiKMWbw (ORCPT + 91 others); Sun, 13 Nov 2022 17:31:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbiKMWbs (ORCPT ); Sun, 13 Nov 2022 17:31:48 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57DAC645E; Sun, 13 Nov 2022 14:31:47 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F37FFB80CB8; Sun, 13 Nov 2022 22:31:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B58C3C433C1; Sun, 13 Nov 2022 22:31:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668378704; bh=1skuSJ8eRAuOy9JAgFPMViNgy7WJCNC+CprUK+YefZg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fix/Xn9WP8OuzWskBHITC99MWVE0r7EjmAX++Smuk5Vci4iNZdBiYMcf2M18XhYs8 YNSf+LDm3uf9cnihktXLNASzOiJgLZ4/5e5c4BtuRCSTGfCCtzzikPbudPAE4iU1sO mdUN1ieQ1ZoLnEehkWdZ21fAGDlue7Cz4hjuX2bvMo0r83d2RBvk0LllyP1+Um59r7 8CtwL89a02lM/s7KpFhaD2PIP48+f6Lx1yyGI94xt5wzmaXH0ltru9YXVSp1M7WM4o nO3OxyyErYHHQqoAE7PIWx15+rgoEkV5XzbUHnDTcxpmT686ctdesT4zyOTL6Uf6t8 bSOBVpfCUWX2w== Date: Mon, 14 Nov 2022 04:01:40 +0530 From: Vinod Koul To: Akhil R Cc: ldewangan@nvidia.com, jonathanh@nvidia.com, thierry.reding@gmail.com, p.zabel@pengutronix.de, dmaengine@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, sfr@canb.auug.org.au Subject: Re: [PATCH v4 0/3] Tegra GPCDMA: dma-channel-mask support Message-ID: References: <20221110171748.40304-1-akhilrajeev@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221110171748.40304-1-akhilrajeev@nvidia.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10-11-22, 22:47, Akhil R wrote: > Read dma-channel-mask from device tree and register only the > specified channels. This is useful to reserve some channels for the > firmware. > > Also update the channel number and interrupts to include all 32 > channels. The current DT bindings has only 31 interrupts which is wrong > and doesn't align with the hardware. This was done to reserve channel0 > for the firmware. Now with this change, the driver can align more to the > actual hardware. but this implies that there will be a breakage in the > ABI and device tree must be updated along with the driver change > for it to pickup the right interrupt corresponding to the channel. > > This breakage is okay right now because GPC DMA was introduced on > Tegra186 and the DT bindings were added in 5.19. Any products released > with this IP were released with kernels prior to 5.19 and bindings that > were never in-tree. Any of those products that are supported upstream we > know have replaceable DTB images (i.e. by default they are flashed at the > same time as the kernel image). Applied 1 & 3, thanks -- ~Vinod