Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1294078

Re: [PATCHv5 7/7] pciutils: Allow 32-bit domains

From Keith Busch <keith.busch@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCHv5 7/7] pciutils: Allow 32-bit domains
Date 2015-12-17 18:40 +0100
Message-ID <qGKH0-2up-1@gated-at.bofh.it> (permalink)
References <qDbFL-1D6-7@gated-at.bofh.it> <qDbFL-1D6-11@gated-at.bofh.it> <qGKnF-2nS-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Dec 17, 2015 at 11:15:45AM -0600, Bjorn Helgaas wrote:
> > @@ -45,7 +45,7 @@ pci_filter_parse_slot_v33(struct pci_filter *f, char *str)
> >  	  if (str[0] && strcmp(str, "*"))
> >  	    {
> >  	      long int x = strtol(str, &e, 16);
> > -	      if ((e && *e) || (x < 0 || x > 0xffff))
> > +	      if ((e && *e) || (x < 0))
> 
> Just out of curiosity (I don't maintain pciutils; Martin would apply
> this one), is there some part of the PCI or PCI firmware spec that is
> relevant to this change?  Maybe this is connected to parsing things
> exported by the kernel and not directly tied to PCI at the spec level.
>
> Whatever it is, a pointer to the producer of the information you're
> consuming here would help us understand and review the patch.

Hi Bjorn,

This is not tied to anything defined in PCI spec. Domain numbers being
a software construct (ACPI6, ยง6.5.6), we don't need to constrain the
representation. ACPI defines 16-bit segments, and domains provided by
this new host bridge do not define _SEG, so this series proposes domain
numbers outside the ACPI reachable range to avoid potential clashes.

The pciutils patch just synchronizes the essential tooling software with
the kernel software's new representation.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCHv5 7/7] pciutils: Allow 32-bit domains Bjorn Helgaas <helgaas@kernel.org> - 2015-12-17 18:20 +0100
  Re: [PATCHv5 7/7] pciutils: Allow 32-bit domains Keith Busch <keith.busch@intel.com> - 2015-12-17 18:40 +0100
    Re: [PATCHv5 7/7] pciutils: Allow 32-bit domains Bjorn Helgaas <helgaas@kernel.org> - 2015-12-17 19:30 +0100

csiph-web