Skip to content

Commit 787bb0b

Browse files
Koichiro Dengregkh
authored andcommitted
PCI: dwc: rcar-gen4: Change EPC BAR alignment to 4K as per the documentation
[ Upstream commit 13f55a7 ] R-Car S4 Series (R8A779F[4-7]*) EP controller uses a 4K minimum iATU region size (CX_ATU_MIN_REGION_SIZE = 4K) as per R19UH0161EJ0130 Rev.1.30. Also, the controller itself can only be configured in the range 4 KB to 64 KB, so the current 1 MB alignment requirement is incorrect. Hence, change the alignment to the min size 4K as per the documentation. This also fixes needless unusability of BAR4 on this platform when the target address is fixed, such as for doorbell targets. Fixes: e311b38 ("PCI: rcar-gen4: Add endpoint mode support") Signed-off-by: Koichiro Den <den@valinux.co.jp> [mani: commit log] Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Niklas Cassel <cassel@kernel.org> Link: https://patch.msgid.link/20260305151050.1834007-1-den@valinux.co.jp Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 9afe53f commit 787bb0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pci/controller/dwc/pcie-rcar-gen4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ static const struct pci_epc_features rcar_gen4_pcie_epc_features = {
426426
.bar[BAR_3] = { .type = BAR_RESERVED, },
427427
.bar[BAR_4] = { .type = BAR_FIXED, .fixed_size = 256 },
428428
.bar[BAR_5] = { .type = BAR_RESERVED, },
429-
.align = SZ_1M,
429+
.align = SZ_4K,
430430
};
431431

432432
static const struct pci_epc_features*

0 commit comments

Comments
 (0)