From mboxrd@z Thu Jan 1 00:00:00 1970 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 C231C390608 for ; Tue, 7 Jul 2026 09:09:39 +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=1783415381; cv=none; b=CqVpAiU1lu674ddVUPA1GcQCYZChnAescffdU2Y2UQWohtbUfYpjmphrjClKqpU+Nqj6eoKh7qMV3UVL0Da+TrUi1a7qE8uYM4b0KMq5OI3ZI+9BmqMsJ4yTbMXwMT+hH2HW1AuW/XMiCgn92IyEUpvwtmFlSG2NzzFLnFDc+8A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783415381; c=relaxed/simple; bh=Glg9tGvwRHTm4aaAWYZK2xSaJDmf9qc/Es2Fhj0kHBU=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=nejrvoybKX5UMn6fc4UWGklyuXGmvwOT2Q0BP3iOZcLhJUgUEkltBS6s0H08t4J2lmQLLe58fZjOK27NOAv3rWk647gFPKSAHhfdSuUY+il/q10VV3yzv6zhD9IKqd4CGr3lY1IquxS2v6nxIigupd6MeFc3tGq3NJ/Krb1yhBY= 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=H3CNG3FU; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=BDJKDbOG; 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="H3CNG3FU"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="BDJKDbOG" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6678EBIH3231408 for ; Tue, 7 Jul 2026 09:09:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=P/NAFwP16MMpi8dk+6Qh9Q W68OCZTPeTA8N4GMACQKQ=; b=H3CNG3FUlwlw1pexLbmP5mnOkaUzBe0dyAv0HX HH7RXIVZ1nlR07U6ihuMRTkTVvg7okIWWOB0N7RM30Q3tf6Ir0DAgRjeB+tvwGN3 l0abiI5Xj0ITSzze5lKL7NTf7Pp300oFO4vnOJmTZPwMMvkXT+XkGeoZLKNOYzk1 n2c5nhluBBcUhT5NkuRd2U3jRnnJ2MgSZQ0zPPs8u/rk0JLN7ZYsI1cqJxTLYMgi pZb3md61Vycbco4rAG3kVByCSImiWXqsZ1uwb1+zVZnzn/2hnbCsR/j/S4Pe9mGX Fpv14qosps356Zw3VtOq6UhPyrW8Y/ylpg7svUBa7ODH3mQQ== Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f8qj79muj-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 07 Jul 2026 09:09:38 +0000 (GMT) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-84777e9b51bso10066601b3a.2 for ; Tue, 07 Jul 2026 02:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783415378; x=1784020178; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=P/NAFwP16MMpi8dk+6Qh9QW68OCZTPeTA8N4GMACQKQ=; b=BDJKDbOGP75sKpNa+UIR1awCt9jjL5OYSeOeVb0Q3i5OqrLlVpLVVi/afpy50ayVio dLkI9wL1QeUIzFBf1HMtYUgVTbJDHN846Sgq8AMIDYpZoO9YQM9HOPyFwm8K4e46R7sr 8xZueLaUSrQz216RyvX+FrxcytHVGZDW39KFKNsz2kOs+ImlxnYI1IOU78UrcVwvPgbm PHQxRXUfun/7ehJgR9JwObDBCrniWx14WajSRGY75gth88V9ANU7DMpotB7B87gJB+2O ZTnWLYlsZseZQNk7+EsUaoUqjkjLd9pTZqBsyURryeaO7gRjk1tO2WFl7FPrZS/zfKtz nbhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783415378; x=1784020178; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=P/NAFwP16MMpi8dk+6Qh9QW68OCZTPeTA8N4GMACQKQ=; b=Xaiw+wIDYjU7QCZe9yl1k/CI/R8BOeWPz9JoltfXyz6vKlVr2oDUzKTYudJai+TyHP OMSf5Egaiw79/wIEikTek4qKcWAmy9/3MOJN8iTCpjiPkos+rMTvg1rL7Qw7tgnhSEOV vjjLkQ5CBuoLF6caG9AVgO1FDFYovqUae/CB1mZQSO9qTsc+MtOaHboboTLheP1QQIYu 4VG3wKd74Tw7wrzSIhWIAPxlM6y5a96WPd8JVROhVM4pZBoBbnkhg+jPlD3pme4AueyT n2Yg0v1ieHAEBv/jOVG4s+QwWj/3na/KGF6YZYzX7tj1M4Xu/R4nOAjCrMrw/5iowxc3 457A== X-Forwarded-Encrypted: i=1; AHgh+Rq3mLWMD8La/uhKnHKgE7sXFH6WfIonnrzwpnU5rgY+n5V1Nwd5EmsYr0gUj2Rifd59CFj5Yie4TYdxiFc=@vger.kernel.org X-Gm-Message-State: AOJu0Ywt7iRb9gz52vAgpcFKjiXz4AkM6RVeSfUs7RFMerDivnDp52n/ Z3PtOpp6m5Dlti7oYAB4ys5gz+Bq+IFVEGtTOZub6664JzcOCJ8w3J/C1E/XcpJltZ7j/QnuzsZ zpLmLkWZEiyBDsVfktaKGsnJz4q1G4cToGKANqk7LmQbwZMzs+Orwagq4iKBjhempvWE= X-Gm-Gg: AfdE7cmeaSSg6z9PS4jhARUFqa7vUjr9LmP4/LHE94XEEgyToZOrAZ61CpMH8D+aFVA LKBBywr2XVLBrBeZYKBgORt8eie0SDtvdnA6VUVE7oyW0A1MwQ2VzKWSUQoe66BEK/zU+U4fN2W fi3Nxe+rS+Hk+sIv+W/rLLIsItmhoiXc3+2twjoNvxUIiPX4bZDR7lJTrQwWJ8KJjbzCRO+O8jG q/XQND3eIlILsEaF55Fbu8wJDKeUK0PV70bE8SNpgihASR3rjR8grqBthdVxYV77cq2iJSaQAjR bAGzcBAD6VsmfPll+36msUpiV6Gsr/drXAYzh6r+m21m4orDLnCMdfx4InT4zomgB8tPSadnD5Y siiLbdj+OL87LSEmMtcyqtvcAwppKjbTYn3Rkw5IZhQlfjk22Bz3cyvVYfUFq87duxN3PjBxNCA == X-Received: by 2002:a05:6a00:4b0b:b0:842:55b6:f5a1 with SMTP id d2e1a72fcca58-84826c1e0bbmr4186005b3a.6.1783415374750; Tue, 07 Jul 2026 02:09:34 -0700 (PDT) X-Received: by 2002:a05:6a00:4b0b:b0:842:55b6:f5a1 with SMTP id d2e1a72fcca58-84826c1e0bbmr4185953b3a.6.1783415374126; Tue, 07 Jul 2026 02:09:34 -0700 (PDT) Received: from jiegan-gv.ap.qualcomm.com (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-847f6b975a0sm5140582b3a.14.2026.07.07.02.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2026 02:09:33 -0700 (PDT) From: Jie Gan Subject: [PATCH v5 0/5] Fix traceNoC probe issue on multiple QCOM platforms Date: Tue, 07 Jul 2026 17:08:48 +0800 Message-Id: <20260707-fix-tracenoc-probe-issue-v5-0-bf733ed9ebd0@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-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIACLCTGoC/43NwW7CMAwG4FdBOc8odt003WnvMXFIU2dEGg1Lo GJCffelXLbDQFws/dbvz1dVJEcp6nVzVVnmWGKaamhfNsrv3fQhEMeaFWky2hBDiBc4ZedlSh6 OOQ21UcpZwBumfnRkx8Cqnh+z1O6Nft/VvI/llPL37dOM6/YJdEZAGLzvbIu9Db59S6Vsv87u0 6fDYVuHWu2ZnvUINHTWtKSDoUB4x2v+eI1+4DWrRxoFLaP0fMfjX6/T+MDj6jkJbmDuHXf6H29 Zlh8cpymrtwEAAA== To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Tingwei Zhang , Jingyi Wang , Jie Gan , Abel Vesa , Suzuki K Poulose , Mike Leach , James Clark , Leo Yan , Yuanfang Zhang , Abel Vesa , Alexander Shishkin Cc: Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1783415365; l=4279; i=jie.gan@oss.qualcomm.com; s=20250909; h=from:subject:message-id; bh=Glg9tGvwRHTm4aaAWYZK2xSaJDmf9qc/Es2Fhj0kHBU=; b=KhMUCBqaORwT26jbahQIaOf9vDYgsqZarWJ/WMGkwL/eXAfvjxQjvnnMecG5zH/BPmcqy5Kh/ Av1ph3z2bvVDiEYYNHBOByZVTCiUhj7PjZLJpCNZIsndyzj/evkv4yY X-Developer-Key: i=jie.gan@oss.qualcomm.com; a=ed25519; pk=3LxxUZRPCNkvPDlWOvXfJNqNO4SfGdy3eghMb8puHuk= X-Proofpoint-ORIG-GUID: 43eEvYEuS5G9qe_sGgeCoLlCtMxVYfuk X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzA3MDA4OCBTYWx0ZWRfXya1cO4Om1TwB 6irzyjTDaPZzgDzXQDaTbI2q8h6C10FXO5TX6wG8cyBroCm2E5wC7Yq1PcydjCHWSDMG0NWAMzC 4Wyaq6SUKqKwZDUu3R48e49RCCDvOFhwoyf+SjJSHRMYuFTmwtA5xTkkSaRO8SGc10S5RPI+dz9 wGavRIO2OGqzRBghZUNIXFTyjlaygOeZK8suwJtRVcHF39RP+jRRczlLFCLO3hn6YjbFe14nQm5 rYzoK7kj762rnj59AIuNeNs+6Cf4i3/BCu8NzXRMib8cuf8fUdkaUg5qrQY7TK9VBpd9HvaSoTZ k3e/EH89zdcE6cZLz8dt30tZG6GH4fQCKBXbtA8VDlTl9eY+Ad1W+I+6r75eoIoaGU+irhxOeom pfHsaKf3W4KjzcP4BY86GQeApaPDRUZY16C/8QQudRizfuBTsSnuI1VOOcEFoeMUQJW6GzuONsI lCZ5yhg+GOZ1QAFTdpw== X-Authority-Analysis: v=2.4 cv=PIM/P/qC c=1 sm=1 tr=0 ts=6a4cc252 cx=c_pps a=WW5sKcV1LcKqjgzy2JUPuA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=eJfGDJWfQcjy8rMVS6kA:9 a=QEXdDO2ut3YA:10 a=OpyuDcXvxspvyRM73sMx:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzA3MDA4OCBTYWx0ZWRfX9KFN3ovFpndv 21HeLhi5LPKEc2kYk83xD/CSzpSRsPM69e+v6bFAlBu9cOoqRq0JFNdmmGdAC4FQRW0EX1WsX2X 0DvH1z27F0Lx4CvD+wM7RKdUNKLBNoQ= X-Proofpoint-GUID: 43eEvYEuS5G9qe_sGgeCoLlCtMxVYfuk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-07_02,2026-07-06_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 clxscore=1015 impostorscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607070088 The CoreSight TNOC (Trace Network-On-Chip) binding so far only allowed the two-string AMBA form "qcom,coresight-tnoc", "arm,primecell". That form forces the device onto the AMBA bus, where the driver must read the peripheral ID from the device registers during probe. On several QCOM platforms this AMBA peripheral-ID probing fails, so the traceNoC device never probes and its trace path is unavailable. This series drops the "arm,primecell" entry and turns "qcom,coresight-tnoc" into a standalone platform compatible. Without "arm,primecell" the device is created on the platform bus and probes through the platform driver by compatible string, bypassing the AMBA peripheral-ID read while remaining a fully functional Aggregator TNOC that allocates a system trace ID (ATID). The series is organized as: binding first, then the driver support for the platform-bus compatible, followed by the per-platform DT fixes that switch the affected nodes over to it. - Patch 1 (dt-bindings) drops "arm,primecell" and makes "qcom,coresight-tnoc" a single standalone compatible, and updates the example node accordingly. - Patch 2 (driver) adds "qcom,coresight-tnoc" to the platform driver's match table and renames the itnoc-specific names to generic tnoc names, since the platform driver now serves both the Interconnect and Aggregator TNOC. It also restricts the ATID-unsupported handling to "qcom,coresight-itnoc" only, so the Aggregator TNOC on the platform bus is no longer wrongly covered and correctly allocates a trace ID. - Patches 3-4 (kaanapali, sm8750) drop the "arm,primecell" entry on the traceNoC nodes and use the standalone "qcom,coresight-tnoc" compatible, fixing the probe failure on those platforms. - Patch 5 (glymur) switches the node from "qcom,coresight-itnoc" to "qcom,coresight-tnoc". This node is actually an Aggregator TNOC (its tn_ag_* endpoints show aggregation), so it should expose a system trace ID rather than being treated as an Interconnect TNOC. Signed-off-by: Jie Gan --- Changes in v5: - Drop the separate "qcom,coresight-agtnoc" compatible. Instead drop the "arm,primecell" entry and reuse the existing "qcom,coresight-tnoc" as a standalone platform compatible. - Update the binding, driver match table, and per-platform DT nodes to the standalone "qcom,coresight-tnoc" compatible accordingly. - Rewrite the commit messages to describe dropping "arm,primecell" and binding on the platform bus. - Link to v4: https://lore.kernel.org/r/20260701-fix-tracenoc-probe-issue-v4-0-aefab449a470@oss.qualcomm.com Changes in v4: - rewrite the commit message for the patch 3 - patch 5. - free the allocated ATID in remove path. - Link to v3: https://lore.kernel.org/r/20260630-fix-tracenoc-probe-issue-v3-0-7201e1841e94@oss.qualcomm.com Changes in v3: - add standalone compatible for AG traceNoC device, allow it to be probed with platform driver. - add fix patches for sm8750 and Glymur platforms - Link to v2: https://lore.kernel.org/r/20260624-fix-tracenoc-probe-issue-v2-0-786520f62f21@oss.qualcomm.com Changes in v2: - address the ATID issue reported by Sashiko. - update binding to accept arm,primecell-periphid property. - Link to v1: https://lore.kernel.org/r/20260624-fix-tracenoc-probe-issue-v1-1-bcc785198fc5@oss.qualcomm.com --- Jie Gan (5): dt-bindings: arm: coresight-tnoc: Drop arm,primecell to bind on platform bus coresight: tnoc: Bind Aggregator TNOC on the platform bus arm64: dts: qcom: kaanapali: fix traceNoC probe issue arm64: dts: qcom: sm8750: fix traceNoC probe issue arm64: dts: qcom: glymur: use Aggregator TNOC compatible .../bindings/arm/qcom,coresight-tnoc.yaml | 16 ++-------- arch/arm64/boot/dts/qcom/glymur.dtsi | 6 ++-- arch/arm64/boot/dts/qcom/kaanapali.dtsi | 2 +- arch/arm64/boot/dts/qcom/sm8750.dtsi | 2 +- drivers/hwtracing/coresight/coresight-tnoc.c | 37 ++++++++++++---------- 5 files changed, 27 insertions(+), 36 deletions(-) --- base-commit: 4e5dfb7c84012007c3c7061126491bbc92d71bf1 change-id: 20260624-fix-tracenoc-probe-issue-c6429da28df4 Best regards, -- Jie Gan