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] ioremap() returns NULL on PV pass-through

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] ioremap() returns NULL on PV pass-through
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
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
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] ioremap() returns NULL on PV pass-through, Masroor Vettuparambil <=