From: subbu kl Subject: ***SPAM*** Re: [Xen-devel] Re: [ofa-general] Fwd: pciback module not working Date: Thu, 12 Feb 2009 13:15:57 +0530 Message-ID: References: <9c21eeae0809111424v3c8bf001k42b9463a25529e32@mail.gmail.com> <9c21eeae0810171624o208bff4fo9b071a9881d83060@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0410258263==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: general-bounces@lists.openfabrics.org Errors-To: general-bounces@lists.openfabrics.org To: "Jiang, Yunhong" Cc: "xen-devel@lists.xensource.com" , "general@lists.openfabrics.org" List-Id: xen-devel@lists.xenproject.org --===============0410258263== Content-Type: multipart/alternative; boundary=0015175cb5f0262f980462b3e90b --0015175cb5f0262f980462b3e90b Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable so back to square one ? Why QUERY_FW should fail in domU ? ~subbu On Thu, Feb 12, 2009 at 12:30 PM, Jiang, Yunhong w= rote: > DomU access config space through pcibackend, so that message is ok. > > ------------------------------ > *From:* subbu kl [mailto:subbukl@gmail.com] > *Sent:* 2009=C4=EA2=D4=C212=C8=D5 14:59 > > *To:* Jiang, Yunhong > *Cc:* David Brown; xen-devel@lists.xensource.com; > general@lists.openfabrics.org > *Subject:* Re: [Xen-devel] Re: [ofa-general] Fwd: pciback module not > working > > So getting PCI config space access in domU will solve the problem ? if so > how can I achieve that ? > > ~subbu > > On Thu, Feb 12, 2009 at 12:26 PM, Jiang, Yunhong wrote: > >> Sorry that seems the original mail has tried the permissive already :$ >> How will So how will the card do the QEUREY_FW command?Through config >> space or through MMIO? Following information is something strange, why a= ll >> the MMIO range is disabled? >> >> Memory at fdc00000 (64-bit, non-prefetchable) [disabled] [size=3D1= M] >> Memory at fd000000 (64-bit, prefetchable) [disabled] [size=3D8M] >> >> As for the following information, I think it should be harmless since do= mU >> has no method of config spacess access method. >> PCI: Fatal: No PCI config space access function found >> >> Thanks >> Yunhong Jiang >> >> ------------------------------ >> *From:* subbu kl [mailto:subbukl@gmail.com] >> *Sent:* 2009=C4=EA2=D4=C212=C8=D5 14:43 >> >> *To:* Jiang, Yunhong >> *Cc:* David Brown; xen-devel@lists.xensource.com; >> general@lists.openfabrics.org >> *Subject:* Re: [Xen-devel] Re: [ofa-general] Fwd: pciback module not >> working >> >> oops missed it, >> >> well now I dont see that enable permissive...message. here goes the >> messages what I got in dom0 while booting domU >> >> tap tap-1-51712: 2 getting info >> pciback: vpci: 0000:0e:00.0: assign to virtual slot 0 >> device vif1.0 entered promiscuous mode >> ADDRCONF(NETDEV_UP): vif1.0: link is not ready >> blktap: ring-ref 9, event-channel 9, protocol 1 (x86_64-abi) >> PCI: Enabling device 0000:0e:00.0 (0000 -> 0002) >> ACPI: PCI Interrupt 0000:0e:00.0[A] -> GSI 16 (level, low) -> IRQ 16 >> PCI: Setting latency timer of device 0000:0e:00.0 to 64 >> ACPI: PCI interrupt for device 0000:0e:00.0 disabled >> ADDRCONF(NETDEV_CHANGE): vif1.0: link becomes ready >> xenbr0: topology change detected, propagating >> xenbr0: port 3(vif1.0) entering forwarding state >> >> any suspicious message ? >> any Idea why I get that : >> PCI: Fatal: No PCI config space access function found >> rtc: IRQ 8 is not free. >> >> message in domU bootup message ? >> >> ~subbu >> >> On Thu, Feb 12, 2009 at 11:50 AM, Jiang, Yunhong > > wrote: >> >>> So any changes in dom0's dmesg? >>> >>> >>> ------------------------------ >>> *From:* subbu kl [mailto:subbukl@gmail.com] >>> *Sent:* 2009=C4=EA2=D4=C212=C8=D5 13:52 >>> *To:* Jiang, Yunhong >>> *Cc:* David Brown; xen-devel@lists.xensource.com; >>> general@lists.openfabrics.org >>> *Subject:* Re: [Xen-devel] Re: [ofa-general] Fwd: pciback module not >>> working >>> >>> no luck ! >>> dmesg in XEN PV guest shows : >>> >>> ib_mthca: Mellanox InfiniBand HCA driver v1.0 (April 4, 2008) >>> ib_mthca: Initializing 0000:00:00.0 >>> PCI: Enabling device 0000:00:00.0 (0000 -> 0002) >>> PCI: Setting latency timer of device 0000:00:00.0 to 64 >>> ib_mthca 0000:00:00.0: QUERY_FW command failed, aborting. >>> ib_mthca: probe of 0000:00:00.0 failed with error -11 >>> >>> even after executingh the following in dom0: >>> >>> #echo -n 0000:0e:00.0 > /sys/bus/pci/drivers/pciback/permissive >>> >>> I am getting the follwing messages on the console as part of the initia= l >>> bootup messages of the guest: >>> >>> Started domain rhel52_64_3 >>> PCI: Fatal: No PCI config space access function found >>> rtc: IRQ 8 is not free. >>> i8042.c: No controller found. >>> >>> after executing the following in dom0 : >>> #xm create -c rhel52_64_3 >>> >>> >>> so, problem persisits, >>> >>> ~subbu >>> >>> >>> 2009/2/12 Jiang, Yunhong >>> >>>> Seems it is because PCI frontend try to write some configuration spac= e >>>> that PCIback has no config_field entry to support it. >>>> I think you can firstly try to do as dom0's dmesg suggested: "see >>>> permissive attribute in sysfs" (it should be "set permissive attribute= ...", >>>> I think). >>>> >>>> BTW, where you got following log? That seems suggest config space >>>> function not found. >>>> >>>> PCI: Fatal: No PCI config space access function found >>>> rtc: IRQ 8 is not free. >>>> i8042.c: No controller found." >>>> >>>> -- Yunhong Jiang >>>> >>>> ------------------------------ >>>> *From:* xen-devel-bounces@lists.xensource.com [mailto: >>>> xen-devel-bounces@lists.xensource.com] *On Behalf Of *subbu kl >>>> *Sent:* 2009=C4=EA2=D4=C211=C8=D5 22:18 >>>> *To:* David Brown >>>> *Cc:* xen-devel@lists.xensource.com; general@lists.openfabrics.org >>>> *Subject:* [Xen-devel] Re: [ofa-general] Fwd: pciback module not >>>> working >>>> >>>> I am getting the same QUERY_FW failed on RHEL5.2 with xenxen >>>> paravirtualized guest with pciback module. >>>> >>>> No one seems to have tried answering this question on the list, let me >>>> ping xen-devel and ofed people again. >>>> >>>> after executing in dom0 >>>> echo -n 0000:0e:00.0 > /sys/bus/pci/drivers/ib_mthca/unbind >>>> echo -n 0000:0e:00.0 > /sys/bus/pci/drivers/pciback/new_slot >>>> echo -n 0000:0e:00.0 > /sys/bus/pci/drivers/pciback/bind >>>> >>>> #dmesg >>>> ACPI: PCI interrupt for device 0000:0e:00.0 disabled >>>> tap tap-1-51712: 2 getting info >>>> tap tap-2-51712: 2 getting info >>>> pciback 0000:0e:00.0: seizing device >>>> PCI: Enabling device 0000:0e:00.0 (0140 -> 0142) >>>> ACPI: PCI Interrupt 0000:0e:00.0[A] -> GSI 16 (level, low) -> IRQ 16 >>>> ACPI: PCI interrupt for device 0000:0e:00.0 disabled >>>> >>>> #xm create -c rhel52_64_3 >>>> >>>> PCI: Fatal: No PCI config space access function found >>>> rtc: IRQ 8 is not free. >>>> i8042.c: No controller found. >>>> >>>> >>>> GUEST dmesg: >>>> >>>> ib_mthca: Mellanox InfiniBand HCA driver v1.0 (April 4, 2008) >>>> ib_mthca: Initializing 0000:00:00.0 >>>> PCI: Enabling device 0000:00:00.0 (0000 -> 0002) >>>> PCI: Setting latency timer of device 0000:00:00.0 to 64 >>>> ib_mthca 0000:00:00.0: QUERY_FW command failed, aborting. >>>> ib_mthca: probe of 0000:00:00.0 failed with error -11 >>>> >>>> in dom0: >>>> Feb 11 19:44:37 p128 kernel: tap tap-3-51712: 2 getting info >>>> Feb 11 19:44:37 p128 kernel: pciback: vpci: 0000:0e:00.0: assign to >>>> virtual slot 0 >>>> Feb 11 19:44:37 p128 kernel: device vif3.0 entered promiscuous mode >>>> Feb 11 19:44:37 p128 kernel: ADDRCONF(NETDEV_UP): vif3.0: link is not >>>> ready >>>> Feb 11 19:44:39 p128 kernel: blktap: ring-ref 9, event-channel 9, >>>> protocol 1 (x86_64-abi) >>>> Feb 11 19:44:48 p128 kernel: pciback 0000:0e:00.0: Driver tried to wri= te >>>> to a read-only configuration space field at offset 0x44, size 2. This = may be >>>> harmless, but if you have problems with your device: >>>> Feb 11 19:44:48 p128 kernel: 1) see permissive attribute in sysfs >>>> Feb 11 19:44:48 p128 kernel: 2) report problems to the xen-devel maili= ng >>>> list along with details of your device obtained from lspci. >>>> Feb 11 19:44:48 p128 kernel: PCI: Enabling device 0000:0e:00.0 (0000 -= > >>>> 0002) >>>> Feb 11 19:44:48 p128 kernel: ACPI: PCI Interrupt 0000:0e:00.0[A] -> GS= I >>>> 16 (level, low) -> IRQ 16 >>>> Feb 11 19:44:49 p128 kernel: ACPI: PCI interrupt for device 0000:0e:00= .0 >>>> disabled >>>> >>>> >>>> >>>> some more details - [root@p128 ~]# rpm -qa | grep xen >>>> kernel-xen-2.6.18-92.1.22.el5 >>>> xen-3.0.3-64.el5_2.9 >>>> xen-libs-3.0.3-64.el5_2.9 >>>> xen-libs-3.0.3-64.el5_2.9 >>>> >>>> [root@p128 ~]# ibv_devinfo >>>> hca_id: mthca0 >>>> fw_ver: 5.3.0 >>>> node_guid: 0002:c902:0022:cd48 >>>> sys_image_guid: 0002:c902:0022:cd4b >>>> vendor_id: 0x02c9 >>>> vendor_part_id: 25218 >>>> hw_ver: 0x20 >>>> board_id: MT_0370130002 >>>> phys_port_cnt: 2 >>>> port: 1 >>>> state: PORT_INIT (2) >>>> max_mtu: 2048 (4) >>>> active_mtu: 512 (2) >>>> sm_lid: 0 >>>> port_lid: 0 >>>> port_lmc: 0x00 >>>> >>>> port: 2 >>>> state: PORT_DOWN (1) >>>> max_mtu: 2048 (4) >>>> active_mtu: 512 (2) >>>> sm_lid: 0 >>>> port_lid: 0 >>>> port_lmc: 0x00 >>>> >>>> >>>> any help greatly appreciated. >>>> >>>> ~subbu >>>> >>>> On Sat, Oct 18, 2008 at 4:54 AM, David Brown wrote= : >>>> >>>>> Okay so my question to the openfabrics guys is, why would the OFED >>>>> drivers fail to read the firmware? >>>>> >>>>> Any thoughts? >>>>> >>>>> Thanks, >>>>> - David Brown >>>>> >>>>> >>>>> ---------- Forwarded message ---------- >>>>> From: David Brown >>>>> Date: Thu, Sep 11, 2008 at 2:24 PM >>>>> Subject: pciback module not working >>>>> To: xen-users@lists.xensource.com, xen-devel@lists.xensource.com >>>>> >>>>> >>>>> This issue was brought up about a year and a half ago. So I'll bring >>>>> it up again and see if anything happens. >>>>> >>>>> I've got an infiniband network and am attempting to pass the >>>>> infiniband card through the host and give it to the guest. >>>>> I'm working with standard CentOS 5.2 on both guest and host with thei= r >>>>> provided xen (3.0.3 ish). I've also attempted to install the newest >>>>> Xen 3.3 and use their standard host kernel and that did the same >>>>> thing. The guest dmesg output in the guest is similar on both >>>>> permissive and normal mode. >>>>> >>>>> I'm getting issues with detecting the firmware on the card for some >>>>> reason... >>>>> >>>>> Any help would be appreciated. >>>>> >>>>> Thanks, >>>>> - David Brown >>>>> >>>>> =3D=3D=3D GUEST dmesg output =3D=3D=3D >>>>> ib_mthca: Mellanox InfiniBand HCA driver v1.0 (February 28, 2008) >>>>> ib_mthca: Initializing 0000:00:00.0 >>>>> PCI: Enabling device 0000:00:00.0 (0000 -> 0002) >>>>> PCI: Setting latency timer of device 0000:00:00.0 to 64 >>>>> ib_mthca 0000:00:00.0: QUERY_FW command failed, aborting. >>>>> ib_mthca: probe of 0000:00:00.0 failed with error -11 >>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>>> >>>>> =3D=3D=3D Host modprobe.conf =3D=3D=3D >>>>> alias eth0 bnx2 >>>>> alias eth1 bnx2 >>>>> alias scsi_hostadapter cciss >>>>> options pciback hide=3D(41:00.0) >>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>>> >>>>> =3D=3D=3D Host lspci output =3D=3D=3D >>>>> # lspci -vs 41:00.0 >>>>> 41:00.0 InfiniBand: Mellanox Technologies MT25204 [InfiniHost III Lx >>>>> HCA] (rev 20) >>>>> Subsystem: Hewlett-Packard Company Unknown device 170a >>>>> Flags: fast devsel, IRQ 16 >>>>> Memory at fdc00000 (64-bit, non-prefetchable) [disabled] >>>>> [size=3D1M] >>>>> Memory at fd000000 (64-bit, prefetchable) [disabled] [size=3D8M= ] >>>>> Capabilities: [40] Power Management version 2 >>>>> Capabilities: [48] Vital Product Data >>>>> Capabilities: [90] Message Signalled Interrupts: 64bit+ Queue= =3D0/5 >>>>> Enable- >>>>> Capabilities: [84] MSI-X: Enable- Mask- TabSize=3D32 >>>>> Capabilities: [60] Express Endpoint IRQ 0 >>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>>> >>>>> This makes sure it get loaded first off before anything else. >>>>> =3D=3D=3D Host mkinitrd cmd =3D=3D=3D >>>>> # mkinitrd -f --with=3Dpciback --preload pciback >>>>> /boot/initrd-2.6.18-92.1.10.el5xen.img 2.6.18-92.1.10.el5xen >>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>>> >>>>> =3D=3D=3D Host pciback dmesg =3D=3D=3D >>>>> pciback 0000:41:00.0: Driver tried to write to a read-only >>>>> configuration space field at offset 0x44, 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 o= f >>>>> your device obtained from lspci. >>>>> PCI: Enabling device 0000:41:00.0 (0000 -> 0002) >>>>> ACPI: PCI Interrupt 0000:41:00.0[A] -> GSI 16 (level, low) -> IRQ 16 >>>>> PCI: Setting latency timer of device 0000:41:00.0 to 64 >>>>> ACPI: PCI interrupt for device 0000:41:00.0 disabled >>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>>> >>>>> =3D=3D=3D Host pciback dmesg (after setting it permissive) =3D=3D=3D >>>>> pciback 0000:41:00.0: enabling permissive mode configuration space >>>>> accesses! >>>>> pciback 0000:41:00.0: permissive mode is potentially unsafe! >>>>> pciback: vpci: 0000:41:00.0: assign to virtual slot 0 >>>>> device vif1.0 entered promiscuous mode >>>>> ADDRCONF(NETDEV_UP): vif1.0: link is not ready >>>>> blkback: ring-ref 9, event-channel 28, protocol 1 (x86_64-abi) >>>>> PCI: Enabling device 0000:41:00.0 (0000 -> 0002) >>>>> ACPI: PCI Interrupt 0000:41:00.0[A] -> GSI 16 (level, low) -> IRQ 16 >>>>> PCI: Setting latency timer of device 0000:41:00.0 to 64 >>>>> ACPI: PCI interrupt for device 0000:41:00.0 disabled >>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>>> >>>>> =3D=3D=3D Guest lspci output =3D=3D=3D >>>>> # lspci -v >>>>> 00:00.0 InfiniBand: Mellanox Technologies MT25204 [InfiniHost III Lx >>>>> HCA] (rev 20) >>>>> Subsystem: Hewlett-Packard Company Unknown device 170a >>>>> Flags: fast devsel, IRQ 16 >>>>> Memory at fdc00000 (64-bit, non-prefetchable) [disabled] >>>>> [size=3D1M] >>>>> Memory at fd000000 (64-bit, prefetchable) [disabled] [size=3D8M= ] >>>>> Capabilities: [40] Power Management version 2 >>>>> Capabilities: [48] Vital Product Data >>>>> Capabilities: [90] Message Signalled Interrupts: 64bit+ >>>>> Queue=3D0/5 Enable- >>>>> Capabilities: [84] MSI-X: Enable- Mask- TabSize=3D32 >>>>> Capabilities: [60] Express Endpoint IRQ 0 >>>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>>> _______________________________________________ >>>>> general mailing list >>>>> general@lists.openfabrics.org >>>>> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general >>>>> >>>>> To unsubscribe, please visit >>>>> http://openib.org/mailman/listinfo/openib-general >>>>> >>>> >>>> >>>> >>>> -- >>>> . . . s u b b u >>>> "You've got to be original, because if you're like someone else, what = do >>>> they need you for?" >>>> >>>> >>> >>> >>> -- >>> . . . s u b b u >>> "You've got to be original, because if you're like someone else, what d= o >>> they need you for?" >>> >>> >> >> >> -- >> . . . s u b b u >> "You've got to be original, because if you're like someone else, what do >> they need you for?" >> >> > > > -- > . . . s u b b u > "You've got to be original, because if you're like someone else, what do > they need you for?" > > --=20 . . . s u b b u "You've got to be original, because if you're like someone else, what do they need you for?" --0015175cb5f0262f980462b3e90b Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: quoted-printable so back to square one ?
Why QUERY_FW should fail in domU ?

~subb= u

On Thu, Feb 12, 2009 at 12:30 PM, Jiang= , Yunhong <= yunhong.jiang@intel.com> wrote:
Do= mU access config space through pcibackend, so that=20 message is ok.


From: subbu= kl [mailto:subbukl@= gmail.com]=20
Sent: 2009=C4=EA2=D4=C212=C8=D5 14:59

To: Jiang, Yunhong
Cc:=20 David Brown; xen-devel@lists.xensource.com;=20 genera= l@lists.openfabrics.org
Subject: Re: [Xen-devel] Re:=20 [ofa-general] Fwd: pciback module not working

<= /div>
So getting PCI config space access in domU will solve the prob= lem ?=20 if so how can I achieve that ?

~subbu

On Thu, Feb 12, 2009 at 12:26 PM, Jiang, Yunho= ng <yunhong.jiang@intel.com>=20 wrote:
Sorry that seems=20 the original mail has tried the permissive already :$
How will So how=20 will the card do the QEUREY_FW command?Through config space or through = MMIO?=20 Following information is something strange, why all the MMIO range is= =20 disabled?
 
      Me= mory at=20 fdc00000 (64-bit, non-prefetchable) [disabled] [size=3D1M]
  &n= bsp;=20   Memory at fd000000 (64-bit, prefetchable) [disabled]=20 [size=3D8M]
 
As for the=20 following information, I think it should be harmless since domU has no= =20 method of config spacess access method.
 PCI: Fatal: No PCI con= fig space=20 access function found
 
Thanks
Yunhong Jiang


From: subbu kl [mailto:subbukl@gmail.com]=20
Sent: 2009=C4=EA2=D4=C212=C8=D5 14:43

To: Jiang, Yunhong
Cc: David Brown;=20 xe= n-devel@lists.xensource.com; general@lists.openfabrics.org
Subject: Re:=20 [Xen-devel] Re: [ofa-general] Fwd: pciback module not=20 working

oops missed it,

well now I dont see that enable=20 permissive...message. here goes the messages what I got in dom0 while= =20 booting domU

tap tap-1-51712: 2 getting info
pciback: vpci= :=20 0000:0e:00.0: assign to virtual slot 0
device vif1.0 entered=20 promiscuous mode
ADDRCONF(NETDEV_UP): vif1.0: link is not=20 ready
blktap: ring-ref 9, event-channel 9, protocol 1=20 (x86_64-abi)
PCI: Enabling device 0000:0e:00.0 (0000 ->=20 0002)
ACPI: PCI Interrupt 0000:0e:00.0[A] -> GSI 16 (level, low= )=20 -> IRQ 16
PCI: Setting latency timer of device 0000:0e:00.0 to= =20 64
ACPI: PCI interrupt for device 0000:0e:00.0=20 disabled
ADDRCONF(NETDEV_CHANGE): vif1.0: link becomes ready
xe= nbr0:=20 topology change detected, propagating
xenbr0: port 3(vif1.0) enter= ing=20 forwarding state

any suspicious message ?
any Idea why I g= et=20 that :
 PCI: Fatal: No = PCI config=20 space access function found
rtc: IRQ 8 is not free.

message in domU bootup=20 message ?

~subbu

On Thu, Feb 12, 2009 at 11:50 AM, Jiang, Y= unhong=20 <yunhong.jiang@intel.com> wrote:
So=20 any changes in dom0's dmesg?<= /div>
 


From: subbu kl [mailto:subbukl@gmail.com]= =20
Sent: 2009=C4=EA2=D4=C212=C8=D5 13:52
To: Ji= ang,=20 Yunhong
Cc: David Brown; xen-devel@lists.xensource.com; general@lis= ts.openfabrics.org
Subject: Re:=20 [Xen-devel] Re: [ofa-general] Fwd: pciback module not=20 working

no luck=20 !
 dmesg in XEN PV guest shows :
 
ib_mthca: = Mellanox=20 InfiniBand HCA driver v1.0 (April 4, 2008)
ib_mthca: Initializ= ing=20 0000:00:00.0
PCI: Enabling device 0000:00:00.0 (0000 ->=20 0002)
PCI: Setting latency timer of device 0000:00:00.0 to=20 64
ib_mthca 0000:00:00.0: QUERY_FW command failed,=20 aborting.
ib_mthca: probe of 0000:00:00.0 failed with error=20 -11

even after executingh the following in=20 dom0:

#echo -n 0= 000:0e:00.0=20 > /sys/bus/pci/drivers/pciback/permissive

I am getting the follwing messages on the consol= e as part=20 of the initial bootup messages of the guest:
 
Started do= main=20 rhel52_64_3
PCI: Fatal: No PCI config space access function=20 found
rtc: IRQ 8 is not free.
i8042.c: No controller=20 found.

after executing the following in dom0 = :
#xm create= -c=20 rhel52_64_3


so, problem=20 persisits,
&nb= sp;
~subbu


2009/2/12 Jiang, Yunhong <yunho= ng.jiang@intel.com>
Seems it is because PCI frontend try to wri= te some=20 configuration space that PCIback has no config_field entry to= =20 support it.
I=20 think you can firstly try to do as dom0's dmesg suggested: = "see permi= ssive attribute=20 in sysfs" (it should be "set permissive attribute...&= quot;, I=20 think).
 
BTW, where you got following log? That= seems suggest=20 config space function not found.
<= /font>
PCI: Fatal: No PCI config=20 space access function found
rtc: IRQ 8 is not free.
i8042= .c:=20 No controller found."
 
-- Yunhong Jiang
I am getting the same QUERY_FW failed on RHEL5.2 w= ith=20 xenxen paravirtualized guest with pciback module.

No o= ne=20 seems to have tried answering this question on the list, let = me=20 ping xen-devel and ofed people again.

after executing = in=20 dom0
echo -n 0000:0e:00.0 >=20 /sys/bus/pci/drivers/ib_mthca/unbind
echo -n 0000:0e:00.0 = >=20 /sys/bus/pci/drivers/pciback/new_slot
echo -n 0000:0e:00.0= >=20 /sys/bus/pci/drivers/pciback/bind

#dmesg
ACPI: PCI= =20 interrupt for device 0000:0e:00.0 disabled
tap tap-1-51712= : 2=20 getting info
tap tap-2-51712: 2 getting info
pciback=20 0000:0e:00.0: seizing device
PCI: Enabling device 0000:0e:= 00.0=20 (0140 -> 0142)
ACPI: PCI Interrupt 0000:0e:00.0[A] ->= ; GSI=20 16 (level, low) -> IRQ 16
ACPI: PCI interrupt for devic= e=20 0000:0e:00.0 disabled

#xm create -c rhel52_64_3
PCI:=20 Fatal: No PCI config space access function found
rtc: IRQ = 8 is=20 not free.
i8042.c: No controller found.


GUEST= =20 dmesg:

ib_mthca: Mellanox InfiniBand HCA driver v1.0 (= April=20 4, 2008)
ib_mthca: Initializing 0000:00:00.0
PCI: Enabl= ing=20 device 0000:00:00.0 (0000 -> 0002)
PCI: Setting latency= =20 timer of device 0000:00:00.0 to 64
ib_mthca 0000:00:00.0:= =20 QUERY_FW command failed, aborting.
ib_mthca: probe of=20 0000:00:00.0 failed with error -11

in dom0:
Feb 11= =20 19:44:37 p128 kernel: tap tap-3-51712: 2 getting info
Feb = 11=20 19:44:37 p128 kernel: pciback: vpci: 0000:0e:00.0: assign to= =20 virtual slot 0
Feb 11 19:44:37 p128 kernel: device vif3.0= =20 entered promiscuous mode
Feb 11 19:44:37 p128 kernel:=20 ADDRCONF(NETDEV_UP): vif3.0: link is not ready
Feb 11 19:4= 4:39=20 p128 kernel: blktap: ring-ref 9, event-channel 9, protocol 1= =20 (x86_64-abi)
Feb 11 19:44:48 p128 kernel: pciback 0000:0e:= 00.0:=20 Driver tried to write to a read-only configuration space fiel= d at=20 offset 0x44, size 2. This may be harmless, but if you have=20 problems with your device:
Feb 11 19:44:48 p128 kernel: 1)= see=20 permissive attribute in sysfs
Feb 11 19:44:48 p128 kernel:= 2)=20 report problems to the xen-devel mailing list along with deta= ils=20 of your device obtained from lspci.
Feb 11 19:44:48 p128= =20 kernel: PCI: Enabling device 0000:0e:00.0 (0000 -> 0002)Feb=20 11 19:44:48 p128 kernel: ACPI: PCI Interrupt 0000:0e:00.0[A] = ->=20 GSI 16 (level, low) -> IRQ 16
Feb 11 19:44:49 p128 kern= el:=20 ACPI: PCI interrupt for device 0000:0e:00.0=20 disabled



some more details - [root@p128 ~]# rp= m -qa=20 | grep=20 xen
kernel-xen-2.6.18-92.1.22.el5
xen-3.0.3-64.el5_2.9<= br>xen-libs-3.0.3-64.el5_2.9
xen-libs-3.0.3-64.el5_2.9

[root@p128= =20 ~]# ibv_devinfo
hca_id:=20 mthca0
       =20 fw_ver:         =             &nb= sp;  =20 5.3.0
       =20 node_guid:        &nb= sp;            = =20 0002:c902:0022:cd48
      &n= bsp;=20 sys_image_guid:       &nbs= p;        =20 0002:c902:0022:cd4b
      &n= bsp;=20 vendor_id:        &nb= sp;            = =20 0x02c9
       =20 vendor_part_id:       &nbs= p;        =20 25218
       =20 hw_ver:         =             &nb= sp;  =20 0x20
       =20 board_id:        &nbs= p;            &= nbsp;=20 MT_0370130002
       = =20 phys_port_cnt:        = ;         =20 2
         &n= bsp;     =20 port:  =20 1
         &n= bsp;            = ; =20 state:         &= nbsp;       =20 PORT_INIT=20 (2)
         =             &nb= sp; =20 max_mtu:         = ;      =20 2048=20 (4)
         =             &nb= sp; =20 active_mtu:        &n= bsp;   =20 512=20 (2)
         =             &nb= sp; =20 sm_lid:         =        =20 0
         &n= bsp;            = ; =20 port_lid:        &nbs= p;     =20 0
         &n= bsp;            = ; =20 port_lmc:        &nbs= p;     =20 0x00

        &= nbsp;      =20 port:  =20 2
         &n= bsp;            = ; =20 state:         &= nbsp;       =20 PORT_DOWN=20 (1)
         =             &nb= sp; =20 max_mtu:         = ;      =20 2048=20 (4)
         =             &nb= sp; =20 active_mtu:        &n= bsp;   =20 512=20 (2)
         =             &nb= sp; =20 sm_lid:         =        =20 0
         &n= bsp;            = ; =20 port_lid:        &nbs= p;     =20 0
         &n= bsp;            = ; =20 port_lmc:        &nbs= p;     =20 0x00


any help greatly=20 appreciated.

~subbu

On Sat, Oct 18, 2008 at 4:54 AM, D= avid=20 Brown <dmlb2000@gmail.com> wrote:
Oka= y=20 so my question to the openfabrics guys is, why would the=20 OFED
drivers fail to read the firmware?

Any=20 thoughts?

Thanks,
- David Brown


------= ----=20 Forwarded message ----------
From: David Brown <dmlb2000@gmail.com&g= t;
Date: Thu, Sep 11,=20 2008 at 2:24 PM
Subject: pciback module not working
T= o: xen-u= sers@lists.xensource.com, xen-devel@lists.xensource.com


This=20 issue was brought up about a year and a half ago. So I'= ll=20 bring
it up again and see if anything happens.

I&= #39;ve=20 got an infiniband network and am attempting to pass=20 the
infiniband card through the host and give it to the= =20 guest.
I'm working with standard CentOS 5.2 on both = guest and=20 host with their
provided xen (3.0.3 ish). I've also = attempted=20 to install the newest
Xen 3.3 and use their standard hos= t=20 kernel and that did the same
thing. The guest dmesg outp= ut in=20 the guest is similar on both
permissive and normal=20 mode.

I'm getting issues with detecting the firm= ware on=20 the card for some reason...

Any help would be=20 appreciated.

Thanks,
- David Brown

=3D=3D= =3D GUEST=20 dmesg output =3D=3D=3D
ib_mthca: Mellanox InfiniBand HCA= driver=20 v1.0 (February 28, 2008)
ib_mthca: Initializing=20 0000:00:00.0
PCI: Enabling device 0000:00:00.0 (0000 -&g= t;=20 0002)
PCI: Setting latency timer of device 0000:00:00.0 = to=20 64
ib_mthca 0000:00:00.0: QUERY_FW command failed,=20 aborting.
ib_mthca: probe of 0000:00:00.0 failed with er= ror=20 -11
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D

=3D=3D=3D Host modprobe.conf=20 =3D=3D=3D
alias eth0 bnx2
alias eth1 bnx2
alias=20 scsi_hostadapter cciss
options pciback=20 hide=3D(41:00.0)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D

=3D=3D=3D Host lspci=20 output =3D=3D=3D
# lspci -vs 41:00.0
41:00.0 InfiniBa= nd:=20 Mellanox Technologies MT25204 [InfiniHost III Lx
HCA] (r= ev=20 20)
      Subsystem: Hewlett-Packard Comp= any=20 Unknown device 170a
      Flags: fast dev= sel,=20 IRQ 16
      Memory at fdc00000 (64-bit,= =20 non-prefetchable) [disabled] [size=3D1M]
    &= nbsp;=20 Memory at fd000000 (64-bit, prefetchable) [disabled]=20 [size=3D8M]
      Capabilities: [40] Powe= r=20 Management version 2
      Capabilities: = [48]=20 Vital Product Data
      Capabilities: [9= 0]=20 Message Signalled Interrupts: 64bit+ Queue=3D0/5 Enable- =20     Capabilities: [84] MSI-X: Enable- Mask-=20 TabSize=3D32
      Capabilities: [60] Exp= ress=20 Endpoint IRQ 0
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D

This makes sure=20 it get loaded first off before anything else.
=3D=3D=3D = Host=20 mkinitrd cmd =3D=3D=3D
# mkinitrd -f --with=3Dpciback --= preload=20 pciback
/boot/initrd-2.6.18-92.1.10.el5xen.img=20 2.6.18-92.1.10.el5xen
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D

=3D=3D=3D Host=20 pciback dmesg =3D=3D=3D
pciback 0000:41:00.0: Driver tri= ed to write=20 to a read-only
configuration space field at offset 0x44,= size=20 2. This may be
harmless, but if you have problems with y= our=20 device:
1) see permissive attribute in sysfs
2) repor= t=20 problems to the xen-devel mailing list along with details= =20 of
your device obtained from lspci.
PCI: Enabling dev= ice=20 0000:41:00.0 (0000 -> 0002)
ACPI: PCI Interrupt=20 0000:41:00.0[A] -> GSI 16 (level, low) -> IRQ 16
P= CI:=20 Setting latency timer of device 0000:41:00.0 to 64
ACPI:= PCI=20 interrupt for device 0000:41:00.0=20 disabled
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D

=3D=3D=3D Host pciback dmesg=20 (after setting it permissive) =3D=3D=3D
pciback 0000:41:= 00.0:=20 enabling permissive mode configuration space=20 accesses!
pciback 0000:41:00.0: permissive mode is=20 potentially unsafe!
pciback: vpci: 0000:41:00.0: assign = to=20 virtual slot 0
device vif1.0 entered promiscuous=20 mode
ADDRCONF(NETDEV_UP): vif1.0: link is not=20 ready
blkback: ring-ref 9, event-channel 28, protocol 1= =20 (x86_64-abi)
PCI: Enabling device 0000:41:00.0 (0000 -&g= t;=20 0002)
ACPI: PCI Interrupt 0000:41:00.0[A] -> GSI 16= =20 (level, low) -> IRQ 16
PCI: Setting latency timer of= =20 device 0000:41:00.0 to 64
ACPI: PCI interrupt for device= =20 0000:41:00.0=20 disabled
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D

=3D=3D=3D=20 Guest lspci output =3D=3D=3D
# lspci -v
00:00.0 Infin= iBand:=20 Mellanox Technologies MT25204 [InfiniHost III Lx
HCA] (r= ev=20 20)
      Subsystem: Hewlett-Packard Comp= any=20 Unknown device 170a
      Flags: fast dev= sel,=20 IRQ 16
      Memory at fdc00000 (64-bit,= =20 non-prefetchable) [disabled] [size=3D1M]
    &= nbsp;=20 Memory at fd000000 (64-bit, prefetchable) [disabled]=20 [size=3D8M]
      Capabilities: [40] Powe= r=20 Management version 2
      Capabilities: = [48]=20 Vital Product Data
      Capabilities: [9= 0]=20 Message Signalled Interrupts: 64bit+
Queue=3D0/5=20 Enable-
      Capabilities: [84] MSI-X:= =20 Enable- Mask- TabSize=3D32
      Capabili= ties:=20 [60] Express Endpoint IRQ=20 0
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D
_______________________________________________
general=20 mailing list
general@lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To=20 unsubscribe, please visit http://openib.org/mailman/li= stinfo/openib-general



-= -
. . . s u b b u
"You've got to be=20 original, because if you're like someone else, what do th= ey need=20 you for?"



--
. . . s u b b u
"You've= got to be original,=20 because if you're like someone else, what do they need you=20 for?"
<= br>

--
. . . s u b b u
"You've got to = be original,=20 because if you're like someone else, what do they need you=20 for?"

<= br clear=3D"all">
--
. . . s u b b u
"You've got to be o= riginal, because if=20 you're like someone else, what do they need you=20 for?"



--
. . . s u b b u
&quo= t;You've got to be original, because if you're like someone else, w= hat do they need you for?"
--0015175cb5f0262f980462b3e90b-- --===============0410258263== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0410258263==--