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-bugs

[Xen-bugs] [Bug 920] New: Failed while setting pci_set_power_state() fro

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 920] New: Failed while setting pci_set_power_state() from a 'PCI-passthrued' driver domain
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Thu, 8 Mar 2007 21:57:45 -0800
Delivery-date: Thu, 08 Mar 2007 21:58:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=920

           Summary: Failed while setting pci_set_power_state() from a 'PCI-
                    passthrued' driver domain
           Product: Xen
           Version: 3.0.4
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Hardware Support
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: jambunathan@xxxxxxxxxx
                CC: jambunathan@xxxxxxxxxx


(Accepted as a bug. Related mail thread -
http://lists.xensource.com/archives/html/xen-devel/2007-03/msg00357.html)

Shouldn't pciback_field_is_dup(dev, field->offset) be scoped to include the
base_offset as well?

Currently with xen-3.0.4 the issue is this:

Adding of  PCI_PM_CTRL (at offset 4)  to the 'config_fields list' gets skipped
because it ends up being a duplicate of PCI_COMMAND (at offset 4 as well).  As
a result when a PCI device behind a PCI frontend does a power up using
pci_enable_device() the following message gets flashed on the console.

pciback 0000:0b:00.3: Driver tried to write to a read-only configuration space
field at offset 0x84, size 2. This may be harmless, but if you have problems
with your device:
1) see permissive attribute in sysfs
2) report problems to the xen-devel mailing list along with details of your
device obtained from lspci. 

Here is quick log from frontend debug showing this happening:

pciback 0000:0b:00.3: added config field at offset 0x04
pciback 0000:0b:00.3: added config field at offset 0x3c
pciback 0000:0b:00.3: added config field at offset 0x3d
pciback 0000:0b:00.3: added config field at offset 0x0c
pciback 0000:0b:00.3: added config field at offset 0x0d
pciback 0000:0b:00.3: added config field at offset 0x0f
pciback 0000:0b:00.3: added config field at offset 0x10
pciback 0000:0b:00.3: added config field at offset 0x14
pciback 0000:0b:00.3: added config field at offset 0x18
pciback 0000:0b:00.3: added config field at offset 0x1c
pciback 0000:0b:00.3: added config field at offset 0x20
pciback 0000:0b:00.3: added config field at offset 0x24
pciback 0000:0b:00.3: added config field at offset 0x30

pciback 0000:0b:00.3: Found capability 0x1 at 0x80

pciback 0000:0b:00.3: added config field at offset 0x80
pciback 0000:0b:00.3: added config field at offset 0x82
------------>     0x80 + 4 missing here    <------ 
pciback 0000:0b:00.3: added config field at offset 0x86
pciback 0000:0b:00.3: added config field at offset 0x87


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs

<Prev in Thread] Current Thread [Next in Thread>