Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp391707rdh; Thu, 23 Nov 2023 06:47:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHOW4V0I8z+zshc9I2Lkp/1YeztwddK+6G4eNWCFlpPs5LhUv5ZePpNZ4RL9n4QTNAn1YR X-Received: by 2002:a05:6a20:5521:b0:18b:9682:59e9 with SMTP id ko33-20020a056a20552100b0018b968259e9mr1606111pzb.21.1700750878939; Thu, 23 Nov 2023 06:47:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700750878; cv=none; d=google.com; s=arc-20160816; b=PhoW8NNeDPSLmRp08DtgQLh58SNFOflDV5UqA3LbVeKZ2czEK9G88ZbglVUJ87Hf4z 0EQl6eK4/gaOXimQD/T3swr9E0vUWVMskRYLfnyYoP3YUrL2Y131Hmjm+rRlYNpDZb5j JWAC5GUtXp9IV1c3TZIG9/0W5fY5I1RliU/8uqfepABpwj+nJrJKX5Ir99vwW1i7rFki UrAEn1mG3F4oKAtSnCW+cdqsfcgMr31U9WC7CPoClIEy6y3DmeSFd5yhqvWzyOOnbRvv 9yxkNAWHz/Bfh1jbZpoAUVD4uP+pK58TVz87nqgCUMYY7QGYMWsmcmWh/13sFBgqNxkH K8Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RVVPHXh9q8mBBYzdYAZsfgDsbmF5mS+eE/36tTmgxsk=; fh=gX3Tk3hnQnuuubeKNlo0TdNg5h5IQ0+ldRou9Veyol8=; b=PAavHiXIXOpPZNREvS0aWULLQFjWNBspJsHupXBV77ipi1hTy0urtEx46Osa4Ewoto ThNfOqRvPRvhzbcd9oOZYBlrIRDRGytIbhmpKzS5K7oKVQ9D8AZmrTdMAgi2gQ/jovgg mAQ1yZSpAlUPLSsqbAs1+TQhqYRwSOks3XpnLu/3cyxEHQIKfbTNz42UZno85OHz0Z5H KoqyWssnzhRAgDwv03+kqfHdVRTLhCk1hh/iSS2IdiWzmNpHc/B+pHxwiJGkDNQ2JY83 +9QhUAM6MxrJebDjtmmH33M75XwnmF8FWz67M+pNfRFfkFOzEZFCfpYtN85EY7FZTU0X XyWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=sDY2cKHY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id 3-20020a631543000000b005b92a7d88e6si1384742pgv.823.2023.11.23.06.47.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 06:47:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=sDY2cKHY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 1903C809C187; Thu, 23 Nov 2023 06:47:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345895AbjKWOrW (ORCPT + 99 others); Thu, 23 Nov 2023 09:47:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345870AbjKWOrV (ORCPT ); Thu, 23 Nov 2023 09:47:21 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E04DAD40; Thu, 23 Nov 2023 06:47:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1700750848; x=1732286848; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=MUsg89fQ9NBzKyUbXc1Aej1I5ZOvhdvSHAYt6cV/nr8=; b=sDY2cKHYA7Ur/S9Ne2KmDFGXmc/SWRnf2vwqOYIdtA3mKzlp8VomzHiQ 18n7DDHm3LOoA0H0lDy42kcXyM5/LZM42fbGuXBLDxXONG1Y71C8ed383 TJyQf/FtGxStkWmJUb3TlQUSdq6xLhOXcelC7fj3QUgFtz7NnoHiel7IU 4/hPCg0I97YTMwOklmlqvQUPDXZbytrTzzGMvPv6wFoQlRaobD5tKqc72 M2jRMn4lPbVU55Fv9eeTeE6VueHdmDuNOORF6CjtAdrbi4/ZKJqvIJDfB dn1lOFYQM9G3kV1IlhsuWu8oTGW/G6QMdXQFamcUDC0+vVFTk4qWGEkLq w==; X-CSE-ConnectionGUID: BE0Y80HqR8yoj+GuwVwALQ== X-CSE-MsgGUID: b3thrMNzRuC8XgsnWxRyVw== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.04,222,1695711600"; d="asc'?scan'208";a="12195934" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 23 Nov 2023 07:47:26 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 23 Nov 2023 07:46:36 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 23 Nov 2023 07:46:27 -0700 Date: Thu, 23 Nov 2023 14:45:59 +0000 From: Conor Dooley To: Yu Chien Peter Lin CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v4 07/13] RISC-V: Move T-Head PMU to CPU feature alternative framework Message-ID: <20231123-snub-headdress-23a80f001ccd@wendy> References: <20231122121235.827122-1-peterlin@andestech.com> <20231122121235.827122-8-peterlin@andestech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="u2td/6ehnVJK/j3z" Content-Disposition: inline In-Reply-To: <20231122121235.827122-8-peterlin@andestech.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 23 Nov 2023 06:47:56 -0800 (PST) --u2td/6ehnVJK/j3z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > drivers/perf/riscv_pmu_sbi.c | 19 ++++++++++++++----- > +config THEAD_CUSTOM_PMU > + bool "T-Head custom PMU support" > + depends on RISCV_ALTERNATIVE && RISCV_PMU_SBI > + default y > + help > + The T-Head C9xx cores implement a PMU overflow extension very > + similar to the core SSCOFPMF extension. > + > + This will patch the overflow CSR and handle the non-standard > + behaviour via the regular SBI PMU driver and interface. > + > + If you don't know what to do here, say "Y". This is a < 20 line diff to the pmu driver, is it really worth adding having config options for these two non standard PMU implementations? --u2td/6ehnVJK/j3z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZV9lpwAKCRB4tDGHoIJi 0p2/AP44N1mho7QcO/007yqDwBgkqYEOvZh2Uuy27l3ZNMV4CwD7BXD0U3yWECON 6d7xv7JjsIfKlCFpYK59CusQR3peRg0= =tcdb -----END PGP SIGNATURE----- --u2td/6ehnVJK/j3z--