Query regarding the use of pcie-designware-plat.c file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Query regarding the use of pcie-designware-plat.c file
- From: Vidya Sagar <vidyas@xxxxxxxxxx>
- Date: Wed, 9 Jun 2021 00:52:37 +0530
- Cc: Jonathan Hunter <jonathanh@xxxxxxxxxx>, Thierry Reding <treding@xxxxxxxxxx>, Krishna Thota <kthota@xxxxxxxxxx>, <linux-pci@xxxxxxxxxxxxxxx>, <linux-kernel@xxxxxxxxxxxxxxx>
- User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1
Hi,
I would like to know what is the use of pcie-designware-plat.c file.
This looks like a skeleton file and can't really work with any specific
hardware as such.
Some context for this mail thread is, if the config CONFIG_PCIE_DW_PLAT
is enabled in a system where a Synopsys DesignWare IP based PCIe
controller is present and its configuration is enabled (Ex:- Tegra194
system with CONFIG_PCIE_TEGRA194_HOST enabled), then, it can so happen
that the probe of pcie-designware-plat.c called first (because all DWC
based PCIe controller nodes have "snps,dw-pcie" compatibility string)
and can crash the system.
One solution to this issue is to remove the "snps,dw-pcie" from the
compatibility string (as was done through the commit f9f711efd441
("arm64: tegra: Fix Tegra194 PCIe compatible string") but it seems like
a localized fix for Tegra194 where the issue potentially is global, as
in, the crash can happen on any platform.
So, wondering if the config option CONFIG_PCIE_DW_PLAT can be removed
altogether for pcie-designware-plat.c?
Thanks,
Vidya Sagar
[Index of Archives]
[DMA Engine]
[Linux Coverity]
[Linux USB]
[Video for Linux]
[Linux Audio Users]
[Yosemite News]
[Linux Kernel]
[Linux SCSI]
[Greybus]