From patchwork Tue Jun 4 02:47:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tao Zhang X-Patchwork-Id: 13684586 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0AF05C27C50 for ; Tue, 4 Jun 2024 02:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=USfMdl0Ucste/PODKq3HS6OBxlp+c/OruxPIgD9VVGo=; b=Q+DC842JTe/ITL jJJhm8Umip2xQrye3wXzjFdK5+H1ZZJbM/6pcx/ojiDrC7wUvLaTNJ8zVBUUprfOIudB8meMvhv6x v42qjYjYuSTCFLT/s2wqXFOnV6w2r1yTGjLgvUH7ovLomlJ6xUvcI7BgGQ0u9J4QEg1T59aQStHfZ vZOIlI8EwoyL6u49v1glXaWXZVpLGrd6txY1A58mJ82RCm+Y3XYE8GOUQRxr2Pd7jFtfhE2BAt5CB ylCMTl7G+/IX0959VTEB3Y1ZNFb1NGdziMM9QSxL3IbSalRQfi3W6yE0aivhZLayCwL9Apo3tyrXf 5tjRva1BobrxCPUONMjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEKDs-00000000xfa-1yd7; Tue, 04 Jun 2024 02:48:28 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEKDo-00000000xeo-26Bk for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2024 02:48:26 +0000 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4540CwXV022087; Tue, 4 Jun 2024 02:48:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-type:date:from:message-id:mime-version:subject:to; s= qcppdkim1; bh=abhgvx5PcQ2TPqFSMg9xhOSMCDgZLFd/2VxdwZcjVmQ=; b=SA j0HVVz8p3Sitaob+eC9rssKk1spawnKMSQVNNWih4H6tCGZXx4yxJlyQJLSA5Fbq OChexmwc1a/l7TV9tEfKduoFRcfvtHm4C6kPBALzAInqgKDB5zjBHuzVmFshXJnn sHzY27730xBTc9wfhOlXqZ2TRu1Xfa9pb7rR/WrYyVXc7SFBGNxik3MCkH1voRj7 rMAdglgm2tQ6Z2hFZSxmrIDrckIHnuXV8AyXryyRkJ8s0sZrccg4XC0TGqXanFeE aM7WANIgQWeQu6y/+2K8M2hMB6wsloJ3/h71qQXItJO3+HOshqB9sJ7yB0/3y3va uSaIGhhfE7hP1XoQxY3A== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yfw5wnhg7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 02:48:17 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4542mGrZ027630 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Jun 2024 02:48:16 GMT Received: from taozha2-gv.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 3 Jun 2024 19:48:12 -0700 From: Tao Zhang To: Suzuki K Poulose , Alexander Shishkin , Mike Leach , James Clark CC: Tao Zhang , Jinlong Mao , , , , Tingwei Zhang , Yuanfang Zhang , Trilok Soni , Song Chai , , Jie Gan Subject: [PATCH 0/3] Add support to configure TPDM MCMB subunit Date: Tue, 4 Jun 2024 10:47:38 +0800 Message-ID: <20240604024741.3550-1-quic_taozha@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: yEXelwuhrjgHKwUDtQOZgsVa1kSTJuZx X-Proofpoint-ORIG-GUID: yEXelwuhrjgHKwUDtQOZgsVa1kSTJuZx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-06-03_17,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 adultscore=0 suspectscore=0 priorityscore=1501 clxscore=1011 lowpriorityscore=0 mlxlogscore=741 bulkscore=0 spamscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406040021 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240603_194824_658101_F0D91418 X-CRM114-Status: GOOD ( 11.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Introduction of TPDM MCMB(Multi-lane Continuous Multi Bit) subunit MCMB (Multi-lane CMB) is a special form of CMB dataset type. MCMB subunit has the same number and usage of registers as CMB subunit. Just like the CMB subunit, the MCMB subunit must be configured prior to enablement. This series adds support for TPDM to configure the MCMB subunit. Once this series patches are applied properly, the new tpdm nodes for should be observed at the tpdm path /sys/bus/coresight/devices/tpdm* which supports MCMB subunit. All sysfs files of CMB subunit TPDM are included in MCMB subunit TPDM. On this basis, MCMB subunit TPDM will have new sysfs files to select and enable the lane. Tao Zhang (3): coresight-tpdm: Add MCMB dataset support coresight-tpdm: Add support to select lane coresight-tpdm: Add support to enable the lane for MCMB TPDM .../testing/sysfs-bus-coresight-devices-tpdm | 15 +++ drivers/hwtracing/coresight/coresight-tpda.c | 4 +- drivers/hwtracing/coresight/coresight-tpdm.c | 119 +++++++++++++++++- drivers/hwtracing/coresight/coresight-tpdm.h | 33 ++++- 4 files changed, 162 insertions(+), 9 deletions(-)