From: "Mr. Teo En Ming (Zhang Enming)" Subject: Re: [Xen-devel] Re: Fire-wire passthrough with Linux pv-ops (2.6.31.1) Date: Mon, 2 Nov 2009 18:29:36 +0800 Message-ID: References: <20091009071135.GJ1434@reaktio.net> <20091012181000.GA14336@phenom.dumpdata.com> <20091013142253.GB19950@phenom.dumpdata.com> <20091013170431.GB21615@phenom.dumpdata.com> <20091023175700.GA1383@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0294839311==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-users-bounces@lists.xensource.com Errors-To: xen-users-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: space.time.universe@gmail.com, Jeremy Fitzhardinge , xen-devel@lists.xensource.com, "Han, Weidong" , xen-users@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0294839311== Content-Type: multipart/alternative; boundary=0016364ee872b56112047760dab4 --0016364ee872b56112047760dab4 Content-Type: text/plain; charset=ISO-8859-1 Hi, Anybody knows how to solve this problem? -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com My Secondary Blog: http://enmingteo.wordpress.com My Youtube videos: http://www.youtube.com/user/enmingteo Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone (SingTel): +65-9648-9798 Mobile Phone (Starhub Prepaid): +65-8369-2618 Age: 31 (as at 30 Oct 2009) Height: 1.78 meters Race: Chinese Dialect: Hokkien Street: Bedok Reservoir Road Country: Singapore On Sun, Nov 1, 2009 at 10:07 PM, Mr. Teo En Ming (Zhang Enming) < space.time.universe@gmail.com> wrote: > Hi All, > > I have just installed Slackware64 13.0 64-bit Linux as HVM domU. Please > refer to > http://enmingteo.wordpress.com/2009/11/01/picture-tutorial-how-to-setup-slackware64-13-0-hvm-domu-with-xen-3-5-unstable-pv-ops-dom0-kernel-2-6-31-4-in-fedora-11-x86-64-dom0/for more details and screenshots. > > I have tried to passthrough the firewire controller on Intel DQ45CB > motherboard to Slackware64 13.0 HVM domU but I can't load the kernel modules > for it. > > Please have a look at the following output within Slackware64 13.0 HVM > domU. > > 00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if 10 > [OHCI]) > Subsystem: Intel Corporation Device 1003 > Flags: bus master, medium devsel, latency 128, IRQ 36 > Memory at e3001000 (32-bit, non-prefetchable) [size=4K] > Memory at e3002000 (32-bit, non-prefetchable) [size=4K] > Capabilities: [44] Power Management version 2 > Kernel driver in use: ohci1394 > Kernel modules: ohci1394 > > root@slackware64-13:~# lsmod | egrep "(ohci|1394)" > root@slackware64-13:~# cd /lib/modules/2.6.29.6/kernel/drivers/ieee1394/ > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# ls > dv1394.ko eth1394.ko ieee1394.ko ohci1394.ko pcilynx.ko raw1394.ko > sbp2.ko video1394.ko > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# modinfo > ohci1394.ko > filename: ohci1394.ko > license: GPL > description: Driver for PCI OHCI IEEE-1394 controllers > author: Sebastien Rougeaux > alias: pci:v*d*sv*sd*bc0Csc00i10* > depends: ieee1394 > vermagic: 2.6.29.6 SMP mod_unload > parm: phys_dma:Enable physical DMA (default = 1). (int) > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# modinfo > ieee1394.ko > filename: ieee1394.ko > license: GPL > depends: > vermagic: 2.6.29.6 SMP mod_unload > parm: ignore_drivers:Disable automatic probing for drivers. (int) > parm: fcp:Map FCP registers (default = 1, disable = 0). (int) > parm: disable_nodemgr:Disable nodemgr functionality. (int) > parm: disable_irm:Disable Isochronous Resource Manager > functionality. (bool) > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#modprobe ieee1394 > FATAL: Error inserting ieee1394 (/lib/modules/ > 2.6.29.6/kernel/drivers/ieee1394/ieee1394.ko): Invalid argument > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394#modprobe ohci1394 > FATAL: Error inserting ohci1394 (/lib/modules/ > 2.6.29.6/kernel/drivers/ieee1394/ohci1394.ko): Invalid argument > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg | > grep -i firewire > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg | > grep -i ieee > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# lsmod | > grep ieee1394 > root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg | > grep 1394 > ohci1394 0000:00:05.0: PCI INT A -> GSI 36 (level, low) -> IRQ 36 > ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[36] > MMIO=[e3001000-e30017ff] Max Packet=[2048] IR/IT contexts=[8/8] > ieee1394: module is already loaded > ohci1394: module is already loaded > ieee1394: module is already loaded > ohci1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ieee1394: module is already loaded > ohci1394: module is already loaded > > Debug messages in Dom0: > > domid: 3 > qemu: the number of cpus is 2 > config qemu network with xen bridge for tap3.0 eth0 > Watching /local/domain/0/device-model/3/logdirty/next-active > Watching /local/domain/0/device-model/3/command > qemu_map_cache_init nr_buckets = 10000 size 4194304 > shared page at pfn feffd > buffered io page at pfn feffb > Guest uuid = 9a35fdea-fa74-6fec-e0f2-a852836d9a22 > Time offset set 0 > cirrus_vga_enabled > populating video RAM at ff000000 > mapping video RAM from ff000000 > Register xen platform. > Done register platform. > xs_read(/vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/log-throttling): read > error > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw > state. > xs_read(/local/domain/0/device-model/3/xen_extended_power_mgmt): read error > xs_read(): vncpasswd get error. > /vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/vncpasswd. > medium change watch on `hdc' (index: 1): > /media/hitachi/slackware64-13.0-install-dvd.iso > I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 > I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 > dm-command: hot insert pass-through pci dev > register_real_device: Assigning real physical device 02:01.0 ... > pt_iomul_init: Error: pt_iomul_init can't open file /dev/xen/pci_iomul: No > such file or directory: 0x2:0x1.0x0 > pt_register_regions: IO region registered (size=0x00001000 > base_addr=0xd3801000) > pt_register_regions: IO region registered (size=0x00000100 > base_addr=0xd3800000) > register_real_device: Error: Binding of interrupt failed! rc=-1 > register_real_device: Real physical device 02:01.0 registered successfuly! > IRQ type = INTx > cirrus vga map change while on lfb mode > pt_iomem_map: e_phys=e3001000 maddr=d3801000 type=0 len=4096 index=0 > first_map=1 > pt_iomem_map: e_phys=e3002000 maddr=d3800000 type=0 len=4096 index=1 > first_map=1 > mapping vram to e0000000 - e0400000 > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw > state. > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro > state. > *pt_pci_write_config: Warning: Guest attempt to set address to unused Base > Address Register. [00:05.0][Offset:30h][Length:4]* > > The line immediately above looks very suspicious. > > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com > My Secondary Blog: http://enmingteo.wordpress.com > My Youtube videos: http://www.youtube.com/user/enmingteo > > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone (SingTel): +65-9648-9798 > Mobile Phone (Starhub Prepaid): +65-8369-2618 > Age: 31 (as at 30 Oct 2009) > Height: 1.78 meters > Race: Chinese > Dialect: Hokkien > Street: Bedok Reservoir Road > Country: Singapore > > > On Sat, Oct 24, 2009 at 2:19 AM, Mr. Teo En Ming (Zhang Enming) < > space.time.universe@gmail.com> wrote: > >> From the screenshots of the device manager in the Win XP Home domU, >> the OHCI IEEE 1394 firewire controller appears to be working properly. >> The Windows drivers for the firewire controller reports that the >> firewire controller is working fine. >> >> However, when you connect a firewire-based digital video camera to the >> firewire port, it is not detected in the Windows virtual machine. >> >> I will probably have to find time to install a Linux HVM domU and try >> to pass through the 1394 controller to it. >> >> -- >> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical >> Engineering) >> Alma Maters: >> (1) Singapore Polytechnic >> (2) National University of Singapore >> Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com >> Email: space.time.universe@gmail.com >> MSN: teoenming@hotmail.com >> Mobile Phone: +65-9648-9798 >> Street: Bedok Reservoir Road >> Republic of Singapore >> >> >> On Sat, Oct 24, 2009 at 1:57 AM, Konrad Rzeszutek Wilk >> wrote: >> > On Sat, Oct 24, 2009 at 01:47:31AM +0800, Mr. Teo En Ming (Zhang Enming) >> wrote: >> >> Hi, >> >> >> >> Could you help me look at here >> >> >> http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01149.html >> >> and also here >> http://lists.xensource.com/archives/html/xen-devel/2009-10/msg01134.html >> > >> > Its looks to be working from the Dom0 side just fine. I am curious as >> what is happening >> > on the Windows driver side. I don't know enough about where Windows >> drivers put >> > debug information so I can't suggest where to look there. One suggestion >> is that >> > you install Fedora Core 11 as a HVM guest and passthrough your firewire >> controller to it. >> > And then include the logs from the Fedora domU - that should give more >> insight on why >> > it is not working properly. >> > >> > > > > > --0016364ee872b56112047760dab4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

Anybody knows how to solve this problem?

--
Mr. Teo E= n Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering)<= br>Alma Maters:
(1) Singapore Polytechnic
(2) National University of = Singapore
My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com
My Secondary Blo= g: http://enmingteo.wordpress.co= m
My Youtube videos: http:/= /www.youtube.com/user/enmingteo
Email: space.time.universe@gmail.com
MSN: teoenming@hotmail.com
Mobile Phone (SingTel): +65-9648-9798
Mobile Phone (Starhub Prepaid): +6= 5-8369-2618
Age: 31 (as at 30 Oct 2009)
Height: 1.78 meters
Race: = Chinese
Dialect: Hokkien
Street: Bedok Reservoir Road
Country: Sin= gapore

On Sun, Nov 1, 2009 at 10:07 PM, Mr. Teo En = Ming (Zhang Enming) <space.time.universe@gmail.com> wrote:
Hi All,

I have just installed Slackware64 13.0 64-bit Linux as HVM d= omU. Please refer to = http://enmingteo.wordpress.com/2009/11/01/picture-tutorial-how-to-setup-sla= ckware64-13-0-hvm-domu-with-xen-3-5-unstable-pv-ops-dom0-kernel-2-6-31-4-in= -fedora-11-x86-64-dom0/ for more details and screenshots.

I have tried to passthrough the firewire controller on Intel DQ45CB mot= herboard to Slackware64 13.0 HVM domU but I can't load the kernel modul= es for it.

Please have a look at the following output within Slackwa= re64 13.0 HVM domU.

00:05.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if= 10 [OHCI])
=A0=A0=A0 Subsystem: Intel Corporation Device 1003
=A0=A0= =A0 Flags: bus master, medium devsel, latency 128, IRQ 36
=A0=A0=A0 Memo= ry at e3001000 (32-bit, non-prefetchable) [size=3D4K]
=A0=A0=A0 Memory at e3002000 (32-bit, non-prefetchable) [size=3D4K]
=A0= =A0=A0 Capabilities: [44] Power Management version 2
=A0=A0=A0 Kernel dr= iver in use: ohci1394
=A0=A0=A0 Kernel modules: ohci1394

root@sla= ckware64-13:~# lsmod | egrep "(ohci|1394)"
root@slackware64-13:~# cd /lib/modules/2.6.29.6/kernel/drivers/ieee1394/root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# ls
dv1394.ko=A0 eth1394.ko=A0 ieee1394.ko=A0 ohci1394.ko=A0 pcilynx.ko=A0 raw1= 394.ko=A0 sbp2.ko=A0 video1394.ko
root@slackware64-13:/lib/modules/2.6.29.6/= kernel/drivers/ieee1394# modinfo ohci1394.ko
filename:=A0=A0=A0=A0=A0=A0 ohci1394.ko
license:=A0=A0=A0=A0=A0=A0=A0 GP= L
description:=A0=A0=A0 Driver for PCI OHCI IEEE-1394 controllers
aut= hor:=A0=A0=A0=A0=A0=A0=A0=A0 Sebastien Rougeaux <sebastien.rougeaux@anu.edu.au>
alias:=A0=A0=A0=A0=A0=A0=A0=A0=A0 pci:v*d*sv*sd*bc0Csc00i10*
depends:=A0= =A0=A0=A0=A0=A0=A0 ieee1394
vermagic:=A0=A0=A0=A0=A0=A0 2.6.29.6 SMP mod= _unload
parm:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 phys_dma:Enable physical DM= A (default =3D 1). (int)
root@slackware64-13:/lib/modules/
2.6.29.6/kernel/dr= ivers/ieee1394# modinfo ieee1394.ko
filename:=A0=A0=A0=A0=A0=A0 ieee1394.ko
license:=A0=A0=A0=A0=A0=A0=A0 GP= L
depends:=A0=A0=A0=A0=A0=A0=A0
vermagic:=A0=A0=A0=A0=A0=A0 2.6.29.6= SMP mod_unload
parm:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ignore_drivers:Disa= ble automatic probing for drivers. (int)
parm:=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 fcp:Map FCP registers (default =3D 1, disable =3D 0). (int)
parm:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 disable_nodemgr:Disable nodemgr functio= nality. (int)
parm:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 disable_irm:Disable Is= ochronous Resource Manager functionality. (bool)
root@slackware64-13:/li= b/modules/2.6.29.6/kernel/drivers/ieee1394# modprobe ieee1394=A0=A0=A0
FATAL: Error inserting ieee1394 (/lib/modules/2.6.29.6/kernel/driver= s/ieee1394/ieee1394.ko): Invalid argument
root@slackware64-13:/lib/m= odules/2.6.29.6/kernel/drivers/ieee1394# modprobe ohci1394=A0=A0=A0
FATAL: Error inserting ohci1394 (/lib/modules/2.6.29.6/kernel/driver= s/ieee1394/ohci1394.ko): Invalid argument
root@slackware64-13:/lib/m= odules/2.6.29.6/kernel/drivers/ieee1394# dmesg | grep -i firewire
root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg | = grep -i ieee
ieee1394: module is already loaded
ieee1394: module is a= lready loaded
ieee1394: module is already loaded
ieee1394: module is already loadedieee1394: module is already loaded
ieee1394: module is already loadedroot@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# lsmod = | grep ieee1394
root@slackware64-13:/lib/modules/2.6.29.6/kernel/drivers/ieee1394# dmesg | = grep 1394
ohci1394 0000:00:05.0: PCI INT A -> GSI 36 (level, low) -&g= t; IRQ 36
ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=3D[36]=A0 MMIO=3D[e3001000-e30= 017ff]=A0 Max Packet=3D[2048]=A0 IR/IT contexts=3D[8/8]
ieee1394: module is already loaded
ohci1394: module is already loadedieee1394: module is already loaded
ohci1394: module is already loadedieee1394: module is already loaded
ieee1394: module is already loaded<= br> ieee1394: module is already loaded
ieee1394: module is already loadedohci1394: module is already loaded

Debug messages in Dom0:

d= omid: 3
qemu: the number of cpus is 2
config qemu network with xen br= idge for=A0 tap3.0 eth0
Watching /local/domain/0/device-model/3/logdirty/next-active
Watching /l= ocal/domain/0/device-model/3/command
qemu_map_cache_init nr_buckets =3D = 10000 size 4194304
shared page at pfn feffd
buffered io page at pfn f= effb
Guest uuid =3D 9a35fdea-fa74-6fec-e0f2-a852836d9a22
Time offset set 0cirrus_vga_enabled
populating video RAM at ff000000
mapping video RA= M from ff000000
Register xen platform.
Done register platform.
xs_read(/vm/9a35fdea-fa74-6fec-e0f2-a852836d9a22/log-throttling): read erro= r
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw st= ate.
xs_read(/local/domain/0/device-model/3/xen_extended_power_mgmt): re= ad error
xs_read(): vncpasswd get error. /vm/9a35fdea-fa74-6fec-e0f2-a85= 2836d9a22/vncpasswd.
medium change watch on `hdc' (index: 1): /media/hitachi/slackware64-13.= 0-install-dvd.iso
I/O request not ready: 0, ptr: 0, port: 0, data: 0, co= unt: 0, size: 0
I/O request not ready: 0, ptr: 0, port: 0, data: 0, coun= t: 0, size: 0
dm-command: hot insert pass-through pci dev
register_real_device: Assig= ning real physical device 02:01.0 ...
pt_iomul_init: Error: pt_iomul_ini= t can't open file /dev/xen/pci_iomul: No such file or directory: 0x2:0x= 1.0x0
pt_register_regions: IO region registered (size=3D0x00001000 base_addr=3D0x= d3801000)
pt_register_regions: IO region registered (size=3D0x00000100 b= ase_addr=3D0xd3800000)
register_real_device: Error: Binding of interrupt= failed! rc=3D-1
register_real_device: Real physical device 02:01.0 registered successfuly!<= br>IRQ type =3D INTx
cirrus vga map change while on lfb mode
pt_iomem= _map: e_phys=3De3001000 maddr=3Dd3801000 type=3D0 len=3D4096 index=3D0 firs= t_map=3D1
pt_iomem_map: e_phys=3De3002000 maddr=3Dd3800000 type=3D0 len=3D4096 index= =3D1 first_map=3D1
mapping vram to e0000000 - e0400000
platform_fixed= _ioport: changed ro/rw state of ROM memory area. now is rw state.
platfo= rm_fixed_ioport: changed ro/rw state of ROM memory area. now is ro state. pt_pci_write_config: Warning: Gue= st attempt to set address to unused Base Address Register. [00:05.0][Offset= :30h][Length:4]

The line immediately above looks very su= spicious.


--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mech= anical Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) Nat= ional University of Singapore
My Primary Blog: http://teo-en-m= ing-aka-zhang-enming.blogspot.com
My Secondary Blog: http://enmingteo.wordpress.com
My Youtube videos: http://www.youtube.c= om/user/enmingteoMobile Phone (SingTel): +65-9648-9798
Mobile Pho= ne (Starhub Prepaid): +65-8369-2618
Age: 31 (as at 30 Oct 2009)
Heigh= t: 1.78 meters
Race: Chinese
Dialect: Hokkien
Street: Bedok Reservoir Road
Country: Singapore
=


On Sat, Oct= 24, 2009 at 2:19 AM, Mr. Teo En Ming (Zhang Enming) <= space.ti= me.universe@gmail.com> wrote:
From the screensh= ots of the device manager in the Win XP Home domU,
the OHCI IEEE 1394 firewire controller appears to be working properly.
The Windows drivers for the firewire controller reports that the
firewire controller is working fine.

However, when you connect a firewire-based digital video camera to the
firewire port, it is not detected in the Windows virtual machine.

I will probably have to find time to install a Linux HVM domU and try
to pass through the 1394 controller to it.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical
Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: s= pace.time.universe@gmail.com
MSN: teoenming@h= otmail.com
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore


On Sat, Oct 24, 2009 at 1:57 AM, Konrad Rzeszutek Wilk
> On Sat, Oct 24, 2009 at 01:47:31AM +0800, M= r. Teo En Ming (Zhang Enming) wrote:
>> Hi,
>>
>> Could you help me look at here
>> http://lists.xensource.com/archives/ht= ml/xen-devel/2009-10/msg01149.html
>> and also here http://lists.xensource.c= om/archives/html/xen-devel/2009-10/msg01134.html
>
> Its looks to be working from the Dom0 side just fine. I am curious as = what is happening
> on the Windows driver side. I don't know enough about where Window= s drivers put
> debug information so I can't suggest where to look there. One sugg= estion is that
> you install Fedora Core 11 as a HVM guest and passthrough your firewir= e controller to it.
> And then include the logs from the Fedora domU - that should give more= insight on why
> it is not working properly.
>








--0016364ee872b56112047760dab4-- --===============0294839311== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users --===============0294839311==--