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 17DC347B432 for ; Wed, 29 Jul 2026 12:21:30 +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=1785327694; cv=none; b=KVokgKmdz2NURjARxIrlnWROCxAioAOh3wYGjspgmWfJgD1inRMivhjAPQ/lAETxOTpOrEB7/aggXKTMEbM1ygYAHkcggE0g0BQwDVavLw/cKua7II+uVQv1n3zMBO3nRKPTCcyZFgg65Bqg1nj8CNc3ZxfYwEPr2xK/qitU184= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785327694; c=relaxed/simple; bh=7ICtZdvXRJV3EmjLJJIYKJYnvr+oM/oLWK2mf4A79nA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AWVIheHGpri7aIxe1QfgPYVr2rv3gKJWHyhktS9pagPp07LrSzwEo/WmECB7996GPX3IiGAV3EIXxFp9CoSYJV63OE8sCfk4VbLt3QHKvyR/suPlLoSgmvyHOrN4SFKELnE9OPOucgyXq0fLFIzcUboqQc9brxY/xQ8G3y4exCs= 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=QRF/pWGE; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=L28ZgKo1; 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="QRF/pWGE"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="L28ZgKo1" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66TBsvmv1766501 for ; Wed, 29 Jul 2026 12:21:29 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= JHpog9Rk1OST8cI3WlMIogXhYpKp3S0j1bZgLhgfGkc=; b=QRF/pWGEiD6EQDEl mOBpM9V+bsquTM8xpsQjXSNtA5ZvETht83BabEMGKX6C1bQREWFB6JfdnpMiTtzf LRWdrFgjLit1ilhjH4OMZMIzQELh18Rprm/2UetHw5qu+GH42ECnFjy5eSRA+ACZ Ma6RoBQ8gNynD6qxC45RuXWitlsNzpDre/f/Jg8znLLYs4qG3+uZKCErllmgzZQv 2ApTTtnbXRE0JtAGDurfv5hprxbnfUbHzaB8E0A2PC0SAJ+p+TooZPEigjGPAA2d DcSqGg+ZH49vOTX0/fT3XQj02OwHxA+iwlt1oSBV2RasZcdjhhbvNv0p6WUkn6H8 dj2E2Q== Received: from mail-vk1-f199.google.com (mail-vk1-f199.google.com [209.85.221.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fqh2kg3by-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 29 Jul 2026 12:21:28 +0000 (GMT) Received: by mail-vk1-f199.google.com with SMTP id 71dfb90a1353d-5bf8b2b33a8so13158e0c.3 for ; Wed, 29 Jul 2026 05:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785327688; x=1785932488; 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=JHpog9Rk1OST8cI3WlMIogXhYpKp3S0j1bZgLhgfGkc=; b=L28ZgKo1VmKw16Esp/YZpcljq12bNf7UwxQKfSbHsE4NCYAlBKgj+R/Ybn+ZVcqw3L T0rKq/32FaAmFlgFYaum8yOYbhSKUHxmwAma9aMIAR1l5Yhb9g/dszoSN3zWc9UqOUYr z4NNc1I+28MnH2QFIAbkBMpOtDD6GytZ20ROwh6GUHLrH6MIMfBKETucaAxHu3B2+jm5 TBdsUBvaxzNa7MWAPtVZ2hCfpBQl6ny2AUA910nKUIzJDo7Q8PqS+hiNWFDNOrNtRiHg sRCmcKcMUclBzn77Pjtdm3UeYX2n/zTp7+0/dMVSvGvRA83DCyZFt4Aq7PRxcCxWVRJA s4kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785327688; x=1785932488; 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=JHpog9Rk1OST8cI3WlMIogXhYpKp3S0j1bZgLhgfGkc=; b=hE049DFPz8dK03KQQv0ATMISpROln4mu9skQ877oM87FQG8IZKUbHGZG3whtYYz5/W xXharaRh/7akifWNPJhy4HyW67eNW5EOu3B/CcBQ0L9UKTzfUt5dkfnaEtJtdw3Sg813 CrWs9KHCKMtejdKjfP2goajMAsDISQKMWpDitIBppFkEy9RMFZ1/8Ky0pl+6tliKBUvN +APwzkDrRQ+/6g3HpuYVJUqD1jMe5Ftnh9C8FdKTQPaDaFGSRvrYUqVQorqxxk3XtQR8 M+Wpp+f/LfiJHFv9JudyOVop8Rnf5WnY1wgUj53tVLBbsOGf5J8I/vaVg1qwjEO0elN9 +/xw== X-Forwarded-Encrypted: i=1; AHgh+RrW/tk91/r24IanBMMV3Fp26rzd5sxA+rXl1jyPBHMKpuMHyIADBiTta7yFQWxHpqCeA4UIdQzKFI1V@vger.kernel.org X-Gm-Message-State: AOJu0YzBOVfa03l/ZpCjnNUCixOhma2Pf4PhYNjfXIhcJo8DnEAr4tYC tKGqy0xo+zbYunaS1jgSDGD6SE00SDj8rz1+6mSOU/j8DGdRuUVvAalR6XRqZnGdjT3lb3XaM3N sDI8aZNtWi0VYFb79PDlMRD8akSdrnNlChg1Ba0E1QwyFxuaGWrT/++vt0Gr52Dpx X-Gm-Gg: AR+sD10Mi+6ADU0lz8vCziZUuK6MGGsjNRuzKhGGAa+SNdwXHZoBQuhAJ3Hu22q8E9o ZE2J/0JKUAPUJLlDFeo6JRmKoMGN5aVdCZBvzlRMVjeoVrjJSxV242V3BYoY2TElpKMulTqi69L PG4fL3u8XOMF22OIQqZyG9nSVH3yf4gn11sqColCg3fkkEWiPxsx0BQSpbe2MRn/y3rsS1/NrlB D6dsW49y3duhspAo8QEAj0wc90kbPProGIBKgkZFXRdMQQSYCGdYZnlFtqRtAbwPugwtAiGYQqX H+evhpHl5F7NVHs7xaADfA0Wk784PQ02M8zfuV7r37a14NVn2GKDjR/BZ0oy1KfS7qgkSUz/WPA K6A7tncM++GmZNclleqm63Hn/ X-Received: by 2002:a05:6102:3752:b0:633:3bf6:977c with SMTP id ada2fe7eead31-7554b743414mr2286016137.1.1785327688278; Wed, 29 Jul 2026 05:21:28 -0700 (PDT) X-Received: by 2002:a05:6102:3752:b0:633:3bf6:977c with SMTP id ada2fe7eead31-7554b743414mr2286000137.1.1785327687786; Wed, 29 Jul 2026 05:21:27 -0700 (PDT) Received: from [192.168.120.193] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6a050c6c9casm736909a12.26.2026.07.29.05.21.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jul 2026 05:21:26 -0700 (PDT) Message-ID: <7a77bcd6-3c15-47e0-bbfb-f3d1790edda5@oss.qualcomm.com> Date: Wed, 29 Jul 2026 14:21:24 +0200 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 v5 1/4] dt-bindings: media: qcom,venus-common: Add IOMMU IOVA reservation region To: Vikash Garodia , 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: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzI5MDEwMiBTYWx0ZWRfX+A8JSgRsSPM7 4wDXPsrSSinF5oi/zeXakqLjp8RqflP9ONQCvZ07ojPXGz0DfeWfkDtMWyLGhuboHNOe8ewwpZU YREJmKk76Hm0SPa85fVPnM+Vzc2Q1j2fxuprgmnMipBvRsd2XbXR9KPLc+E2xNfOt2gfe5f1s7v JjPTSsHHwL55VVuXciahUKnSu1cr0g4QlFSpE/GgfCQR/2AqwP0+SwyL/GV2llHnpmY3VRNQBfC 59y0xek7ldxVMS33FgvO/acTSI0Nt4AP7Y/wBeJ77VvP7pfVlTPvUkc+UBJzCMPG5vqkbxKTthT UV1xcNHqjn3IKgZt6KB5vPUB8v8TcnRp1zw/0r66WOvFeRgrblcegQURxtOFIR+ajQF9H3/XRXu HgtEf46nZs98sU04GlX1O3NTPhApIjI2/6KY+ljWUm9aGIS7bcp8THdn56B3t7JCaY71kvn8OCr J6dfKbByuODStooyBBw== X-Proofpoint-GUID: TpD3akCbwy6jjNOOXB2rZ74xuTGBA2-4 X-Authority-Analysis: v=2.4 cv=Q4biJY2a c=1 sm=1 tr=0 ts=6a69f049 cx=c_pps a=+D9SDfe9YZWTjADjLiQY5g==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=9hUut4TBz1VDe5gvW30A:9 a=QEXdDO2ut3YA:10 a=vmgOmaN-Xu0dpDh8OwbV:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzI5MDEwMiBTYWx0ZWRfX2tj+O1jrf13W /MnAVFiGMh1mnUc9FS2rYPGpF6X7l/+RIgd1ySlE2vBGj1BUu7b0aNmXMQiTqOebAQ88IO5IYcC KfkBKqgCStdGSxaTnXd7ggeR6DeNcdE= X-Proofpoint-ORIG-GUID: TpD3akCbwy6jjNOOXB2rZ74xuTGBA2-4 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-29_04,2026-07-28_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 adultscore=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 clxscore=1015 malwarescore=0 spamscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607290102 On 7/29/26 2:21 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 Or.. is that a difference of "linux uses iommu-map today" vs "doesnt"? Konrad