lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aXdA_6shI23JBswI@ryzen>
Date: Mon, 26 Jan 2026 11:25:03 +0100
From: Niklas Cassel <cassel@...nel.org>
To: Koichiro Den <den@...inux.co.jp>
Cc: jingoohan1@...il.com, mani@...nel.org, lpieralisi@...nel.org,
	kwilczynski@...nel.org, robh@...nel.org, bhelgaas@...gle.com,
	Frank.Li@....com, vigneshr@...com, s-vadapalli@...com,
	hongxing.zhu@....com, l.stach@...gutronix.de, shawnguo@...nel.org,
	s.hauer@...gutronix.de, kernel@...gutronix.de, festevam@...il.com,
	minghuan.Lian@....com, mingkai.hu@....com, roy.zang@....com,
	jesper.nilsson@...s.com, heiko@...ech.de,
	srikanth.thokala@...el.com, marek.vasut+renesas@...il.com,
	yoshihiro.shimoda.uh@...esas.com, geert+renesas@...der.be,
	magnus.damm@...il.com, christian.bruel@...s.st.com,
	mcoquelin.stm32@...il.com, alexandre.torgue@...s.st.com,
	thierry.reding@...il.com, jonathanh@...dia.com,
	hayashi.kunihiko@...ionext.com, mhiramat@...nel.org,
	kishon@...nel.org, jirislaby@...nel.org, rongqianfeng@...o.com,
	18255117159@....com, shawn.lin@...k-chips.com,
	nicolas.frattaroli@...labora.com, linux.amoon@...il.com,
	vidyas@...dia.com, shuah@...nel.org, linux-omap@...r.kernel.org,
	linux-pci@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
	linux-kernel@...r.kernel.org, imx@...ts.linux.dev,
	linuxppc-dev@...ts.ozlabs.org, linux-arm-kernel@...s.com,
	linux-rockchip@...ts.infradead.org, linux-arm-msm@...r.kernel.org,
	linux-renesas-soc@...r.kernel.org,
	linux-stm32@...md-mailman.stormreply.com,
	linux-tegra@...r.kernel.org, linux-kselftest@...r.kernel.org
Subject: Re: [PATCH v10 4/8] PCI: dwc: ep: Support BAR subrange inbound
 mapping via Address Match Mode iATU

On Sat, Jan 24, 2026 at 11:50:08PM +0900, Koichiro Den wrote:
> Extend dw_pcie_ep_set_bar() to support inbound mappings for BAR
> subranges using Address Match Mode IB iATU when pci_epf_bar.num_submap
> is non-zero.
> 
> Rename the existing BAR-match helper into dw_pcie_ep_ib_atu_bar() and
> introduce dw_pcie_ep_ib_atu_addr() for Address Match Mode. When
> num_submap is non-zero, read the assigned BAR base address and program
> one inbound iATU window per subrange. Validate the submap array before
> programming:
> - each subrange is aligned to pci->region_align
> - subranges cover the whole BAR (no gaps and no overlaps)
> 
> Track Address Match Mode mappings and tear them down on clear_bar() and
> on set_bar() error paths to avoid leaving half-programmed state or
> untranslated BAR holes.
> 
> Advertise this capability by extending the common feature bit
> initializer macro (DWC_EPC_COMMON_FEATURES).
> 
> This enables multiple inbound windows within a single BAR, which is
> useful on platforms where usable BARs are scarce but EPFs need multiple
> inbound regions.
> 
> Reviewed-by: Frank Li <Frank.Li@....com>
> Signed-off-by: Koichiro Den <den@...inux.co.jp>
> ---

Reviewed-by: Niklas Cassel <cassel@...nel.org>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ