Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1371565rwb; Fri, 28 Jul 2023 08:29:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlFl07ZsOxnkNRVrlAGgyHc5lNmt4Jg9D8jiU4DeKEAXNKD9bMq+86w0epVM/yphOkNE7lOy X-Received: by 2002:a05:6a00:14d1:b0:63d:260d:f9dd with SMTP id w17-20020a056a0014d100b0063d260df9ddmr2123020pfu.33.1690558189293; Fri, 28 Jul 2023 08:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690558189; cv=none; d=google.com; s=arc-20160816; b=bUejSLcyr2e/hHdyKzuJ+qSIhv5m6PC2opvxoauF83QNT0NeRcraNJ6e/VB790aby4 1pjRE0vBhkkhq+wNNBeQn4qhs7Ps3CyoKioSquv7N21vTDax1en1zanwHpPZj3fYC3bS 5X/+gua/a75UBlxDeAW9cNrwvFLdRHLNOaCN6YKhcnontsan97JjCItgo+xoXbM7vfMu 3EB6oj4VIWqvTYismbCBArd0JiHilHVOlCX+zhMZLa6ndnL+grgXMLApDXJ7bATUuUaJ fQQ5KcJ362JCBzlFpv4ht43QL4IVcdd9MFUSC4Aw2iRV3i2EYbX3xhNBabEFkgVdEe2W qIvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=OdYcgTVWj+iHOXVfBgHnr/xu+J6A0ko3Dw03vAlFSLY=; fh=18RsbDwgSEa6jLCsr932PE6Xu+O+Q1wyvhNa72HSD94=; b=dt215jMYCnIgtSm4OV7K9Og5kQut0GFjchnUQ9Cfhtb7clvNPHk/DJbSrX16rjSSK1 WOp/f+hHr2FvhrhNAB1fxuRn5YuPh0KKwulgtuPrUul8xQI3toENL1OrN+jIfmzRtkak 1uyZGqLvcfVKxJpu9VgQdiTh52INEJ4XZ/Bb/q+FHXlWYjCEqiBqjttRDZSvc/XlmzK5 VEgbbEK7WXv+1PzWUaBepMuR1IXiYkuHBcMJesL773oLYb+z+4j5pmwyT8dMlrNqEbpk 3LqqPHQgacd5sCOqloZfUnrUvgrCk5utscJJHoAoJWRgxMx5Ne5vn3+inUEFgeeH9deF g+sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bQBCeYpj; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bq26-20020a056a000e1a00b006871a05bb91si15592pfb.367.2023.07.28.08.29.37; Fri, 28 Jul 2023 08:29:49 -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=@kernel.org header.s=k20201202 header.b=bQBCeYpj; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237010AbjG1OWg (ORCPT + 99 others); Fri, 28 Jul 2023 10:22:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235611AbjG1OWb (ORCPT ); Fri, 28 Jul 2023 10:22:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E93063C0E; Fri, 28 Jul 2023 07:22:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7878C62165; Fri, 28 Jul 2023 14:22:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDEB6C433CA; Fri, 28 Jul 2023 14:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690554132; bh=rT/eYOtLbTs03n3CSJnusC5NVZmatwwQuZ8puahV/zA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bQBCeYpjqJoC+8dCdqVfDuw2kDRY999MaieN08n8ET27F03kpTfDupXf5CARbu63C AYOllWRGGGnNivY6kqP2rNLon3At9e9IMfxVrtXTElHVngdTb1ZKXsH9Yd5e+kS3FQ ln5e7k8vv8mjrVLLSu0GdyTRHbaVL7EvFdtoYN2D9C4oN3nmxxIGKz2Ymjw0y6sU6N kzGlRk22ib0r5Tu05o/wGwZFvhJ8t7mVOi6DhyU7K4mD2txPI73NwePBbi2VTV5GXA vP1JqACtyvFD1+EgbuIxO+p8wfHNmV/CTiRo1hPFpwzPEkOHap4BzeffdDXoY8pbck Sv/IRwFProZug== Date: Fri, 28 Jul 2023 15:22:05 +0100 From: Will Deacon To: Leo Yan Cc: Anshuman Khandual , Arnaldo Carvalho de Melo , Catalin Marinas , John Garry , James Clark , Mike Leach , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , D Scott Phillips , Marc Zyngier , German Gomez , Ali Saidi , Jing Zhang , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, fissure2010@gmail.com Subject: Re: [PATCH v1 3/3] perf arm-spe: Support data source for Cortex-X4 CPU Message-ID: <20230728142204.GB21718@willie-the-truck> References: <20230717054327.79815-1-leo.yan@linaro.org> <20230717054327.79815-4-leo.yan@linaro.org> <20230724110509.GA76473@leoy-huanghe.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230724110509.GA76473@leoy-huanghe.lan> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 On Mon, Jul 24, 2023 at 07:05:09PM +0800, Leo Yan wrote: > On Mon, Jul 24, 2023 at 12:27:31PM +0530, Anshuman Khandual wrote: > > [...] > > > > -static const struct midr_range neoverse_spe[] = { > > > +static const struct midr_range cpus_use_default_data_src[] = { > > > > Is not 'cpus_use_default_data_src' too long ? 'use' could be dropped ? > > Okay, I can drop 'use'. > > > > MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N1), > > > MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N2), > > > MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V1), > > > + MIDR_ALL_VERSIONS(MIDR_CORTEX_X4), > > > {}, > > > }; > > [...] > > > > static u64 arm_spe__synth_data_source(const struct arm_spe_record *record, u64 midr) > > > { > > > union perf_mem_data_src data_src = { .mem_op = PERF_MEM_OP_NA }; > > > - bool is_neoverse = is_midr_in_range_list(midr, neoverse_spe); > > > + bool is_default_dc = > > > > _dc stands for ? > > Thanks for pointing out this; actually I mean '_ds' which stands for > data source. Will spin a new patch for this. Thanks. Please can you put patch 2 (the one touching tools) at the end of the series, too? That way I can easily pick up the kernel changes. Will