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 F038749504E for ; Fri, 11 Sep 2026 17:47:00 +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=1789148822; cv=none; b=tv01/8q9wUOXNZmgmd6EIf8PahoaqnegXFGPH0PCiyIPXVmOmAiuQWUKMhg9aj1fEbe7cx9/EujWkAx32O4ryJaXMaZHDRH/M/bnNgGapn47mmelAPFP9gdyBAP7ICy+ZjUkCYd29UH8q8fKjIUWa9auiJPHxdnOQae+X08rUvo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789148822; c=relaxed/simple; bh=8I8OglRCEAVJH2OPdrvFUHnij1NfmtFjfc83aLX5lcw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=CL7CK4Szv2nVifmQzF+1ylXZUdkRYR/qrG+9mcfj8gZR/A0569t5e9RyNsE/99Gp0CP0GZOPzvXGwjoeD7LcFDjOCulojyCgpakzVwktgGi60Ffujp79NhL0aNgrPpSXkv9dZk3ERWueJqM7LoU3EkRi5QwlbTxJWpfzwePvPEk= 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=hMEf0DKg; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=bPPlI5fR; 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="hMEf0DKg"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="bPPlI5fR" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68BHWqT8589827 for ; Fri, 11 Sep 2026 17:46:59 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= fsgmAPw6yBdhTP5tdUXY2KIVjFb7ZoZOJkT3weJPqcg=; b=hMEf0DKgaxDLZHie OQN47RZMrFw779TQBk80AIqOD7gShUZcM6LuGVYVYAA4VtcEJiHzyGddDcBg/Ddj v2YS5fwDp6oYrrWwFcE6d0D+00mLZFJh/tj3F5orftjGseMWWq97HhL67aMpFjw5 EcVpOGoHdHpDcEWTmvddvRGY3MrQBRVXqCdalF9O/bcY8S82IHvSXsyP0oGBUtmq UW+Xb5ZmposUlivB2+JJnyCE7G0HT52sKdkOC+g7mHAvdWjps5wXr/gtIOF36QuM zcS4ZvTHWJDT+uoYQVSghvWfgMU2F38zCLXejEuLd93NIhtpmSh2OQY8SfEHEujD 9LdOCg== Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gmbdrb0p4-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 11 Sep 2026 17:46:59 +0000 (GMT) Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-cc2229450b4so1037573a12.1 for ; Fri, 11 Sep 2026 10:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789148818; x=1789753618; 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=fsgmAPw6yBdhTP5tdUXY2KIVjFb7ZoZOJkT3weJPqcg=; b=bPPlI5fRBn0ZLkW4ZLCD7SzMgVUEqLhzZ4ttFbNBDRj4HjOWWfkTupDje/R7i4ZD6+ 7s3hGRP/SHv0DumweVXbhI3zwOSTPVnFLa9rZgayZrG9C/WIQ/NelfPW0LQSUyKRxr9l G++u6U53G7y+yFd2zNocvolYKUuvxT6SO6txPPm7pebL8kuyIjLEt8UDwWyGf3pgRukL mJHY0CSUhzIHlaNQ+HWgj/84aIzcQYINcRg6uV93gu4B89wfR2vItnM0cOZcB7urJIHp E5VS3CBv+oA5+kKzvQaPLM7Q6GpqXU8c6mVpVvzDoUOMg0LL8wAJKQ/XzPKBmhF9PVsa zfbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789148818; x=1789753618; 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=fsgmAPw6yBdhTP5tdUXY2KIVjFb7ZoZOJkT3weJPqcg=; b=HzO4tTby32rJCuSfT6CJgwMzmar/Zu2BhsJNAsyNCqWCu8KVn34IM32ITxfXl33Z9l h68g5M5V2slKampUSR3xf9B0vzHmWPxYqGrnI5jFVY69sygs9nU9GxXTp03435nP/aVG URiOYlXlYDolGQ4A/7H4nQ4jqpZd+56tJS4eL532IGtAA4LlKilaZnAlJjafJf/MDBkW vb3W7Esgv0hVZO3yye97s2DjtnXrGVOpZO0ESJA/eUd2obWi23S0Ynq/ZkMw/u1/BgJF OHaCzsIBaKhtAHZiM80DSD4eojE/VXTeMTsqF172UrTZPDmArzhuDdxjQE49uha9jd9M qcDA== X-Forwarded-Encrypted: i=1; AKwUvBy7MzDLFHgbG+AF2sOsmozMG3P3M9hT1czIxkaaW6XYGSVySgL9NEwMkzYZ7gzctiQD9K5cVCFRs83PivU=@vger.kernel.org X-Gm-Message-State: AFuF++n8Boz+U3k+eTPySnj5eNczkn2b8B/rWOxu1cfHfSFNGaocoPjS Jio6O2sNHz6tanfBr8kevsVnVCJMMWpvjb4EVb5eYZebUz7o2E4FsO+ZSAKF0aLehNV+4mp/csS bPTLdcIBnsEaZJElKcSGLKPlIxYHMBKbLxugb1+swkJU6fIXhyoPuKkr7T/jgy9DgsEI= X-Gm-Gg: AYBFou3iTNZvRoMyuOrRVq9JCLxAgiu2x5GjZPwPoLvDZ74Ht7k5H+skH/o0+h5kJsC rrZHHR9Txe475ys0q5mv1NQZIRLZoe1xamzW+rs0BUblAh9H/Aw6riVZ54ycDCwkIDbmcqHtadw A4Mo2W+PZ2LHgYDqADzCnLrvY40O83t3uloYX32V9URzCSBp/UsX/On84xa8hx9wbrU0PNxtkyW yh3wz2C8GBV9wclTGAualpVdlO9rUBfsZFYcXFioJk/utflGk/YvnZqTShlMLT/XdTYcD3JeHcw DxXioUAFykym11DqUBGGUXt2gOLihlrxbcLUJVINo81pZVBd+qTATm0a+2In94LMLPvnfBRy/5u a965Ef7biNdnG1mwfFc4WLTBn/qgpBbCtNFE= X-Received: by 2002:a17:90b:2f10:b0:38e:5c6:4db9 with SMTP id 98e67ed59e1d1-39d9becda16mr9589987a91.11.1789148818583; Fri, 11 Sep 2026 10:46:58 -0700 (PDT) X-Received: by 2002:a17:90b:2f10:b0:38e:5c6:4db9 with SMTP id 98e67ed59e1d1-39d9becda16mr9589942a91.11.1789148818123; Fri, 11 Sep 2026 10:46:58 -0700 (PDT) Received: from [192.168.0.172] ([183.83.137.104]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-33ba4e5182fsm7928959eec.9.2026.09.11.10.46.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Sep 2026 10:46:57 -0700 (PDT) Message-ID: Date: Fri, 11 Sep 2026 23:16:48 +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 v3 02/13] dt-bindings: media: qcom,sm8550-iris: Add context bank subnodes To: Krzysztof Kozlowski 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 , Dmitry Baryshkov , Bryan O'Donoghue , Stephan Gerhold , "Joerg Roedel (AMD)" , Will Deacon , Robin Murphy , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , iommu@lists.linux.dev, Daniel J Blueman , Vishnu Reddy References: <20260909-vpu_iommu_iova_handling-v3-0-2fe43ae45495@oss.qualcomm.com> <20260909-vpu_iommu_iova_handling-v3-2-2fe43ae45495@oss.qualcomm.com> <20260910-gracious-angelic-frogmouth-bcddc1@quoll> Content-Language: en-US From: Vikash Garodia In-Reply-To: <20260910-gracious-angelic-frogmouth-bcddc1@quoll> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: Ix6Z11WSGGqS7tvFsGcVFd__6FQcCQPu X-Authority-Analysis: v=2.4 cv=PLmaavqC c=1 sm=1 tr=0 ts=6aa43e93 cx=c_pps a=Oh5Dbbf/trHjhBongsHeRQ==:117 a=TwCXObd+TJU0JWB7kQOUgw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=e5mUnYsNAAAA:8 a=VwQbUJbxAAAA:8 a=NEAV23lmAAAA:8 a=t9ty7G3lAAAA:8 a=K3eY9hOJoobCHU9vVZQA:9 a=QEXdDO2ut3YA:10 a=_Vgx9l1VpLgwpw_dHYaR:22 a=Vxmtnl_E_bksehYqCbjh:22 a=CsAS6f0m0zARWR-uHzm3:22 X-Proofpoint-ORIG-GUID: Ix6Z11WSGGqS7tvFsGcVFd__6FQcCQPu X-Proofpoint-Spam-Info: AW1haW4tMjYwOTExMDI0OSBTYWx0ZWRfXzJl1bN7+vKIC qh9YhGe5Bl0qtgNlXoa+qxmUIvLArh7AhW6hGfxxM0tMgccnGKY52MphEVklk/SYgb9ABltotW6 eitDwR4NGN6g6BVe+vaiizuojGc+WAU= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTExMDI0OSBTYWx0ZWRfX2hWXkuNkF1o6 80YYbZABc1gqhlKGgg5Y4frObOi9FeapHnP7VU2M66Wb5CSfGOYvyfo8jEUG80aQJmQNvtKcXoh 71xyzEZKidEO4I/akzul3i+zRFUY3j21eUrilynh26Hd0ytUuusgkvsnAyW+1F/ig8zR1SqExko Ju5/04vG2mez4tw0U9PyGzgHPRWVq5gsu/ik1YTKBZKtuAR90JTMeaabpUYqhWlh8BkAgwJZRHs nG7Qu5F3ya3vYmnRz7d+urkw6wkIMWERpmiLwdMchgel+Kuit2JKaXLydnvRy31fuFsdW/dPRdh NpU1FRgh93iw4X7mJPwSVk+uROM/ZOlfzjikUt51Uw7RaigdEAWhhUxDg59FGjtR4tHIiMvfdV1 nBsCU+pSsQGQ1RSaYBklXKMuQ5g35HmrvH6k+Ua7c6JWh7xeO4Irq6kh/EE7Ev0xScbbWs2e80s Ee3RvzBBbenmkvQgQNg== 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-09-11_06,2026-09-11_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 suspectscore=0 spamscore=0 phishscore=0 adultscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 impostorscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609110249 On 9/10/2026 12:30 PM, Krzysztof Kozlowski wrote: > On Wed, Sep 09, 2026 at 08:27:09PM +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 >> cannot address the low 600MB of IOVA space, while the pixel stream can >> address the full range: >> +-----------------------------------------------------------+ >> | non-pixel stream addressable range (600 MB - 3.5 GB) | >> | 0x25800000 - 0xe0000000 | >> +-----------------------------------------------------------+ >> | pixel stream addressable range (0 - 3.5 GB) | >> | 0x00000000 - 0xe0000000 | >> +-----------------------------------------------------------+ >> A single "iommus" property on the video-codec node puts every stream in >> one IOMMU domain sharing one IOVA allocator, so nothing restricts a >> non-pixel buffer to avoid 0 to 600MB. Once an allocation lands below >> that boundary the hardware faults, which shows up as unhandled SMMU page >> faults and spontaneous reboots: >> https://gitlab.freedesktop.org/drm/msm/-/work_items/100 >> >> Given that the address range restriction is for specific VPU stream, it >> should be ideally be moved to that stream. To achieve the same, a subset >> of streams is now represented as subnodes, so that each can be >> associated with its respective addressable range. The design was >> discussed and agreed by mainatiners here >> https://lore.kernel.org/all/c7b956a9-d3e8-4e18-b780-5d08f5cd2ca1@kernel.org >> >> In the past, this limitation was addressed with an iommu-map approach, >> with the iris driver dynamically creating the devices. That approach was >> later concluded to be a hack to avoid having subnodes, and was NAKed by >> the iommu maintainers. It was discussed in detail here: >> https://lore.kernel.org/all/c7b956a9-d3e8-4e18-b780-5d08f5cd2ca1@kernel.org/ >> >> Update example to the subnode form. Doing so, it picks up the supporting >> properties needed on the video-codec node, address-cells, size-cells and >> dma-ranges to declare 1:1 DMA translation into the parent. Given a soc >> with address-cells and size-cells as 2, update the video-codec "reg" >> accordingly. >> >> This patch depends-on: >> https://github.com/devicetree-org/dt-schema/pull/207 >> >> Tested-by: Daniel J Blueman > > I already asked at v2. Sure, will drop the tag and dependency PR will be added to changelog. > > Best regards, > Krzysztof