Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4162992ioo; Wed, 25 May 2022 17:02:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBcPRAeMAPvgNIB5YZDwwNGINgvcsNTqNsyDONagnkkEYLqujuy0QqbKYomNomzaFhBtGo X-Received: by 2002:a05:6402:320f:b0:42b:c876:4e34 with SMTP id g15-20020a056402320f00b0042bc8764e34mr5858252eda.201.1653523367163; Wed, 25 May 2022 17:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653523367; cv=none; d=google.com; s=arc-20160816; b=dCxfcRwPt3GPLbsUAvSvyfiksqO0e1l1UPSStA7SXu9m153uOMx4DV7nEJV2gwqS6y faQP7Vn9cY19grCpuw14KJ266L5Nh4Q6dLX+bFO32ajJ3nbJq83i4rtMP5pjn2sKySF8 IsYDuhHfa3TdHfv8mw5RrwJOkgiytFn47/yolBZvKbYy28Jya8ZzPQIJMe7fu5O3YDJ4 P7Sp6gwsdSQU10OKD/HmzhiRUDeHwke+bpWos/EG+3mcZwQeaXe57sRcGyMXWOzAV1k6 UlE6XNDuHO5Ap360PRshoFVc3e2L0tIaaiWE2ozVc/WpkTz5OV3TuGj1b2oKAbo3H1GM g2pQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=6doJS1bXUD/HZVxDvyRnX7wGvOfjJBvBFaAZonMQirU=; b=sOnyBRvcAzkw+fAcCJ6NMC3hmBU9IuNDEKHuERO1icQ9Gey2M1scLPKvtIv6punV3c CDO/MsqMrwQr8TiC6MBfVcrWzi7sGEP7EmWLxvvbWPY6BBvqWakhpVF34J5zWnxbRJL1 N4JpviqxLFEW6utBqRXoKl5Hb3FVG302WimijfoVU06LHDOBSnrttofAdlSJcjPPmvei fIj1kJ9sNPZyEy5ZlFOrzqiRpzsYUQ6k+xtPs2JYGjkK793tvrlw+yUDdayt4t1TDE08 fIzghESIkng8WRCmWJQxUkNQAuGilQ3Wtuf6KQQRhE1gj5RKqN+gejZ4eVrPmZxUNbwq Y/KA== 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 yk1-20020a17090770c100b006e8baf14cc8si4924ejb.927.2022.05.25.17.02.21; Wed, 25 May 2022 17:02:47 -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 S243593AbiEYPL3 (ORCPT + 99 others); Wed, 25 May 2022 11:11:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232941AbiEYPL0 (ORCPT ); Wed, 25 May 2022 11:11:26 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82EF8AFACE for ; Wed, 25 May 2022 08:11:22 -0700 (PDT) Received: from fraeml740-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4L7ZJS2Ww8z67tkx; Wed, 25 May 2022 23:10:48 +0800 (CST) Received: from lhreml741-chm.china.huawei.com (10.201.108.191) by fraeml740-chm.china.huawei.com (10.206.15.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 25 May 2022 17:11:19 +0200 Received: from [10.199.170.112] (10.199.170.112) by lhreml741-chm.china.huawei.com (10.201.108.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 25 May 2022 16:11:06 +0100 Message-ID: <853b6d52-da86-1c06-3604-3085ece331a4@huawei.com> Date: Wed, 25 May 2022 18:10:51 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v2] coresight: etm4x: Add Support for HiSilicon ETM device Content-Language: en-US To: Qi Liu , , , , CC: , , , , Alexey Budankov References: <1597323562-3706-1-git-send-email-liuqi115@huawei.com> From: Alexei Budankov In-Reply-To: <1597323562-3706-1-git-send-email-liuqi115@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.199.170.112] X-ClientProxiedBy: saopeml500003.china.huawei.com (7.184.65.141) To lhreml741-chm.china.huawei.com (10.201.108.191) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.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 Hi Qi Liu, On 13.08.2020 15:59, Qi Liu wrote: > Add ETMv4 periperhal ID for HiSilicon Hip08 and Hip09 platform. Hip08 > contains ETMv4.2 device and Hip09 contains ETMv4.5 device. > > Signed-off-by: Qi Liu > --- > drivers/hwtracing/coresight/coresight-etm4x.c | 2 ++ > 1 file changed, 2 insertions(+) Thanks for your patch. I would like to test HiSilicon ETM device feature on Kunpeng 920 based server. I applied the patch and booted the kernel with the changes. However I don't see any device files neither here: /sys/bus/coresight/devices/ nor here: /sys/bus/event_source/devices/cs_etm/sinks/ What should a user expect new in os with this patch added? Thanks, Alexei > > diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c > index 6d7d216..7797a57 100644 > --- a/drivers/hwtracing/coresight/coresight-etm4x.c > +++ b/drivers/hwtracing/coresight/coresight-etm4x.c > @@ -1587,6 +1587,8 @@ static const struct amba_id etm4_ids[] = { > CS_AMBA_UCI_ID(0x000bb805, uci_id_etm4),/* Qualcomm Kryo 4XX Cortex-A55 */ > CS_AMBA_UCI_ID(0x000bb804, uci_id_etm4),/* Qualcomm Kryo 4XX Cortex-A76 */ > CS_AMBA_UCI_ID(0x000cc0af, uci_id_etm4),/* Marvell ThunderX2 */ > + CS_AMBA_UCI_ID(0x000b6d01, uci_id_etm4),/* HiSilicon-Hip08 */ > + CS_AMBA_UCI_ID(0x000b6d02, uci_id_etm4),/* HiSilicon-Hip09 */ > {}, > }; > > -- > 2.8.1