From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A4568CF042B for ; Wed, 9 Oct 2024 01:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hYQPusyvrKSUfWo+Hmtwuzgi0loTd1yKbesF1iF+YPI=; b=xXHaGCHqUBag69DToQXA6thVJ1 cLMluC31WVz/0MBhrlnq+4R82NW2CgsEuvH3HkbFjHoNYxYNaeaWWBxPhXgcf7qrZ5eX5wjIHJy9y Ns1ktpj0WCG+KR8xKYUaN4mYmW1LvjveAYtiyMqlr7x+e25UyhjwuP79UDZzDzoeWf9GnilCzkmsU kPJ3OVtGQ8a2XT9a3ld9KDzAbljPCTCQdA08GMJypLtTPjJiB1PTQ1cZLYsaYvFfdqlyviRIzbfRF 0aTGE4qOhwOCjWcCYK8hKoqtN4Jnk4ss8bQWX+TDh7sQEhUm7f7EQYdsQMm44pNUULBjctpx4UQVr 21NE1z9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syLkP-00000007cui-0H6J; Wed, 09 Oct 2024 01:44:17 +0000 Received: from out30-110.freemail.mail.aliyun.com ([115.124.30.110]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syLj5-00000007chL-10jS for linux-arm-kernel@lists.infradead.org; Wed, 09 Oct 2024 01:42:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1728438171; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=hYQPusyvrKSUfWo+Hmtwuzgi0loTd1yKbesF1iF+YPI=; b=Bqre+pIZAgkUj0gDQeP0ckc7lUqoSOeS1by7hxYWlzD5y/eOdOdbaitWZEZQUuG3MbtiT0yUjdPTvNZokXQog1v+BoLEh6MJWFEjLBHN98iG+BlSWrXN92gyKK0fOJKpThflj606cJsfP+uMnWHhzfMlX8VL8BA3+vTgNb4W0Dw= Received: from 30.246.161.56(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0WGgjsqE_1728438168) by smtp.aliyun-inc.com; Wed, 09 Oct 2024 09:42:49 +0800 Message-ID: <41a0090c-5c2f-42d3-b8a2-92ec094fab96@linux.alibaba.com> Date: Wed, 9 Oct 2024 09:42:47 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] perf/dwc_pcie: Load DesignWare PCIe PMU driver automatically on Ampere SoCs To: Ilkka Koskinen , Jing Zhang , Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20241008231824.5102-1-ilkka@os.amperecomputing.com> <20241008231824.5102-3-ilkka@os.amperecomputing.com> From: Shuai Xue In-Reply-To: <20241008231824.5102-3-ilkka@os.amperecomputing.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241008_184255_458543_1673015B X-CRM114-Status: GOOD ( 10.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 在 2024/10/9 07:18, Ilkka Koskinen 写道: > Load DesignWare PCIe PMU driver automatically if the system has a PCI > bridge by Ampere. > > Signed-off-by: Ilkka Koskinen > --- > drivers/perf/dwc_pcie_pmu.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/perf/dwc_pcie_pmu.c b/drivers/perf/dwc_pcie_pmu.c > index 3581d916d851..d752168733cf 100644 > --- a/drivers/perf/dwc_pcie_pmu.c > +++ b/drivers/perf/dwc_pcie_pmu.c > @@ -782,6 +782,16 @@ static void __exit dwc_pcie_pmu_exit(void) > module_init(dwc_pcie_pmu_init); > module_exit(dwc_pcie_pmu_exit); > > +static const struct pci_device_id dwc_pcie_pmu_table[] = { > + { > + PCI_DEVICE(PCI_VENDOR_ID_AMPERE, PCI_ANY_ID), Hi, Ilkka, Does all Ampere PCI bridge use this IP? Best Regards, Shuai