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


Groups > linux.kernel > #1627736

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

From Haiyang Zhang <haiyangz@microsoft.com>
Newsgroups linux.kernel
Subject RE: [PATCH] pci-hyperv: Use only 16 bit integer for PCI domain
Date 2017-04-20 20:40 +0200
Message-ID <typ9L-3Yq-7@gated-at.bofh.it> (permalink)
References <tynhE-2OS-19@gated-at.bofh.it> <typ9L-3Yq-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> -----Original Message-----
> From: Bjorn Helgaas [mailto:bhelgaas@google.com]
> Sent: Thursday, April 20, 2017 2:33 PM
> To: Haiyang Zhang <haiyangz@microsoft.com>
> Cc: linux-pci@vger.kernel.org; KY Srinivasan <kys@microsoft.com>;
> Stephen Hemminger <sthemmin@microsoft.com>; olaf@aepfle.de;
> vkuznets@redhat.com; driverdev-devel@linuxdriverproject.org; linux-
> kernel@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@exchange.microsoft.com> wrote:
> > From: Haiyang Zhang <haiyangz@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

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


Thread

[PATCH] pci-hyperv: Use only 16 bit integer for PCI domain Haiyang Zhang <haiyangz@exchange.microsoft.com> - 2017-04-20 18:40 +0200
  RE: [PATCH] pci-hyperv: Use only 16 bit integer for PCI domain Haiyang Zhang <haiyangz@microsoft.com> - 2017-04-20 20:40 +0200
    Re: [PATCH] pci-hyperv: Use only 16 bit integer for PCI domain Christoph Hellwig <hch@infradead.org> - 2017-04-20 21:20 +0200
  Re: [PATCH] pci-hyperv: Use only 16 bit integer for PCI domain Bjorn Helgaas <bhelgaas@google.com> - 2017-04-20 20:40 +0200

csiph-web