From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 61DD51946BC for ; Wed, 25 Mar 2026 09:30:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774431059; cv=none; b=H46nR7BZ3de6FW8+Oo/JVQTNBUHlQHNCISZBbHnSbuCOsKoYlTjmUBx4dldkRWTjv4Sz+TWrz38yQP6SsViTGdusQN+t4me5VyATMyp6avz5SOGcc+/xyQcocI26uGug4YHecjIselIXL6zCiQCWqIkMUIDFXMkVqoAXrJHPp90= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774431059; c=relaxed/simple; bh=kl7xPW9zd45V1YnWgHNJd6LjUZUW+y4mNo8sc58jbac=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hNIlNyGxJ/X6V15man8vxw26jqVXTsblS2uSPIOuCCUqkp5qcFLfF2MSJ/GCZV3mEaI4RK+2BzGSnSbbA4NFPNqhRQvr9jnuLBsG0IXIZRtBfp3Ev9MIF3hW2gjpI4juiO/ZLbzUCjlPlPKoXFq1fqUhtemMnSv4VrRmIsMhBJY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=QvawEJ5Z; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=YQjwTTI/; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="QvawEJ5Z"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="YQjwTTI/" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62P3oCCh1208841 for ; Wed, 25 Mar 2026 09:30:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= PK7yYDGVe2d9199JIVWvQ56RE/9bId5CfK806NVhSrk=; b=QvawEJ5Zn8SGlLVx UVsfF9I9TfuxISloti/l+7/Sjk2cCZZwQJV+kNICVjfiwom/+smKpgsXAqJPz0CT Mh2e92XBHQ5e6XDKXjVadsC4nx9RDDb11296UhWSzebX3E0+rFhY+vEmkPI4YQAh N4jln+45PizSbYgRYUM3vhHgQe03w5ab5Z9n4B9xi4mSx5TwLxLDmBOEOGMOijdb l+T4/msnvvF/NJqjMHp0g84DkUoh6VMll4NbkpSPR0cab8P8gsdXOnx1WvzvkzuJ o+Z3awRHo9Jwdj6MI5tKpBoe5w4FRkq04WEaRUQFWXHLN1xfUGC4DscM87kNsbaZ DcNG3w== Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d485994pw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 25 Mar 2026 09:30:57 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-50b27636835so55662851cf.3 for ; Wed, 25 Mar 2026 02:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1774431057; x=1775035857; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=PK7yYDGVe2d9199JIVWvQ56RE/9bId5CfK806NVhSrk=; b=YQjwTTI/dY55imLRGqVaEl27XJR+IqqLt6d/IbFRvuOuDH8wrYoU3PtJZCb50ZXwzQ N4B3+c1GnC3jrJWxw1Y94Ij5SKEb1Dcrn/xmnOu1EdBnvaEkP+JiFe09Punotjs9P4qT 4hQ6ESDFK/MkWWiz2ivdKsETDzbsg0tsorGW3zwZK65fbLj6vlg7Lnp4EjU36AUqB2mu 706Ym2RpyviNe26X6LJ+lBCLwWUybHzt0sfhoFKzNRRpkJ64/BTaFlc79dxkTrXvKBo2 vNWvVJbxAdY5VB8S31jb43tQNsCL3f3xxzYCP2HOrt0C1DCIPOm1wqlgG70G3dvEq1uV o98g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774431057; x=1775035857; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PK7yYDGVe2d9199JIVWvQ56RE/9bId5CfK806NVhSrk=; b=DwRvl5DE2u2ZhcLf7AfoHw72lpcustvnd9YxvNywMwykFmGnIGhK603PO2xL8mIcUg aZn6UP1vWJXAqIWOR7AJJVdZ+xbp6Smm9TCwe7moA+AnAwS7kwM+UY+ix8sqTXT3OD11 clcHJds72KfW0IjTK3L3lsR23KXQx13lXQmw0nPrZSFMOUyXM9PvEYN3vTPgNA8q8160 +C//50HCPOvZXngA0MagA/A6xp1BLc+vcDNfIqg81psDU8eluRKnEM7jzJ9+YdrH/hYe b8YtHHv/TKuBwbvB0dNYzercQmPoqbVtJneJOom273jtn+qiIHqsWQ0NQ/DGcZS4vw5w 8V4Q== X-Forwarded-Encrypted: i=1; AJvYcCUp+ZhfvDCjJ1O38hcvpNTeRF0LIIYrZ9yKNSD++bvnzBfuaz2uobsBYCAVdnP5JQXtG7wTmKeFLpIs9CX8@vger.kernel.org X-Gm-Message-State: AOJu0YyFqan5KFQjaXetYtdgNm9kjg2z+GxbYTD84UbmkUqTjFYY2e2A m3S8EjMk+Txr6g40MLM0DEdN3u0+S9Ch7eJN+N4YwlZNoNCdPawIHSVbtVKI2QAEYYVcQ77M6a/ Dek4nlagEJD4Y04e2WRNFIYHHI7ck/UenXL/fOyrpnMppFUjYObHRa81KIcwSzpbIq9EU X-Gm-Gg: ATEYQzzxhjBPspQppqPJ4vx0zu5vRu4YtvTlsDZ6BgUI2Lvhv7ziGPwE0mFCx/k3wxL j+OqEU36JqPz3vhbUaqWDmrzP2+zB7+G/PLnxgSGRmjc6vZax3Mp+sp645MXdYfkMiSmX7usEc7 mtP7VXmFRdnlnlKggmV9qfW5HWekktoQx86eiPg+ftzNJ7Pw2354YCdTbtZO/4XtcGclsfLEaM/ nuygO5JXYclxGlD/oSoraFyFEJ7qTRkEXw0WjCluYSMjsm/XPA2eRT7B1ekBAwnpM4ssGefq7EJ 3zrkIu5+ZudmzeqVcGtU+cQZESa2EU767Nu0qbNtYA1InS8140Rd4gPrX202F+1tA/gxZO9MGnP nZwdhh81C6GpREoosQFYXEXvWft8FQ7qjsxKouutFKpd5w7n06ZBPG5Y0QYb0vhSgLxRj69HejU uXicc= X-Received: by 2002:a05:622a:5b06:b0:50b:51eb:c355 with SMTP id d75a77b69052e-50b80e73582mr24824811cf.9.1774431056699; Wed, 25 Mar 2026 02:30:56 -0700 (PDT) X-Received: by 2002:a05:622a:5b06:b0:50b:51eb:c355 with SMTP id d75a77b69052e-50b80e73582mr24824321cf.9.1774431056166; Wed, 25 Mar 2026 02:30:56 -0700 (PDT) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b9832f43a65sm754692866b.7.2026.03.25.02.30.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Mar 2026 02:30:54 -0700 (PDT) Message-ID: <4920d196-9002-47fa-ae92-c6f14e99c958@oss.qualcomm.com> Date: Wed, 25 Mar 2026 10:30:52 +0100 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 2/3] media: qcom: camss: Add CAMSS Offline Processing Engine driver To: Bryan O'Donoghue , Loic Poulain Cc: vladimir.zapolskiy@linaro.org, laurent.pinchart@ideasonboard.com, kieran.bingham@ideasonboard.com, robh@kernel.org, krzk+dt@kernel.org, andersson@kernel.org, konradybcio@kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, johannes.goede@oss.qualcomm.com, mchehab@kernel.org References: <20260323125824.211615-1-loic.poulain@oss.qualcomm.com> <20260323125824.211615-3-loic.poulain@oss.qualcomm.com> <1ba54ec0-be51-4694-a79b-f272e76303d2@kernel.org> <12194cc0-0960-486c-be7e-1a22d95de340@kernel.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <12194cc0-0960-486c-be7e-1a22d95de340@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzI1MDA2NyBTYWx0ZWRfX8kfmBUBfy0aJ VP8OVXmhevbyrv9OF0USTIucEf4Up7kuNEE53ZTTuyLQseEo71Tfrmq/fn0ahwwGoessR6aNiWi t5yh0IGJjI4+I6MkHWia2PYSdU71pmNmQ/XbM6RQxLQtSwqnwm9sLwd7IApnQuxWa0XRjOk+K1/ BCNKkdTucu8v2IWmreGBA5VhiRyGXFL00hesb0UG2ONrptnpx+KeFlpA4ofIqbjii+y/vMSBcEg jJys9mU1sV9dfmPUzYyh/xRaPIn189qOlkMbXZFi77rI8CjsoknYBYW1iaoZuMiaxI6x1BA2gkP 3V4v5SnZv/8jtUrCEz6e3wpJsPsDL+YUfDeHCBdP7wfXusW50YaM8SrqLqzCeqc7pYMGoW3eugJ squsFWzSzaYH3rHeMoKjr0vJc5px6hj621YYuylQYv0hWWJgNncbwntvo3ZBAYEO2GkYOMgL2N1 NNkeiZZ56fWMOELaT+g== X-Authority-Analysis: v=2.4 cv=VODQXtPX c=1 sm=1 tr=0 ts=69c3ab51 cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=MAgzBORBeBVPlHHXK98A:9 a=QEXdDO2ut3YA:10 a=dawVfQjAaf238kedN5IG:22 X-Proofpoint-GUID: 3udCcyHi6YL75a0LiCFQmlujXJg5N6xv X-Proofpoint-ORIG-GUID: 3udCcyHi6YL75a0LiCFQmlujXJg5N6xv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-25_03,2026-03-24_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 priorityscore=1501 spamscore=0 impostorscore=0 clxscore=1015 adultscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603250067 On 3/24/26 12:00 PM, Bryan O'Donoghue wrote: > On 23/03/2026 15:31, Loic Poulain wrote: [...] >>> So - this is where the CDM should be used - so that you don't have to do >>> all of these MMIO writes inside of your ISR. >> Indeed, and that also the reason stripes are computed ahead of time, >> so that they can be further 'queued' in a CDM. >> >>> Is that and additional step after the RFC ? >> The current implementation (without CDM) already provides good results >> and performance, so CDM can be viewed as a future enhancement. > > That's true but then the number of MMIO writes per ISR is pretty small right now. You have about 50 writes here. > >> As far as I understand, CDM could also be implemented in a generic way >> within CAMSS, since other CAMSS blocks make use of CDM as well. >> This is something we should discuss further. > My concern is even conservatively if each module adds another 10 ? writes by the time we get to denoising, sharpening, lens shade correction, those writes could easily look more like 100. > > What user-space should submit is well documented data-structures which then get translated into CDM buffers by the OPE and IFE for the various bits of the pipeline. Would simply switching to a threaded irq handler resolve this? Konrad