From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 0F36B2AD2C; Sun, 14 Jun 2026 01:13:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781399611; cv=none; b=gypeM35YFGv2+f9esFXbT2PvAbWkKAAOIXTxgifm44+sqmiej/XEOnpxBnzAff9TCNOmJmts6czun0QEBn9ztiH4wQcxvhlb1TqranBQY43G68S9d7RPa/RIpbGo5ZeNmMWcRu04Q/QFSHSvoHxkNDW0Z64PFd3sDLpd2x6ERaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781399611; c=relaxed/simple; bh=/AYkq1NqyUxo6NSbJSAgtL6UMiZJLhoSQgf2sGSRlBA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IuuYSmNpe+6SuOO+9j7TlPzOjjgv8G5L1HoSxVAEiLXZCTkwMsilnQvNj7evKvX3Q91UuRo8JUTXokT+39IUOoxolK5RN9cz2L8hdi8IwzyNi8vjF1MAwY03Xz7iylSnqs5CMa/u+/IOGYA0i2k/qX1R5Xi3gk3MM/WBEns89/A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YaZ27Mhr; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YaZ27Mhr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35C3B1F000E9; Sun, 14 Jun 2026 01:13:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781399609; bh=D/wGGBbq5fuG1Os5cJY/u5t46x/8QEnFYVbMDcScgJw=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=YaZ27MhrG4rnd2YkeN6d0GBlwQOAm5UlHMAb5GnHSjxX1X1sP6jl3XcjffQ5p6kwO H/WXqe/EtyzDS/95S9IK3X6Vdq2jmg2A0WJ0Epcwd1KmNG9/cVH0aL7YAHVoTok8+P SNfOoFSKeBfqqWLBsmU1QtSJmwbrrq8ub++hsOivo4r7KH/I3Qt3rNFjTmaOy4XeHJ tvs0bfsb6K3NRTZw3By/6PAMR/5ZPnnwieUPfJXi0o+/q3o3zANmX9jyeC94UqVAC7 mIpstZgkpyY/9mqYz8/Obz8W/iGRAj1nfmh8/9b8Y/6n1BSPFI/DrbBHtkBb6UqxO1 9efmxW4mk0Q0w== Message-ID: Date: Sun, 14 Jun 2026 02:13:15 +0100 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 2/4] arm64: dts: qcom: sm8550: Add JPEG encoder node To: Atanas Filipov , linux-media@vger.kernel.org Cc: mchehab@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konradybcio@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260612194417.1737009-1-atanas.filipov@oss.qualcomm.com> <20260612194417.1737009-3-atanas.filipov@oss.qualcomm.com> <8d230cca-2023-4a13-876f-d5db8eb200a1@kernel.org> <3d4e0147-8e62-4872-b881-1452f5e09e85@oss.qualcomm.com> <9fab1877-976b-4495-86de-a8c853b9ba24@oss.qualcomm.com> From: Bryan O'Donoghue Content-Language: en-US Autocrypt: addr=bod@kernel.org; keydata= xsFNBGRJNSgBEADD7Vm2ZFa+v+JGJ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jlqpDWJ8ooJfJRLBatbjT5+mVQaMYB7Hs/t+zWYWaJKHyc8O6WLEC NUV5Tdt5EkkAEQEAAcLBdgQYAQoAIBYhBOaT+yqro23hF6tvtCJxO7Ohjcg6BQJkSTUoAhsM AAoJECJxO7Ohjcg6LuIQALnXt36OUuK43wqw6UYt0cnN6EbUqJHApAF5eNFn0jCCB2XELjSz JKJwuNAweowBdabiBniJ+501WIW+ewEsz1uby5fUQjZuCEsIkuaIluyfUFPb73qrQyAGuusd 7teA4WT+/jUku9g7lX5sVoRCrKQPkd16f6Bzfztyqyjcn43/X5yQI+wlboQ6HuKe/3I3yiOx OgmCHzOawpC9PvhEcKj79RLM3Zz5Ts5AuHpRX70Jz8Be76LwVFLp5Msx3S24ZTU1lBo2uiJ3 xSkay2lTpyVWRPx9vgcwzxGguOPJQJwsQeLb7wpoJMPpD3ERoaRii7Q7hvmxklpZjhKYWB3d t6nQ497Ek9loCrp3MIjRCSDN5xEGffiHks9yTeGMUQwO4tX8RE04uOJPkUY7uCFzFqN6/qey X3oFfPgkULMdiHofPAL1OskZSTzGPSfTYRE46NCJw8yoZBQ/oOyWeqaUQbK0wmW/g81wm8p7 LKSGEglMpiX07M1AotgvylN5C8fjbouoK+/RAMsXkk8jba6rPfuuXPaDjCyyKn6zSVHETnHW 3AJbgVY50T8STpnxayBQvWbCvu+6NOEjXCbyaOJig+5l0zlGN9XHjdANXC5HnwmyaGRL9YDq Jh2nVXVJDincOdQRdKcJjYLqaOAoWrYWSDi1iZGspHBTDrnOvfMQzzHY In-Reply-To: <9fab1877-976b-4495-86de-a8c853b9ba24@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 13/06/2026 12:16, Atanas Filipov wrote: > Thank you for the detailed explanation. Let me share my understanding of > the shared upper-level blocks. They are exactly the reason we have > frameworks like ICC with aggregate bandwidth voting, reference counting > in the clock framework, and so on — the same applies to power domains. I > do not think using shared resources is a problem when the drivers are > correctly designed. > > We have actually validated this: we got CAMSS working alongside the > Qualcomm downstream camera stack after fixing the shared resource > management — something everyone considered nearly impossible at the time. > > On the CAMNOC and CPAS concern: if that coordination becomes necessary, > the right fix is to address the resource management in both drivers > independently, using the aggregate capabilities of the existing > frameworks — not to introduce a > hierarchical dependency between them. Moving JPEG under CAMSS does not > solve the CAMNOC, clock and power domain coordination problems, it just > papers over them. > > IMO the problem you are pointing at is more general than just CAMNOC — I > would add priorities, QoS and other shared resources to the list as > well. The answer to all of them is the same: correct use of the existing > frameworks, not driver > merging. > > On the idea of putting JPEG inside CAMSS with an external API: I haven't remotely suggested that. > no engine or pipeline that produces YUV output, which is what the JPEG > encoder needs as input. If JPEG moves into CAMSS without an external > API, it becomes > inaccessible to userspace. If it does expose one, we end up with a > standalone interface anyway, just with an extra layer of indirection on top. This is a very long winded way of saying no without acknowledging the core point that the DT should scribe the hardware the way it really is, as opposed to following software architecture preference. It is the case JPEG lives inside of CAMSS. This is a fact of the hardware, the DT should express those facts not software preferences. > afilipov > > On 6/13/2026 12:52 PM, Bryan O'Donoghue wrote: >> On 13/06/2026 10:24, Atanas Filipov wrote: Honestly - please quit top-posting. I'll be ignoring further top-posted email. > And please no top posting ! > > --- > bod >