[PATCH] pci-hyperv: Use only 16 bit integer for PCI domain

Haiyang Zhang haiyangz at microsoft.com
Thu Apr 20 18:37:35 UTC 2017


> -----Original Message-----
> From: Bjorn Helgaas [mailto:bhelgaas at google.com]
> Sent: Thursday, April 20, 2017 2:33 PM
> To: Haiyang Zhang <haiyangz at microsoft.com>
> Cc: linux-pci at vger.kernel.org; KY Srinivasan <kys at microsoft.com>;
> Stephen Hemminger <sthemmin at microsoft.com>; olaf at aepfle.de;
> vkuznets at redhat.com; driverdev-devel at linuxdriverproject.org; linux-
> kernel at vger.kernel.org
> Subject: Re: [PATCH] pci-hyperv: Use only 16 bit integer for PCI domain
> 
> On Thu, Apr 20, 2017 at 11:35 AM, Haiyang Zhang
> <haiyangz at exchange.microsoft.com> wrote:
> > From: Haiyang Zhang <haiyangz at microsoft.com>
> >
> > This patch uses the lower 16 bits of the serial number as PCI
> > domain, otherwise some drivers may not be able to handle it.
> 
> Can you give any more details about this?  Which drivers, for
> instance?  Why do drivers care about the domain at all?  Can we or
> should we make this more explicit and consistent in the PCI core,
> e.g., pci_domain_nr() is currently defined to return "int"; maybe it
> should be u32?  (Although I think "int" is the same size as "u32" on
> all arches anyway).

It's Nvidia driver.

Piotr, could you explain why the driver expects 16 bit domain number?

Thanks,
- Haiyang


More information about the devel mailing list