From: Stephen Hemminger <stephen@networkplumber.org>
To: David Marchand <david.marchand@redhat.com>
Cc: Cheryl Bansal <cheryl.bansal@altera.com>,
Yipeng Wang <yipeng1.wang@intel.com>,
Sameh Gobriel <sameh.gobriel@intel.com>,
Bruce Richardson <bruce.richardson@intel.com>,
Vladimir Medvedkin <vladimir.medvedkin@intel.com>,
Chenbo Xia <chenbox@nvidia.com>,
Nipun Gupta <nipun.gupta@amd.com>,
dev@dpdk.org, Thomas Monjalon <thomas@monjalon.net>
Subject: Re: [PATCH 2/2] bus/pci: add selective BAR mapping support
Date: Mon, 23 Nov 2026 09:03:20 -0800 [thread overview]
Message-ID: <20261123090320.33037bfe@phoenix.local> (raw)
In-Reply-To: <CAJFAV8zeicsv9kS5zv8uk4TgpRmz2_TahkYbMvYV+G6GL=rmTw@mail.gmail.com>
On Mon, 23 Nov 2026 08:57:45 +0100
David Marchand <david.marchand@redhat.com> wrote:
> On Mon, 23 Nov 2026 at 07:13, Cheryl Bansal <cheryl.bansal@altera.com> wrote:
> >
> > Drivers that only need a subset of PCI BARs still pay the cost of
> > mapping every valid BAR. There is no bus-level way to select which
> > BARs are mapped without changing each PMD.
> >
> > Add the bar_mask PCI bus argument to select which BARs to map. If it
> > is omitted, all valid BARs are mapped. A zero mask, a value outside
> > BAR0-BAR5, or a malformed value is rejected. The argument is parsed
> > from bus_str so it is not passed to PMDs. UIO and VFIO map slots are
> > indexed by BAR number so primary and secondary processes stay
> > consistent when some BARs are skipped.
> >
> > Example: -a bus=pci,addr=0000:01:00.0,bar_mask=0x05
> >
> > Signed-off-by: Cheryl Bansal <cheryl.bansal@altera.com>
>
> Clearly too late for 26.11.
> And don't Cc: stable.
>
>
> Adding a devargs looks like a bad idea.
> Why should a user know about such an internal consideration?
>
> A change in the internal PCI bus API seems a better direction.
>
> I wonder, which DPDK in-tree driver would benefit from this change?
>
>
Agree. Too late for 26.11 and devargs is not the best way to handle.
I wonder if bus API could allow probe to reject a device?
How does Linux and FreeBSD handle it?
next prev parent reply other threads:[~2026-11-23 17:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 6:13 [PATCH 1/2] hash: fix maybe-uninitialized warning on minsize build Cheryl Bansal
2026-11-23 6:13 ` [PATCH 2/2] bus/pci: add selective BAR mapping support Cheryl Bansal
2026-11-23 7:57 ` David Marchand
2026-11-23 17:03 ` Stephen Hemminger [this message]
2026-12-01 10:39 ` [PATCH v2] bus/pci: map selected BARs from the driver Cheryl Bansal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261123090320.33037bfe@phoenix.local \
--to=stephen@networkplumber.org \
--cc=bruce.richardson@intel.com \
--cc=chenbox@nvidia.com \
--cc=cheryl.bansal@altera.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=nipun.gupta@amd.com \
--cc=sameh.gobriel@intel.com \
--cc=thomas@monjalon.net \
--cc=vladimir.medvedkin@intel.com \
--cc=yipeng1.wang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.