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 CF0254854EC for ; Wed, 12 Aug 2026 15:45: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=1786549509; cv=none; b=iEEfSZDWbQG+HcOv8VCCI6ZgoS/Ep0ezOy2NLe/YZjGVNK+01lKpuslbSgRSloSOZ95xlu7zIytlNcKZUsd2OQvkikeqNof6YvBKG7zF4forROx5XMIDMy1pKCps3QD45XOInI8M5RAhq3hAP4OcH7BYUfH+yDNiJELh1g/uH04= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786549509; c=relaxed/simple; bh=5WsJee6RnG8FDL/km9AY8oElVGx145sSlu07kgjc8jw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Pm2h1+LLskEziZPimkSWusyPNcdt2mJZKMif/AQQVqZDFscDUp0YjBiwwpkNT+iHUdpVws1e5rLNzUQMMyxXyrbLXShfSpio2qDEhBT1hPXMLGI+jefqqeJ2i4YoEGjBFbBDlbIUOtvF4iC+8K8j73FmsffRFIWYA2sdm2VCrJ0= 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=lswnwMII; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=ajaiem5Z; 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="lswnwMII"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="ajaiem5Z" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 67CDbX3f899605 for ; Wed, 12 Aug 2026 15:45:07 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= kQLR4H1Nicj+xSHL9x7Wan7JxfTrbvx2Q5V49rtcMEY=; b=lswnwMIIpg3FLu7d AxZTGAhy9V6liPRDkU0u/Jb0s6QlxvPV3QJY1hcCpFEqndv3NNfkrz9ENtkDVOcK McTqjwEm2szea+lecKpDWggqH3oMCYlcXtlVINtpLLgEsfwaNviyTjHUK7Jobpbi kXzVkqGZcnTISDsVFeCCs7cmiCMWCiC0U4+K19JNnkFi9ttfNimSJwJUTdBxFt9f f0MA+DmKQXdA9RquU26rv4715AqEMY6RjVPuQys1OSFZMqx1A9UlwwugvMyV8bu9 aqpyxRNZKa9ArmMSI0MezpYo7A7f7TiwQ7cIj6Bb7cKGoKvLSf0xrcupdjBkeMKh yVuksA== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4g0nut9qk3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 12 Aug 2026 15:45:07 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-38e25e4b41cso1469543a91.0 for ; Wed, 12 Aug 2026 08:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1786549506; x=1787154306; 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=kQLR4H1Nicj+xSHL9x7Wan7JxfTrbvx2Q5V49rtcMEY=; b=ajaiem5ZFfCl+jtoCp/e0QS3j8GE6/FAyI1CymSd+CyWLw62fXSM4kj8Tp2PLrgMgn TTVBsDRvYz/Nr3imTb4wpEaBvO/48IggaMzxk1ltpj58mXxhcmmtSki2atiS1I85kIRc KekHFTGg6Np4ouEWD1SYZ6oYYIkmfjULOGySzBPcDXz9OU5MpRejexQ1qKrooIM5W8iU ZD96kLJYuzYLexsVB4zQaAP+YAKhCa9BRwTDhWS3KlimVVs9hl9u3ggleCqzM9DXO4ar ENs8SZaKwndJbtvl8xvvJyOQbg86OKG560m5fcs5gQhrEbOF2P12OvBOk9wVRR2UCPuw DcqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786549506; x=1787154306; 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=kQLR4H1Nicj+xSHL9x7Wan7JxfTrbvx2Q5V49rtcMEY=; b=oVyW3b0Ttu6hEBWn7F7s3f6kGfkHatVqNJbukRQ3NWqszrdWmMx0ZeXVFq7RlJ3V4b T4qHKsMGjd4fPaNsIVxj/F+SzNOvaL4dRqy6r1c7XhUIO6vnW0+gdgrAu/hG1HPPO54d 5VlGG8T4EAwfpyzKqtQWVt7CvZT+8nez7a/8bXjFo1wC0v9dIfWFcOcUN1LG/bJz3yIR 6jgILyCaI5bRKntXSIDwKX5ev2x/KZkPXZ9yWZfDZLS3MD8IQzGLIGnGrKYLFkl5Nik/ vkADqmXqr1+7+6qOn6yTQZxW7nS+07L104jjJpvm8LbA9698CFaOWemaZbG/wNKExMng 12HA== X-Forwarded-Encrypted: i=1; AHgh+RqGj2sphAyPc/UmWDLCck1qaRFPkPXdeBe/+6ixgZfBcql2ez3DPiPQcvwu6rbWvUSGP72OSo0AjxWh@vger.kernel.org X-Gm-Message-State: AOJu0Yx6l3LVrm/AoXUE69c2I1q31Zgb3KPk03tPT2cKx98vfTkdve+7 7jdRJReeilS8+VCDjQWkzTSarZ3r/SUf1z0IweAJ+mDAQRv7pZdCgZpYYCxJS0nWqqz6roO1/vs f0Gg4misEflA9qz+q66zzt3dwfZpcnVvx8526GIu8dBRU8WGlvWPB8ioyH75rtMXi X-Gm-Gg: AR+sD10uRiqzGZHlsRYIDSmdtgzGlV8qIKo4tZ7cyMjBTCOyjBNuiXAilY+QuKtGvED SJmy2BGyd9+GnSO/pLCvz4T0ONlxDwfAp8wvnkqw7xTBCbt9DFmd9V32YjrItI2aLBmTNCmGKr4 NGN8xp25GdcpCOkuH/jY0Np/gqOm7Yz4KnO+NNcyEk71t6LTFROMbs+odWsyHSThb1A08D7vS+b uunShdxZ4pwEsn1lQbRccF9vnlB0HUcnybe2Wz8QvklH1SobOFABCCAAfiNnGzXpSeYctA8YdMf nmSgWFt7FVHKTj3dTZhQIUKejC5Ni74849QT2gKYYAn9DTnaX7F+iz+5rAEtIdzekbr96e15t4T NWIODyH9U9K8/1O07kFOJWSy+YLyvDjh0I+U= X-Received: by 2002:a17:90b:1b0d:b0:38f:7f60:ba35 with SMTP id 98e67ed59e1d1-3930123788cmr6180044a91.5.1786549506274; Wed, 12 Aug 2026 08:45:06 -0700 (PDT) X-Received: by 2002:a17:90b:1b0d:b0:38f:7f60:ba35 with SMTP id 98e67ed59e1d1-3930123788cmr6179918a91.5.1786549505589; Wed, 12 Aug 2026 08:45:05 -0700 (PDT) Received: from [192.168.0.172] ([183.83.139.112]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-31cf3c08163sm11160525eec.7.2026.08.12.08.44.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Aug 2026 08:45:05 -0700 (PDT) Message-ID: <1a7c222a-617b-4dfd-a551-2c00115747a9@oss.qualcomm.com> Date: Wed, 12 Aug 2026 21:14:49 +0530 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 04/22] arm64: dts: qcom: hamoa: Reserve low IOVA range for Iris To: Rob Herring , Bryan O'Donoghue Cc: Vishnu Reddy , Dmitry Baryshkov , Dikshita Agarwal , Mauro Carvalho Chehab , Krzysztof Kozlowski , Conor Dooley , Stanimir Varbanov , Sakari Ailus , Abhinav Kumar , Stephan Gerhold , Bjorn Andersson , Stanimir Varbanov , Konrad Dybcio , Johan Hovold , Neil Armstrong , Loic Poulain , Jorge Ramirez-Ortiz , Mansur Alisha Shaik , Andy Gross , Rob Clark , Stephen Boyd , Yassine Oudjana , Pierre-Hugues Husson , Marc Gonzalez , cros-qcom-dts-watchers@chromium.org, Matthias Kaehlcke , Douglas Anderson , AngeloGioacchino Del Regno , Aniket Masule , Malathi Gottam , Rajendra Nayak , Jonathan Marek , Dikshita Agarwal , Renjiang Han , Krzysztof Kozlowski , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Mauro Carvalho Chehab , Konrad Dybcio , Krzysztof Kozlowski , Daniel J Blueman , stable@vger.kernel.org References: <20260807-iris_iova_600mb_fix-v1-0-3996f67e33f9@oss.qualcomm.com> <20260807-iris_iova_600mb_fix-v1-4-3996f67e33f9@oss.qualcomm.com> <20260807162405.GA896590-robh@kernel.org> <6ee7f32e-eb6c-e264-6f0d-541555f8fd62@oss.qualcomm.com> <56b3dfcf-b1ad-4192-8199-06c80cc5d124@kernel.org> Content-Language: en-US From: Vikash Garodia In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-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QbUJbxAAAA:8 a=t9ty7G3lAAAA:8 a=EUspDBNiAAAA:8 a=JoBr3x7BRt4YSxSGyWwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 a=CsAS6f0m0zARWR-uHzm3:22 a=bA3UWDv6hWIuX7UZL3qL:22 X-Proofpoint-GUID: GSwFeG7Q02hTyVPXX7cTmSiYuhrDgdVY 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-08-12_04,2026-08-12_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 impostorscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608120128 On 8/10/2026 7:17 PM, Rob Herring wrote: > On Sat, Aug 8, 2026 at 4:55 AM Bryan O'Donoghue wrote: >> >> On 08/08/2026 05:37, Vishnu Reddy wrote: >>> >>> On 8/7/2026 9:54 PM, Rob Herring wrote: >>>> On Fri, Aug 07, 2026 at 12:03:50PM +0300, Dmitry Baryshkov wrote: >>>>> On Fri, Aug 07, 2026 at 01:54:48PM +0530, Vikash Garodia wrote: >>>>>> From: Daniel J Blueman >>>>>> >>>>>> On X1-family hamoa platforms, the Iris VPU reserves IOVA addresses >>>>>> below 0x25800000 (600MB), primarily for secure non-pixel buffers. DMA >>>>>> into that range, from any other stream id would triggers unhandled SMMU >>>>>> page faults that cause spontaneous device reboots. This is readily >>>>>> reproduced with one or more browser tabs driving multiple concurrent >>>>>> video decode streams. >>>>>> >>>>>> Add a reserved-memory IOVA reservation node covering [0, 0x25800000] >>>>>> and reference it from the Iris node so the IOMMU layer keeps DMA >>>>>> allocations above that boundary. >>>>>> >>>>>> Link: https://github.com/qualcomm-linux/kernel-topics/issues/1157#issuecomment-4458933574 >>>>>> Fixes: 9065340ac04d ("arm64: dts: qcom: x1e80100: Add IRIS video codec") >>>>>> Cc: stable@vger.kernel.org >>>>>> Signed-off-by: Daniel J Blueman >>>>>> Signed-off-by: Vikash Garodia >>>>>> --- >>>>>> arch/arm64/boot/dts/qcom/hamoa.dtsi | 13 ++++++++++++- >>>>>> 1 file changed, 12 insertions(+), 1 deletion(-) >>>>>> >>>>>> diff --git a/arch/arm64/boot/dts/qcom/hamoa.dtsi b/arch/arm64/boot/dts/qcom/hamoa.dtsi >>>>>> index 8a96ea1bdb9c4c409b2af997680d8c13fed0643e..87f424765d513c97b06303bceb75ca9f176d2ace 100644 >>>>>> --- a/arch/arm64/boot/dts/qcom/hamoa.dtsi >>>>>> +++ b/arch/arm64/boot/dts/qcom/hamoa.dtsi >>>>>> @@ -666,6 +666,17 @@ smem_mem: smem@ffe00000 { >>>>>> hwlocks = <&tcsr_mutex 3>; >>>>>> no-map; >>>>>> }; >>>>>> + >>>>>> + /* >>>>>> + * The Iris VPU reserves IOVA below 0x25800000 (600MB), >>>>>> + * primarily for non-pixel buffers using different Stream IDs. >>>>>> + * DMA into that range triggers unhandled SMMU faults and >>>>>> + * spontaneous reboots, so reserve it to keep IOMMU >>>>>> + * allocations above this boundary. >>>>>> + */ >>>>>> + iris_iova: iris-iova { >>>>>> + iommu-addresses = <&iris 0x0 0x0 0x0 0x25800000>; >>>>>> + }; >>>>>> }; >>>>>> >>>>>> qup_opp_table_100mhz: opp-table-qup100mhz { >>>>>> @@ -5439,7 +5450,7 @@ &config_noc SLAVE_VENUS_CFG QCOM_ICC_TAG_ACTIVE_ONLY>, >>>>>> interconnect-names = "cpu-cfg", >>>>>> "video-mem"; >>>>>> >>>>>> - memory-region = <&video_mem>; >>>>>> + memory-region = <&video_mem>, <&iris_iova>; >>>>> I don't like the idea of this series, because it _again_ doesn't tell us >>>>> the truth about the hardware. This typicall ends up with bigger problems >>>>> later on, when it starts to affect other bits and pieces. >>>>> >>>>> I don't want to NAK it, but I'd strongly ask to reconsider it. >>>> I think this is an abuse of /reserved-memory. reserved-memory is >>>> reserved *physical* memory. Reserved IOVA is a property on top of that. >>>> I'm surprised this passes validation. If it does, I may go fix that. >>> >>> As per the reserved-memory.yaml schema document, the iommu-addresses >>> property for IOVA reservation into /reserved-memory is allowed — it's >>> documented for IOVA carveout reservations: >>> https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/reserved-memory/reserved-memory.yaml#L56 >> I think that is an entirely reasonable reading of the text >> >> Quote: >> >> "If no "reg" property is specified, the "iommu-addresses" property >> defines carveout regions in the IOVA space for the given device. This >> can be useful if a certain memory region should not be mapped through >> the IOMMU." >> >> Which is exactly what this series does. Excludes a specific IOVA range >> from being allocated for this device. > > But if "iommu-addresses" is the only property of the reserved memory, > why put this property in reserved-memory rather than directly in the > device's node? I'm only questioning where is the right place to > describe a reserved IOVA. > a single property node vs multi-property node should not be the reason to decide the place i believe, rather having them all under reserve-memory keeps all reservation at one place instead of scattering it all over. Regards, Vikash > Rob