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 4646D3F0A94 for ; Fri, 7 Aug 2026 09:26:45 +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=1786094806; cv=none; b=u45fF9BavHH5iSTIRwxhZGuBgU344Q+1+pKnSMFLc7/Vy50Ewjvz7X+7npEV+1Hz6zCdun5ZOzBM2bzR0dsEvYHtT2eWg3skrB4bLkM60dT+ad6UlkV5Gx7RZn00XipCNTn6MIQVuHcaPXjK97n5LLkYnWp4zSx4duWNeb+ZHvU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786094806; c=relaxed/simple; bh=VFsF8GW6OAUPTdSzxxBp7CgHm3ZL8kI/TSC0Atb3iQ0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=k8hNk178SbLc+ZkzJtQMXFSJB3Yb//KPHs0VXVUGe4zFA9bS06gknwgR7y0Zeeid74zg65aMsk0QjGYxNoHP4LoeQzLXzQCdUYm9S89+amwUPdP+lSqS/c3vUmPzdZxjy+yMSamUO70/1iuCdCZ2gsDaagbb4mQXSPU+Tf5w7fk= 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=S2skUDgr; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=bxe2pFtd; 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="S2skUDgr"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="bxe2pFtd" 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 67787OWi3218044 for ; Fri, 7 Aug 2026 09:26:44 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= 8rwovzJOnEAwNWzoNtTWOBRrGNerjs0hnTnerd919Nk=; b=S2skUDgrNph+1LTh 8GI174X8v9ZTnvhL8qA48EMcwuFVcH5iYK03jqR3Cm9EOyILsXLV34drzjw6wGJm UMlvdxDgqESjxVil9Xy8haG7tVE3Q+dt0/XVm5SSOAoGalz6Cv7QRdQWNV4gVAbO W8z/F5oAS7zpfz3kO103d6YWxGVbgEZok6LD+1Iu01PDqRZUQkDwEakXZ9vUSDm9 AFqWil1/5QlUeH4V74tGIbDV6wQFSf6JDYiwiUf0OGafEZJJO+clkDZ4wcFqoldg JqLse0PwnSOkRREKbaXg16aTUP57Ak64Sgja5tAUCxJ7GOQPnatv81tfYfyUOP7N aHuL/A== Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fvy6hu69m-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 07 Aug 2026 09:26:44 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-cb5cc1e13f8so3597197a12.3 for ; Fri, 07 Aug 2026 02:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1786094803; x=1786699603; 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=8rwovzJOnEAwNWzoNtTWOBRrGNerjs0hnTnerd919Nk=; b=bxe2pFtdyH81T6Dc1sZDm0kNa2hlPWfQ1uWO8jbD4r+ebYZDwaAamxatGfBuj4n2Fb tleANSl6h4/O3wq9J7xpwS+uog4O7qORH+aesH0RfAEjvkeKOoRRdzP54eNi1yXdwJir 0Bj+NZMcQoiDamJTZOtKdgp93qmrSdfIK2HV5AxwDzMKifBjp5nPWWNJj85zkbRVxoAg jTYRfJqOcmZb0phiyjaKckVk+AgP/oXjCVxyDQQvHI7fUxD2B2OQqPokanq94WUc8r/E nQ66We6PEQyqcSigagMWEUl16zOZgaqAW6AH2dEv5ov/CJi9gXdL9AToiCeQGtdALlOr X/9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786094803; x=1786699603; 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=8rwovzJOnEAwNWzoNtTWOBRrGNerjs0hnTnerd919Nk=; b=Cpvh9p+L/1TIXYpzbE2e5pkwq4eyci+dypW7kUEbF5mnaiEkIDsB3BGPSTJszfOxkV HU6Ow4y+wNyxqPFC7IXyu2D1+DyWahNBFw+kBMBwxyOu4gy0ufFT8o8ndoa9HOYZmWND /O55I4WFfI95dTpn8dpAJGvOFH9KVH2G65PE6hlVKhVZjv9qHIz4HQ0WxI/9Jyi/j0CI 62Q5jV4kFv0NPgL+DNqmhJl9En1WJNAh22IBymELC5bFTCsW0KATgP1eXJXef7LDeMXe EBXWrpgDV1gVXt0EaYF+4g5RIu7ndNbJbCAB8qxYzY26CNYE5BdwKFS6PJpTiisBIbY/ K9hg== X-Forwarded-Encrypted: i=1; AHgh+Rok3InbdWSn2HxOpjsTBVr90ELh8YAV3TXfahCeYA7ngsf8MzBXeBnVtluvgIejvfbRJafhUYzv8U4PGSw=@vger.kernel.org X-Gm-Message-State: AOJu0YwvpabChUl+IirG3GOh5uLI1d5wAqypZdqXlumx/olE6ei39Sop LKgrTgmjEE/qbQsNjowKnqS7joix3QYXQfJhUz2jLj3lNU/QHJaxWft5CpcoDBfPtJrFUyR4tGh Nk4IOZseUxusQfRtkkferoLROLzvmcUEkYFx8md+gmCEWMoNUVWfWp8C1OPC4FY6DnRo= X-Gm-Gg: AR+sD13Np2T8q2tMCoSuf5mZNsRKKajgoIwvMm6fwYtnMG2CLEcMr9fP/nVrqlgr3lL DE3E0282yaEK9+vtIvLEBdxK6sZPfz835xD7tFFKlJ5K+shDUzXGK2FQpZhCvcVSK5mS7ksMamt pMz08BNr9tiIyJSotmljPE9yGfIFjzGfOF7PYQXP/RW/dRqzYEAbMoAKgzd/1mDWvoPyRC26zwT B4r6VmOb9m1HUGyISaG7CapeHp8pT0AQrWyTgSQC/MDQ2YNiOhl3COwVLbnFOxulCfsC4AKinNT EIZC7kvWFc9mmPQimVev2YPEapGI8jGk+59AP0y1MCsSTMkM5Rl2VSCIKSyj7OOww1cwzMJZRcf C1zDEHsqfckx29iqLDYYVNo2QkG/i/9HuTo4= X-Received: by 2002:a05:6a20:4309:b0:3c3:954d:278d with SMTP id adf61e73a8af0-3cb85df09e3mr24233971637.9.1786094803217; Fri, 07 Aug 2026 02:26:43 -0700 (PDT) X-Received: by 2002:a05:6a20:4309:b0:3c3:954d:278d with SMTP id adf61e73a8af0-3cb85df09e3mr24233914637.9.1786094802760; Fri, 07 Aug 2026 02:26:42 -0700 (PDT) Received: from [192.168.0.173] ([183.83.142.146]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-315be8a706fsm5522455eec.8.2026.08.07.02.26.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Aug 2026 02:26:42 -0700 (PDT) Message-ID: <27f0b033-e940-4369-aaa0-f08426aac73f@oss.qualcomm.com> Date: Fri, 7 Aug 2026 14:56:27 +0530 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 04/22] arm64: dts: qcom: hamoa: Reserve low IOVA range for Iris To: Dmitry Baryshkov Cc: Bryan O'Donoghue , Dikshita Agarwal , Mauro Carvalho Chehab , Rob Herring , 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> Content-Language: en-US From: Vikash Garodia In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYwODA3MDA3MSBTYWx0ZWRfXwlD/fDJKkr/t DYApxuHp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PUMa YxfNurW+SGn6blViLLA== X-Proofpoint-GUID: h_i9NcCpJtn_56pjmSBMvjRqQAr2SDzM X-Proofpoint-ORIG-GUID: h_i9NcCpJtn_56pjmSBMvjRqQAr2SDzM 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-07_01,2026-08-06_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 adultscore=0 phishscore=0 malwarescore=0 impostorscore=0 spamscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608070071 On 8/7/2026 2:33 PM, 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 honestly...thats all the info i have about the vpu hardware that it restricts non pixel to DMA from the 0-600MB range. The same i have been trying for a year now https://lore.kernel.org/all/20250627-video_cb-v3-1-51e18c0ffbce@quicinc.com/ > 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. > >> >> resets = <&gcc GCC_VIDEO_AXI0_CLK_ARES>; >> reset-names = "bus"; >> >> -- >> 2.34.1 >> >