Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2960182rwo; Mon, 24 Jul 2023 04:18:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlG4oUvY0qNHeC8tB9p9m073xbf/eaKXWdE+7fSVqBq/buqwgAxGMlEowCnKBLQ5YKBVGuNH X-Received: by 2002:a05:6a20:4404:b0:121:e573:3680 with SMTP id ce4-20020a056a20440400b00121e5733680mr13182215pzb.62.1690197520932; Mon, 24 Jul 2023 04:18:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690197520; cv=none; d=google.com; s=arc-20160816; b=PtkQZjU4kQ8lax6xJhbJRrL838MhBFhh+aOwsRLRPDFwLIGz4rWfLx/eG4bcsK3TFN PEbsl8vM4KeC12eYtD7gStAQBE1sxWMDremDfU7Si0CfjW6kLq/zQsKCOuyxjOeGw5SE rZu67tsLwEoDAkSctsUFfzegG+Kv6nuK+gBH/QAC7iJZJTVvfpfBqQ/o4kh7/G4uCgqI tx5yJCQUr0IV8C9s0aZcPxgHu+10UDIhXHSca0OYC+vi7NAQIxdzgxumj9vidtphkCzu ep44PlXX9Tz0ulDx77a8ldkjEu7y2qi7FAGyf/e1AyTd0SBrWmVbJ8/MIePMB+V2FvNP jzdg== 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=rpxURfuWp3r5Ssob6loqWYQQFhjk0gJ6ECoUdgMqL14=; fh=bE2mbrseDL192nm25ZYmWJ01kapSakvjEDJNyzXct3g=; b=grUm7SzwP1ravbqJEJML2c21gVc4L4LGTeIk/JnAvXeS59cuMClGShPRjTzH6r6uw1 Y+FQmx8EEUlvNRS6CGKoxFhvyWcZpfQ7AddeeiJutcmHqno++IkeociU3fkBM9sGl0Dx jXUvFxl6cxgGXyaHstXkWxCiPHNKfbac537fRuZMKYwdRcCrQk3ftbdNbdgrot/r0IZH MexfLpm5n3dJNphGMIi+ylZiLxTCJkD8eVcOcevZu+ej0CEgvVwkMSh3vpvgz26x9IT5 j6KE/ZSiyOZJ4k5KMY2jodr7ViOKQS7/67clh1LfVZCEa+9LFcVnwn+xgMNbD/J/+jq5 J+ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=un2xrlfu; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a170902e80d00b001b9e9b21280si9522805plg.592.2023.07.24.04.18.28; Mon, 24 Jul 2023 04:18:40 -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=@linaro.org header.s=google header.b=un2xrlfu; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232663AbjGXLGY (ORCPT + 99 others); Mon, 24 Jul 2023 07:06:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233430AbjGXLGI (ORCPT ); Mon, 24 Jul 2023 07:06:08 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A0CB1716 for ; Mon, 24 Jul 2023 04:05:41 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1b8bd586086so33958275ad.2 for ; Mon, 24 Jul 2023 04:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690196718; x=1690801518; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=rpxURfuWp3r5Ssob6loqWYQQFhjk0gJ6ECoUdgMqL14=; b=un2xrlfulQ60r5LNtbniiOXopwA1QpticHFI9Z2zxzQzWpvsCPDJJPPAsCmwKD2NaT K/uslkw72sylRSvpmpxRU7IK4i9V0uLsdPnImxRifausJsXUi2K2tRtDn6dIrNCFqlUD 37RAZooOBfu6EzzwKwHTZP1sgGF5vgYZ4qJq6RC5XAizwH+p4bB+65JYQ/vgmd+TvNIo +F6kGEn/08nEwEtzPQpIcs4hwlXkjsZCUWoiht+7djiqoqmiYGzIGM8YemL900T4VcOG vK6idTJJ4PRJ5AebtEfZEhb31hy7fHi+6rdZDM/nbajzjX7M3cduvvF5wS4jPG6QnEh6 +rWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690196718; x=1690801518; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rpxURfuWp3r5Ssob6loqWYQQFhjk0gJ6ECoUdgMqL14=; b=WhQJHtOBDY1mFlRo7pyR/PmJ4PGJAMqIGa7+RfJqaWsJNNMPPdNDPvJPbN0qmssh/y t5BT5UUMwr7k6ZQVYjQmDzsNXrcQxzrMztP3Tx3Yixp7KQg//olGkArtcLoIWWyn9g+W kJZqymHjHY92zL8FlU4Sk86rGCYMaCO4leV1NgrOrPKHvjtAO/QfHFXIUXTWlS2sbHSP gZ8Y165xHfSrkt8D73vRyLUGXfVLflSfC7SRTgxECXunnJmJyr/tQQJw8bDAj02FPtzM 9WdlTO9/NENwm2Vqo0UUEM8ydZ0kNDgIHdrLvIcqKhDTPiKLtj68BLs4JSYknbr518Kk Z7Bg== X-Gm-Message-State: ABy/qLYy5nyTxQPekeBdQYJaEWulwhgf2+a0lCUFy0q8jjxVnYUU6MDI jfpdQmb/V2xNNJ2HwidJ4lZMIA== X-Received: by 2002:a17:902:e841:b0:1b7:e355:d1ea with SMTP id t1-20020a170902e84100b001b7e355d1eamr12777292plg.24.1690196717804; Mon, 24 Jul 2023 04:05:17 -0700 (PDT) Received: from leoy-huanghe.lan (n058152048165.netvigator.com. [58.152.48.165]) by smtp.gmail.com with ESMTPSA id p7-20020a170902b08700b001b3d0aff88fsm8558457plr.109.2023.07.24.04.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 04:05:16 -0700 (PDT) Date: Mon, 24 Jul 2023 19:05:09 +0800 From: Leo Yan To: Anshuman Khandual Cc: Arnaldo Carvalho de Melo , Catalin Marinas , Will Deacon , 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: <20230724110509.GA76473@leoy-huanghe.lan> References: <20230717054327.79815-1-leo.yan@linaro.org> <20230717054327.79815-4-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anshuman, 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 for review! Leo