[PATCH 2/3] perf/dwc_pcie: Load DesignWare PCIe PMU driver automatically on Ampere SoCs

Shuai Xue xueshuai at linux.alibaba.com
Tue Oct 8 18:42:47 PDT 2024



在 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 <ilkka at os.amperecomputing.com>
> ---
>   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





More information about the linux-arm-kernel mailing list