]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: tegra194: Make BAR0 programmable and remove 1MB size limit
authorManikanta Maddireddy <mmaddireddy@nvidia.com>
Tue, 24 Mar 2026 08:08:55 +0000 (13:38 +0530)
committerManivannan Sadhasivam <mani@kernel.org>
Sat, 4 Apr 2026 10:45:00 +0000 (16:15 +0530)
commit5aec1f18b326ddc455ae9d9d0f5394efc20eee9b
tree31b6bd9b60efc897062caeb7faa52fa634ceac63
parent5f352433ea39171e19fbb3a7e18d983510176854
PCI: tegra194: Make BAR0 programmable and remove 1MB size limit

The Tegra194/234 Endpoint does not support the Resizable BAR capability,
but BAR0 can be programmed to different sizes via the DBI2 BAR registers
in dw_pcie_ep_set_bar_programmable(). The BAR0 size is set once during
initialization.

Remove the fixed 1MB limit from pci_epc_features so Endpoint function
drivers can configure the BAR0 size they need.

Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Link: https://patch.msgid.link/20260324080857.916263-3-mmaddireddy@nvidia.com
drivers/pci/controller/dwc/pcie-tegra194.c