aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorJerome Brunet <[email protected]>2025-04-24 08:34:05 +0000
committerBjorn Helgaas <[email protected]>2025-05-28 21:47:37 +0000
commite5327a655636e2ffb93d65f44777d9481aab3715 (patch)
tree05cc08873c3af1437d76ac1c282184ae30d9695f /drivers/pci/controller/dwc
parentPCI: endpoint: Retain fixed-size BAR size as well as aligned size (diff)
downloadkernel-e5327a655636e2ffb93d65f44777d9481aab3715.tar.gz
kernel-e5327a655636e2ffb93d65f44777d9481aab3715.zip
PCI: endpoint: pci-epf-vntb: Simplify ctrl/SPAD space allocation
When allocating the shared ctrl/SPAD space, epf_ntb_config_spad_bar_alloc() should not try to handle the size quirks for underlying BAR, whether it is fixed size or alignment. This is already handled by pci_epf_alloc_space(). Also, when handling the alignment, this allocates more space than necessary. For example, with a SPAD size of 1024B and a ctrl size of 308B, the space necessary is 1332B. If the alignment is 1MB, epf_ntb_config_spad_bar_alloc() tries to allocate 2MB where 1MB would have been more than enough. Drop the handling of the BAR size quirks and let pci_epf_alloc_space() handle that. Just make sure the 32bits SPAD register are aligned on 32bits. Signed-off-by: Jerome Brunet <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions