From patchwork Fri Jan 20 00:51:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Clevenger X-Patchwork-Id: 13109022 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 1B7BDC004D4 for ; Fri, 20 Jan 2023 00:53:52 +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=ya/js4tW9txcs600SSXBjXFJbr+lJdkeCEuJpcLbC70=; b=oAeIJh6JksU+fC SowoBxJCb/5qS4F4W8yi8YlQeNm0MGYvWBaqg1va7HA4SwWPcHRKjR7Xiz3NRdBGFQINgvRycOPNE lrtbrGs9YUtwaxSlsLoJgSccvrzPdPEa03mitcvFXYgE69XsM0lty4FSFgOTHrvQuJHG7onEtraaK FaeJahRM0Bks2Ih/vzUjk9xX2l8R8UN7VyMOFPjKhmL7aiywEzG9dPaCvZiXlAfupJVKbD1X3PkSB 5I5NXMSppqaNNiIeV2/hiahMfrukUnu+TRdleFtDOaPaxsaJGin0s3AoXnihEb8zpPXv2CpvDvN9O FAofL60qL23zKEniMc4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIfdp-007oYg-BN; Fri, 20 Jan 2023 00:52:25 +0000 Received: from mail-bn1nam02on2103.outbound.protection.outlook.com ([40.107.212.103] helo=NAM02-BN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIfdl-007oXt-82 for linux-arm-kernel@lists.infradead.org; Fri, 20 Jan 2023 00:52:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DScmVBmu76BBEycSG8vfeYaqniC9ciCRWN/wxVXhc7aLQABuGLDszr7NwWH5rYLBK/S1EWiVEm0Y+Ergf3baUpEuZ1vHjPOa4wQUdUn4A9+Pzri2QRPntAsmyKPUhVu+QlnD/UPykitrIwQCjZobBgIAcFdtfKTC4cpxQ03s0CgBQ+z3s12FE+sabDzVWyNhEdGVqk2gioNuSY31Ez6ewNg9ericN4f75aSdQy7oVcfxd00fsleOeOv4PoQzbIEewfa9p7r5nHRCBg11dD/5frf/rXlG4IiEdDMiQ6QD75iNj9wXYAienIafoOGaG+Q7KF1YqE9S+/T7VHssmUHBNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=S3+oIHfpMVhUhxbNTcyY4ADhqCQXhdiu++xUbG2Wn/g=; b=huzXxpsv3ADQTRBHvCldnjW1S3IpIQnKmuJGgZYRQ4C/PVNgLeXntetVaKmFcISccCeqD4lGJ1I34yIRzOjqxfdeqxKR/pTa+ahwKxyRmd4l4EXiKTegq3HPnQDHDg6LzWVYSJ9VZln9HQhiAnC5UeT+WUVDM48gmMDuK5tv692RE1c3J0oVtI+geJuiGptPgnIBKi8HyoXI+V4c5YrQGDfarpyRvPOvP11f19Xi3d7YO998iAyikUQPA8LMatwOfCXw+ssepMaSw8xnUVGTNc8JF6CkcAZwmJtFnufExaCxvzSyCp8h41UFO1OILbZtlmVRiGbrCtHcsNLjQU0mZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S3+oIHfpMVhUhxbNTcyY4ADhqCQXhdiu++xUbG2Wn/g=; b=IujPrvBFeJdlHG+6XjLJsSQmyVY30UZSgh+9E7aHj4mA2/9AYAjia/lXy20zfo1LsTL7+4M9hTRZHrDNNY9Vdsq7sbwKsUAciJOdrEcLPTGiP4UkD/wJJTlDi3oXAYQ1OIKU0FxfnzAGUr4y9g6/JabINLYzkUBoziUdr7f9BEg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SN2PR01MB2143.prod.exchangelabs.com (2603:10b6:804:d::13) by SN6PR0102MB3407.prod.exchangelabs.com (2603:10b6:805:11::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Fri, 20 Jan 2023 00:52:15 +0000 Received: from SN2PR01MB2143.prod.exchangelabs.com ([fe80::eef8:5973:baee:184c]) by SN2PR01MB2143.prod.exchangelabs.com ([fe80::eef8:5973:baee:184c%12]) with mapi id 15.20.5986.023; Fri, 20 Jan 2023 00:52:15 +0000 From: Steve Clevenger To: mathieu.poirier@linaro.org, suzuki.poulose@arm.com Cc: mike.leach@linaro.org, leo.yan@linaro.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/3] Ampere Computing ETMv4.x Support Date: Thu, 19 Jan 2023 17:51:53 -0700 Message-Id: X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: CH2PR04CA0008.namprd04.prod.outlook.com (2603:10b6:610:52::18) To SN2PR01MB2143.prod.exchangelabs.com (2603:10b6:804:d::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN2PR01MB2143:EE_|SN6PR0102MB3407:EE_ X-MS-Office365-Filtering-Correlation-Id: 420d4f9d-d8bf-44cc-0dae-08dafa809204 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vRZx9IbU52sCfUqc0xi1H18p4fkm4rh+eE9PrQn4nme/+h6uR1iqMcs0UtHZebBuxYVGZn/IkWAyGKS7UlM3xubnPO+VeCAI31AEAKYhYA02cBEqWnihysWBzpx5e7KrMK1U1J1anoyu/dhySgVwLdr2yoebI75wQcFT7nHYV2xIbtLYNNY/w6N8rfMZsrCptnq039+uvWEQ1k6XHP2cETiJguAZkxHu1JHQ3IDatoW7sXvOvrxm18tahKAWMqenJq/cfwUrsZL6/ho8SBKsgVm68jMV8tN/WOiDIChht2lSVGF/2HOQnYqnpwyFdkOqn71CgaiwWAa8voZWI42HXg+sPy7/au+5B7usmZJ9S4d/IHUl63/gxs7PpVwgawFiPMENskv+L90AT+siDVub/ynDQZAjTwwXf//VnKjCiKzi35SERCavpRXT+Vco0Y+KoJs8Yf+ivigu8Hj/TRetKbBEXL5gKUHynSEIj7XhlP8VvF4uBwnhWskm47lANe2YURQRKWXgTNPNnsMrh3FceHHwkexxIDrgF90tY71LsXvB4rGzkYUmIm/mOkeEV7+Azdcxfk9r/OaNYdLgKu4ZWK41Z464EIE1jX0dcqbuZraHVfgn1OUhcGp2NOsQaW+do/JX77PCXFBBviHSQHNPmMHpZuvkfVRtgCVq/Ckz3S6nwS7viYOBHZhEIMO9kY0W X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN2PR01MB2143.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(366004)(39850400004)(376002)(396003)(136003)(451199015)(26005)(66946007)(186003)(478600001)(6506007)(6486002)(6512007)(6666004)(52116002)(8676002)(4326008)(66476007)(41300700001)(8936002)(316002)(2616005)(83380400001)(2906002)(4744005)(66556008)(38100700002)(5660300002)(86362001)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2u+21d5PYZS6YlZcsJiLf1rZj8zM70UzlvpYzs+7/xKNQZ22ORSr74l6niM7jXnC1JsUcT31hlzKMvZxVwZBYw43q4BvthREyZsPem5FaAzwgZP7Aboys4s+EbTUjCwrpaMu8qZSZkA8gf95UqdNiJQgCv4j62DIOjjco/889tNWlvf+pzmNkORJqCUIfeX7cJu7vb0LjOr9XVkCFMUbZ7JkYDJnk9s/6DFaMHAD33bYoZJTKnczZ0Wd4GVTASi5sFYGYUYLJv1/UmS55tJH42HCu48ttaumbkwKEdjefpqY9/B7nPvJAXpW1706voeGg2QogjB6/ye7ZG3KyAKd1mQ9JcdCtNcvFBbyvD2Ia0n626Blm0DyZaMtpJt3G5aeJESchEI+bvcFdOtxnG3oUVR76lHXB7oo9PcOHLzIZjAnG+SfEBMgqGp+EbvDSxJyfUMw39BGjSbOPHTdxltS7zmrW2dEVRlWc0cnPmnMtCGllBpPN4ZRxHEwF30kD+zEVKb26jymcT9aFJvC4KonGuQABuOmCC7bUiwHn+RtoSbWivh30DqG76axszBzhWYAHpf0kAeakAMDpBOS4HQ3GppyD6sNMU2ai9KMjM9BgbO3UFP6oRQbN5UgFy0FjrmBL9rx9tfnMK+KSCoiD0ISk1/u5Vr7Kas9lip4BDAbko1ykQPQtBglg8IO6N2Tl9X/QWqZNX/LM8Np58D76iXTuWdxC6Xp7NTKSTYkkjPrkWo4JvgtV/+taedjXQe7Se5+xzTEeSW58PQsv2jAp6UNGnKmTeuOgMIDa/9Fo9goWsahIHDSJPgHdcs5oTGBEY11PBxHdbcLn3xoo6ZxDmq/tSjz2BPNVeugnyb5YY6+m7fcsmGvSKkqTOi2XLQuV2r6YvAUYB4AG2kQ0TdUp76TImZlc1d1SeKFoOHFSs15Vp24utwgu0KYGFDqH3WmOLnPQV2beo8IJ+N0z6SDfj+KP1LEb8Ox3t0N6WhN19stm3+B8flWwQZggp0xMAZO9neB+dBLNVqg9rqynX58qjTW3xnCmaiywUKOyS6sjZxla6WMz+0/ICH+dLzyuECyQDkZkCTzcVyhkqmLmc15oJY/XixeiCwEf4KKGOKLc7Uiqi4ymcmR+Fc0LwEjkrhpWroYuVc9LwrVZjtdMnK0xm8uTjOf1Y6ciDBwvekwPs84OndxeMwqa4N+RvQDKVSbSiA9shvSNWFAood5s+xfCivJd8fsCt3gMTGaqTd6+CEERG+Pmjpx+7RL52kNVRLdNxlLHLisXsrMXmWL4U8Y7Bkw2PkWf2cEiOyXGyyExpgae/ln/PbE/eQwJd1EhIjD8C8Fo7TnzMZL2wp+PdP+oiAB1FhMqzSu7UaCYl0eAh7xDUwovEYAczEUjxu3XGmeq/SesEGLubNFnfnzhoC01xc4ncYSvl6LxyupaVbcb1qcUvLDQDpLU7LdHq7PUE2YronPzH2tgCWCy/6HylFr53W9PecvKnQGcGjwF9CbSbMniwY0GOMJGz/IKDKZewyjcGuXebicMuSSICeSSSqg120CQ1xPtbYsE3d+0ox8Ytldaqmu7CgK/dP8e8gGlT/BGB9EFDCxuWXLgIDV5/IkrNi0HV8sA1Z/UYkdUh3OLCZQk1HXzbNZWubRQ5i9EDnD7Ocb X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 420d4f9d-d8bf-44cc-0dae-08dafa809204 X-MS-Exchange-CrossTenant-AuthSource: SN2PR01MB2143.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2023 00:52:14.9936 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZOVF0UdxOyBRxM9wL5VPevsi3SI7lkgiQl4bm+53S2RwxuoTtDAI6ODxzWBGr0SHt8ZWnXZGItEpL364FHdZ+3uYGJRTjLS9HKJ/GFCt7eTbChnJqlz8UHWlREAur/Nw X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR0102MB3407 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230119_165221_553397_BA21396A X-CRM114-Status: UNSURE ( 5.55 ) X-CRM114-Notice: Please train this message. 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 First pass at Ampere ETMv4.x support. Added Ampere ETM ID, and changes required by the Ampere ETMv4.x hardware implementation. Steve Clevenger (3): coresight etm4x: Early clear TRCOSLAR.OSLK prior to TRCIDR1 read coresight etm4x: Add 32-bit read/write option to split 64-bit words coresight etm4x: Add pr_debug statement for Coresight component PID/CID drivers/amba/bus.c | 7 ++ .../coresight/coresight-etm4x-core.c | 115 ++++++++++++++---- drivers/hwtracing/coresight/coresight-etm4x.h | 34 ++++++ 3 files changed, 131 insertions(+), 25 deletions(-)