From mboxrd@z Thu Jan 1 00:00:00 1970 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 74F611E51F1; Fri, 18 Jul 2025 10:05:00 +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=1752833100; cv=none; b=t7G1Oxl9MHjB+YWdS+x7vLx+CIJyBKiDbh0twjtehBgDtS+8WhvCXRUsFuIQqeX35COROZMo/a1DHvwuYHQikg2uBXEFSORoWssojY/M1OfN4UR8bAV1lMYUzQQH6ONXCzXyqwsTWwKJuU+YBefqYFU2fWp0znPyfpoy6lpDzbs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752833100; c=relaxed/simple; bh=MKsDCNHJ/zLOTrq55OSIxwQgE0tak99afxdnm4AIHrA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QfMjVM2WCYaoRXT23a6Tpch+uw4NSGV4NzExsWmWsAA33lO1pjhKCcletZalItMC64lWVVGlFtfXC/JODSaegfNtqEy+tpJlgdu7+eaV06ok7GUKONA/NOdTUMhAj9U1TAWw2UyDwum1Yj6YNtgqzIxVPZnDzL6f4tiCMg1S34A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LfXynAf2; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LfXynAf2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFD57C4CEEB; Fri, 18 Jul 2025 10:04:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752833100; bh=MKsDCNHJ/zLOTrq55OSIxwQgE0tak99afxdnm4AIHrA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=LfXynAf2MEGucMm92lkrxW03CrTEJgg0+fOZ3omPiMfoyAMk3uT9e0ukT+qptgi1E 1gdAq0Sdi2daoih0SV3ZUMsE8xts7gROP+KGeWTTlLeTDRY4SEG7WrNo1vbYm8AgMR MWDfmjTonnkUsYGX1/i/m8LH2w9UPmmEZBs/AFIyYuK/HPhK8ga7dDUHT3K1hwILD1 IifVOiYZ3UBexZy3R8wubFdzfPZpH5dikEkQRy8LDX3EIa2x4xUvg6rGZMn3zlcMjb mpJvLxLC9acMA2p90/VYnsP2NeG0ThDge+tsoRwcju1j9BLZQryxpJf6dujHz6aVMJ nAYuf82uoE63Q== Message-ID: <56d4e911-5bec-458e-acd1-3594a6d8b91d@kernel.org> Date: Fri, 18 Jul 2025 12:04:54 +0200 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 1/7] media: dt-bindings: venus: Add qcm2290 dt schema To: Konrad Dybcio , Jorge Ramirez Cc: Bryan O'Donoghue , quic_vgarodia@quicinc.com, quic_dikshita@quicinc.com, krzk+dt@kernel.org, konradybcio@kernel.org, mchehab@kernel.org, andersson@kernel.org, conor+dt@kernel.org, amit.kucheria@oss.qualcomm.com, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20250715204749.2189875-1-jorge.ramirez@oss.qualcomm.com> <20250715204749.2189875-2-jorge.ramirez@oss.qualcomm.com> <8a63f517-a443-48e4-9b9c-0c4b362f59f8@linaro.org> <0bb2867a-393b-46f9-ad6f-1aeee5a3a9d4@kernel.org> <5afbaf46-bbb1-47d8-84aa-29b18987564f@kernel.org> <18d013e5-352e-457b-ba96-3dd19f1cbaed@oss.qualcomm.com> 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 FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJoF1BKBQkWlnSaAAoJEBuTQ307 QWKbHukP/3t4tRp/bvDnxJfmNdNVn0gv9ep3L39IntPalBFwRKytqeQkzAju0whYWg+R/rwp +r2I1Fzwt7+PTjsnMFlh1AZxGDmP5MFkzVsMnfX1lGiXhYSOMP97XL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ding: 8bit On 18/07/2025 12:02, Konrad Dybcio wrote: > On 7/18/25 8:27 AM, Krzysztof Kozlowski wrote: >> On 17/07/2025 19:00, Jorge Ramirez wrote: >>> On 17/07/25 13:16:31, Jorge Ramirez wrote: >>>> On 17/07/25 08:45:17, Krzysztof Kozlowski wrote: >>>>> On 17/07/2025 08:35, Jorge Ramirez wrote: >>>>>> On 17/07/25 00:22:53, Bryan O'Donoghue wrote: >>>>>>> On 15/07/2025 21:47, Jorge Ramirez-Ortiz wrote: >>>>>>>> Add a schema for the venus video encoder/decoder on the qcm2290. >>>>>>>> >>>>>>>> Signed-off-by: Jorge Ramirez-Ortiz >>>>>>>> Reviewed-by: Krzysztof Kozlowski >>>>>>>> Reviewed-by: Bryan O'Donoghue >>>>>>>> --- >>>>>>>> .../bindings/media/qcom,qcm2290-venus.yaml | 127 ++++++++++++++++++ >>>>>>>> 1 file changed, 127 insertions(+) >>>>>>>> create mode 100644 Documentation/devicetree/bindings/media/qcom,qcm2290-venus.yaml >>>>>>>> >>>>>>>> diff --git a/Documentation/devicetree/bindings/media/qcom,qcm2290-venus.yaml b/Documentation/devicetree/bindings/media/qcom,qcm2290-venus.yaml >>>>>>>> new file mode 100644 >>>>>>>> index 000000000000..0371f8dd91a3 >>>>>>>> --- /dev/null >>>>>>>> +++ b/Documentation/devicetree/bindings/media/qcom,qcm2290-venus.yaml >>>>>>>> @@ -0,0 +1,127 @@ >>>>>>>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >>>>>>>> +%YAML 1.2 >>>>>>>> +--- >>>>>>>> +$id: http://devicetree.org/schemas/media/qcom,qcm2290-venus.yaml# >>>>>>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>>>>>> + >>>>>>>> +title: Qualcomm QCM2290 Venus video encode and decode accelerators >>>>>>>> + >>>>>>>> +maintainers: >>>>>>>> + - Vikash Garodia >>>>>>> >>>>>>> Shouldn't you be on this list ? If you upstream a file I think you should >>>>>>> list yourself as responsible for its glory or its mess. >>>>>> >>>>>> happy to do it. The MAINTAINER's file covered all the files named >>>>> >>>>> This should be the person(s) interested and caring about this hardware, >>>>> which means: >>>>> 1. Subsystem maintainers: no >>>>> 2. Driver maintainers: usually yes >>>>> 3. Author(s) of new hardware support: usually yes >>>> >>>> perfect, will do >>>> >>>>> >>>>>> schemas/media/*venus* so my understanding was that I shouldn't. >>>>> >>>>> I cannot comment why people decided to go one way or another in other >>>>> code, but it as well could be just incorrect choice thinking only people >>>>> in MAINTAINERS care about hardware. >>>>> >>>>> ... >>>>> >>>>>>>> + >>>>>>>> + memory-region = <&pil_video_mem>; >>>>>>>> + iommus = <&apps_smmu 0x860 0x0>, >>>>>>>> + <&apps_smmu 0x880 0x0>, >>>>>>>> + <&apps_smmu 0x861 0x04>, >>>>>>>> + <&apps_smmu 0x863 0x0>, >>>>>>>> + <&apps_smmu 0x804 0xe0>; >>>>>>> >>>>>>> You're listing five iommus. >>>>>>> >>>>>>> I understand there's some disagreement about whether or not to list all of >>>>>>> the potential use-cases but, TBH I don't think those are good arguments. >>>>>>> >>>>>>> Unless there's some technical prohibition I can't think of listing all five >>>>>>> maxItems:5 .. let's just do that. >>>>>> >>>>>> since the device tree should describe hardware and not policy, and the >>>>>> driver seems to be able to ignore the unused SIDs I think this is the >>>>>> right thing to do. >>>>> >>>>> >>>>> It was never about the driver but about whether you should describe in >>>>> DTS for non-secure world the entries which are secure world. The answer >>>>> in general is that you can and there will be benefits (e.g. sharing DTS >>>>> with secure world implementations). >>>> >>>> all right, sounds good then, thanks >>> >>> Not sure if I’ve shared this before, but following an internal >>> discussion, I think it’s worth highlighting a functional dependency in >>> the current kernel: >>> >>> - the driver only works if the first two IOMMUs in the list — the >>> non-secure ones — are placed at the beginning. Reordering them breaks >>> functionality, which introduces unexpected fragility. >>> >>> Regardless, this seems like a valid concern to me — a driver shouldn't >>> rely on the order of phandles — and I just wanted to make sure you're >>> aware of it before I post a v8 (likely sometime next week or the >>> following, as I’ll be taking a short break soon). >> >> >> Hm? Order of lists is strictly defined. That's actually an overlook that >> we never do it for iommus, but the core rule stays. > > (FWIW "items:" is an ordered list, "enum:" is unordered) enum is not a list, but enumeration, meaning one item of multiple values. Best regards, Krzysztof