From: Bjorn Helgaas <helgaas@kernel.org>
To: Keith Busch <keith.busch@intel.com>
Cc: linux-pci@vger.kernel.org, Martin Mares <mj@ucw.cz>
Subject: Re: [RFC PATCHv2] x86/pci: Initial commit for new VMD device driver
Date: Fri, 9 Oct 2015 13:09:10 -0500 [thread overview]
Message-ID: <20151009180910.GB16112@localhost> (raw)
In-Reply-To: <alpine.LNX.2.00.1510082115120.27742@localhost.lm.intel.com>
[+cc Martin]
On Thu, Oct 08, 2015 at 09:33:10PM +0000, Keith Busch wrote:
> On Thu, 8 Oct 2015, Bjorn Helgaas wrote:
> >On Wed, Oct 07, 2015 at 12:21:02AM +0000, Keith Busch wrote:
> >>Thank you for bringing this up as I hadn't thought much about it and may
> >>have misunderstood the meaning of _SEG. AIUI, it is used to identify a
> >>logical grouping. The OS does not need to use the same identifier for
> >>the domain, so we there's no need to collide if we can assign the domain
> >>of a a new _SEG to the next available domain_nr.
> >
> >Yes, I guess it would be possible to decouple _SEG and Linux PCI
> >domain numbers. It's *convenient* to have them the same, so dmesg and
> >lspci output matches _SEG directly, but I guess you could argue that's
> >not essential.
> >
> >I think we'd have to maintain a mapping from domain back to _SEG to
> >deal with firmware interfaces that expect _SEG, e.g., ia64 PAL calls.
>
> It looks like there are lots of assumptions in the kernel that segment
> and domain are the same thing. I don't have the necessary h/w to test
> any changes here to verify the mappings are handled correctly, so I'm
> apprehensive to start changing this much code that I can't test.
Yes, this could be a real can of worms.
> Given that domain_nr is a 32-bit integer, APCI's _SEG is only 16 bits,
> and the pci domain is purely a software construct, do you see any problem
> if we start these 'special' domains at 0x10000? I've tested this in
> the driver and lspci + setpci with the single line update in pciutils'
> lib/pci.h, and it all seems to work just fine.
If you make the kernel start using domain numbers that don't fit in 16
bits, what happens if you run the old lspci on a new kernel?
Bjorn
next prev parent reply other threads:[~2015-10-09 18:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-01 17:44 [RFC PATCHv2] x86/pci: Initial commit for new VMD device driver Keith Busch
2015-10-03 9:45 ` Ingo Molnar
2015-10-05 14:34 ` Keith Busch
2015-10-05 16:46 ` Ingo Molnar
2015-10-05 18:03 ` Keith Busch
2015-10-04 0:29 ` kbuild test robot
2015-10-06 23:14 ` Bjorn Helgaas
2015-10-07 0:21 ` Keith Busch
2015-10-07 16:04 ` Keith Busch
2015-10-08 13:29 ` Bjorn Helgaas
2015-10-08 13:47 ` Bjorn Helgaas
2015-10-08 21:33 ` Keith Busch
2015-10-09 18:09 ` Bjorn Helgaas [this message]
2015-10-09 19:22 ` Keith Busch
2015-10-13 9:57 ` Martin Mares
2015-10-12 21:05 ` Keith Busch
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=20151009180910.GB16112@localhost \
--to=helgaas@kernel.org \
--cc=keith.busch@intel.com \
--cc=linux-pci@vger.kernel.org \
--cc=mj@ucw.cz \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).