Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CD6FC433F5 for ; Wed, 22 Dec 2021 13:08:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236364AbhLVNI1 (ORCPT ); Wed, 22 Dec 2021 08:08:27 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:4321 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240684AbhLVNIY (ORCPT ); Wed, 22 Dec 2021 08:08:24 -0500 Received: from fraeml711-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4JJtqM4dLQz67kgW; Wed, 22 Dec 2021 21:05:51 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml711-chm.china.huawei.com (10.206.15.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Wed, 22 Dec 2021 14:08:22 +0100 Received: from [10.195.32.222] (10.195.32.222) 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.2308.20; Wed, 22 Dec 2021 13:08:21 +0000 Subject: Re: [PATCH] perf pmu: Fix event list for uncore PMUs To: Arnaldo Carvalho de Melo CC: Jiri Olsa , , , , , , , , , References: <1639670017-74918-1-git-send-email-john.garry@huawei.com> <43e185f6-9fa7-6ae1-e4fd-c90c6a50f68f@huawei.com> From: John Garry Message-ID: Date: Wed, 22 Dec 2021 13:08:20 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.195.32.222] X-ClientProxiedBy: lhreml750-chm.china.huawei.com (10.201.108.200) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/12/2021 20:48, Arnaldo Carvalho de Melo wrote: >> Now thinking a bit more I am not confident that this patch is a full fix. >> >> arm have heterogeneous CPU systems as well - which are not "hybrid" - and I >> need to ensure that aliasing is still working properly there, as I think >> that this following check would stop removing duplicates there: >> >> + /* uncore PMUs */ >> + if (!alias_a->is_cpu && !alias_b->is_cpu) >> + return true; >> + return false; > I was about to process this, do you think its better to revert the > original patch while this gets fixed? I think that the v2 should now be ok. @jirka, can you kindly help to check that? BTW, my patch is based on v5.16-rc5 . I assumed that I would need to be based on acme/perf/urgent, but that seems to be based on 5.15 Thanks, John