public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] PCI: dwc: rcar-gen4-ep: Mark BAR0 and BAR2 as Resizable BARs
@ 2026-02-10 16:03 Koichiro Den
  2026-02-26  7:22 ` Manivannan Sadhasivam
  2026-03-02 22:31 ` Bjorn Helgaas
  0 siblings, 2 replies; 7+ messages in thread
From: Koichiro Den @ 2026-02-10 16:03 UTC (permalink / raw)
  To: marek.vasut+renesas, yoshihiro.shimoda.uh, lpieralisi,
	kwilczynski, mani, robh, bhelgaas, geert+renesas, magnus.damm,
	cassel
  Cc: linux-pci, linux-renesas-soc, linux-kernel

R-Car Gen4 (S4) implements the PCIe Resizable BAR capability for BAR0 and
BAR2. Advertise them as BAR_RESIZABLE so EPF-requested BAR sizes are
reflected to the host.

Reviewed-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Koichiro Den <den@valinux.co.jp>
---
Changes since v1:
  - Reword commit message only, no code changes.
  - Rebased onto pci/controller/dwc as of 2026-02-11

v1: https://lore.kernel.org/linux-pci/20251023072217.901888-1-den@valinux.co.jp

 drivers/pci/controller/dwc/pcie-rcar-gen4.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pci/controller/dwc/pcie-rcar-gen4.c b/drivers/pci/controller/dwc/pcie-rcar-gen4.c
index a6912e85e4dd..3d4a889e38cc 100644
--- a/drivers/pci/controller/dwc/pcie-rcar-gen4.c
+++ b/drivers/pci/controller/dwc/pcie-rcar-gen4.c
@@ -422,7 +422,9 @@ static int rcar_gen4_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
 static const struct pci_epc_features rcar_gen4_pcie_epc_features = {
 	DWC_EPC_COMMON_FEATURES,
 	.msi_capable = true,
+	.bar[BAR_0] = { .type = BAR_RESIZABLE, },
 	.bar[BAR_1] = { .type = BAR_RESERVED, },
+	.bar[BAR_2] = { .type = BAR_RESIZABLE, },
 	.bar[BAR_3] = { .type = BAR_RESERVED, },
 	.bar[BAR_4] = { .type = BAR_FIXED, .fixed_size = 256 },
 	.bar[BAR_5] = { .type = BAR_RESERVED, },
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-03-04 17:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-10 16:03 [PATCH v2] PCI: dwc: rcar-gen4-ep: Mark BAR0 and BAR2 as Resizable BARs Koichiro Den
2026-02-26  7:22 ` Manivannan Sadhasivam
2026-03-02 22:31 ` Bjorn Helgaas
2026-03-03  5:12   ` Koichiro Den
2026-03-04 13:32     ` Niklas Cassel
2026-03-04 14:34       ` Manivannan Sadhasivam
2026-03-04 17:34         ` Niklas Cassel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox