[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] ioremap() returns NULL on PV pass-through


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Masroor Vettuparambil" <Masroor.Vettuparambil@xxxxxxxxxxxx>
  • Date: Wed, 11 Mar 2009 07:47:38 -0400
  • Delivery-date: Wed, 11 Mar 2009 04:48:44 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcmiPy1MSrl+04SYQyKy/7ubU8v9Tg==
  • Thread-topic: ioremap() returns NULL on PV pass-through

Hi all,

When loading the network driver on the exposed PCI slot from domU, the
ioremap of bar0 works. But for bar1 it always returns NULL and hence
exits from probe entry.

Lspci output from DomU is,

03:00.0 Ethernet controller: S2io Inc. Unknown device 5833 (rev 01)
        Subsystem: S2io Inc. Unknown device 6030
        Flags: fast devsel, IRQ 21
        BIST result: 00
        Memory at ca000000 (64-bit, prefetchable) [disabled] [size=8M]
        Memory at c650f000 (64-bit, prefetchable) [disabled] [size=4K]
        Memory at c650e000 (64-bit, prefetchable) [disabled] [size=256]
        Capabilities: [40] Power Management version 3
        Capabilities: [70] Express Endpoint IRQ 8
        Capabilities: [a0] MSI-X: Enable- Mask- TabSize=8
        Capabilities: [c0] Vital Product Data
        Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+
Queue=0/5 Enable-

03:00.1 Ethernet controller: S2io Inc. Unknown device 5833 (rev 01)
        Subsystem: S2io Inc. Unknown device 6030
        Flags: fast devsel, IRQ 21
        Memory at c9800000 (64-bit, prefetchable) [disabled] [size=8M]
        Memory at c650d000 (64-bit, prefetchable) [disabled] [size=4K]
        Memory at c650c000 (64-bit, prefetchable) [disabled] [size=256]
        Capabilities: [40] Power Management version 3
        Capabilities: [70] Express Endpoint IRQ 8
        Capabilities: [a0] MSI-X: Enable- Mask- TabSize=8

Bar addresses have been page-aligned using the reassigndev parameter.

Xm dmesg shows the following error,
(XEN) mm.c:703:d2 Non-privileged (2) attempt to map I/O space 000c650d
(XEN) mm.c:703:d2 Non-privileged (2) attempt to map I/O space 000c650f
(XEN) mm.c:703:d2 Non-privileged (2) attempt to map I/O space 000c650d
(XEN) mm.c:703:d2 Non-privileged (2) attempt to map I/O space 000c650f
(XEN) mm.c:703:d2 Non-privileged (2) attempt to map I/O space 000c650d
(XEN) mm.c:703:d2 Non-privileged (2) attempt to map I/O space 000c650f
(XEN) mm.c:703:d2 Non-privileged (2) attempt to map I/O space 000c650d

Let me know if you need more information.

Thanks,
Masroor 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.