On Mon, 30 Nov 2026 14:51:04 +0530
"Prusty, Subhransu Sekhar" <[email protected]> wrote:

> On 16-11-2026 19:47, Prusty, Subhransu Sekhar wrote:
> > Hi Stephen,
> >   
> >>
> >> PCI ID and PF/VF model (you asked about devargs). The ID table is
> >> vendor 0x1172, device 0x0000, i.e. the Altera default IDs. Any
> >> Altera design left at default IDs will probe as MCDMA. Whether a
> >> function is PF or VF is decided by the presence of pf_index=, and a
> >> VF needs parent_pf_idx= to find its channel count. The usual way to
> >> do this in DPDK is distinct device IDs for PF and VF (and a real  
> > 
> > Since ours is FPGA drivers this will be tricky as the IP configuration 
> > in a design may not always have the device IDs assigned and even though 
> > assigned every design can have a different device IDs which may be 
> > difficult to add in the enumeration list. This is why we have this 
> > approach to distinguish with devargs. Is there any other way we can 
> > approach this?  
> 
> Hi Stephen and all,
> 
> Thank you for reviewing the MCDMA RFC. Before preparing the next 
> revision, we would appreciate guidance on the PCI device identification 
> and PF/VF discovery model.
> 
> For context, the original RFC and review discussion are available here:
> 
> https://lore-kernel.gnuweeb.org/all/[email protected]/T/
> 
> The accompanying RFC patch shows our latest proposed change to replace
> the PF/VF index devargs with topology-based discovery. It is a 
> preliminary proposal for discussion and does not change PCI device matching.
> 
> There are two separate questions we would like to resolve:
> 
> 1. How should the PMD safely identify a PCI function as an MCDMA device?
> 2. After identifying it, how should the PMD determine its PF/VF role and
>     the hardware PF index needed to interpret the channel configuration?


I have little hardware expertise, Thomas, Bruce or David might have more 
insight.
I would think you want the same methodology as already done by similar kernel 
drivers.

Reply via email to