I think we need this feature at least for debugging purpose, right? Or, do we already have this feature? Thanks, Neo -- I would remember that if researchers were not ambitious probably today we haven''t the technology we are using! _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Cui, Dexuan
2008-Sep-03 00:07 UTC
RE: [Xen-devel] Can we disable secondary_bus_reset in runtime?
Hi Neo, I think you mean the python function do_secondary_bus_reset(). Could you please detail the issue you meet with? If you want to not use that for debug''s perpose temporarily, you can just modify tools/python/xen/util/pci.py: do_FLR(). (and you may also need to remove some checkings in tools/python/xen/xend/server/pciif.py:setupDevice()), then execute "xend restart" to make the changes take effect. -- Dexuan -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Neo Jia Sent: 2008年9月3日 7:41 To: xen-devel@lists.xensource.com Subject: [Xen-devel] Can we disable secondary_bus_reset in runtime? I think we need this feature at least for debugging purpose, right? Or, do we already have this feature? Thanks, Neo -- I would remember that if researchers were not ambitious probably today we haven''t the technology we are using! _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Neo Jia
2008-Sep-03 00:22 UTC
Re: [Xen-devel] Can we disable secondary_bus_reset in runtime?
Which one I need to change? /usr/lib64/ptython/xen/util/pci.py or the one in the tools/python/xen/util/pci.py? Thanks, Neo 2008/9/2 Cui, Dexuan <dexuan.cui@intel.com>:> Hi Neo, > I think you mean the python function do_secondary_bus_reset(). > Could you please detail the issue you meet with? > If you want to not use that for debug's perpose temporarily, you can just modify tools/python/xen/util/pci.py: do_FLR(). (and you may also need to remove some checkings in tools/python/xen/xend/server/pciif.py:setupDevice()), then execute "xend restart" to make the changes take effect. > > -- Dexuan > > > -----Original Message----- > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Neo Jia > Sent: 2008年9月3日 7:41 > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] Can we disable secondary_bus_reset in runtime? > > I think we need this feature at least for debugging purpose, right? > > Or, do we already have this feature? > > Thanks, > Neo > > -- > I would remember that if researchers were not ambitious > probably today we haven't the technology we are using! > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >-- I would remember that if researchers were not ambitious probably today we haven't the technology we are using! _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Cui, Dexuan
2008-Sep-03 00:30 UTC
RE: [Xen-devel] Can we disable secondary_bus_reset in runtime?
Oh, it''s /usr/lib64/python/xen/util/pci.py (if you''re using a 32e system). Thanks, -- Dexuan -----Original Message----- From: Neo Jia [mailto:neojia@gmail.com] Sent: 2008年9月3日 8:22 To: Cui, Dexuan Cc: xen-devel@lists.xensource.com Subject: Re: [Xen-devel] Can we disable secondary_bus_reset in runtime? Which one I need to change? /usr/lib64/ptython/xen/util/pci.py or the one in the tools/python/xen/util/pci.py? Thanks, Neo 2008/9/2 Cui, Dexuan <dexuan.cui@intel.com>:> Hi Neo, > I think you mean the python function do_secondary_bus_reset(). > Could you please detail the issue you meet with? > If you want to not use that for debug''s perpose temporarily, you can just modify tools/python/xen/util/pci.py: do_FLR(). (and you may also need to remove some checkings in tools/python/xen/xend/server/pciif.py:setupDevice()), then execute "xend restart" to make the changes take effect. > > -- Dexuan > > > -----Original Message----- > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Neo Jia > Sent: 2008年9月3日 7:41 > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] Can we disable secondary_bus_reset in runtime? > > I think we need this feature at least for debugging purpose, right? > > Or, do we already have this feature? > > Thanks, > Neo > > -- > I would remember that if researchers were not ambitious > probably today we haven''t the technology we are using! > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >-- I would remember that if researchers were not ambitious probably today we haven''t the technology we are using! _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Neo Jia
2008-Sep-03 03:10 UTC
Re: [Xen-devel] Can we disable secondary_bus_reset in runtime?
Dexuan, Have you ever try/test the secondary bus reset on any NIC? Thanks, Neo 2008/9/2 Cui, Dexuan <dexuan.cui@intel.com>:> Hi Neo, > I think you mean the python function do_secondary_bus_reset(). > Could you please detail the issue you meet with? > If you want to not use that for debug's perpose temporarily, you can just modify tools/python/xen/util/pci.py: do_FLR(). (and you may also need to remove some checkings in tools/python/xen/xend/server/pciif.py:setupDevice()), then execute "xend restart" to make the changes take effect. > > -- Dexuan > > > -----Original Message----- > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Neo Jia > Sent: 2008年9月3日 7:41 > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] Can we disable secondary_bus_reset in runtime? > > I think we need this feature at least for debugging purpose, right? > > Or, do we already have this feature? > > Thanks, > Neo > > -- > I would remember that if researchers were not ambitious > probably today we haven't the technology we are using! > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >-- I would remember that if researchers were not ambitious probably today we haven't the technology we are using! _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Cui, Dexuan
2008-Sep-03 03:24 UTC
RE: [Xen-devel] Can we disable secondary_bus_reset in runtime?
Yes. I plugged a 82541PI NIC(01:00.0) into motherborad and tested the SecondaryBusReset against 00:1e.0. (Please see the below for the PCI hierarchy of my host) And actually the same python function was tested on many hosts by our QA. No issue is reported about it. I haven''t received other issue report before you. :-) Your host is also DQ35? What is the details of the issue? [root@cui ~]# lspci -tv -[0000:00]-+-00.0 Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller +-02.0 Intel Corporation 82G33/G31 Express Integrated Graphics Controller +-03.0 Intel Corporation 82G33/G31/P35/P31 Express MEI Controller +-03.1 Intel Corporation 82G33/G31/P35/P31 Express MEI Controller +-03.2 Intel Corporation 82G33/G31/P35/P31 Express PT IDER Controller +-03.3 Intel Corporation 82G33/G31/P35/P31 Express Serial KT Controller +-19.0 Intel Corporation 82566DM-2 Gigabit Network Connection +-1a.0 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 +-1a.1 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 +-1a.2 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 +-1a.7 Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 +-1b.0 Intel Corporation 82801I (ICH9 Family) HD Audio Controller +-1d.0 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 +-1d.1 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 +-1d.2 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 +-1d.7 Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 +-1e.0-[0000:01]----00.0 Intel Corporation 82541PI Gigabit Ethernet Controller +-1f.0 Intel Corporation Unknown device 2910 +-1f.2 Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller +-1f.3 Intel Corporation 82801I (ICH9 Family) SMBus Controller \-1f.5 Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller -----Original Message----- From: Neo Jia [mailto:neojia@gmail.com] Sent: 2008年9月3日 11:10 To: Cui, Dexuan Cc: xen-devel@lists.xensource.com Subject: Re: [Xen-devel] Can we disable secondary_bus_reset in runtime? Dexuan, Have you ever try/test the secondary bus reset on any NIC? Thanks, Neo 2008/9/2 Cui, Dexuan <dexuan.cui@intel.com>:> Hi Neo, > I think you mean the python function do_secondary_bus_reset(). > Could you please detail the issue you meet with? > If you want to not use that for debug''s perpose temporarily, you can just modify tools/python/xen/util/pci.py: do_FLR(). (and you may also need to remove some checkings in tools/python/xen/xend/server/pciif.py:setupDevice()), then execute "xend restart" to make the changes take effect. > > -- Dexuan > > > -----Original Message----- > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Neo Jia > Sent: 2008年9月3日 7:41 > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] Can we disable secondary_bus_reset in runtime? > > I think we need this feature at least for debugging purpose, right? > > Or, do we already have this feature? > > Thanks, > Neo > > -- > I would remember that if researchers were not ambitious > probably today we haven''t the technology we are using! > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >-- I would remember that if researchers were not ambitious probably today we haven''t the technology we are using! _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Neo Jia
2008-Sep-03 04:27 UTC
Re: [Xen-devel] Can we disable secondary_bus_reset in runtime?
Dexuan, If you don't do a SecondaryBusReset, will the NIC card driver be loaded after you reboot the guest VM? Just want to make sure if the reset works. I will also check on my side about the failure case. Thanks, Neo On Tue, Sep 2, 2008 at 8:24 PM, Cui, Dexuan <dexuan.cui@intel.com> wrote:> Yes. I plugged a 82541PI NIC(01:00.0) into motherborad and tested the SecondaryBusReset against 00:1e.0. > (Please see the below for the PCI hierarchy of my host) > > And actually the same python function was tested on many hosts by our QA. No issue is reported about it. > I haven't received other issue report before you. :-) > Your host is also DQ35? What is the details of the issue? > > [root@cui ~]# lspci -tv > -[0000:00]-+-00.0 Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller > +-02.0 Intel Corporation 82G33/G31 Express Integrated Graphics Controller > +-03.0 Intel Corporation 82G33/G31/P35/P31 Express MEI Controller > +-03.1 Intel Corporation 82G33/G31/P35/P31 Express MEI Controller > +-03.2 Intel Corporation 82G33/G31/P35/P31 Express PT IDER Controller > +-03.3 Intel Corporation 82G33/G31/P35/P31 Express Serial KT Controller > +-19.0 Intel Corporation 82566DM-2 Gigabit Network Connection > +-1a.0 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 > +-1a.1 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 > +-1a.2 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 > +-1a.7 Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 > +-1b.0 Intel Corporation 82801I (ICH9 Family) HD Audio Controller > +-1d.0 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 > +-1d.1 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 > +-1d.2 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 > +-1d.7 Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 > +-1e.0-[0000:01]----00.0 Intel Corporation 82541PI Gigabit Ethernet Controller > +-1f.0 Intel Corporation Unknown device 2910 > +-1f.2 Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller > +-1f.3 Intel Corporation 82801I (ICH9 Family) SMBus Controller > \-1f.5 Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller > > > -----Original Message----- > From: Neo Jia [mailto:neojia@gmail.com] > Sent: 2008年9月3日 11:10 > To: Cui, Dexuan > Cc: xen-devel@lists.xensource.com > Subject: Re: [Xen-devel] Can we disable secondary_bus_reset in runtime? > > Dexuan, > > Have you ever try/test the secondary bus reset on any NIC? > > Thanks, > Neo > > 2008/9/2 Cui, Dexuan <dexuan.cui@intel.com>: >> Hi Neo, >> I think you mean the python function do_secondary_bus_reset(). >> Could you please detail the issue you meet with? >> If you want to not use that for debug's perpose temporarily, you can just modify tools/python/xen/util/pci.py: do_FLR(). (and you may also need to remove some checkings in tools/python/xen/xend/server/pciif.py:setupDevice()), then execute "xend restart" to make the changes take effect. >> >> -- Dexuan >> >> >> -----Original Message----- >> From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Neo Jia >> Sent: 2008年9月3日 7:41 >> To: xen-devel@lists.xensource.com >> Subject: [Xen-devel] Can we disable secondary_bus_reset in runtime? >> >> I think we need this feature at least for debugging purpose, right? >> >> Or, do we already have this feature? >> >> Thanks, >> Neo >> >> -- >> I would remember that if researchers were not ambitious >> probably today we haven't the technology we are using! >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >> > > > > -- > I would remember that if researchers were not ambitious > probably today we haven't the technology we are using! >-- I would remember that if researchers were not ambitious probably today we haven't the technology we are using! _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Cui, Dexuan
2008-Sep-03 05:21 UTC
RE: [Xen-devel] Can we disable secondary_bus_reset in runtime?
Yes. Just now I added a "return" at the beginning of the "def do_secondary_bus_reset(...)" then "xend restart". The assigned NIC still works well inside the 32e HVM guest. I tried the Xen c/s 18409 and 18414. Please note: the SecondBusReset does work here on my host. -- Dexuan -----Original Message----- From: Neo Jia [mailto:neojia@gmail.com] Sent: 2008年9月3日 12:27 To: Cui, Dexuan Cc: xen-devel@lists.xensource.com Subject: Re: [Xen-devel] Can we disable secondary_bus_reset in runtime? Dexuan, If you don''t do a SecondaryBusReset, will the NIC card driver be loaded after you reboot the guest VM? Just want to make sure if the reset works. I will also check on my side about the failure case. Thanks, Neo _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Neo Jia
2008-Sep-03 07:01 UTC
Re: [Xen-devel] Can we disable secondary_bus_reset in runtime?
Dexuan, I don't think this experiment can verify that if the SecondaryBusReset works or not, as it (the device driver of this NIC) can work on the VM reboot case without reset the HW. Thanks, Neo 2008/9/2 Cui, Dexuan <dexuan.cui@intel.com>:> Yes. Just now I added a "return" at the beginning of the "def do_secondary_bus_reset(...)" then "xend restart". The assigned NIC still works well inside the 32e HVM guest. > I tried the Xen c/s 18409 and 18414. > Please note: the SecondBusReset does work here on my host. > > -- Dexuan > > > -----Original Message----- > From: Neo Jia [mailto:neojia@gmail.com] > Sent: 2008年9月3日 12:27 > To: Cui, Dexuan > Cc: xen-devel@lists.xensource.com > Subject: Re: [Xen-devel] Can we disable secondary_bus_reset in runtime? > > Dexuan, > > If you don't do a SecondaryBusReset, will the NIC card driver be > loaded after you reboot the guest VM? > > Just want to make sure if the reset works. > > I will also check on my side about the failure case. > > Thanks, > Neo >-- I would remember that if researchers were not ambitious probably today we haven't the technology we are using! _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Cui, Dexuan
2008-Sep-03 07:13 UTC
RE: [Xen-devel] Can we disable secondary_bus_reset in runtime?
Neo, You''re right. I tried that only as you asked if that would work or not. :-) I tested the SecondaryBusReset manually as what the function defines: After I "Assert Secondary Bus Reset", I notice all the config space of the NIC (01:00.0) becomes inaccessible (reading returns 0xffffffff). Next, after I "De-assert Secondary Bus Reset", the config space of NIC becomes accessible again. what''s your failure case? -- Dexuan -----Original Message----- From: Neo Jia [mailto:neojia@gmail.com] Sent: 2008年9月3日 15:02 To: Cui, Dexuan Cc: xen-devel@lists.xensource.com Subject: Re: [Xen-devel] Can we disable secondary_bus_reset in runtime? Dexuan, I don''t think this experiment can verify that if the SecondaryBusReset works or not, as it (the device driver of this NIC) can work on the VM reboot case without reset the HW. Thanks, Neo 2008/9/2 Cui, Dexuan <dexuan.cui@intel.com>:> Yes. Just now I added a "return" at the beginning of the "def do_secondary_bus_reset(...)" then "xend restart". The assigned NIC still works well inside the 32e HVM guest. > I tried the Xen c/s 18409 and 18414. > Please note: the SecondBusReset does work here on my host. > > -- Dexuan > > > -----Original Message----- > From: Neo Jia [mailto:neojia@gmail.com] > Sent: 2008年9月3日 12:27 > To: Cui, Dexuan > Cc: xen-devel@lists.xensource.com > Subject: Re: [Xen-devel] Can we disable secondary_bus_reset in runtime? > > Dexuan, > > If you don''t do a SecondaryBusReset, will the NIC card driver be > loaded after you reboot the guest VM? > > Just want to make sure if the reset works. > > I will also check on my side about the failure case. > > Thanks, > Neo >-- I would remember that if researchers were not ambitious probably today we haven''t the technology we are using! _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel