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 0CE0747CA7D for ; Wed, 29 Jul 2026 12:21:07 +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=1785327670; cv=none; b=TdlrnFDUzrLRjieIalWQgWun8L4k8Deqemr8gcu7EJm4Y2BoWP8+q+sPYX0z6F0XXLvHF0fwNq2dhbZ9RBeng1bI4Zb725QVUJz3wAq/JXJjayoTvQqYW2yWiAWRekq+bOYHgy4qQq/IhjPzuXYAsw2Q5IZ4UlHhvUJtvR2N3Gw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785327670; c=relaxed/simple; bh=ZtcaL6QuzTdO1mo/regAXILXVX98ZdiaHF6vmeAsTXM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Z3Ck2kqFXbd20l1vLaYhGQJK9aR4fT4jLSYNZBn4x0an3Su3t0yb264rQpJM0LBxWk4wsjGJkiF55haIgo285xynNc+3xcHezj8PVi4fJbhBKrjsTPxezIbiugk/0czV5kdbGsUainitGtmS7RIN64z/RbiaNzZiEX3mp1RV4lY= 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=PGb1DLyq; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=jy6Hj1we; 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="PGb1DLyq"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="jy6Hj1we" 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 66TCIcNP1727892 for ; Wed, 29 Jul 2026 12:21:06 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= SeM2xcHhZitweZ+bwJX8AXEasPFrzj/T75so9QyUzag=; b=PGb1DLyqzrUhk4Un 56irEINRb8qA3XKWJTWoJ4heXrwUxBcc3XZ78rnDiKJHXj1c9Ff5rxih3V7rPku2 lxKtOdKUJ/ARrHsOoo+7DKW1BtsOWGqjZDLQ3TqChvihdN7P7VxqJpfqjH06LGK9 N6zCHJt3N4k5EOwMPyKtPKGMvLJyQWWPGbHvCTx8apbaRHyqHRNVtknGxZEfK0f7 J6Wl2B4qC0azD9QRzR/eiPoYoxARKzlSanLASq9wYx7Tvt/zuRxSHqj1VH9o5LR6 q5VjUTgo6V4F4PQZx4j9ZWi24kNJK+8JDvh7qisYPheDUhOzf8Yvlzks9GNbB20q +Z6rSw== Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fqhdp809m-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 29 Jul 2026 12:21:06 +0000 (GMT) Received: by mail-vs1-f69.google.com with SMTP id ada2fe7eead31-73997bfbbdcso9978137.0 for ; Wed, 29 Jul 2026 05:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785327665; x=1785932465; 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=SeM2xcHhZitweZ+bwJX8AXEasPFrzj/T75so9QyUzag=; b=jy6Hj1weowSGxNo5Z8KcVvQkP47q/QBcE3tB+oSjIAKWuO0NMAAIj/sg9ivMj4OoTy 9R6QxqeNZguYyRzo94mwD6afRCQyPxFnrirlfSSuW/eYJeb/O1lrOxHDdIq4Offs1muZ MRMi/m5nRriJtGP32Ee3xM02HQr2Ygs58Qtu7OmzqIkuLpHnicae8CYUA/H/olUXNN4H EvTnj8L1Dx40x6KiL4rV5HLgxd3x6jzF+pFYPLT+F8hEC1WCMeDAVmvTajtVQ+FOguZP drsqc93qp8iUOkQcBYmrDFOD07OTy2KZw34ZAWCBm4a65QRK3rusZGirQX6ZPqFpaRvA JhPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785327665; x=1785932465; 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=SeM2xcHhZitweZ+bwJX8AXEasPFrzj/T75so9QyUzag=; b=Hp4hkVO2k1HWnD5FizcpQh4vZ/sfxl5G04Jzqdqj5CwpsQAKkxItemGtu6TFNnmirp OwdaIIi1de/XsJk40vdsKiSV/AhIsBGRYCsSVVjqw7acFKNoOQjW6OX9qOo9SJdN93IA kYNJwy+20cZvULNnSi5B1Qnf4pzRx9d7Mt2Z6m2z7NC0fkJH1JVyKf+vJURF5j5MUKtv XV/rCcVZ+tm3ahxM1CiLqhJxcwGECn+0AF6AEJksWZyZ843LWgwb1rpQIrhi24dhjFgc OaIW5UYDtHX1bf1Jo+OUccFjSOY9eQj/grkMMr/Bo897HjFzoIUTZjKYteb2pmeBS4MX Na9w== X-Forwarded-Encrypted: i=1; AHgh+Rrx+VSgVKWlgSrUhA/BvLvfgWcBXoik4/RcEEQwPQTFfFHuwa6B8IZAR6UGhUvu3k9JbPG1Kr2FfAmrC1w=@vger.kernel.org X-Gm-Message-State: AOJu0YzUn3oJhGtu9VHZ5sw0Sr3kHtBP4v5H39wEPZS2ec7/6bgJTdln lGQTU4hbKUyY+aVROrmwNW8757Y3VquqohFnp7cXnC2VFFb2zFAbXNKmMQzZS0DVezAiGVPHjDF qCloGKlQu2my+a26Rsqv1+gmPZDTOcLZShe2bBBbFEqXP5sadOT/eZKPPEac8Ql4wT/0= X-Gm-Gg: AR+sD10OaIlhZZ2gKg09GRDWH228FCS3NrItXPXY0CpBf/Mh33sItXv3CFu1Mhe4+j9 TqhN5S/r7kpaZOE30I5Va4jHwEuIEXQuudEjn80Bdf+Ax3PiVilAh72+IqI4PScO5CyaqkW7aBR +IJtetTtcaO1AwqwPdoql6WXRpzPmauLzxS8E3rXuJ3DCuH78BG5aloc5W9zYmCugczeHOHAD3p rAgHLG1Im8TK9bhutJFWw8O6v04lAABebwyQa7rEweOVmXtkTBqaJk4LW0qBexMVFwyF0Lr2BfL okol9ZuM58IrKhc7nglCIm6tqBuWXjT4BuLRIzvNbfXdsxXeatASrXmphUBq5X3FV6mAXAEgx5x fK9SZvtQTgrck5z8Ugo9jiXUW X-Received: by 2002:a05:6102:3591:b0:745:17b0:10d5 with SMTP id ada2fe7eead31-754a1ba976amr1346984137.3.1785327665401; Wed, 29 Jul 2026 05:21:05 -0700 (PDT) X-Received: by 2002:a05:6102:3591:b0:745:17b0:10d5 with SMTP id ada2fe7eead31-754a1ba976amr1346972137.3.1785327664972; Wed, 29 Jul 2026 05:21:04 -0700 (PDT) Received: from [192.168.120.193] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c1f8f981705sm53136666b.9.2026.07.29.05.21.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jul 2026 05:21:04 -0700 (PDT) Message-ID: Date: Wed, 29 Jul 2026 14:21:01 +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: <048506d0-7dac-43f1-a50b-f9f4c1d125a1@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: L3oeQlKtLFjic_BXbnpo1b_BC95EisV4 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzI5MDEwMiBTYWx0ZWRfX40xCkDDVJoC1 DF5MxRb+Kq1D3Fk+jiKkiAQfZdApvOd4ahvhGOJewRTbFMexn08uzkvVT2c9nxO42xGJw+O+jJK 52aVmdEUnCoHQlRazybBDPzY99j7GVg= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzI5MDEwMiBTYWx0ZWRfX8wyhP26umD/s OGQ/LV4hqlqqtIgLKQvv/i2UhjlDjq4519zTDC2eJUPyNfT987WcIP4SEtD9JaKaxjWZWQ5Txnz aC85P96zY8I4EcMA3qlwOOiEtw5z/EcATAVCHQ3NcKIonHq3VFIrQtwMK2Z/MGD2jlw2TWYcyfE LKSB5QS+HTeR/nsI8pXz281X0NhOaJbTyTMrtNamm/AHz9KAckG3m0A6wKOyXTpvU3gVD5DzvfI 4SxzO3zMjqvQvvM72tGMhMDDc3pVAv0qyS9Ayt4Jkq91q/imaRAQkHZyr2YIJcVJRRg3XDnQ9SM bKf8AR68MhUB4JYOtirb3HbVCIJM9Sg4fuADq02BG6xTGd07+7TdNH4+Uw05LWD+xIkBkTwy9bC aSD8bVjNhwH4lwFqZVtFYYWniAWtg8VxSoKD5U5jaBA10cmO3BTrI83UIPQCm+7a2ZF8LVw+ke+ nJtHHMrmW6EmrzqL5ow== X-Proofpoint-ORIG-GUID: L3oeQlKtLFjic_BXbnpo1b_BC95EisV4 X-Authority-Analysis: v=2.4 cv=TPF1jVla c=1 sm=1 tr=0 ts=6a69f032 cx=c_pps a=5HAIKLe1ejAbszaTRHs9Ug==: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=ablQDHkhG-Ar-HdMcfIA:9 a=QEXdDO2ut3YA:10 a=gYDTvv6II1OnSo0itH1n: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/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 Konrad