Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp1548544lkv; Wed, 19 May 2021 12:30:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyB13GkBalKist2hTzDOG7bK6J5QY/7qPWg58AZ3g4rvV8wqbWOVQ/BzRQ5sbRpHmuhg159 X-Received: by 2002:a05:6402:1544:: with SMTP id p4mr647434edx.341.1621452639554; Wed, 19 May 2021 12:30:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621452639; cv=none; d=google.com; s=arc-20160816; b=XkvIgrszwqUYrNXT2iIc2/Zv67pUAp/YqjGlDTQT4Kyhs4N9VBtE5k8Y+XCiN/Ev/K CmwhdFkwnB0kFgQOea5mcRWMhddg1OLoooxAIfwvstUoeNENTHqnKXOBPrKlvn7MqPV7 Bdzu54PCd/q+hXVAGKGujLIb2heOpBJHXv7WItKc4Ve6g4swVVqWBe+7TvAFnvXcDJ0T e0Fq3FawW4BrBXYHltU/E84AOjae92RrEOFMHokCVnV38B1V8fQVk/lLEkH8cikmbecn pUDCVisdEr4j60unFjOBXXSJfVkq3BYDPR7nLVUDRJg/YMOHU4PRo2KTanOce1Z3c0AA 5TXQ== 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=xdSK2aZup5E+TEN+IjDnl/5fivuJwPvswC+y06E6TKU=; b=OHyl8fXSgTVHEtmoP/XHwTk5RHIET2E7lWpe3RsP7ZxrRwkZMEqXeSty8Y6KATCJ6L lPid/Z8wPOhANgp0o+qI9JM0VGUZZX6Jym/+4plJIf1iwS7Hdo2Zm2sLPFybts2dB6Ur r9vI95OIPQ3JUJOO90Ei4evluDFKVxV7nYM/knqXFCe7dVIWH2ZsByl6Px1z1FL00whh Jhsj/xNuMdQPRyerZoYKA+NRt/x30oOmT1T8PF7gAe6YtM4hTxwuo3TFhCSrWRgVZ1R5 3SKZi1EtUvkOeroNJhB1EE2P3+h13GJgcmkHUUlNwZuGmEk7AGHl7lDw0QCxr3/bn0S8 dihg== 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 p10si336878ejo.39.2021.05.19.12.30.14; Wed, 19 May 2021 12:30:39 -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 S1346371AbhESLnR (ORCPT + 99 others); Wed, 19 May 2021 07:43:17 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3030 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234661AbhESLnR (ORCPT ); Wed, 19 May 2021 07:43:17 -0400 Received: from dggems706-chm.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FlW8d3jmGzQnjG; Wed, 19 May 2021 19:38:25 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by dggems706-chm.china.huawei.com (10.3.19.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 19 May 2021 19:41:54 +0800 Received: from [10.47.87.246] (10.47.87.246) 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.2176.2; Wed, 19 May 2021 12:41:52 +0100 Subject: Re: [PATCH v4 2/2] drivers/perf: hisi: Add driver for HiSilicon PCIe PMU To: Qi Liu , , , CC: , , , , References: <1621417741-5229-1-git-send-email-liuqi115@huawei.com> <1621417741-5229-3-git-send-email-liuqi115@huawei.com> From: John Garry Message-ID: <4c0f623b-fd0f-e13d-452a-7d72719ecaf8@huawei.com> Date: Wed, 19 May 2021 12:40:49 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <1621417741-5229-3-git-send-email-liuqi115@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.87.246] X-ClientProxiedBy: lhreml745-chm.china.huawei.com (10.201.108.195) 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 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. Thanks, John