Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1627665
| From | Haiyang Zhang <haiyangz@exchange.microsoft.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] pci-hyperv: Use only 16 bit integer for PCI domain |
| Date | 2017-04-20 18:40 +0200 |
| Message-ID | <tynhE-2OS-19@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> --- drivers/pci/host/pci-hyperv.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c index e73880c..b18dff3 100644 --- a/drivers/pci/host/pci-hyperv.c +++ b/drivers/pci/host/pci-hyperv.c @@ -1334,9 +1334,11 @@ static void put_pcichild(struct hv_pci_dev *hpdev, * can have shorter names than based on the bus instance UUID. * Only the first device serial number is used for domain, so the * domain number will not change after the first device is added. + * The lower 16 bits of the serial number is used, otherwise some + * drivers may not be able to handle it. */ if (list_empty(&hbus->children)) - hbus->sysdata.domain = desc->ser; + hbus->sysdata.domain = desc->ser & 0xFFFF; list_add_tail(&hpdev->list_entry, &hbus->children); spin_unlock_irqrestore(&hbus->device_list_lock, flags); return hpdev; -- 1.7.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll 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