public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] PCI: dwc: ep: Fix BAR update handling with in-place epf_bar reuse
@ 2026-02-02 14:54 Koichiro Den
  2026-02-02 14:54 ` [PATCH v2 1/2] PCI: dwc: ep: Return after clearing BAR-match inbound mapping Koichiro Den
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Koichiro Den @ 2026-02-02 14:54 UTC (permalink / raw)
  To: mani, cassel, kwilczynski, kishon, bhelgaas, corbet, jingoohan1,
	lpieralisi, robh, Frank.Li
  Cc: linux-pci, linux-doc, linux-kernel

Hi,

This patch series is a follow-up to a side discussion that started from
Niklas' comment at:
https://lore.kernel.org/all/aXtrW7viGZfMNZur@ryzen/

This series:
  1) Makes BAR Match vs Address Match teardown in DesignWare EP explicit
     by returning right after clearing a BAR-match inbound mapping.
  2) Fixes the dw_pcie_ep_set_bar() mapping-update path to run
     dw_pcie_ep_clear_ib_maps() unconditionally, since the driver cannot
     reliably distinguish BAR Match -> BAR Match from Address Match ->
     BAR Match transitions when the same epf_bar instance is updated in
     place and passed in again.

Base: controller/dwc branch, latest:
commit a24149881558 ("PCI: dwc: ep: Add comment explaining controller level
                      PTM access in multi PF setup")

Changes since v1:
  - Switched from the v1 approach (Y) to the alternative approach (X)
    that was proposed earlier in the discussion.
    Details of the v1 (Y) vs v2 (X) are described at:
    https://lore.kernel.org/all/sextbnbmsur2xjfoun2l4lr5vekmpzae7sx6or2ird44t6ud6d@yprcz43tpq4p/
  - Changed the subject.

v1: https://lore.kernel.org/all/20260131133655.218018-1-den@valinux.co.jp/

Thanks,


Koichiro Den (2):
  PCI: dwc: ep: Return after clearing BAR-match inbound mapping
  PCI: dwc: ep: Always clear IB maps on BAR update

 drivers/pci/controller/dwc/pcie-designware-ep.c | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2026-02-20 16:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-02 14:54 [PATCH v2 0/2] PCI: dwc: ep: Fix BAR update handling with in-place epf_bar reuse Koichiro Den
2026-02-02 14:54 ` [PATCH v2 1/2] PCI: dwc: ep: Return after clearing BAR-match inbound mapping Koichiro Den
2026-02-02 15:29   ` Niklas Cassel
2026-02-02 14:54 ` [PATCH v2 2/2] PCI: dwc: ep: Always clear IB maps on BAR update Koichiro Den
2026-02-02 15:34   ` Niklas Cassel
2026-02-09  5:40 ` [PATCH v2 0/2] PCI: dwc: ep: Fix BAR update handling with in-place epf_bar reuse Koichiro Den
2026-02-09 11:35   ` Manivannan Sadhasivam
2026-02-09 12:56     ` Koichiro Den
2026-02-19 19:43 ` Bjorn Helgaas
2026-02-20  3:42   ` Koichiro Den
2026-02-20 16:02   ` Niklas Cassel

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