From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 D0A45437852 for ; Thu, 6 Aug 2026 10:08:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786010920; cv=none; b=SlL8lqekV9s2FP4njOpSg1TVm4egubKNvZf4VZtD0uxkpZmHtHFDhiKY4K81yQVpheRqVzc1R1sSaiO3uShOGBQiZze59XhkMkSjtSByHL9o8uHuN1B/J6MWzjRiCqYz+1+fBz1u/qyMBa5BYL7OCJtwijmr1ia2c5lEZKOVNuk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786010920; c=relaxed/simple; bh=xCxUMghW2Xyi8faCH5QpwDEU1W4G+MMm2rfwWySl39Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=aEJ33jAJhSpz0smh+qT5Ka16lFunyq4F0HimAWQo3wr/2+uhvwrKX8avHGNmsi0NcwJp1evcJozi/RrM/tVz2Jio+mzSFaFTFMiuOQioEauFMbM+BravvvsJ4bMHtcWHwip/voW5wMhpwcPEOy0n8MYRx6O+oOfCCooXvVZlx74= 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=Uw0BfDb3; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=HgNbhRBy; arc=none smtp.client-ip=205.220.168.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="Uw0BfDb3"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="HgNbhRBy" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6769nmgB2724751 for ; Thu, 6 Aug 2026 10:08:30 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= iyOUQx3uVZC2rm7J8gJxSev+lJA8+WSrUOAuZsrWWxg=; b=Uw0BfDb3WPVliKgP JCWmPWixkfJdB0Ste3TtPH0VXlkVC41xuBL49//2EweTIOuqqEahmsE0FH+XIzjm +LTB7/wQxHv286yx/L6TwXq1Xg7PP7xqlMPt4kKSCHDdLmqhjgeKqElzLogUiTdG lztSsFVqQBSMQ5bng9x54SgDeg44CIcPPF7sgBnmBdiWg0dbhh7ZLXJakC7JJyUb FYPJ6C2EmyJ5dGPc7Z1x4xi6hT+k0JwVK6KbmXPNgHHy+38Z/njaot4+kLm30IF0 Ru4HK4kBhpAeKQmc7ZbzvLMh7b5JfSjDyzK+gBOLDJ/q67WkG/sNK3rIeHAH75nM NgnDJw== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fv9dmkmm7-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 06 Aug 2026 10:08:30 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-388cfc4848dso2548631a91.3 for ; Thu, 06 Aug 2026 03:08:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1786010910; x=1786615710; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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 :content-type; bh=iyOUQx3uVZC2rm7J8gJxSev+lJA8+WSrUOAuZsrWWxg=; b=HgNbhRBydknmn2D5rakUwb1VEuUd9TFwuMT4RncEgjukG/0nqBQ5TEpZNphli7veP9 aLT/yE6oEGBW44Ld84u0iLytS0ILudC5AVmgAXHXJaUC1x4vKyhrjLyM+7Av++JBjw1L aaSq8Pj5YcxAHv4k+mTGG8u5BFAoNqqMDQa5/N68NTFlKcYR4xSLH4gDyJAxfy2WfUqc H8g2pv1YUrgElb4YP13Iw8hS/zNSyN+YhPBGkM2m51pCxo5gTdSeuunKewdQnPOgyQBb 1makiimTrUwofHyoAmcSlz/sNcfU2bgTNnzuukyMXzThZtQLtK5oQVvG7RmYXJ9EtZFL ePxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786010910; x=1786615710; h=content-transfer-encoding:content-type: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:content-type; bh=iyOUQx3uVZC2rm7J8gJxSev+lJA8+WSrUOAuZsrWWxg=; b=iYBsFphxQhrH9jBYekl/ovlymebl1EUAb1HPkOjr7BuUl5f7sT6XF/7PnI+HneXBkx kEpz9j+SrBdAELpAAulnGF4CT9bLxG5fcOHAf6KsGfURudDTJxj/J7NQZqChjpxhryZD 4iFoH8pUjoqZgCXKtYs4eRTN6WKD3Jd5IFxdKyUMSY5N+bbCM6BXJt9ztr7g+voijQe/ bqFxTsgsMMZdiye2i0k8i2QnKcpBu8wa925Z9n8BWRxTazQ2N1ERqW2aWI4LGo0MQAf6 lAunkmtTaiTHHPjc+woeq4TkCIRlAqtLnZIMUGefiedBODJ7frkVZvvSPVrl82Dj4M50 Aurg== X-Forwarded-Encrypted: i=1; AHgh+RpVapXW0zCQ7/0A4W/cdijeNMBFicpJftub3AGu8YBY5NxivSaD2NSiiQC5qSgdeWJ9v6X4eOwEatcG7XM=@vger.kernel.org X-Gm-Message-State: AOJu0YxnCz8N4ue/FBc+eIXl2eYrjN9aCpCpwTSZGeyWjoY5bFv0NPDo dU15y3nvrWa05i7JbwVKAg374oRL/bxz8hZNL6HtUJPlI+3s3/2hJSvVtpYUuavJ266tpXPttMH nZsio74cA0k8XUxbTRpJBfyD8YWZP26Qg6AyGIXcUV/1wzm8HfNZIZC+Kii8YP+8wiys= X-Gm-Gg: AR+sD11PYpPlYjkIBJJChj7t6NTsXBtP65t69FCmIZmWZFLyhbq78Ay71nuQAo2zZ8p z1u+ptntQBJGSpOXJR8Q5/r00at6QuKbLpeGfb2mdCrkB/qw2MXgw0c8oH8wPR8v0cS5UhBtFlz QBedSss08bVypnxSETNDNuMg9wKtrEi51UmZXx1zOLiLOcyAuO43dDaiT4ktVIaGJk05g86BW1y 9KouKES12V30FKOpkGsYhIvIeOkIwixa//hr4XncoOQ4IWRvgoPLn8/lOIsxzwWs0jVmOzr6lDt ALfOv9yKAD8QXeKAzwhf18K7oYstJvzQs1Tuo1KNQ833mOJc3KhF66i/F2UGT/8zJG7lDpmaWj2 7VXvyIZhgFlo809jzXz2M2tGFNIBy6Kl0a0g= X-Received: by 2002:a17:90b:5203:b0:37d:f206:a2ac with SMTP id 98e67ed59e1d1-3903c598ce5mr14953605a91.7.1786010909517; Thu, 06 Aug 2026 03:08:29 -0700 (PDT) X-Received: by 2002:a17:90b:5203:b0:37d:f206:a2ac with SMTP id 98e67ed59e1d1-3903c598ce5mr14953531a91.7.1786010909098; Thu, 06 Aug 2026 03:08:29 -0700 (PDT) Received: from [192.168.0.173] ([183.83.142.146]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-315863b761asm38533481eec.1.2026.08.06.03.08.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Aug 2026 03:08:28 -0700 (PDT) Message-ID: <36b53e0d-82e2-4fbb-a2b6-3fd7b9c98663@oss.qualcomm.com> Date: Thu, 6 Aug 2026 15:38:20 +0530 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: [PATCH v2 04/12] media: iris: Add helper to create a context bank device To: Dmitry Baryshkov Cc: Dikshita Agarwal , Abhinav Kumar , Bryan O'Donoghue , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Stanimir Varbanov , Neil Armstrong , Bryan O'Donoghue , Stephan Gerhold , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , stable@vger.kernel.org, Vishnu Reddy , Daniel J Blueman References: <20260731-vpu_iommu_iova_handling-v2-0-da52b5228dbd@oss.qualcomm.com> <20260731-vpu_iommu_iova_handling-v2-4-da52b5228dbd@oss.qualcomm.com> Content-Language: en-US From: Vikash Garodia In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=TJR1jVla c=1 sm=1 tr=0 ts=6a745d1e cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=eVbXwf39F0J6/s7D6zfB/A==:17 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=t9ty7G3lAAAA:8 a=4qxhn-3g-SBwpGBp1HsA:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 a=CsAS6f0m0zARWR-uHzm3:22 X-Proofpoint-GUID: tJfMvCEc3slir1zizbBMJmkkrUDRwWkp X-Proofpoint-Spam-Info: AW1haW4tMjYwODA2MDA3OSBTYWx0ZWRfX341JaVLP4aYc bxGJQt8JYc9jWlrZXa7uOTv6IO8UetF25YrcslEAdbXulZyGaX+bP7crrv/7SsDJd+QlEdsMB1K sPdTHw2AlyEx/wvC7hyMERBA0LQSjGM= X-Proofpoint-ORIG-GUID: tJfMvCEc3slir1zizbBMJmkkrUDRwWkp X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODA2MDA3OSBTYWx0ZWRfX+s+cvWTUFQ8F etTM6VQ8kMTTtcA7Wste5dAi2KcgA1LvOpl5eVHM1QCftltmo59VG6gZXb3N5MeD0+13o25DhKf gYGpYMI1RymKEzc1AOQ2UxYEzT3U4BDC6v1+we1EvCNur7Mxo9gIFihq8AnIIQXiNQe8bN6rxIn pftl3x8TvWd7cOGhQ+Ua/lNxL/qGyseAoldB0doRIB0m4ULSnjhHjdJUxjj3E8scsjfpy245xyd Guv6JOvj3tkU5YgG0HB1TDNZFn5D57ohOld5nNQ5rxbyaaaMK8ujYlnXpQPxdGMakEEYQLnJqVd oAffRaos+m+5L8wqBzi/fBw7d4q9XqN0nUDcuDbaqapYmd1KqLpZVZ+y9jYGOHHhbRSWtHuVo8v hanYWTfdYpUDathFza0++e3YshVOHVVy+k3P4VKJEP1jKL3vezgUjr2b7HinXtj/IVSULoUlWEl gkdfJzVKn+mkvm1G52A== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-08-05_06,2026-08-05_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 bulkscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 phishscore=0 spamscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608060079 On 8/6/2026 2:27 PM, Dmitry Baryshkov wrote: > On Fri, Jul 31, 2026 at 11:52:19PM +0530, Vikash Garodia wrote: >> The VPU issues DMA through several SMMU streams, and the hardware does >> not give every stream the same addressable range. The non-pixel stream >> is restricted to use 0-600MB of IOVA space, while the pixel stream can >> address the full range. A stream can only be confined to its range if it >> has an IOMMU domain of its own, and the IOMMU core attaches a domain per >> struct device, so each stream needs its own device. >> Add iris_create_cb_dev(), which looks up a named child of the iris node >> and registers it as a platform device parented to the iris core. The >> child's fwnode is handed to platform_device_register_full() so the OF >> core applies that subnode's "iommus" property and the new device gets >> its own IOMMU domain. The DMA mask comes from platform data, and the >> segment size and boundary are capped at 32 bits to match the addressing >> the VPU performs. >> Return NULL when the named child is absent, so callers can treat a >> device tree without context bank subnodes as a supported configuration >> rather than an error. >> Backports are intended since the first DTS of 8550 binding schema. > > What does this mean in the commit message? > >> >> Fixes: 41661853ae8e ("arm64: dts: qcom: sm8550: add iris DT node") > > How can driver fix the DT? > The idea is to backport the driver fixes till the kernels when the first DTS landed. Ideally the fixes tags the commit which introduced the bug, while in this case, was thinking to keep it for DTS. >> Cc: stable@vger.kernel.org >> Co-developed-by: Vishnu Reddy >> Signed-off-by: Vishnu Reddy >> Tested-by: Daniel J Blueman >> Signed-off-by: Vikash Garodia >> --- >> drivers/media/platform/qcom/iris/iris_resources.c | 28 +++++++++++++++++++++++ >> drivers/media/platform/qcom/iris/iris_resources.h | 1 + >> 2 files changed, 29 insertions(+) >> >