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 DDD9C3E0C66 for ; Thu, 30 Jul 2026 08:50:39 +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=1785401442; cv=none; b=ZapLrxUMc5M9pVNH7MPcyhebJr+jLPnA0VUqhy2oa+IFfVhZvbvaULxBMt1+rJmjGd8bC7KUQboy0DqW2HetO+qxmqQhz1lrQpmuJLsFU/DNSZCW9UCUSCfHWucY5GQ+PHYjUclxmcBdBMf5lau2FipQhdjM2/KaB3ZqyCC44VE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785401442; c=relaxed/simple; bh=KZKdLIYWIv8tdGoWpFWS4PuNKTV0IFluv0JT6hkKHDo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pDWDc8iGfJI4vG/0yR8rGAS7f1yetAs05BUeg6QXuLaMTY04BWT6UR7iUBjCWNNMyHP/255ux28SObqldev5/QEWiHJ97LoVVFFOhX6MktUR3twdwb6DrHKzEWLZz04XrW7IHkOlLtb+vQWiXQzIMeq4b3gBxxg6JgYeonUomoA= 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=edmY86q5; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=YaX2mCNq; 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="edmY86q5"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="YaX2mCNq" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66U8eCmr751048 for ; Thu, 30 Jul 2026 08:50:38 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= xOvJCQ+5VvVgswjumANrE9rhfvumkQxKMERIvOtcGjk=; b=edmY86q5QQeIvazu UjATeEWrkaPoVuItFLnqi8ukeZe/RsH5yy6ozKux94y1hl4z+rfCM7h8ZGzxRYCg uQOUnYrGIDzhSXY83Ov6NGdw78Ba42s0D7O9MLjPS1t0F83NMpxWnsF7fy9H6oDG 1kPbReqs0kD3uVWJSkra3Qx99+1HN5r86f4BqlrT8nP0iL6rgFhO+Qn+QL4qskvy OMYX9tgCJ015m2V0P/Bys2gvumz+OF/9E3oxfisp1fzN7aNiluk+WrJK6FpmuNlG 3UoExxKIpn36LsCIyVza3ncVWOJgIEUz3bYoMXRRHl7sxi1bJd9qI1bZtJzbq88h BUMKFg== Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fr3a9g1cq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 30 Jul 2026 08:50:38 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-ca6bd8a190cso2758761a12.0 for ; Thu, 30 Jul 2026 01:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785401438; x=1786006238; 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=xOvJCQ+5VvVgswjumANrE9rhfvumkQxKMERIvOtcGjk=; b=YaX2mCNqAmBm8klEQXsxbaAu0QBD/CeVsn4QxejeewF5GzQcMdK7w/AxDMzZNHqboT vlJyIt7EikrRVNDc1FOvHRdOdkwaTccOxHooP6wuwKQ3HDzxknd0N0IFHpk3M0j8dCPa R6NoZ2p1q1ldOapt8pXZPf/9LFzb6MThWv5PUt5F77u07LYfZAJJP5QAqGnocgHwNCv9 YUoZPcdY0O8AC47EzUoRB28PE2klVpcVxLj38IuKIHRMY4tvWT/NkGM3NfhbQ8AEXfZi NRaWacleAtrMTqo4yEXhbfoZuffXyyWcMCXmuJqT62HrYFc3hNmNUt9P7YjsEiDQdOMQ d3+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785401438; x=1786006238; 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=xOvJCQ+5VvVgswjumANrE9rhfvumkQxKMERIvOtcGjk=; b=adWsEByvfEV9kM4cfiB3H+E3rasDg9wpM+c/VF2FuAX4EU9eTWUihNKR1CBzGJfgBP GIPXco8HMdk1s5uTfurUbUtQc8skc2YO0N5gYdleEGZapPeOGUNBsAcokaugXvnod+oY GCWNKdcwSx2JEX/bxPugt19oLH4G6DCNjxCbMFJ4Rji4ySLFknESvQW38mpiIAC4yPpf q4b0/2M1iNSv5eFke0UMi057mNSXFwV+ZGaFqwb4nsEYzoWtmluXA1QDsOcJjI/0L75A roY18ZRjCTQlYIHqT9IuUOtz8ijmBhltrT9tAxHVcY9PrtGxB5AeCb/RzuZb/Wl9IBOh NqRQ== X-Forwarded-Encrypted: i=1; AHgh+RrGOzWXCrqQ1sOuI3p/NoMl/0cP/1YH2eM0LJ7N/OhxSH151uhsMdZ/z4Qx4K08xXMzMBPfOeRlr6NHM+k=@vger.kernel.org X-Gm-Message-State: AOJu0YweApKVDIYdt7+k5c3eFsh+NzeNK0D+zct78tF/KVFLN9j9qheV jXjpFT/KUbO99RuD7MIWA4SmS1SxUO6d4HOIDgdbG3wAhvR2FbKgxaiILuEbJh86b92FL4+1Yhw mqhf6pn/Bniwtz4er9DDcoZ4VtaatnfWSKCBVUgLqMj2PKUinv1bEXnYsDxk63PI7kIY= X-Gm-Gg: AR+sD10nIOf+vtYUzU5qvfo8sfJgDdt73zW8ivG496TCvLO0emWlt+uP4jgxCTO/OEx Lgxztoj66TMMG2C435KhGMDRCUk23St+j42jp3L1DJX37kgK+rHB0+fbU5sT+pYKq5OeryGUmXh bbwIUK0HVb8fBXvKPs8a7Fc0MHVxQ7clmRrVIrqdVQ7+mzqgh+DIFU0AziLpL1i+8FxAyZXLLs1 Rym/rQ/e7QatSQOZeeTbtlMJmQMfqZrRa8MrjYcuNZSvnZ+C2j4DnTUYaY9Vn+ZAT+dMaVHeZPp kkMUXwtk6RH/YF5o1QupACovlHMnOYyHRjskgGAAFFIP5RPPaBdyaBo7sy4l0qtQthN+GPf4ZDM dItbNTHlJZAAbgf9ezAJ9QRgaMJzHqdLwxCE= X-Received: by 2002:a05:6a21:600b:b0:3c0:b766:74f4 with SMTP id adf61e73a8af0-3c9007b4c82mr1766098637.31.1785401437703; Thu, 30 Jul 2026 01:50:37 -0700 (PDT) X-Received: by 2002:a05:6a21:600b:b0:3c0:b766:74f4 with SMTP id adf61e73a8af0-3c9007b4c82mr1766066637.31.1785401437294; Thu, 30 Jul 2026 01:50:37 -0700 (PDT) Received: from [192.168.0.172] ([49.205.250.102]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-31504b12cdasm21115475eec.1.2026.07.30.01.50.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Jul 2026 01:50:36 -0700 (PDT) Message-ID: <854914dd-0872-497d-94f6-81a36a405cf2@oss.qualcomm.com> Date: Thu, 30 Jul 2026 14:20:29 +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 v5 1/4] dt-bindings: media: qcom,venus-common: Add IOMMU IOVA reservation region To: Konrad Dybcio , Bryan O'Donoghue , Dikshita Agarwal , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jorge Ramirez-Ortiz , Stanimir Varbanov , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260722-shikra_vpu-v5-0-3d80babd4672@oss.qualcomm.com> <5nIoqMekE2B3CTU4TIlUJxoI3Exckc2sUM9RmZBqboEOvgmkdrhKlRX3-FiMOiYFCWXwzO5pii52NJ6epuy1Fw==@protonmail.internalid> <20260722-shikra_vpu-v5-1-3d80babd4672@oss.qualcomm.com> <557377b0-7a21-45b6-b62c-d3b34a6a29f4@linaro.org> <67c78d88-92b8-44b9-bbcc-6f53f6c60ef9@oss.qualcomm.com> <048506d0-7dac-43f1-a50b-f9f4c1d125a1@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-Proofpoint-ORIG-GUID: t8a8HxKvD3L5aVz1TVyInJmLeaukcZmT X-Authority-Analysis: v=2.4 cv=GpJyPE1C c=1 sm=1 tr=0 ts=6a6b105e cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=M2acBXnaP4sAQTlOGKtplg==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=Z3p5NtGldf99kMNzltkA:9 a=QEXdDO2ut3YA:10 a=bFCP_H2QrGi7Okbo017w:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-GUID: t8a8HxKvD3L5aVz1TVyInJmLeaukcZmT X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzMwMDA2MyBTYWx0ZWRfX+OfMBFBLX533 sDCGsX3fvzArX3LVmezxI66AkJALS21ujFtfAUOTGlA9IjIizdC9EJFjS8ePR4Aup5yKmVfD5Wq 3c3fvzsI6DliFaUpSae+vIOR6/QgOLfgGgOAR/yRLpMCayA3jGwWJSBFHh25B1uuJc8bM5RODx7 ph6zXtyCYEfaYncRUZ7ZD6q+pMp9tEY+TeUHE9xpjzotOrz/DwGZ+bcB1AmiMMlKtd8NGtH39tT HfizGfZuTyZ5R88bRGVo6RIs2GT8GohI47Gm98Udfbn60fp1tr81fdfoxZ1rNn77d/bUPYt0Rl0 4m45/jg4vxlloI1ckoS/K0KncDkURiZXqnL34UGglwCywwIN6OFqc8U1WZyBs9dIhOTrMRmmUv5 pPQWK6+NE9MEHT5CdzUsJphISov0Jr95ecaYJQMy+3UHJzhdxowUacAOP2abz1UChslun3hL6Ij Hc51BInYEQbtOr2TXhA== X-Proofpoint-Spam-Info: AW1haW4tMjYwNzMwMDA2MyBTYWx0ZWRfX0StP+WxoPZ0z p19stFlMY/LC5jS6mij8Cx3oKv1afkyuKXj4MF8EE1/fhgI8L/0SIVqum4Qg6mwYXv3HtIirg6l 1Y1ZHlcIO55VGiNSLDAkva1skhg6VAw= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-30_02,2026-07-29_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 adultscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 phishscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607300063 On 7/29/2026 5:51 PM, Konrad Dybcio wrote: > On 7/23/26 12:44 PM, Vikash Garodia wrote: >> >> On 7/23/2026 2:36 PM, Konrad Dybcio wrote: >>> On 7/23/26 12:03 AM, Bryan O'Donoghue wrote: >>>> On 22/07/2026 14:41, Vikash Garodia wrote: >>>>> Update the memory-region property to support two regions: >>>>> 1. Firmware-loaded codec carveout (existing) >>>>> 2. IOMMU IOVA reservation region (new) >>>>> >>>>> The IOMMU IOVA reservation region is required to restrict usage of >>>>> specific IOVA memory range. For example, VPU restricts usage of 600MB >>>>> for specific streams, which could otherwise lead to device crash. This >>>>> change allows platforms to define separate memory regions for codec >>>>> carveout and IOVA restrictions. >>>>> This schema update supports existing DTS having single memory-region, >>>>> thereby allowing gradual migration of DTS to support two memory region. >>>>> >>>>> Signed-off-by: Vikash Garodia >>>>> --- >>>> >>>> I'm not mega-happy with this pattern being used - I prefer the pixel pixel_cb sub-node model you've proposed yourself. >>>> >>>> OTOH you're the maintainer so its really up to you how you want to arbitrate this - the 600MB constraint will work even if its not pretty or the best thing (tm). >>>> >>>> Reviewed-by: Bryan O'Donoghue >>> >>> Doesn't this cause the same limitation that the initial patch >>> by Daniel (all HW contexts can't access 0-600MiB anymore)? >> >> Yes, it does, but for cases, like Shikra, which have single streams (with SMRs), there is no additional benefit in going with sub nodes in such case. > > Please note that somewhere, I was under the impression all venus > impls suffer from that Yes, all of venus/iris, including Shikra, have this limitation. I was trying to convey that for single stream case, like that of Shikra, we can specify the restrictive IOVA range in the parent iris node itself instead of introducing a sub node and put the same restriction there. Regards, Vikash > > Konrad