WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Dom0 PCI: fix a regression introduced by the SR-IOV

To: keir.fraser@xxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Dom0 PCI: fix a regression introduced by the SR-IOV change
From: Yu Zhao <yu.zhao@xxxxxxxxx>
Date: Wed, 03 Jun 2009 13:41:29 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 02 Jun 2009 22:43:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.21 (X11/20090409)
The device class may be changed during the early fixup. So need to
re-read the device class from pci_dev after the fixup.

The patch "PCI: centralize device setup code" (c/s 825) wrongly cleaned
up the device class re-read. This patch reverts that change.

Signed-off-by: Yu Zhao <yu.zhao@xxxxxxxxx>
# HG changeset patch
# User Yu Zhao <yu.zhao@xxxxxxxxx>
# Date 1244007008 -28800
# Node ID ec3442c2ed48eb11fcacd3fe31af48932f0a6645
# Parent  97e0d58411d4cee30c16ee1f81d23b72ec7f107c
PCI: fix a regression introduced by the SR-IOV change

The device class may be changed during the early fixup. So need to
re-read the device class from pci_dev after the fixup.

The patch "PCI: centralize device setup code" (c/s 825) wrongly cleaned
up the device class re-read. This patch reverts that change.

Signed-off-by: Yu Zhao <yu.zhao@xxxxxxxxx>

diff -r 97e0d58411d4 -r ec3442c2ed48 drivers/pci/probe.c
--- a/drivers/pci/probe.c       Tue Jun 02 23:43:55 2009 +0100
+++ b/drivers/pci/probe.c       Wed Jun 03 13:30:08 2009 +0800
@@ -721,6 +721,7 @@
 
        /* Early fixups, before probing the BARs */
        pci_fixup_device(pci_fixup_early, dev);
+       class = dev->class >> 8;
 
        switch (dev->hdr_type) {                    /* header type */
        case PCI_HEADER_TYPE_NORMAL:                /* standard header */
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Dom0 PCI: fix a regression introduced by the SR-IOV change, Yu Zhao <=