Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp159885lqp; Tue, 21 May 2024 23:48:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3XeeaFtzMTHbUZlnZ6+PLpI2aODqyzxbfbmT7j4ayJAHnCMFmCZfZsARfwJTYI9iaoJNbrKirRvQb2v5B+OGTPNUP7kMKubrOiGn0vg== X-Google-Smtp-Source: AGHT+IEvE+2LD9+vKMqaon5vqXszPQ7Ay/U9BuZVI0nurdnCmCh7DGYalH1CFU/Z3ij55zTH6bFN X-Received: by 2002:a05:6a00:21c6:b0:6f6:9601:b0b9 with SMTP id d2e1a72fcca58-6f6d60c1e65mr988797b3a.11.1716360492316; Tue, 21 May 2024 23:48:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716360492; cv=pass; d=google.com; s=arc-20160816; b=0IzYpn1Ft6n5CCZ+D3gK6oZvl3CE74/E4c/40XLGaDZh7n1CfBWs0Ng69eqthv2Fbn ThKx2An3SlSYK0BE5nj2BkLkxI6FL8rb2xG7wZLMg/WtyhhiA9XYCgXeVtUgiS3KovPo Kf9dE5X97KbMPvvTS85El/jdIM0HLOB6PZQ8BPjCMGAXEHMMEcWXtoymkD4J7nzwpXoc w7coKHb2vW+oczDMxndTp3dAUE/3oCaOTkfnoFF0gbyO968lnohgSmaDk94CtNeiOz/M VVUe97iXft1WonPHdlgCG/Vo6v5FHBtUaG6t8LdYuU2w7Pelbqhdl38pFziR7I2u0Yov TWIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=ZIDGUYv2cDlSP15K8rT6wtToJe/mre2Q3/D5oB3rpBQ=; fh=Svxg33U9hRl868PCPp0NVoIF7EvdIQjhfFKh8AUBDvQ=; b=CDeeJK13hxQulYVm6I11OJ55Bpy60aN+cnklsc6O4MMWpjnsYUzFJeBiLPJYmgD4Kz ujIHTkqqnjCJvrWFCjWydqln2xPjZsUYeJi6IXIGOy3hPPIzD/iD3fuT5i59DyYFEj1K 9t+smphj5s2u4WJyIBcYxzNF+BSI7VXYFly0wr+4nasoN8DiILCC+jHrWaIar8FjaM2b eu5ERGw3kybMJ3ugSwCOAWAoKKCqDzLiJ/KP1A/pJHU+Eu1Rl3jlLkBqelx6zY4xOkKb jlZ+dDngc853RlnIjpB8gRoxVkpE/ICnLA4s00mCmU/Corikk2H8qTWZu9tmfEIzQH70 xBFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="IP/ZfH47"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2b4f6e3si5406574b3a.391.2024.05.21.23.48.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 23:48:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="IP/ZfH47"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-185820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3C91AB21606 for ; Wed, 22 May 2024 06:48:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9C9D79950; Wed, 22 May 2024 06:48:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IP/ZfH47" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3B354C62; Wed, 22 May 2024 06:47:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716360479; cv=none; b=bk98ThSlr0aAAdlw8MCr/SN4teGlZkqRqckChvgcwmfe9/pzh8hVkmJzKOAZjWUXoBZ4dt9cFKGDFLeEUabIv+in6TzHdjXO1nX1yUQBCxkoiD4ZHlfAIf+N2o2wSXKz9GxaD71NyqmmFRNkjt18feml2mP8gD7yMkyuL7c1RVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716360479; c=relaxed/simple; bh=fUIhzOfVUoWq4e5Mlr0tdY19EgBcj6SfhCRx1Nk6Vvc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XL4akTgw3huKKSRxUDTxwjlFQaE8LsGIvcQL3Cwd7ymH4WzKrj6gpi08MiEVQcrIJYwQyV+sg8iK/gPHjlETtZsAVyuS2Nz8+K2vumr0L+uwx/rQ9a722Sn/L3QPZJDyU0zdOjozdY1i373+oJ9UbASolBzB8bITeSWB7hxEbOI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IP/ZfH47; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F796C2BD11; Wed, 22 May 2024 06:47:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716360479; bh=fUIhzOfVUoWq4e5Mlr0tdY19EgBcj6SfhCRx1Nk6Vvc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=IP/ZfH47R13Tp6eCpcCvKQD+kEyYBG9CsM4JZ9jRZIFuibJPgK1SkM/20TrcLcH91 rhXXPdvPFZogdJtAaxQFuKg0p5RUrQj4ySLrbbL1z6bA0cpBmhO7LmeelWXGq8R2/O efiXbHJckVMvggjLnA2GrswM9DWUkNKHkxDiB/UfY+zxU/RGDndsxRPsNLFGdyZaXx 4MscVaoefqe0/55Qx+CGGVTmnZdptDovqUQhfGd88CO0p4JyyEJR8OyyRwrxAx/O0k HhdhYpE1pAM0PQfVDGKkUzmqRVZTX8qLxMJqXzE0PI+k5uupbvbSoTAKmgdMQ+Cem4 K8gIngW6ELWkQ== Message-ID: <56bf93ac-6c1e-48aa-89d0-7542ea707848@kernel.org> Date: Wed, 22 May 2024 08:47:52 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RESEND PATCH 1/2] dt-bindings: dma: Add reg-names to nvidia,tegra210-adma To: Sameer Pujar , vkoul@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, thierry.reding@gmail.com, jonathanh@nvidia.com, dmaengine@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, ldewangan@nvidia.com, mkumard@nvidia.com References: <20240521110801.1692582-1-spujar@nvidia.com> <20240521110801.1692582-2-spujar@nvidia.com> <80b6e6e6-9805-4a85-97d5-38e1b2bf2dd0@kernel.org> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MU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 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 22/05/2024 07:35, Sameer Pujar wrote: > > > On 21-05-2024 17:23, Krzysztof Kozlowski wrote: >> On 21/05/2024 13:08, Sameer Pujar wrote: >>> From: Mohan Kumar >>> >>> For Non-Hypervisor mode, Tegra ADMA driver requires the register >>> resource range to include both global and channel page in the reg >>> entry. For Hypervisor more, Tegra ADMA driver requires only the >>> channel page and global page range is not allowed for access. >>> >>> Add reg-names DT binding for Hypervisor mode to help driver to >>> differentiate the config between Hypervisor and Non-Hypervisor >>> mode of execution. >>> >>> Signed-off-by: Mohan Kumar >>> Signed-off-by: Sameer Pujar >>> --- >>> .../devicetree/bindings/dma/nvidia,tegra210-adma.yaml | 10 ++++++++++ >>> 1 file changed, 10 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml b/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml >>> index 877147e95ecc..ede47f4a3eec 100644 >>> --- a/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml >>> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml >>> @@ -29,8 +29,18 @@ properties: >>> - const: nvidia,tegra186-adma >>> >>> reg: >>> + description: | >>> + For hypervisor mode, the address range should include a >>> + ADMA channel page address range, for non-hypervisor mode >>> + it starts with ADMA base address covering Global and Channel >>> + page address range. >>> maxItems: 1 >>> >>> + reg-names: >>> + description: only required for Hypervisor mode. >> This does not work like that. I provide vm entry for non-hypervisor mode >> and what? You claim it is virtualized? >> >> Drop property. > > With 'vm' entry added for hypervisor mode, the 'reg' address range needs > to be updated to use channel specific region only. This is used to > inform driver to skip global regions which is taken care by hypervisor. > This is expected to be used in the scenario where Linux acts as a > virtual machine (VM). May be the hypervisor mode gives a different > impression here? Sorry, I did not understand what dropping the property > exactly means here. It was imperative. Drop it. Remove it. I provided explanation why. Also, drop unneeded |. Best regards, Krzysztof