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 1DE1747CA7A for ; Wed, 29 Jul 2026 12:21:31 +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=1785327695; cv=none; b=WdlT2gzkiy+uJnFRlM3bbugpKPp2hsNCSfeRQM9ydEqnSI78JlevzratiIOA38F9ez5tsPo8qVqH5UEEuEAm/i/zOiZEUQ+3PJ2GiebaGV0/BSK+prPkFjn+os3iA0d7qDqqrjvfSR1z0p5jhJy1/j5vEouRyBGwmY2idk9TfV4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785327695; c=relaxed/simple; bh=7ICtZdvXRJV3EmjLJJIYKJYnvr+oM/oLWK2mf4A79nA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=V6FAPyYJc/CqyPdd3qkTGDJoyhhZjm/iNmUYgshihiPB4DOwFyEea9zvfJvlizdbDKooyymcyqD/PVnf5dDilG0t9jZsXRrGDFXH6eanVy8eaKSJ2r0Df/ysa1Iya40+3g1/fUtBcrY7GJzT5q7qkHWrl0gYjJiIvyKpcr5AaoA= 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.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="QRF/pWGE"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="L28ZgKo1" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66TCIcNR1727892 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-f197.google.com (mail-vk1-f197.google.com [209.85.221.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fqhdp80b0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 29 Jul 2026 12:21:29 +0000 (GMT) Received: by mail-vk1-f197.google.com with SMTP id 71dfb90a1353d-5bf8b2b33a8so13160e0c.3 for ; Wed, 29 Jul 2026 05:21:29 -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=gVuWrVu66PtwCb7UJ+cuzR9nRQ/QfebIVgnLx+5pPtAGi9b/Pq7wjyzIFtABMQNdiF ziQ3Ux7Ga1KIZ0KNJxP8r9CXK6z2J98CLYvE0K/53TRdoIvF9hO4nWvZbLdIAJKF+1P3 lAIRAC4RJYAYj5leNq6jWMSaGKLnUKIcGrDxQlRES3Chgi62J8lznd54lJjWnQVwQ7tb DZvoWwUZV43vTqru/zW/g1cIujJAHcj9Ozr4RXhAH4HDwAaqQmn99Y1uA7HBowBAZxCK OwDcrK6ExaybCoA4oN2XtLoRvrhGI8QPuxR3d8a8M7blR9yGjD2AeV/OihoW4y238FEb L8UA== X-Forwarded-Encrypted: i=1; AHgh+Rrn/OpXoUIgdsMdLs7TEdynC6/ePUya56SxmrVxrf96CU3CXxvIWrgP6RT2q69CjPAGqZSUaT8LYO2XSNQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzoeTiQnwcFBDrJhyWhGSrvygOKh2fR4c6MxkLtt0sxf81jXm64 wnsyXVpecNImr42t5dgaJ2kujQMyLYTlfIBvaWfFcbWPkNHAt/ps9QLdSQgOq8n2EbmN/LTsJ53 jtakk7Z0pp92IIGSQK7fIacH8KSeFYqMMhMJn96jHu1GgQd/mWZeOLvUI0my4SgBUdYk= X-Gm-Gg: AR+sD10Jk+MHKOn8wacglUpyamNw8/prONj2KOvfB5I55Ynx7mGjk+PsDbdpZxrUulL NKyTQj1bmvq9QpObmXnLTjmnk2V3Z5h1hb3gMdBi7BhglJezvNdFWzXOwP1SRZaKiu6d1OtSoQP Q/nn0OyPanwKc3F5sy78vk0Cl5Hk2AqbOBLG71JD49MHcKXfpR/T4T5VggcEOd2Yy7nAxha5gJo FPKpmtO5bXRHuxEjDU1oINu+EY4g2K4HHldSIKrjA0E99GB3CfUjb6t15brXHbgw8pl74JFMEns uV0XDAZyiNI6zArIrSzzWilVBxrpAqe0Efo8C8JeF+4w+mO5t+4Sh0etaFoTyd2AbEw7A4fnVPu yxKY5QCgAxGSx7L5NRNSuPSWi X-Received: by 2002:a05:6102:3752:b0:633:3bf6:977c with SMTP id ada2fe7eead31-7554b743414mr2286009137.1.1785327688210; 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: 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: 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-GUID: daH2I5Fy2RlPmoBaQqOP6OrzXNqupBy8 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzI5MDEwMiBTYWx0ZWRfXxsgFo1qEF3vX MRheu7VrJ+h9eB2R5H/TS8c4M52Wcou19KGC1xdRIMD4jaOxn0LELLynzCdiBhCdLESezqjIfn2 JEJfv6UyL6oEc/Bh/fpk9xIz0imhMG8= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzI5MDEwMiBTYWx0ZWRfX4YRM60LZcgIo E2rNL7c9zwHe8y/KfrkWsPEcltP48mOtI6bP38CHUSGTaZsTEJUK6FLdwccrp1Q/QJELDReJMUg I+wH2LeeAajDVr+ID4wVLs1xHn9ykE/Uz2K5QWO1uvhlacj/ke6eTWvaHC9Xn4A6Z++iJdTSScE pfe82r0pHr73jCTTB3gMGa0FTjYxjy1jh4fiAKtkIKeZDtqN8Js3T5ox7TFAm0Gm40LT1FNZTps uo9uTDivgQDK4ET5fyeUmEgB/1eXaj5+wk99os7eGpnxe1uWKR7uBtn8093ejljWmP8f9mHsHPo f6e/3Dy2xi+x9UyYAs7W6BIinPmt7R9R9KXSxEGhcj6bcgDFBnXzAM6onJ7r2p4xNc6nN6RerV2 2tvFR9Z087VzrZfPbdZK6BhPqbONur1/yHnzjOvrwj+lxPSMuB1MeBHg385qNH6RGlHNUmEFPmf 72RH4eQFPZJcw+n3z8A== X-Proofpoint-ORIG-GUID: daH2I5Fy2RlPmoBaQqOP6OrzXNqupBy8 X-Authority-Analysis: v=2.4 cv=TPF1jVla c=1 sm=1 tr=0 ts=6a69f049 cx=c_pps a=JIY1xp/sjQ9K5JH4t62bdg==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=9hUut4TBz1VDe5gvW30A:9 a=QEXdDO2ut3YA:10 a=tNoRWFLymzeba-QzToBc:22 a=cvBusfyB2V15izCimMoJ:22 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 suspectscore=0 spamscore=0 clxscore=1015 phishscore=0 bulkscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 adultscore=0 lowpriorityscore=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