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 6A56F326923 for ; Sat, 8 Aug 2026 04:38:05 +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=1786163888; cv=none; b=Bfz3ZQijNMOCj+fS73u2yurFpVo3/ppj27qJODk0TI1sCXVrJtHPmHgDhGemDwEf1+cYCQttZjZJRKcQmByTFWN5sJ7svg6nU0sNORv0f6Ad8G+8HGGhPc5QKt+NkkHW78sZL+rlWOBnUtFvNJryohzdxdv11MAa3A3mkvDQXlA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786163888; c=relaxed/simple; bh=Dc5ztGsIy0aJz9/GJTri7JwqP0wGVOI5md1RsmAa0Iw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qgt9J5vf8nIrNSYr94ngGYE5GaN9dkQfHP8pwOQm55i1Q2g3ABz/gAAnCbp+pVhHaMoxMuXqhsPZpfhQL7Lyil71b3d2dq/tt6DgZZdmWvELea9FB5/DKuXoVrFBbCK+sI20v/A76BwPw7y7lOktPUTtIcod9s3Tg6Y/9z8AQTE= 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=dd8mmTdT; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Rk35nnFb; 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="dd8mmTdT"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Rk35nnFb" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6783wAIQ3267091 for ; Sat, 8 Aug 2026 04:38:04 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= PcfdXVqVda4nR+T+MGbj9iOc4TJuUh4We5btZ2d3Qbo=; b=dd8mmTdTegq4j4Qe Wm1sDnzLstxCwrLEa6jYFXDUqP1acQRWETn668FS+liOGJs2lPF2uregsYiKovMG BH5i53i1S0SAFjWjMfMkxLT4ng0vCOlGdsHitZDox6LM9cT3fKnH3q10IoCNWWBe TjYSGSezKClmtto3NEpUlmEQRVo6dQJzo0B3IVZm0Ux3qyUms6+47mI6/KUqmaix jJ5+DtbsuyhJ6ZM3q32FnoLrdnOn6xNGGuO5Q/09dQY/lc0q9s5A8ACJC1KL3Yl8 dRhZtYUmYGBU2XKEYq2JJbyNnTJFqlT77j+ecIbt9rEHNwas7TUNOzr52vuTCxT1 vSWM2A== Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fwv1y856m-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sat, 08 Aug 2026 04:38:04 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-ca7c1e22995so270581a12.3 for ; Fri, 07 Aug 2026 21:38:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1786163883; x=1786768683; 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=PcfdXVqVda4nR+T+MGbj9iOc4TJuUh4We5btZ2d3Qbo=; b=Rk35nnFbI4sY2wjxQCFBn0Q1b8ZP6g2Ky2q73ytzpBllcdnFEffKgiyXbthR39Vn3q MsXRYSE/GWbtpAEslUCkD2M9kvNVufObNnZdL+mKK9zJHXTNkhVW3EzMnnVdUeQ1gMjv o3geDTt87TYEosYaUp2BTHfT7tRCFM7EX28pEjJRdj8rmcjgX3UDe1vg/eJfBZmLTGaU bs28+w6rszD+/HnfOQo0lYkQD0OWe23ZAemWAMj96lbazQxGgK3IlY25nkvL3SM62c4/ gW2QRnqkiXT0+unI1Ax70mTh41ES15UrHjcgGbDuYkGyzhMadL2XZFnzN9k3nyLVlKhQ eYTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786163883; x=1786768683; 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=PcfdXVqVda4nR+T+MGbj9iOc4TJuUh4We5btZ2d3Qbo=; b=fINBZlOicmjSORcWUsqwQpjuDw0TtZt3xSRbrLetBWPJ1RRxOxigi2vpgqBSxRXmiV DzKE5LvN5NUbJaU+1l8Iu5FlnMpK5iYnW6YRDtKMTt7QIH65G8q8WhVTKoa5le0nvhU5 T+64MhXgSiVFQ37vZVeHH4Nbly89HdAwmGJKTmOVbzaj9lWVH24wfBfApFrBOQVjk4DY R9BDQXGX9hmpR6/wkOEgvsk86Cv8dShQTilKV6pwXo3/tboZRq5dyUCZ9PGU1NIcFP0G 26SqpZggisacyRhM6KHyw480ZacWahT8nnw62oB8A3uTq99VpQZ6y5mGxTqYfxMrGAuc EqtA== X-Forwarded-Encrypted: i=1; AHgh+RoFUaOWGmpupEc544jdnoovfMtC2HTsjHF7GFA9SWei/ORA7AVF1fjX1Y3/BlpEfIZy6iP/kijOxK9Gt23u@vger.kernel.org X-Gm-Message-State: AOJu0YwuvlfJ08wAs+OkW4Vhvlc+cc0f2AtRvWHondWt6XRRfzMYG43O BiXVuJRmfG4l+n1jUkTon67m1sx7HP1f4y1ZetQ9tB9Iyq4ZOijgjknjchEO3y9m0hV2pqtkfMD ZBAQUcS7D/FzY6H1z3UNNI4NYZXVW+pT57oEROyp4eCVKn5MLpPZ2cLl/h0S7m7OdrGl9 X-Gm-Gg: AR+sD12k14p+YoxlPA21hEHapbqp0iJ05XpenCXJsiq6MBUcf1DSmDp7E1Nrbd1rpHq V93iLNhh9n6J5AouUbk9eieWhKw5OvrYJlGB7BEPFbuWou6jhqXrG+R5NuEBL8sUWovLdhS7f36 zG++NKFlqAXyZMdcyF87U2FktowdjjHrjVdQskw0K1eeJLxKbQDiBCGtByMD6cpsCVSCfT1Cg0P ydv1UvZfbL1SQyXYEAL4Xvh2xaoe1ZfdfL3IR68f8KJ0dIj7a4w5PJvxEs0o/m1KR6NGOzl7FZi 1Ytd5jEfv7IsxAP+KBzBFXpgS9L3JRVzG1ARs7jt2JyB+PWmn/+D9jfhjnyoFGXsYrKZgaeR/yY bg6RpZH4OepZYFDq8ShvHwun2ix/wmw== X-Received: by 2002:a05:6a21:2293:b0:3c3:994f:b4f5 with SMTP id adf61e73a8af0-3cb85eefa11mr36524077637.28.1786163883103; Fri, 07 Aug 2026 21:38:03 -0700 (PDT) X-Received: by 2002:a05:6a21:2293:b0:3c3:994f:b4f5 with SMTP id adf61e73a8af0-3cb85eefa11mr36524024637.28.1786163882662; Fri, 07 Aug 2026 21:38:02 -0700 (PDT) Received: from [10.84.15.18] ([106.195.78.83]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-315be86d3d1sm14702970eec.2.2026.08.07.21.37.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Aug 2026 21:38:01 -0700 (PDT) Message-ID: <6ee7f32e-eb6c-e264-6f0d-541555f8fd62@oss.qualcomm.com> Date: Sat, 8 Aug 2026 10:07:42 +0530 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 04/22] arm64: dts: qcom: hamoa: Reserve low IOVA range for Iris To: Rob Herring , Dmitry Baryshkov , Vikash Garodia Cc: Bryan O'Donoghue , 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> Content-Language: en-US From: Vishnu Reddy In-Reply-To: <20260807162405.GA896590-robh@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: ivnlsemJ0PulUAi0wPya7FbCZiB2HRcr X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODA4MDAzMyBTYWx0ZWRfX4dNf32h0VU97 N+/QhG72jHm0W8xJw18Q3RHN4xwd5jHWI+3AHDxG8xRZ9tt5SeByquBiWZVfsQVe2sJFOfgxwat Z6K5VRRyD8zmFHvjY47YGyemlFDiX4iBF+1LghSqfyoBGTIrm04fFzTfDL7NrJ7pjLmC9nYSJAM C1lXrmdcJXc2GvNoYwRn2EvYuIwwVNPEDLGElAaRAmnq0Pa9Ts9/IKfuh1BPM3do6c+FSx4K3dm uOsIt/i/K5LD2IdUr+W49ENDYG0BDSpKo9V9tjbzdVTUi/EyJMYQkUxeyU3G7nKWTmS/Lh5prs0 0pz4/S00jg3Xc/CVHQllpezJUP8Rq3J0B1yqiVEXEcyp4TAeyIQdDH9IFmfIvAjE3pFo14gQZhe w7qCu5+y6lU4n95btuX2+6T+CFQQLh1qAF7ehdhRrfbQOh5zxBFCu80bDChvD4EPzs21wWfYtZS MfT4I/C4AoBqryuCWhQ== X-Authority-Analysis: v=2.4 cv=PbrPQChd c=1 sm=1 tr=0 ts=6a76b2ac cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=KknAIj/64Ji5C9Eg1IdENQ==:17 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=NEAV23lmAAAA:8 a=YG64nluAAAAA:20 a=t9ty7G3lAAAA:8 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=aHi8tEQZ11PmSqT2gCsA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=x9snwWr2DeNwDh03kgHS:22 a=CsAS6f0m0zARWR-uHzm3:22 a=bA3UWDv6hWIuX7UZL3qL:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwODA4MDAzMyBTYWx0ZWRfX5u207cKfPQ71 p99s1v5beVLVimUGscFn7QRn5zRIpA7i5GXsE9+OXmTGqUkeUp0WbVkeUAxzJUv20ENhf+93/px jMbhP4ekkHA0pqZyNHbykkdNj96Yrdw= X-Proofpoint-ORIG-GUID: ivnlsemJ0PulUAi0wPya7FbCZiB2HRcr 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-08_02,2026-08-07_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 clxscore=1015 bulkscore=0 impostorscore=0 phishscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608080033 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 > Rob >