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 7D193185940; Fri, 18 Oct 2024 06:20:37 +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=1729232438; cv=none; b=NE4ZxLjXWakepy97KTKPRMFTCTGtm9kYqAjfofjczNJHU1dCv+L49v5ytbdgsQwEiUTFbPAID3jLZ/9oHr4peJIxK+nV7Wgcv8+XMvUipguYiIgky2jczGoOzUItIeaOQk9YIfOy2zxSOgqu1W3nDpRZHmI1mB2YYcvVVaeUwAw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729232438; c=relaxed/simple; bh=xu+jS3B9BumegwpGTJUP/35naim9XMDQS2UkCTpvZc8=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=SfAfT/4CqmszXYsIS6S4wq4hm4hQIc9vXcyp7NckLU75cex01zDAr1Lo9oVyi2P0DlOV01JHkdmHe5uHLSXTY+HNhFl18ILoHXYUP8A5DNJG5Nv5BonzOGRO9Qrw+2Ge1xcyhrO1eeimhjT71uhOXYPXOBSNGOsxar4YscWto5Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=TS/mQuex; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="TS/mQuex" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49HINIVu001599; Fri, 18 Oct 2024 06:20:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= aeoZjJOUtXcClbaluWeCJ1NdBvrinphCpZdaTSo19EY=; b=TS/mQuexw6rxbHCL 9rPmkcvesMCz1319HcvKt+Uv9OSWm8Pwi1D8xjwbYxRYb7CJCRXU95Ma3DU2rkUk fvYu5HfmkdCqpQCzvzMSv8Pp49fN/EmHtQOYvRFkHZyDxMdiU2OJtVkQN05DNo0J Fpkkh1tabrkSZktOevC8EWf4qbv0cABcXABjsIZLcEK08igZMexwAJmIXcjfWomM 6WB92bL8CE97gpWYNLZnTBUnr3tC1Ck7/BnogvkYcrTYhBjMpdE2VMbM5+f50z4o wXOJyT0vUvM0PrXr8pDE4HFyZOK1h2ScL7jfAVb+U87Oq/OmdhRWy1y++Vi6wWwK FJJcqg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42ajm5d2kv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Oct 2024 06:20:27 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA04.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49I6KQqb002882 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Oct 2024 06:20:26 GMT Received: from [10.239.132.41] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 17 Oct 2024 23:20:23 -0700 Message-ID: Date: Fri, 18 Oct 2024 14:20:20 +0800 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 v2 4/4] arm64: dts: qcom: qcs615: add the APPS SMMU node To: Konrad Dybcio , , , , , , , , , CC: , , , References: <20241015081603.30643-1-quic_qqzhou@quicinc.com> <20241015081603.30643-5-quic_qqzhou@quicinc.com> From: Qingqing Zhou In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: PGT6mhWlywbQJ9cEAVkhvXQ6NHJkptkk X-Proofpoint-ORIG-GUID: PGT6mhWlywbQJ9cEAVkhvXQ6NHJkptkk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=999 mlxscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 spamscore=0 suspectscore=0 clxscore=1015 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410180038 在 10/18/2024 4:05 AM, Konrad Dybcio 写道: > On 15.10.2024 10:16 AM, Qingqing Zhou wrote: >> Add the APPS SMMU node for QCS615 platform. Add the dma-ranges >> to limit DMA address range to 36bit width to align with system >> architecture. >> >> Signed-off-by: Qingqing Zhou >> --- >> arch/arm64/boot/dts/qcom/qcs615.dtsi | 74 ++++++++++++++++++++++++++++ >> 1 file changed, 74 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/arch/arm64/boot/dts/qcom/qcs615.dtsi >> index 027c5125f36b..fcba83fca7cf 100644 >> --- a/arch/arm64/boot/dts/qcom/qcs615.dtsi >> +++ b/arch/arm64/boot/dts/qcom/qcs615.dtsi >> @@ -379,6 +379,7 @@ >> soc: soc@0 { >> compatible = "simple-bus"; >> ranges = <0 0 0 0 0x10 0>; >> + dma-ranges = <0 0 0 0 0x10 0>; >> #address-cells = <2>; >> #size-cells = <2>; >> >> @@ -524,6 +525,79 @@ >> reg = <0x0 0x0c3f0000 0x0 0x400>; >> }; >> >> + apps_smmu: iommu@15000000 { >> + compatible = "qcom,qcs615-smmu-500", "qcom,smmu-500", "arm,mmu-500"; >> + reg = <0x0 0x15000000 0x0 0x80000>; >> + #iommu-cells = <2>; >> + #global-interrupts = <1>; >> + >> + interrupts = , >> + , >> + , > > The list seems perfectly sorted, which is suspicious.. if we set > i = n - #global-interrupts, interrupt[i] signifies an error in the i-th > context bank. If the order is wrong, we'll get bogus reports Thanks for the review, the list refers to Qualcomm Interrupts design spec, checking this platform again, the list is right, first line is global interrupt and the others are context interrupts with right order. > > Also, this is not aligned properly ('<' under '<') Got it, will update and align the spaces in next version. > > Konrad