← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1684971] Re: [Hyper-V][SAUCE] pci-hyperv: Use only 16 bit integer for PCI domain

 

This bug was fixed in the package linux-azure - 4.18.0-1013.13

---------------
linux-azure (4.18.0-1013.13) cosmic; urgency=medium

  * linux-azure: 4.18.0-1013.13 -proposed tracker (LP: #1818128)

  * linux-azure - Add the same 4.15 InfiniBand configuration settings to the
    4.18 kernel (LP: #1818141)
    - [Config] linux-azure: CONFIG_INFINIBAND_{USER_MAD,IPOIB,IPOIB_DEBUG}=y

  * Packaging resync (LP: #1786013)
    - [Packaging] resync getabis
    - [Packaging] update helper scripts

  * [Hyper-V][SAUCE] pci-hyperv: Use only 16 bit integer for PCI domain
    (LP: #1684971)
    - SAUCE: pci-hyperv: Use only 16 bit integer for PCI domain

 -- Marcelo Henrique Cerri <marcelo.cerri@xxxxxxxxxxxxx>  Thu, 28 Feb
2019 19:09:26 -0300

** Changed in: linux-azure (Ubuntu Cosmic)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1684971

Title:
  [Hyper-V][SAUCE] pci-hyperv: Use only 16 bit integer for PCI domain

Status in linux package in Ubuntu:
  Fix Released
Status in linux-azure package in Ubuntu:
  Fix Released
Status in linux source package in Xenial:
  Fix Released
Status in linux-azure source package in Xenial:
  Invalid
Status in linux source package in Yakkety:
  Fix Released
Status in linux-azure source package in Yakkety:
  Invalid
Status in linux source package in Zesty:
  Fix Released
Status in linux-azure source package in Zesty:
  Invalid
Status in linux source package in Artful:
  Fix Released
Status in linux-azure source package in Artful:
  Invalid
Status in linux source package in Cosmic:
  Invalid
Status in linux-azure source package in Cosmic:
  Fix Released

Bug description:
  The following patch fixes a problem with "[PATCH] pci-hyperv: Use
  device serial number as PCI domain" where some drivers were expecting
  a u16 instead of a u32 for PCI device serial numbers, as observed by
  Oops and hangs in Azure on NC and NV GPU instances.

  From: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>

  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@xxxxxxxxxxxxx>
  ---
   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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1684971/+subscriptions