From patchwork Mon Mar 6 05:54:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Clevenger X-Patchwork-Id: 13160498 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 D54D9C61DA3 for ; Mon, 6 Mar 2023 05:55:45 +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=I/8me2N6PHqCdVhO+p1rBjaRORnrWWg0LnJrigFOBMg=; b=dANgdlpYapUy57 VlErd1+V7ct3bXlnK00rG5CYpazPyCLHPI8zuHh4xZD2YD6D/dk9K6ARdJplMrmCS6V+Q9flAHmZu /pfRslMyTERDN/UPDjFmuJTv5vn/bgUUdxTnuC1gE91WCaebJv4VHwSKZOW8b94c8STpgHYKyVUR1 xryy2WaMwGGmhaupkEK9NLr1U39sKG/I6nyZmG37aRWDDG7Gcd2pccWZbbyvv9N2Az76dn/ha/cdg 6xardXmtmpkmQrHoB2dNT+aVLFP29nkiHSHnvdmos9F4ebuKloXSG1UmTMBD9IR64g/nCMV5KTWm+ 1Z/HRDZYH9UttBlsVogA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZ3nx-00BQzK-EO; Mon, 06 Mar 2023 05:54:37 +0000 Received: from mail-dm6nam11on2071f.outbound.protection.outlook.com ([2a01:111:f400:7eaa::71f] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZ3nr-00BQyF-7R for linux-arm-kernel@lists.infradead.org; Mon, 06 Mar 2023 05:54:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ASnIleFlpWk/67UoEJTCc7GukP7gsQfVuSKwEFzplYYqLq1/k9t+UlwV0u8kYbWDEyJYMXoYZW1rdr2/5VegoYm2piTIvGLfMIP0Pu9jEXTcmty9GYrVpkrKDMGJVAWdSD+OFUsTFrE8EJRtPyXRQ67HahCkCQ63dgiqV/lJpNqrPI0zO4ZkqwcnZ/DpTld9NmNegww+D5ZPMl+aClwjZ/TfuvM2r6caBtAowBUiULQcsNGQNsMfn3RbZAY5PofTc/SeCmQw7Doqx+6SPaU1V6xmASU7LsMry6vfYemssWvb8lQwiQ0rSSplkjH6yMsZlE44uilMt1hZc7hbdrZPRg== 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=/PExLY64VoUOMb39Q/dQE97wF8dipcRBL5ki6tLPua4=; b=Cdi0hAecbIMedcUgJUK6UKfzCmouIiVluQQWW+qx+KDbYCC/3R5u5DYnrTeYSQ7Ex5VDpTmH9lNXVL/+O8hxe4Mx0YSGbwnUiCD4Rx1HT+0gpp+ymfcWTuf53MZNYd3wBJJxkN0ENJR3DJFzhw7LpAFchoiiUpPKKW8LOaFUZMnMYbCySc/tzHG8W+iDHKFVjTSbDsLBdEs8rSjT8tlEZChw/SzgkrScYwdTI4lUX6uoysVdGvQtKQdVCmUZpAQ/gKHaeyaHW1Fx/NgG6u+fSL13K0IhUwhJolMgenyvxoeqKcEYojSgLHEXsGoBEFGledvrRbPDkRb798aJDIEv7g== 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=/PExLY64VoUOMb39Q/dQE97wF8dipcRBL5ki6tLPua4=; b=ZS3FIu6L1yOW8ji6RGnpswLnoulAKVw2DtPUD6IXFVYNuzs/tRBclMXDDwRHu0IS06uP8HBMof8Eb/zCZ9bWPaTQEOx2aVu/+YVGo9OpsOQmBSiGg2xppCn6cQPIQcW6mrLrgLaLr7wL57P0mJ2Rtk+rRFm8KE0q6rD0HdJq/TY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SA1PR01MB8062.prod.exchangelabs.com (2603:10b6:806:335::13) by SA0PR01MB6460.prod.exchangelabs.com (2603:10b6:806:e1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.15; Mon, 6 Mar 2023 05:54:24 +0000 Received: from SA1PR01MB8062.prod.exchangelabs.com ([fe80::fb0b:d681:8228:bd50]) by SA1PR01MB8062.prod.exchangelabs.com ([fe80::fb0b:d681:8228:bd50%6]) with mapi id 15.20.6178.013; Mon, 6 Mar 2023 05:54:24 +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: Sun, 5 Mar 2023 22:54:05 -0700 Message-Id: X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: CH2PR12CA0003.namprd12.prod.outlook.com (2603:10b6:610:57::13) To SA1PR01MB8062.prod.exchangelabs.com (2603:10b6:806:335::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA1PR01MB8062:EE_|SA0PR01MB6460:EE_ X-MS-Office365-Filtering-Correlation-Id: a1445838-3cb6-4d7d-8f5d-08db1e073ce0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: twGfP6gyMv7PHWYVJzR7OungDjvaQi6XhByU9puSYUo/o39++hPzAEC3qisnJZV2qdpEu9vYGdJ/i53hXA0/DJMx4nE1VzYmNQ8YfZG8kFHGryulp73X26SajVxvl+BG3dE97sdJYoCNkj5MwYfiix7hI5CWw8Odg3x+pi2wICTrJRY80+tCq93qi4p5ceoUrejQHokKM47pIhhqzTe4+AQagG27YkdzK3Op496jio7fzUQvxUdrx+QlzB+HpregL520J+Q0r9aanr9PqYOEvfe0Ji4z/EvX9mVrk5fDOU4pwwds6PWYw5Io/VhReO7jegZdX0WTSjyZHRr9AcUKmv/zulvkH3GT8XE7Qea3EQJJ4XAoqRFikMRkWH+J4PEVKMExa5lKo/iZr8EQdSIrzZhECV+lRtFCrG9EFCYzwMZaEw/yM8v5boZMrSmcuf0mkjpjaAIL+727YKepOekVSE/RARGo8+X0pMq+YpousV9gx+ZlHVN2AFG89H5Tnr/2WYRWW94CdCFfvDoHR4+TgIU3kUlNpldqAuWJfzbh4o84f1U+8NXoT10/NlxGZ4ZYlqYz7C3/MqoP3xuynIyr5Om3Ier1os0LgA1I5KerC3lxVCxbJnyNyZwsQgH5+e2zZSTLxJTo+P+DQmoixwCYAOR3ay0Mbcakwt5dxciq832laI78PIy29TCKMGcDMOsG X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR01MB8062.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(136003)(396003)(366004)(346002)(39850400004)(376002)(451199018)(6512007)(6506007)(6486002)(6666004)(83380400001)(86362001)(38100700002)(38350700002)(186003)(26005)(2616005)(41300700001)(66476007)(66946007)(66556008)(4326008)(8676002)(2906002)(8936002)(4744005)(5660300002)(478600001)(52116002)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jpSGHYWbOrvA8Cq4K5Dm8095UQv6uD38D07R5eYuXyi2u92oqhHWU/Vl9SwIUXdt4c6/VjjzJOG9epBXBYJRVvW8DP9R67V3ZP8Y03fWB7E/36aDkj/eRdZQL0gjLt50XuMa1RqwXJzYSaDIeEfmvCHj0cAfAOqOmXTrBQAFUL4foO7ZLoUdI6kT82NQT4ajQ598KuuQdayZXnDXcXyDEtwyYtv0g0pSDk9sOEWyWGI9+bxqp10oGiDiBegSP8mSwxIGzLzmUT50KoTSG2WmSiJIqzC2QhTqkcMUWCNLK9X/T2OSKGNTRUkcE6SXdfQc8O7nVZHvhlZurasWQHfKAZcF09On4/BuxlfvXdDvWgZJxL6AOy94xhvrfD/GgOZgVniDRCa3prRpL5GGDyKFGEO/iuqJRVfuQu02GNOMjyCy54kRW4IXRQ2AFfCOx1emih/+h1MTyfcAkOWnkCp8eX7YaXFPR+hrXYlh7XlAWmNon6E37ide9HfQxxKrLN9t2LRizE+ZDhacJMPnT9NTbzGds8PHaLyHdPrqHLMBih1nfgU/vxCiuDI3NqVRwo3kJsynInHraPVZLkND/WNZt8L15WRJe2Ph+J0NqTvAO2vYsSCXgYhVjqBQFynpPvzB81U+agmqi8Phmz/3WBKH4+mPIomAjGyW61RIXNR17lZpjcO/F1AVuRdkQyheDxyjaF0JjSNoJffo7V9T6aTxgKUduyXYUgS8c3fNLXyyqvohxsheyQsrLwkhS/7C+1zONwCy5y4LFXF9QEUVD6vRzVBOw/hREdgz0EnArRLo+Uc5lyfLXVB4Z7p3DohWIHWqrq0GpFocYK7XfVmhBAh3FbqN8190xbZkJIjqd2YbTwBWoPzPdi56Lx9n0QhbpD1JkLWYfYNsXcyIBeyu2vdnkYqcLUlLjVKdPcMaSTaPNY9jvkUvqA7bzaSvAqN+9aQJhs20a9NX2R7WgCG+qlWi/OfGfNb/G6QpTV1n3xGWuQbJ16Omuqxvd1ah8EsmDJLCFlp0gcH6eETLC70ZTp3HJFU/At/96Oq8jXtElCZ8iPD6QTQeghvS3yhIovxwQtfQ8woE0HFyVg3+OwIhqWoUg+uYvMkor/u/9X3TJzP2JEPNnTrY4YU82eHUbEpH/Fm46VsGAJa3ljG3+QRV4NAEEzvvNPx2/e5tQxVq1EefolPFLRdfYlmAzX+LS+vTfiIYxExY1eWwQima/DgEV/jFnCjM84OmFHjWh0Db5BqK8UumDPpjd5NSRjliqLKvWjAKQYePMqj1099v2ojaEHv1yanIedkZt/Xx8FjyaynfUYrqVJzR6kPgtfng54nhs/O2P3yQu/3vCAzMV0zI6w5wrw6H6ku4JV2NYa9pn/074Bdredwov30ZQ4XsQWE9zYkRkO0inAWCPV/FjSILQE+IUvgtxLEj09MADCIhOOF6BXfmcamjIb+pD5RIRF7Bpwdwu0Yy1ti9qEkBB1VFI1G8NUEMMX4YfmvU0XWUVqi087SeyPbBvd9PSLXXqctFXDBaUuJJD+bqe1R+BCZARyToTs/y3YERzt9brqgyXyK75bk/kjb1VPWFTfARXPGlV71qxe110QEz+2jSUsBDjNXYR7jBH1VtR/z5Y8wgSYYXtgkD677fyNlxmFBsf3kKYvpy X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: a1445838-3cb6-4d7d-8f5d-08db1e073ce0 X-MS-Exchange-CrossTenant-AuthSource: SA1PR01MB8062.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2023 05:54:24.0150 (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: mSBj8VmeFi+ur3kXcSO7zfWCSnpMaKgZXF2XSSNsEdcSWJDz7KuNBjdJDs5eGMJqqLvUkK+hb7N66nKmnRpP2MeX00qGxB1HLm5B/PKNGzPSzqBIAi7Z4iTfHpf2cLKu X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR01MB6460 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230305_215432_606653_42D1A6B7 X-CRM114-Status: UNSURE ( 4.96 ) 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 Ampere ETMv4.x support. Added Ampere ETM ID, and changes required by the Ampere ETMv4.x hardware implementation. Steve Clevenger (3): Add known list of Ampere ETMv4 errata coresight etm4x: Early clear TRCOSLAR.OSLK prior to TRCIDR1 read coresight etm4x: Add 32-bit read/write option to split 64-bit words Documentation/arm64/silicon-errata.rst | 6 +- .../coresight/coresight-etm4x-core.c | 50 +++++++++++----- drivers/hwtracing/coresight/coresight-etm4x.h | 58 ++++++++++++++----- include/linux/coresight.h | 3 + 4 files changed, 89 insertions(+), 28 deletions(-)