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] [thread-next>] [day] [month] [year] [list]
Message-ID: <381857a4-0354-47d8-ba21-935293f35858@ti.com>
Date: Wed, 21 Jan 2026 16:34:44 +0530
From: Aksh Garg <a-garg7@...com>
To: Niklas Cassel <cassel@...nel.org>
CC: <linux-pci@...r.kernel.org>, <jingoohan1@...il.com>, <mani@...nel.org>,
	<lpieralisi@...nel.org>, <kwilczynski@...nel.org>, <robh@...nel.org>,
	<bhelgaas@...gle.com>, <linux-kernel@...r.kernel.org>, <s-vadapalli@...com>,
	<danishanwar@...com>
Subject: Re: [EXTERNAL] Re: [PATCH 0/2] PCI: dwc: ep: Enhance multi-function
 endpoint support

Hi Niklas, Thanks a lot for your comments and reviews!

> On Wed, Jan 21, 2026 at 09:50:58AM +0100, Niklas Cassel wrote:
>> On Wed, Jan 21, 2026 at 11:12:12AM +0530, Aksh Garg wrote:
>> > This series addresses multi-function endpoint configuration issues in
>> > the DWC PCIe controller driver. The changes enable proper operations
>> > for physical functions and enhance the multi-function endpoint support.
>> 
>> 
>> Considering that the DWC driver design has always been broken with regards
>> to multiple physical functions, as you explain yourself, the iATU to BAR
>> mapping has always been per controller, not per PF.
>> 
>> Thus, it would be nice if you explained how you have actually tested this.
>> 
>> Does the controller you are using have both Resizable and Programmable BARs?
> 
> If your PCIe controller supports multiple PFs, as you might know,
> while:
> 
> const struct pci_epc_features* (*get_features)(struct pci_epc *epc,
>                                                         u8 func_no, u8 vfunc_no);
> 
> takes both a PF and a VF...
> 
> dw_pcie_ep_get_features(struct pci_epc *epc, u8 func_no, u8 vfunc_no)
> ignores both of these parameters and simply call:
> ep->ops->get_features(ep);
> 
> 
> For each PF in your controller, do all BARs have the exact same definition?

All the BARs of all the PFs in my controller are resizable, hence can 
have the same features structure.

However, this might need a fix as well if a controller comes out to have 
different BAR definitions for different PFs!

Regards,
Aksh Garg

> 
> e.g. all BARs for each PF would need to have the same type, e.g. if BAR0
> is FIXED, BAR1 is programmable, and BAR2 is resizable, with the current
> design of dw_pcie_ep_get_features() that would need to be the case for all
> PFs. >
> Kind regards,
> Niklas
> 


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ