Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp731254rwd; Thu, 18 May 2023 03:12:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5SYVBKDl6XMUxZ/1OZBobW4UGQ+FI++duam7gfTVseOMbaAG2B779xApGurb+YQDEf9zab X-Received: by 2002:a17:902:d511:b0:1ae:10a5:8349 with SMTP id b17-20020a170902d51100b001ae10a58349mr2054944plg.23.1684404757689; Thu, 18 May 2023 03:12:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684404757; cv=pass; d=google.com; s=arc-20160816; b=oyIFHol5Be9i/VfdZoIoswqEO+mhMbPoF9k+d+X05izE0SYw0RG2ARqO+GFzNRh1U4 Q9VXh9V9bDhmN3MlwifLtOz0w4lTg3XTovWtPF+Ok8LU0K8KIBIG5DOj+HROtIzkjIdt zltQdOPjvyBXHhEjTutjX5j6w0b+fzKQE2ao5+kEnCtagtfKqeRHi5KBh6WJyDzm8/3Y O8yNU1k6wX5ywh4iFyU2zH67Fns4Sx/oFhcz0/+GnRLoxZHS+LtNTgvgEMh95Lz5ER+2 QlJdah+ZGDjE4e8sGwt7G8kJLhiUo4nMjf7cq1veMfXjQxaAIGq/6zTZqc8EseK8BCrC TtFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0woHE/Eq5UA2QEFp7HmkD64t3+2CsD6ghZFf3G8k0bo=; b=NMIXf1e1P6YuWImlHyefLuKu29yNZRBs3UXTO1sBU/29XxtCOP/KhV+8oaROZGKoMx QPu9jLPaOHnsVdXVZGOTWO5bQYTLsezt3ohL33qj2WEOMB4X+rhLYpUb71mnDfSasbcm XcaGfdu/ooaKypht2epLFl7p8Q4ywDQiZgibAjbFaH6Uyubxdyr4XiPx21ACII70b9h+ WNh47hXex+bkr/XbbIGq4pXy7oEtVbB1ijN5P34IgbOPztrfpuEuVqVqAt75zTQSZNxq 0H3SqNbi9/P6hgf+eX/+LnbG6pF1SWuHOtjQmnJD5kxbOW9RZVH8eciNzaTu4z3ljExN mNmw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=bahUY7Re; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bi10-20020a170902bf0a00b001a1defc30cbsi845483plb.479.2023.05.18.03.12.21; Thu, 18 May 2023 03:12:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=bahUY7Re; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230140AbjERJvJ (ORCPT + 99 others); Thu, 18 May 2023 05:51:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjERJvH (ORCPT ); Thu, 18 May 2023 05:51:07 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10olkn2040.outbound.protection.outlook.com [40.92.41.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFEE4212B; Thu, 18 May 2023 02:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gzJgkPLw5jkVmoF2sQbb5Uq9XWwIkyy0RdmCZ2DXD9SnfD9g1YgOkvjHKXG/FUH5kgT0PXTLQz1q/HJPc66I+ivPmIArDArCQipGVD6vnv91jKAw2oPE8/ZY3Rpkj8yTsWjfdN1XUQWL9TEDvRZiF4C903ah/XSA0pGg0Ot+crLqSlMHu73cSOelXxVSZfu7JYdYrozNZVkiGU5teSPU6N+ffNcitqRquB4dwrSoQpA+vT6rpK1DyXTiz3nXZs/oeXNNRwuDigTsE4eLYq96chzHbdp+Chou73es2H/2oxXDJ8Ov5EBooclaOwWPR4kxxaPkA5QDqMIV7pmASu0bIQ== 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=0woHE/Eq5UA2QEFp7HmkD64t3+2CsD6ghZFf3G8k0bo=; b=VbfphyGD/zCpzUkWO0CMLwn+PkGOruNQ1JBOdokhn5wWQYdh3c4KF7hndqtLhyB2Mbc25IPjNDjnQnlOs6WYVll/ZmM1na/S2c/zATu0tYdyHFfG4vFeRQnEzLyIwHzzW/VE4W/O53QbckJ3FsBICBajBxAAQMiVSBrrRpyJ1SIMD1LDEacQKkCpqZC0VYQqXZHlMu+ZmhnoOE6ghvjOFx80vkMwkva88AO3pQpOxGdstEjJ+GxYgZtvVg0EbhJujwl1akDyntx2/kBaH2agxqc9Au0Q3XSUZoINYtXp5hJaJNi81fHP7VALUPO73INil2+T+FVLh39/c6PtOQLobA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0woHE/Eq5UA2QEFp7HmkD64t3+2CsD6ghZFf3G8k0bo=; b=bahUY7RehpEdgsa8KInTYsIyx6gB6YECkygFonxqcSkYotqRLuZlHiVzRqUpVVTTW9aYQKPlgWKEbJHC+hQoGjJcVO/Lit2rxuh6A1Y6Qjbe133d9affFvBegU9bV80w8jr084BOAIV9qvuEY6B1Fgo51MsGI57yebNG/EyuAjlwKHlCtDYzlN1Bg5kuGu74OLXRGPY7QUYtpe5vw4ishmrByYxVeXskoeyn8W8J/LE7yQsgAT9eLf4Hfls1T5yDDyX9FmF00S44Q424BG+dO9q9r2vpLKIWpCDmsHMaK7C4+t9Zz4S9llLcwqx+H65HXvyFkZc0l7LM0ymKBbKS4g== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by MW3PR20MB3292.namprd20.prod.outlook.com (2603:10b6:303:52::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.33; Thu, 18 May 2023 09:50:46 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::4770:9e0f:7f59:1989]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::4770:9e0f:7f59:1989%6]) with mapi id 15.20.6411.019; Thu, 18 May 2023 09:50:46 +0000 From: Inochi Amaoto To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Paul Walmsley , Palmer Dabbelt , Albert Ou , Nikita Shubin , Inochi Amaoto Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH V3] perf vendor events riscv: add T-HEAD C9xx JSON file Date: Thu, 18 May 2023 17:48:27 +0800 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: <36fcef74ba3d21250f4c9605e691d1e2dac20ebb.camel@maquefel.me> References: <36fcef74ba3d21250f4c9605e691d1e2dac20ebb.camel@maquefel.me> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [1wBBqvWDprwocJImEWmBtkEUkiiZCveOj7/85vUo5Io=] X-ClientProxiedBy: BYAPR11CA0081.namprd11.prod.outlook.com (2603:10b6:a03:f4::22) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20230518094827.1629268-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|MW3PR20MB3292:EE_ X-MS-Office365-Filtering-Correlation-Id: 9df6638c-a8ba-4a23-4265-08db57855a59 X-MS-Exchange-SLBlob-MailProps: ZILSnhm0P3nvAoS/oQTVQZ1S7Y8lGJvUhsFQSadhUCMc/0+1A6DGi0EYMxQhae9jyPLLsL8hDKxHbVC+x5ngMG2oV4RW3kPr/Y1oLf6rScaHZLUdJ6f2mOmfm2+b7NmXG8XqmHRm89C/MgpPY9n73IPUCV6OY8EgUUfRaop7B3eJFYSvOVoT08QNWtcNByV4gDI5b7+Eu6DyLvFxx7lWaDUJkMId+9OSd/NJcTpBk+SydguInKj50/pXV252f/lutELTrXhITFz3C2vzLXBDY647YqGLOU+hTB4kgofZasQC++G+8yRsqUQgFP5gDi/5xz9WPhwJHDeOzvZL9bN4B0yDC217Yl51A23LXBm/FPx+bhaApG3Cz72REtXdzehVmP2FgbvPvdm26GARjyGbJ/Bu23Hsxo9QGpJOzoU8ighTbAh9Er0/GTmzyII6W9V0hbW4Q3/XpflE+e/F1pP+7qraB1aJowUop9kD77WuiekbL8NkyK+RFl5tjbZmf3vAFKfcHuclRrRHPsPBK9ccOtKxB9UqHis+oLNtNhZXjP5Dj+caCeU9TlOevx3c/7SOUl3NWo25JI6EUGwGHsmSblvh64UlaTdbyy29y/nVqmblDv2KRQKZE8lumvowietFA8CxEd+W9Av25EA+/GBINImMtUk6RViKbPBztkv/Mb+AKjEOLnj47qXVY1UQqifzmTrupTjpML1UyKtp9pZdGjQr+c9MmIwCXuZNxT1EQyGbicbQjpDBWJi3NRNWXOYyyhwwAWCUa/YV/emjc2TCbPgxpm+PpFIt X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TflPddIAfuY0v5LPNQ/zdcjGroD12IO/Q/xUXkvp1ECuUA8l2xtu8zqMEMfeTTvU1bCmXV+gMiaC+1rE5JtkfxQ1BDnKLWHzjcMsxO+FNpE1dPBRjMzXQfkTJmxFNFDySsOlz7+/c6jaPislTWsJ5UHWTS4Gji5MjJvQJl6KSQpm1RhzYYeRom00CPhBwji8SldoGZPs3llG8YZ45djwUhbOboGGqNIV8E2R7gh1awbqFKlH8p72uaVU8+9iNgVgiiXHV/Z9Pa8Abfwt0+orzrwf3uZC45j3kuITbJpc01KDeGb34P024RdWvtFKdr4+Xh50SUEm0juxzJrffRX45q/K0CX8fYOUR4De0Xe03+H6bTRcM4noxdeqVBBd6WVtO41NHILh5dUCbbLQCqmYu8U4avzG6IuWNgIg7dlBBdjqG6yGIVa7B5mi5mfanC28jZnTrIlmsPpgOgZTL9QGPIanfpWeXiNpbpl1/8AJ9QFXQyJFC5Q8t39+QMETDm0Y+BNyFfU/h8eRbWhX0f13WBj5a3bQMxvKPHobSvTDGGrbbfVgT/IPzsQJTfFEIt+RtlLZDNipLlgWelmG7DFCfxMMb9gUXXX3T81ZhwrvuTH1PXiJEF28TtWtPzQ8HkWYucvFbg/7JmVFrghwFBU8sg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?g3lr/36YQBc1vsqEuK6mvRypgiGLrB9AtzvE42l/lC434uYd83bBeStvyqlj?= =?us-ascii?Q?Ge1Og1ugm+JI4w9wDmX8G2dfPnJDmqcW1Jr+wb/iRDWzLKNhNQ+faEhJz8wZ?= =?us-ascii?Q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Qjch6gwXEGYhiX6gi0JSn/?= =?us-ascii?Q?iRCROcl/6iMrHcnm0SlJan0UhatfWdgPrBS9ek6pQXwjHofDfgCLUQERKN5B?= =?us-ascii?Q?9QF0kA27NQl0Ch9u82QM+9TU0jZ0LGTuKLGwf64yr4Xm3JYHkT1qlU/0Cbqb?= =?us-ascii?Q?182G0o9dHaHxJaWL8yzBlSwXLitWvOi5d18OeQiZtBe+5xXnSv+DEntpJFw9?= =?us-ascii?Q?r4D6bx8QUT8jTcFMl08eZzjllAGXs+eFY9pYLRUpRA+VBV7gaIhsy3xFhi4?= =?us-ascii?Q?=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9df6638c-a8ba-4a23-4265-08db57855a59 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2023 09:50:46.4330 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR20MB3292 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > licheerv # perf record > [ 432.015618] watchdog: BUG: soft lockup - CPU#0 stuck for 26s! > [perf:117] > [ 460.015617] watchdog: BUG: soft lockup - CPU#0 stuck for 52s! > [perf:117] > [ 488.015616] watchdog: BUG: soft lockup - CPU#0 stuck for 78s! > [perf:117] > [ 516.015617] watchdog: BUG: soft lockup - CPU#0 stuck for 104s! > [perf:117] > > But that's not related to your patch anyway. Same issue on c920, but it did not always occur. Like a sbi issue for T-HEAD cpus. > I am strongly against using "c9xx" wildcard, i would prefer declaring > them separate (especially taking in mind that c920 is c910 with vector > - AFAIK), but that's up to Arnaldo to decide. AFAIK, there is no reliable way to distinguish c906 and c910 cores. And the events of c910 and c920 are the same (according to the draft document of the c920). Anyway, I agree to let Arnaldo decide. > Tested-by: Nikita Shubin Thanks.