* [PATCH v2] PCI: dwc: Skip the empty CFG1 window for a two-bus ECAM range
@ 2026-11-26 19:41 Felipe Infante de Castro
2026-11-26 19:45 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: Felipe Infante de Castro @ 2026-11-26 19:41 UTC (permalink / raw)
To: mani, jingoohan1, lpieralisi, kwilczynski, bhelgaas, robh
Cc: linux-pci, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: v2-0001-PCI-dwc-Skip-the-empty-CFG1-window-for-a-two-bus-ECA.patch --]
[-- Type: application/x-patch, Size: 2471 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] PCI: dwc: Skip the empty CFG1 window for a two-bus ECAM range
2026-11-26 19:41 [PATCH v2] PCI: dwc: Skip the empty CFG1 window for a two-bus ECAM range Felipe Infante de Castro
@ 2026-11-26 19:45 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-26 19:45 UTC (permalink / raw)
To: Felipe Infante de Castro; +Cc: linux-pci
> From: Felipe Infante de Castro <felipe.infante.de.castro@gmail.com>
> Date: Thu, 26 Nov 2026 13:54:01 -0500
> Subject: [PATCH v2] PCI: dwc: Skip the empty CFG1 window for a two-bus ECAM range
>
> With the iATU-based ECAM mechanism and a host bus resource of [bus 00-01]
> (bus-range = <0 1> in a device tree), dw_pcie_config_ecam_iatu() programs
> the CFG0 window for bus 1 and then requests a CFG1 window of zero bytes:
>
> atu.size = (SZ_1M * bus_range_max) - SZ_2M;
>
> dw_pcie_prog_outbound_atu() rejects a zero-size window with -EINVAL, the
> error propagates through dw_pcie_host_init() and the host bridge is never
> registered.
>
> resource_size() counts both ends of the range, so [bus 00-01] holds two
> [ ... ]
>
> Fixes: f6fd357f7afb ("PCI: dwc: Prepare the driver for enabling ECAM mechanism using iATU 'CFG Shift Feature'")
> Assisted-by: OpenAI Codex
> Assisted-by: Claude Fable 5.2
> Signed-off-by: Felipe Infante de Castro <felipe.infante.de.castro@gmail.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/CADy1qsZ_j7FnfZHQnwqFWiQKyxoQGLt+LJKG=Y-63Yi71uiNZQ@mail.gmail.com?part=1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-26 19:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 19:41 [PATCH v2] PCI: dwc: Skip the empty CFG1 window for a two-bus ECAM range Felipe Infante de Castro
2026-11-26 19:45 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox