Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2007732pxj; Wed, 19 May 2021 20:33:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2633BuPe+A8tzoL4q9RUwbLsJESIEynoeJjuLp2TBUwUVaSJt/aUx0hhpqnaUfgwiJCaB X-Received: by 2002:a17:906:d8cb:: with SMTP id re11mr2500600ejb.482.1621481596692; Wed, 19 May 2021 20:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621481596; cv=none; d=google.com; s=arc-20160816; b=Y4x+sNdMs94uHg1MUMQOWrA65IydjbBL1o3T/OTomCOcuxLC4hj9EHuW9QRPFrv2Is OJUhbRqUOp6jiBxQXnu5mwE9UjC/a3EV3r8LsEGNlAgWtbOd5rckXGzWaLz6Jqoz2sTN TkZuyX6j6kTC1AJ/2eZd/SFGf0Za9ktTOyD1B9zFhUWjzTlES2vK2HHJ8T/hwRJPBpTA QED5zDM9WQxF4hHdSWBZ9t78ltE1T0RV3BuZRd8Tdaaea24BcbXzR/LcJfYwtl0yyEox psgxcHkRhb6fhQBJyOWEMnDjMPgywpZUFIzasIQk6EKQvJqj4Yqqc+wfzG0baJl9Q0s8 QfoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Vz9uv6Um3sGXNYJx4pgPA6jURPWrLSm34+IzDqz54eg=; b=Ft2oCucO0NAwdoeyq5TzIUqOEpjidVeaIy447zjSkiVKYzxEHB8rmO0UpYIH6//ED3 wPgzXUtQTzaSNb7RQOmYc733ALjswRXaAib2LRQR0eCiu5fV7Ore+6hkAWRynMgg+unr 9rL4xk+hTz4WV9PRGfAi/wORFBXr++PZCUfSkhcwMF3zG9MN4/YRg4rykgsRQ1we7iHl TWA2PoEk+uol7hHcS3Cu4WuSxAV5upUswEVp6JRVmxnNaiUYAtsLnGVo/dUHlIVcoSFf NVm5WwVW4CbuUZfFnDfUuvJ1qt1vh7Iha4t7EP8ryGSEKog/WP58Je+WjOZnG/WhqROv SpAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si1535734ejc.208.2021.05.19.20.32.52; Wed, 19 May 2021 20:33:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230014AbhETDdD (ORCPT + 99 others); Wed, 19 May 2021 23:33:03 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4762 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbhETDdD (ORCPT ); Wed, 19 May 2021 23:33:03 -0400 Received: from dggems702-chm.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FlwDV5pbDzqV76; Thu, 20 May 2021 11:28:10 +0800 (CST) Received: from dggema757-chm.china.huawei.com (10.1.198.199) by dggems702-chm.china.huawei.com (10.3.19.179) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Thu, 20 May 2021 11:31:41 +0800 Received: from [127.0.0.1] (10.69.38.203) by dggema757-chm.china.huawei.com (10.1.198.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 20 May 2021 11:31:40 +0800 Subject: Re: [PATCH v4 2/2] drivers/perf: hisi: Add driver for HiSilicon PCIe PMU To: John Garry , , , CC: , , , , References: <1621417741-5229-1-git-send-email-liuqi115@huawei.com> <1621417741-5229-3-git-send-email-liuqi115@huawei.com> <4c0f623b-fd0f-e13d-452a-7d72719ecaf8@huawei.com> From: "liuqi (BA)" Message-ID: Date: Thu, 20 May 2021 11:31:40 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <4c0f623b-fd0f-e13d-452a-7d72719ecaf8@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Originating-IP: [10.69.38.203] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggema757-chm.china.huawei.com (10.1.198.199) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/5/19 19:40, John Garry wrote: > On 19/05/2021 10:49, Qi Liu wrote: >> PCIe PMU Root Complex Integrated End Point(RCiEP) device is supported >> to sample bandwidth, latency, buffer occupation etc. >> >> Each PMU RCiEP device monitors multiple Root Ports, and each RCiEP is >> registered as a PMU in /sys/bus/event_source/devices, so users can >> select target PMU, and use filter to do further sets. >> >> Filtering options contains: >> event        - select the event. >> subevent     - select the subevent. >> port         - select target Root Ports. Information of Root Ports >>                 are shown under sysfs. >> bdf          - select requester_id of target EP device. >> trig_len     - set trigger condition for starting event statistics. >> trigger_mode - set trigger mode. 0 means starting to statistic when >>                 bigger than trigger condition, and 1 means smaller. >> thr_len      - set threshold for statistics. >> thr_mode     - set threshold mode. 0 means count when bigger than >>                 threshold, and 1 means smaller. >> >> Reviewed-by: John Garry >> Signed-off-by: Qi Liu > > JFYI, In light of this following series: > https://lore.kernel.org/linux-arm-kernel/87v97fccq9.ffs@nanos.tec.linutronix.de/ > > > At some stage the irq_set_affinity_hint() calls need to be fixed up here > as well. Hi John, Seems irq_set_affinity_hint() need to be replaced by irq_set_affinity(). I'll fix this and send a new version latter. Thanks, Qi > > Thanks, > John > > .