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 0A9EE371876 for ; Fri, 17 Apr 2026 14:10:08 +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=1776435010; cv=none; b=cgETNmi1x+sNPCowCHxLutSWNcyablCg530418NO2r/GwUKVQhLbXrql69JfTMmDEGGO35s0FmIpikgbpdveCYQ/+Klnbh1Z3qzF/ND0DX52V8BoBAHbBTvX53ktYN+Zc3pYymJj7V82QkqlnoJXxxaBczJRA24nhwDWFRH8z3g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776435010; c=relaxed/simple; bh=uEuVoD/MvbmrZJAAU4WJMcdPvUB704Rh08cLOWHed1w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZILaiCLu+BGO1t6866xZ3XdaNCeXVELAcQ38udhM4fmLmZL8szbAREXjCZwTkLi1VZxzz8Oboalxj5bvoFe/aKM/V7uOzZQuZlYdJtKE6jERTTViFHfq1okHJvYWJcN2Vbw9/wdW1xYM/nEvzrr5ymUeCwru2cep5nUprXdVPbk= 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=VChwwG/2; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=XCeznjzq; 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="VChwwG/2"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="XCeznjzq" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63H8tjZA1971847 for ; Fri, 17 Apr 2026 14:10:08 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= o0F2o4Dk3iiYwIY3r8uAaLKA55qkddrf0NWv552CW8U=; b=VChwwG/2FWGSCTBx Q7wfayNUO7wd03dW3G1G6tSCl+MEf5YnVHCtR/kz8UyuBEVtTr9WrmI3EeRNczAZ OmaYCqXLhyvQWwBav1q19M8R/s4OxWOnqm6+GLU8SuSZLJkZr4FXrL1yML0HnxGx VchGyjEwRiuWnokUkdF0ltrTOej55GgXf0npFuzPZJu7/w5ihTM/1gaA4TMz6klo TlwDUmG5Ew8J6GIxhGrgniMaciwH7mF6awqNyw3DrH8PxJbLAnxb4sQrUe5vJWRo pcw/YVgteXrkVDQ1sYg7HNWObdotjL5Crg8tsYM1IbFsr1Zn1uQ91IvdfEi8mB/+ fI8s3A== Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dkhsh93tt-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 17 Apr 2026 14:10:08 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-2ba8013a9e3so740806eec.0 for ; Fri, 17 Apr 2026 07:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1776435007; x=1777039807; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=o0F2o4Dk3iiYwIY3r8uAaLKA55qkddrf0NWv552CW8U=; b=XCeznjzqHYnOl1Yr0Oo0MwNvxgwzmrN2Bt+n1I5vhs30k/ZPRroC+CN7CmwjfwM0i+ maJx/gdEgowe12GW64Yi6ewHDoKF8jl1/5RLjNTwQu9UgkFziSRX6kbDw3kXQTzaH0Vh zq+FK6+PTTQJkBa64I+k8jlr1fSsfy4uNaMh08RmM2C3bvScwPsQO2YAgQBwI4vRJ/JQ KQ7HmoShBW99BWUveZESNsL5zvvMwhGTYwn/thNMcxmv1E4wKd07JeuLQ8d+CfUdM+FC Y778cLXr4oBGhGXYUJ22rbIdozMT1NV9prH/Qt/nJi9vCX1z9fyJwB7KAPBC7Bnb/pnH CUNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776435007; x=1777039807; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=o0F2o4Dk3iiYwIY3r8uAaLKA55qkddrf0NWv552CW8U=; b=J+6XjusmmImCG2XSoxLi4udN7YsdhYxkOkGU+c0iM96u1Rzdw/9F6fh2MNtzOq2msV nAd0yLzx+4PKAK5+mnLTHdATtz7nCa6ZLwjB+/4gOKLR5B0MtOGTyqB1xqr4PWXOiRZk Sq/bdZUJgv9OYjloZ9JuZewMntyHPzkI7hrwLIWePlTirSj8tLICvJ1LZ6/3I4DY8xDe oD6EfZ6wXKykZGCRQfeGL/06zoOTKDXhGHu6OPcZtuYRDO2UllHohSPurUSaxHfE+yRh As8ShOYOoMp8g9rxX8g/QC3okQCxijNO0IcxX/3q7z92Oq6WyV4hCyIns8/3fpc4y85z HsBA== X-Forwarded-Encrypted: i=1; AFNElJ9q8O265MDUpki1nL31fRwGsNODaa+sktKH+Br0R5tRKHK05cDhD27Objau+34DrKc2h0URZOfrKThipbg=@vger.kernel.org X-Gm-Message-State: AOJu0YwfK3ZMYbdtHzUNeBW1tLtMdoy5QluhMIWr4pKS8jwwaMjVZLXt 9fAbTAUcoLwiKpdQa2wvPIM+j3rMfXC9mEQCCIxZ9qA8I44hRY3sd8TakMvG2SMBkHElcm8cIas fr63qEpD6gfRqv04T4XKcJDSYHBJCM5cnVidQp+AEyl03vdt6cVonqrz8yzTpLTkK0GY= X-Gm-Gg: AeBDieszWj/qtNiGeM5YgOs1lpRX2zJ9iD6i7/F8hOVXnFXc3IXv8XiFISPCIj/k0pK PBxiajbU65og+NqJ+iSBEmWEBgEAA4M4sAuJ8UpSczaF71L2b94cITFdRXZbfJ4W7QlvhNwMWn0 Mk6V/gWjhIK5YYoX6MMwL6AY/BW20/9pDHYgcVXYBlI7m5TWbjbjAn8CNNgKSJb1DkzhqVLqG+t xuEpTrDmtCJjzvIbfaWyQGMwDEsO2erOuJWRuipL8u0BPwYksJchrBY0rsCPSDlwnP/YQoGxMwz AEQ4E+VxXJvNZqL/jGcb+fXV0srfLdZLUXndNFoM8Rg8Fvzc8Sp5HG3plyArzI1Lklq/Vna+EbI tvYW3z1Y5utnFaGc5Hnhfi4qZEVcAb8x2m5nB6SqMaDsrSYkA0CihzUiPSLD1K5RSxhXMZqAfRB U= X-Received: by 2002:a05:7022:6728:b0:12a:6902:ddce with SMTP id a92af1059eb24-12c73f75d0cmr1432459c88.10.1776435007240; Fri, 17 Apr 2026 07:10:07 -0700 (PDT) X-Received: by 2002:a05:7022:6728:b0:12a:6902:ddce with SMTP id a92af1059eb24-12c73f75d0cmr1432394c88.10.1776435006470; Fri, 17 Apr 2026 07:10:06 -0700 (PDT) Received: from QCOM-aGQu4IUr3Y (i-global052.qualcomm.com. [199.106.103.52]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-12c74a2ac32sm2243346c88.15.2026.04.17.07.10.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Apr 2026 07:10:06 -0700 (PDT) Date: Fri, 17 Apr 2026 22:10:00 +0800 From: Shawn Guo To: bibek.patro@oss.qualcomm.com Cc: Rob Clark , Will Deacon , Robin Murphy , Joerg Roedel , Dmitry Baryshkov , iommu@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, srinivas.kandagatla@oss.qualcomm.com Subject: Re: [PATCH] iommu/arm-smmu-qcom: Fix fastrpc compatible string in ACTLR client match table Message-ID: References: <20260408130825.3268733-1-bibek.patro@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260408130825.3268733-1-bibek.patro@oss.qualcomm.com> X-Authority-Analysis: v=2.4 cv=d6/FDxjE c=1 sm=1 tr=0 ts=69e23f40 cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=b9+bayejhc3NMeqCNyeLQQ==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=pfcpBET5JRzwQ_8xOogA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=scEy_gLbYbu1JhEsrz4S:22 X-Proofpoint-GUID: j-dZycbMKR3guIgnSQhHcry4vkD4fEhA X-Proofpoint-ORIG-GUID: j-dZycbMKR3guIgnSQhHcry4vkD4fEhA X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDE3MDE0MiBTYWx0ZWRfX4koIICRLEN2E S3zENQb6dugCT5290QMluUBxhXyOuuMU+UkxfiUBP6pF/9IFk5I0XHvNF+36sCpPDFrJAK7CBtP aXQoTxaaYg37ND9dniNL5ozgUxav8RJ+m0ZVN/Yxro3v1GfUIImNSWHg1Yrke8s9MfHzLkwSL4F XQeg5KriKfVEG0Q+kSNrKVbmipD9f0rDpvklzFPiiHCsGMQHOlntZN2/ewuIOMWG0PQKyFIBflX IwbjIuYFBTNaoj+C5WjUvEAXXcnRugFf8O+5HWW9BvPcHyhlS+ESUByLkWfi7AKucQ0aicutGfv szUd1XYxQRliCwbG7FfT6x4+BFt1aWSSKkCmdZyx4JWJ18ztKULNkHDpEUybkpJx9MCKz9czVDs ZwRjR/32flFz+p30xfS8/DW/K5X5TXFu/UGVCVh8eN7dJa2v+CGp7bTo1RB3/kL7liJ+jnFH/VI Ck6C2lpRiVxckg/g1/w== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-17_01,2026-04-17_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 suspectscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604170142 On Wed, Apr 08, 2026 at 06:38:25PM +0530, bibek.patro@oss.qualcomm.com wrote: > From: Bibek Kumar Patro > > The qcom_smmu_actlr_client_of_match table contained "qcom,fastrpc" as > the compatible string for applying ACTLR prefetch settings to FastRPC > devices. However, "qcom,fastrpc" is the compatible string for the parent > rpmsg channel node, which is not an IOMMU client — it carries no > "iommus" property in the device tree and is never attached to an SMMU > context bank. > > The actual IOMMU clients are the compute context bank (CB) child nodes, > which use the compatible string "qcom,fastrpc-compute-cb". These nodes > carry the "iommus" property and are probed by fastrpc_cb_driver via > fastrpc_cb_probe(), which sets up the DMA mask and IOMMU mappings for > each FastRPC session. The device tree structure is: > > fastrpc { > compatible = "qcom,fastrpc"; /* rpmsg channel, no iommus */ > ... > compute-cb@3 { > compatible = "qcom,fastrpc-compute-cb"; > iommus = <&apps_smmu 0x1823 0x0>; /* actual IOMMU client */ > }; > }; > > Since qcom_smmu_set_actlr_dev() calls of_match_device() against the > device being attached to the SMMU context bank, the "qcom,fastrpc" > entry was never matching any device. As a result, the ACTLR prefetch > settings (PREFETCH_DEEP | CPRE | CMTLB) were silently never applied > for FastRPC compute context banks. > > Fix this by replacing "qcom,fastrpc" with "qcom,fastrpc-compute-cb" > in the match table so that the ACTLR settings are correctly applied > to the compute CB devices that are the true IOMMU clients. > > Assisted-by: Anthropic:claude-4-6-sonnet > Fixes: 3e35c3e725de ("iommu/arm-smmu: Add ACTLR data and support for qcom_smmu_500") > Signed-off-by: Bibek Kumar Patro Reviewed-by: Shawn Guo