Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1857111iob; Thu, 19 May 2022 16:58:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywkjcUNCJr8Uahb3PjgPA4E6xVm8hRe19r/jVpDzV1NEUlZt6ECW0/2+wScMkbLoTcig+L X-Received: by 2002:a17:902:ec04:b0:161:8644:c663 with SMTP id l4-20020a170902ec0400b001618644c663mr6938681pld.134.1653004696968; Thu, 19 May 2022 16:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653004696; cv=none; d=google.com; s=arc-20160816; b=XEiqkD46ezWtmxAXI6JKek44vq5kKGIcoWyu+E8C79AOXqlzwOu4CfpX0tV8kVRi8Y K8ZnG8Dl3Vzhw0IyYFBY/n5cmVBf/9i97DByEFLwKYkdhYohvPQZKXYvUv6SH3NO9r62 PWm/9Iz+wxKpa6odXKmVLTJ7nmE2pmHjKe1237GU/GktOmA5IV/ozd8o9ptODYGdoEX7 hXcmQkPfB/LzXv/TFMndvab4vyj0Q1Clw+ibxyz6n40YQUaTBXt5l46k+5JU3T46yxuC qOVVk2f1YSQtPBkctSSBVb21XoYxbkiKLQS5eiXTypJS2AckVCGHKlcyzqBnVM2T4oTi S/pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:subject:from:user-agent:mime-version:date:message-id; bh=ueGy63mbob4qdbBs7Vz9k6F6CvffHl+ULfu2b7/8AD0=; b=EdXAF+nv4UEPBH1sEuihw9ceQfW7/nrqqmkcDCPBu07zi6EhhDxoyj+2w2Y5svGPk3 lDLi6pf5d/eotMn87vrpLCK0Z60yrY/VYExIsKfGQUEKiFQuqHAbo/lT82Z4h+xDsdjT xcRRIQbo5RLM1bUNXuEoPAtaVcDb4ybjJvXjGsgveL1MEUw8a/vL23BhDRxx/ekv70GH 7YcJGEvIh2K4+3/HFhxIYQ6N94lSeGzA8yuVnCWG7LGpnUvyRwFQzxrm56vjt7z5nC/m MU3BX38SAxKnBG/SL52nSJfxD11jLUbLS3raLoL1bAFcLn3tsOSfSRH9RcUT+AkcHv5k 7aiA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id az12-20020a170902a58c00b00158e7ff4c26si7760857plb.514.2022.05.19.16.58.05; Thu, 19 May 2022 16:58:16 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235073AbiESH74 (ORCPT + 99 others); Thu, 19 May 2022 03:59:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233479AbiESH7y (ORCPT ); Thu, 19 May 2022 03:59:54 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F67C3983C; Thu, 19 May 2022 00:59:52 -0700 (PDT) Received: from fraeml707-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4L3j1l050rz6F9F7; Thu, 19 May 2022 15:59:39 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml707-chm.china.huawei.com (10.206.15.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 19 May 2022 09:59:50 +0200 Received: from [10.47.92.25] (10.47.92.25) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 19 May 2022 08:59:49 +0100 Message-ID: <2d73146a-86fc-e0d1-11b9-432c7431d58a@huawei.com> Date: Thu, 19 May 2022 08:59:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 From: John Garry Subject: Re: [PATCH 00/20] perf vendors events arm64: Multiple Arm CPUs To: Robin Murphy , Nick Forrington , , , CC: Will Deacon , Mathieu Poirier , Leo Yan , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , "Namhyung Kim" , Andi Kleen , Kajol Jain , James Clark , Andrew Kilroy References: <20220510104758.64677-1-nick.forrington@arm.com> <28509191-3a45-de6d-f5bc-a8e7331c0a9e@huawei.com> <5773b630-8159-1eba-481a-1bf3c406c055@arm.com> <7a17256d-cad0-bd94-02e7-f8adaa959654@arm.com> In-Reply-To: <7a17256d-cad0-bd94-02e7-f8adaa959654@arm.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.92.25] X-ClientProxiedBy: lhreml728-chm.china.huawei.com (10.201.108.79) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,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 18/05/2022 15:14, Robin Murphy wrote: >> Sure, we should have these 32b cores supported for ARCH=arm if they >> are supported for ARCH=arm64. But then does it even make sense to have >> A7 support in arch/arm64? > > That's what I'm getting at. If it is tied to the build target as you've > said above, then there is no point in an AArch64 perf tool including > data for CPUs on which that tool cannot possibly run; it's simply a > waste of space. > > If there is interest in plumbing in support on AArch32 builds as well, > then I'd still be inclined to have a single arch/arm events directory, > and either do some build-time path munging or just symlink an arch/arm64 > sibling back to it. Yes, technically there are AArch64-only CPUs whose > data would then be redundant when building for AArch32, If size is an issue then we have ways to cut this down, like doing the arch standard events fixup dynamically when running perf tool, or even not describing those events in the JSONs and rely on reading the CPU PMU events folder to learn which of those events are supported. > but those are > such a minority that it seems like an entirely reasonable compromise. @Nick, Can you drop the 32b core support for arm64? Or, if you really want them, look into ARCH=arm pmu-events support? thanks, John