Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5213016rwp; Sun, 16 Jul 2023 23:05:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlEnI1WrnjsoHnrxCaUpou1RQsEf7vBJfW8KzvnwBWgi6uqzf9B//EZfhEoqLWljm0fIXP7X X-Received: by 2002:a05:6402:3448:b0:51d:a310:c7d8 with SMTP id l8-20020a056402344800b0051da310c7d8mr9236415edc.2.1689573908876; Sun, 16 Jul 2023 23:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689573908; cv=none; d=google.com; s=arc-20160816; b=UtWKOJ55+lBm6ytkjEYDlqeb6YgcNBv6IGpBpDjz2sC68MUNZVGu0yXeITOXiAvDfe 6xqyyxgzmNuT5sSmkrocw9mMX3mnWtOa06aCf3aSv7SSFturLo/FcI1n7EIo0YQzbhVp svbWoCFxhpfASvqPb3BV9jqsh8pfYcXHRIQMSYZUscVQfoXRlsuKoqUoZQIsgNLoXQ4Y 6A8Z5DdbkeylrReYFsXlxodmsl53OMbU+eh0KuTjAwQiK4bkRTSHClRl99mTQelIA3Ih mjzgrlbvzI5Y6TrW2lrbDKeWDQX996F/V3grRjaTmELrK63dqaA8Gafeoj3cGMSP/A4p bf5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=uuuapjCm4uGRuklqDX8mlQes8ibPwf0zSHbcBhv1+wk=; fh=0BiP3+oGBBzyLlfos1lHm/3C6JVl/+icHKyqXAMMSBo=; b=tEEA8Ggtr7Mzl4EdawpZbE2ihM1CuuWEIRLMOa02JRZ6T8hZiWsTBLo/zq9TnrAbBL v4+lijIvYz+3baPWNHHTK1FIgHAwTcBcU7C13yQFEnXHBAVSwPeO4FX5LngJRrlRtH7C AFSXIKy5B0/SMnC8nixuBlG7EDp/NY+oBnX988Fe6+HrqX0pzyvB6YQxhxZDJ/FggT9w QB0SDvwQq8/xQeOMBnCtLEWcAirJidzH9KRE1iuKM9EslOQFN14AERs0RE0/U9U6QXRR GBTXZauCjPUV+Ay9Qd8fajcY9Zs21Um94XDAob9oOL8LFUjqZZFwE4+9ky1AF9tv5sIr jQwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YHIL+Q4b; 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 r17-20020aa7d591000000b0051de2b406easi13076243edq.511.2023.07.16.23.04.44; Sun, 16 Jul 2023 23:05:08 -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=YHIL+Q4b; 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 S231303AbjGQFnx (ORCPT + 99 others); Mon, 17 Jul 2023 01:43:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231296AbjGQFnr (ORCPT ); Mon, 17 Jul 2023 01:43:47 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE7E610FD for ; Sun, 16 Jul 2023 22:43:38 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-7672303c831so395193685a.2 for ; Sun, 16 Jul 2023 22:43:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689572618; x=1692164618; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uuuapjCm4uGRuklqDX8mlQes8ibPwf0zSHbcBhv1+wk=; b=YHIL+Q4b3CFfCYm9CihgC3tCGEJLGrMGXdGiZ2Bh6+7eKpxaMZRlVHfornWX0kWU7A crgNhpc+tHNK2BD7thw8Dqg2KDc41WFfz0xEmU9W6cWrMoeBgnyCDdJRfwoPsEmE5vOJ xcvrFigQLXZiyHn4D4MljNTGqQ7jZ/+Ms9EuulbqKhTTD6T0wixnoPGMZG9kfeMSDeXi felWXDFVueNqirjzjSV5jRmTc6FX0+6c9fRO2zfpXGJXVj+6EnwLyq4v0ROcrWb0Pr1R HlCNziFKcalhPrTXjhKkbLukviIh3aYFLpseQ9llEWD45v34k6O66ZZZVU1A+mp75msk 43dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689572618; x=1692164618; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uuuapjCm4uGRuklqDX8mlQes8ibPwf0zSHbcBhv1+wk=; b=NBCul2GEwbjZsqslhK8j5KlY5sZcr4kE6/5zvNFK8qzS+A6CAbHx7T7xqqpYzt84ZR oNIAYx8HM+XdBoP4F2TVIBVfWpm+7kKV8Em7/kzNVhP9ZJNnH1USvJ7zGUbMVblRfrEw XBDPRmwcgEaWMJld5F2Lg8a7/sJBdOea6V43lC8zZyCjfZ6ie+u7EM/bEbtqEXFkmAVv ZlajuywbmhqHzLKQ8iERmj7ns1Vt2wh2C0ovWdZ9zQm74I0ZgBXr8/NWpqKOiFuUZ1/w OcWdQBk+EXULd81SweSd/oGo2dZZ7uh8E0c8HSmq63Z5cchoqY6NVWsydofTSuGqCXYc eDEQ== X-Gm-Message-State: ABy/qLYKcXnTS9hNeGItfw2Zyv3hocN+seeLNLS9k38jW5sDRB/dDvcf HTTi/7d8EsolgsIuBLUuZD2Rzw== X-Received: by 2002:a05:620a:4516:b0:765:a518:c31d with SMTP id t22-20020a05620a451600b00765a518c31dmr14358123qkp.54.1689572617873; Sun, 16 Jul 2023 22:43:37 -0700 (PDT) Received: from leoy-huanghe.lan (211-75-219-203.hinet-ip.hinet.net. [211.75.219.203]) by smtp.gmail.com with ESMTPSA id i14-20020a17090a2a0e00b00263e59c1a9fsm4625849pjd.34.2023.07.16.22.43.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jul 2023 22:43:37 -0700 (PDT) From: Leo Yan To: 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 , Anshuman Khandual , 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 Cc: Leo Yan Subject: [PATCH v1 0/3] arm64: Support Cortex-X4 CPU for Perf Arm SPE Date: Mon, 17 Jul 2023 13:43:24 +0800 Message-Id: <20230717054327.79815-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_BLOCKED, 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 This series support Cortex-X4 CPU in Perf Arm SPE. The Arm64 and tools both include the header cputype.h for CPU part and MIDR definitions, to de-couple between the tools and the kernel, the tools doesn't directly use the kernel's header, alternatively, the tools maintain a copy and sync with kernel's header. To keep the exact same content between kernel and tools' headers, this series firstly adds Cortex-X4 CPU part and MIDR definitions in the kernel header; then the second patch syncs the change into the tools' header. The first patch is to support the Cortex-X4 in perf Arm SPE with the new CPU definitions. I don't have Cortex-X4 machine in hand, so just verified with compilation perf tool. Leo Yan (3): arm64: Add Cortex-X4 CPU part definitions tools headers arm64: Sync Cortex-X4 CPU part definitions perf arm-spe: Support data source for Cortex-X4 CPU arch/arm64/include/asm/cputype.h | 2 ++ tools/arch/arm64/include/asm/cputype.h | 2 ++ tools/perf/util/arm-spe.c | 14 ++++++++------ 3 files changed, 12 insertions(+), 6 deletions(-) -- 2.34.1