Hi, i am trying to apply AMD/ATI patch on xen4-2 unstable http://old-list-archives.xen.org/archives/html/xen-devel/2010-12/txtNwRlN3jloS.txt and there was some changes in code and the patch is unusable, is there a new patch. or can somebody help me to update the patch? make[4]: Entering directory `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remote/i386-dm'' CC i386-dm/pt-graphics.o /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c: In function ‘igd_register_vga_regions’: /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:373: error: too many arguments to function ‘pt_pci_host_read’ /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:374: error: too many arguments to function ‘pt_pci_host_read’ /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c: In function ‘igd_unregister_vga_regions’: /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:396: error: too many arguments to function ‘pt_pci_host_read’ /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:397: error: too many arguments to function ‘pt_pci_host_read’ make[4]: *** [pt-graphics.o] Error 1 make[4]: Leaving directory `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remote/i386-dm'' make[3]: *** [subdir-i386-dm] Error 2 make[3]: Leaving directory `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remote'' make[2]: *** [subdir-install-qemu-xen-traditional-dir] Error 2 make[2]: Leaving directory `/root/xen-unstable.hg-IN_USE_PATCHED/tools'' make[1]: *** [subdirs-install] Error 2 make[1]: Leaving directory `/root/xen-unstable.hg-IN_USE_PATCHED/tools'' make: *** [install-tools] Error 2 http://xen.1045712.n5.nabble.com/PATCH-1-3-qemu-xen-Change-prototype-for-pt-pci-host-read-write-td5016713.html example: old syle: vendor_id = pt_pci_host_read(0, 2, 0, 0, 2); new syle: vid = pt_pci_host_read(pci_dev_1f, PCI_VENDOR_ID, 2); Best Regards, Kristijan Lečnik _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
> Hi, > > i am trying to apply AMD/ATI patch on xen4-2 unstable > http://old-list-archives.xen.org/archives/html/xen-devel/2010-12/txtNwRlN3j > loS.txt > > and there was some changes in code and the patch is unusable, is there a > new patch. or can somebody help me to update the patch?Hi, that patch is not enough today. It will crash on: ioperm(gfx_info.host_pio_base, gfx_info.pio_size, 1); You have to patch the kernel. There was some patch in Konrad''s git. Google ''xen "ioperm problem"''. -- Pavel Mateja
I just re-spin the patch, but haven''t tested it yet. You want to try it (attached)? Make sure you are using AMD GPU as the primary. -Wei On 04/01/2012 08:03 PM, Kristijan Lečnik wrote:> Hi, > > i am trying to apply AMD/ATI patch on xen4-2 unstable > http://old-list-archives.xen.org/archives/html/xen-devel/2010-12/txtNwRlN3jloS.txt > > and there was some changes in code and the patch is unusable, is there > a new patch. or can somebody help me to update the patch? > > make[4]: Entering directory > `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remote/i386-dm'' > CC i386-dm/pt-graphics.o > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c: > In function ‘igd_register_vga_regions’: > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:373: > error: too many arguments to function ‘pt_pci_host_read’ > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:374: > error: too many arguments to function ‘pt_pci_host_read’ > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c: > In function ‘igd_unregister_vga_regions’: > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:396: > error: too many arguments to function ‘pt_pci_host_read’ > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:397: > error: too many arguments to function ‘pt_pci_host_read’ > make[4]: *** [pt-graphics.o] Error 1 > make[4]: Leaving directory > `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remote/i386-dm'' > make[3]: *** [subdir-i386-dm] Error 2 > make[3]: Leaving directory > `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remote'' > make[2]: *** [subdir-install-qemu-xen-traditional-dir] Error 2 > make[2]: Leaving directory `/root/xen-unstable.hg-IN_USE_PATCHED/tools'' > make[1]: *** [subdirs-install] Error 2 > make[1]: Leaving directory `/root/xen-unstable.hg-IN_USE_PATCHED/tools'' > make: *** [install-tools] Error 2 > > http://xen.1045712.n5.nabble.com/PATCH-1-3-qemu-xen-Change-prototype-for-pt-pci-host-read-write-td5016713.html > > example: > > old syle: > vendor_id = pt_pci_host_read(0, 2, 0, 0, 2); > > new syle: > vid = pt_pci_host_read(pci_dev_1f, PCI_VENDOR_ID, 2); > > Best Regards, > Kristijan Lečnik_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Hi, just try to compile with xen unstable 4.2 repo from 8.april 2012 make --directory=arch/x86 OBJ_DIR=/root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/arch/x86 || exit 1; make[3]: Entering directory `/root/xen-unstable.hg/extras/mini-os/arch/x86'' make[3]: Nothing to be done for `all''. make[3]: Leaving directory `/root/xen-unstable.hg/extras/mini-os/arch/x86'' ld -r -nostdlib -L/root/xen-unstable.hg/stubdom/cross-root-x86_64/x86_64-xen-elf/lib -m elf_x86_64 /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/arch/x86/x86_64.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os_app.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/blkfront.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/events.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/fbfront.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/gntmap.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/gnttab.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/hypervisor.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/kernel.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lock.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/main.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mm.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/netfront.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/pcifront.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/sched.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/ctype.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/math.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/printf.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/stack_chk_fail.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/string.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/sys.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/xmalloc.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/xs.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/xenbus/xenbus.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/console/console.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/console/xencons_ring.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/console/xenbus.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lwip.a -L/root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/arch/x86 -lx86_64 -lc -o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o objcopy -w -G xenos_* -G _start /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o ld -nostdlib -L/root/xen-unstable.hg/stubdom/cross-root-x86_64/x86_64-xen-elf/lib -m elf_x86_64 -T arch/x86/minios-x86_64.lds /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o -o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os ld: warning: section `.bss'' type changed to PROGBITS /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o: In function `ati_hw_out'': /root/xen-unstable.hg/stubdom/ioemu/hw/pt-graphics.c:82: undefined reference to `ioperm'' /root/xen-unstable.hg/stubdom/ioemu/hw/pt-graphics.c:84: undefined reference to `ioperm'' /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o: In function `ati_hw_in'': /root/xen-unstable.hg/stubdom/ioemu/hw/pt-graphics.c:72: undefined reference to `ioperm'' /root/xen-unstable.hg/stubdom/ioemu/hw/pt-graphics.c:74: undefined reference to `ioperm'' make[2]: *** [/root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os] Error 1 make[2]: Leaving directory `/root/xen-unstable.hg/extras/mini-os'' make[1]: *** [ioemu-stubdom] Error 2 make[1]: Leaving directory `/root/xen-unstable.hg/stubdom'' make: *** [install-stubdom] Error 2 using linux kernel 3.3 nm /usr/lib/libc.a |grep -i ioperm ioperm.o: 0000000000000000 T ioperm Best Regards, Kristijan Lecnik On Tue, Apr 3, 2012 at 11:07 PM, Wei Huang <wei.huang2@amd.com> wrote:> I just re-spin the patch, but haven''t tested it yet. You want to try it > (attached)? Make sure you are using AMD GPU as the primary. > > -Wei > > > > On 04/01/2012 08:03 PM, Kristijan Lečnik wrote: > > Hi, > > i am trying to apply AMD/ATI patch on xen4-2 unstable > > http://old-list-archives.xen.org/archives/html/xen-devel/2010-12/txtNwRlN3jloS.txt > > and there was some changes in code and the patch is unusable, is there a > new patch. or can somebody help me to update the patch? > > make[4]: Entering directory > `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remote/i386-dm'' > CC i386-dm/pt-graphics.o > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c: > In function ‘igd_register_vga_regions’: > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:373: > error: too many arguments to function ‘pt_pci_host_read’ > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:374: > error: too many arguments to function ‘pt_pci_host_read’ > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c: > In function ‘igd_unregister_vga_regions’: > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:396: > error: too many arguments to function ‘pt_pci_host_read’ > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:397: > error: too many arguments to function ‘pt_pci_host_read’ > make[4]: *** [pt-graphics.o] Error 1 > make[4]: Leaving directory > `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remote/i386-dm'' > make[3]: *** [subdir-i386-dm] Error 2 > make[3]: Leaving directory > `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remote'' > make[2]: *** [subdir-install-qemu-xen-traditional-dir] Error 2 > make[2]: Leaving directory `/root/xen-unstable.hg-IN_USE_PATCHED/tools'' > make[1]: *** [subdirs-install] Error 2 > make[1]: Leaving directory `/root/xen-unstable.hg-IN_USE_PATCHED/tools'' > make: *** [install-tools] Error 2 > > > http://xen.1045712.n5.nabble.com/PATCH-1-3-qemu-xen-Change-prototype-for-pt-pci-host-read-write-td5016713.html > > example: > > old syle: > vendor_id = pt_pci_host_read(0, 2, 0, 0, 2); > > new syle: > vid = pt_pci_host_read(pci_dev_1f, PCI_VENDOR_ID, 2); > > Best Regards, > Kristijan Lečnik > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
On Sun 8. of April 2012 15:37:49 Kristijan Lečnik wrote:> Hi, > > just try to compile with xen unstable 4.2 repo from 8.april 2012 > > make --directory=arch/x86 > OBJ_DIR=/root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/arch/x86 || exit > 1; > make[3]: Entering directory `/root/xen-unstable.hg/extras/mini-os/arch/x86' > make[3]: Nothing to be done for `all'. > make[3]: Leaving directory `/root/xen-unstable.hg/extras/mini-os/arch/x86' > ld -r -nostdlib > -L/root/xen-unstable.hg/stubdom/cross-root-x86_64/x86_64-xen-elf/lib -m > elf_x86_64 > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/arch/x86/x86_64.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os_app.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/blkfront.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/events.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/fbfront.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/gntmap.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/gnttab.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/hypervisor.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/kernel.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lock.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/main.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mm.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/netfront.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/pcifront.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/sched.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/ctype.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/math.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/printf.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/stack_chk_fail.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/string.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/sys.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/xmalloc.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/xs.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/xenbus/xenbus.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/console/console.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/console/xencons_ring.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/console/xenbus.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lwip.a > -L/root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/arch/x86 -lx86_64 -lc > -o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o > objcopy -w -G xenos_* -G _start > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o > ld -nostdlib > -L/root/xen-unstable.hg/stubdom/cross-root-x86_64/x86_64-xen-elf/lib -m > elf_x86_64 -T arch/x86/minios-x86_64.lds > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o -o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os > ld: warning: section `.bss' type changed to PROGBITS > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o: In function > `ati_hw_out': > /root/xen-unstable.hg/stubdom/ioemu/hw/pt-graphics.c:82: undefined > reference to `ioperm' > /root/xen-unstable.hg/stubdom/ioemu/hw/pt-graphics.c:84: undefined > reference to `ioperm' > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o: In function > `ati_hw_in': > /root/xen-unstable.hg/stubdom/ioemu/hw/pt-graphics.c:72: undefined > reference to `ioperm' > /root/xen-unstable.hg/stubdom/ioemu/hw/pt-graphics.c:74: undefined > reference to `ioperm' > make[2]: *** [/root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os] > Error 1 > make[2]: Leaving directory `/root/xen-unstable.hg/extras/mini-os' > make[1]: *** [ioemu-stubdom] Error 2 > make[1]: Leaving directory `/root/xen-unstable.hg/stubdom' > make: *** [install-stubdom] Error 2 > > using linux kernel 3.3 > > nm /usr/lib/libc.a |grep -i ioperm > ioperm.o: > 0000000000000000 T ioperm > > Best Regards, > Kristijan Lecnik > > On Tue, Apr 3, 2012 at 11:07 PM, Wei Huang <wei.huang2@amd.com> wrote: > > I just re-spin the patch, but haven't tested it yet. You want to try it > > > > (attached)? Make sure you are using AMD GPU as the primary. > > > > -Wei > > > > > > > > On 04/01/2012 08:03 PM, Kristijan Lečnik wrote: > > > > Hi, > > > > i am trying to apply AMD/ATI patch on xen4-2 unstable > > > > http://old-list-archives.xen.org/archives/html/xen-devel/2010-12/txtNwRlN > > 3jloS.txt > > > > and there was some changes in code and the patch is unusable, is there a > > > > new patch. or can somebody help me to update the patch? > > > > make[4]: Entering directory > > > > `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remo > > te/i386-dm' > > > > CC i386-dm/pt-graphics.o > > > > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt > > -graphics.c: In function ‘igd_register_vga_regions’: > > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt > > -graphics.c:373: error: too many arguments to function ‘pt_pci_host_read’ > > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt > > -graphics.c:374: error: too many arguments to function ‘pt_pci_host_read’ > > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt > > -graphics.c: In function ‘igd_unregister_vga_regions’: > > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt > > -graphics.c:396: error: too many arguments to function ‘pt_pci_host_read’ > > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt > > -graphics.c:397: error: too many arguments to function ‘pt_pci_host_read’ > > make[4]: *** [pt-graphics.o] Error 1 > > make[4]: Leaving directory > > `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remo > > te/i386-dm' make[3]: *** [subdir-i386-dm] Error 2 > > make[3]: Leaving directory > > `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remo > > te' make[2]: *** [subdir-install-qemu-xen-traditional-dir] Error 2 > > make[2]: Leaving directory `/root/xen-unstable.hg-IN_USE_PATCHED/tools' > > make[1]: *** [subdirs-install] Error 2 > > make[1]: Leaving directory `/root/xen-unstable.hg-IN_USE_PATCHED/tools' > > make: *** [install-tools] Error 2 > > > > > > http://xen.1045712.n5.nabble.com/PATCH-1-3-qemu-xen-Change-prototype-for- > > pt-pci-host-read-write-td5016713.html > > > > example: > > > > old syle: > > vendor_id = pt_pci_host_read(0, 2, 0, 0, 2); > > > > new syle: > > vid = pt_pci_host_read(pci_dev_1f, PCI_VENDOR_ID, 2); > > > > Best Regards, > > > > Kristijan LečnikHi, still the same story http://lists.xen.org/archives/html/xen-devel/2011-05/msg01734.html But all my recent attempts failed anyway. My last working setup is with old 2.6.32.x kernel. -- Pavel Mateja _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Hi, I was busy too, but finally i get around to test the patch, i have compile it with just "make" in xen-unstable.hg/tools/qemu-xen-traditional-dir-remote/ and then copy it over, but it wont start with gfx_passthru=1, ....... IRQ type = INTx pt_iomem_map: e_phys=e0000000 maddr=b0000000 type=8 len=268435456 index=0 first_map=1 pt_iomem_map: e_phys=f1020000 maddr=fa4e0000 type=0 len=131072 index=2 first_map=1 pt_iomem_map: e_phys=f1060000 maddr=fa4bc000 type=0 len=16384 index=0 first_map=1 pt_iomem_map: e_phys=f1064000 maddr=fadfe000 type=0 len=8192 index=0 first_map=1 pt_iomem_map: e_phys=f1066000 maddr=fa3f6000 type=0 len=4096 index=0 first_map=1 pt_iomem_map: e_phys=f1067000 maddr=fa3fc000 type=0 len=4096 index=0 first_map=1 pt_ioport_map: e_phys=c100 pio_base=7000 len=256 index=4 first_map=1 pt_ioport_map: e_phys=c100 pio_base=7000 len=256 index=4 first_map=0 ati_legacy_io_write: ERROR: port 0x3c3 I/O write not handled ati_gfx_init: ATI GFX Guest Info: pio_index=0x00000004, guest_pio_bar=0x0000c100 mmio_bar1_index=0x00000000, guest_mmio_bar1=0xe0000000 mmio_bar2_index=0x00000002, guest_mmio_bar2=0xf1020000 ati_legacy_io_write: ERROR: port 0x3c3 I/O write not handled ati_legacy_io_write: ERROR: port 0x3c3 I/O write not handled ati_legacy_io_write: ERROR: port 0x3c3 I/O write not handled 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. Best Regards, Kristijan Lecnik On Fri, Apr 13, 2012 at 5:33 PM, Huang2, Wei <Wei.Huang2@amd.com> wrote:> Hi Kristijan,**** > > ** ** > > Sorry, was busy recently. Stub domain failure is OK. I think Ian (or > someone else) reported it before. You can do the following steps:**** > > ** ** > > **1. **Apply the patch**** > > **2. **Go to xen-unstable.hg/tools/qemu-xen-traditional-dir-remote/ > and compile it**** > > **3. **You will get an un-stripped qemu-dm under i386-dm/**** > > **4. **Copy it to your destination to replace existing > /usr/lib/xen/bin/qemu-dm file**** > > ** ** > > ** ** > > -Wei**** > > ** ** > > *From:* Kristijan Lečnik [mailto:janez3k@gmail.com] > *Sent:* Friday, April 13, 2012 6:57 AM > *To:* Huang2, Wei > *Subject:* Fwd: [Xen-devel] AMD/ATI patch for xen 4.2-unstable**** > > ** ** > > Hi, > > i am sorry to bother you, but did you manage to see my errors, with the > new patch? > > Best Regards, > Kristijan Lecnik**** > > ---------- Forwarded message ---------- > From: *Kristijan Lečnik* <janez3k@gmail.com> > Date: Sun, Apr 8, 2012 at 3:37 PM > Subject: Re: [Xen-devel] AMD/ATI patch for xen 4.2-unstable > To: wei.huang2@amd.com > Cc: xen-devel@lists.xen.org > > > Hi,**** > > ** ** > > just try to compile with xen unstable 4.2 repo from 8.april 2012**** > > ** ** > > make --directory=arch/x86 > OBJ_DIR=/root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/arch/x86 || exit > 1;**** > > make[3]: Entering directory `/root/xen-unstable.hg/extras/mini-os/arch/x86'' > **** > > make[3]: Nothing to be done for `all''.**** > > make[3]: Leaving directory `/root/xen-unstable.hg/extras/mini-os/arch/x86'' > **** > > ld -r -nostdlib > -L/root/xen-unstable.hg/stubdom/cross-root-x86_64/x86_64-xen-elf/lib -m > elf_x86_64 > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/arch/x86/x86_64.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os_app.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/blkfront.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/events.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/fbfront.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/gntmap.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/gnttab.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/hypervisor.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/kernel.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lock.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/main.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mm.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/netfront.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/pcifront.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/sched.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/ctype.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/math.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/printf.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/stack_chk_fail.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/string.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/sys.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/xmalloc.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lib/xs.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/xenbus/xenbus.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/console/console.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/console/xencons_ring.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/console/xenbus.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/lwip.a > -L/root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/arch/x86 -lx86_64 -lc > -o /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o**** > > objcopy -w -G xenos_* -G _start > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o**** > > ld -nostdlib > -L/root/xen-unstable.hg/stubdom/cross-root-x86_64/x86_64-xen-elf/lib -m > elf_x86_64 -T arch/x86/minios-x86_64.lds > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o -o > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os**** > > ld: warning: section `.bss'' type changed to PROGBITS**** > > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o: In function > `ati_hw_out'':**** > > /root/xen-unstable.hg/stubdom/ioemu/hw/pt-graphics.c:82: undefined > reference to `ioperm''**** > > /root/xen-unstable.hg/stubdom/ioemu/hw/pt-graphics.c:84: undefined > reference to `ioperm''**** > > /root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os.o: In function > `ati_hw_in'':**** > > /root/xen-unstable.hg/stubdom/ioemu/hw/pt-graphics.c:72: undefined > reference to `ioperm''**** > > /root/xen-unstable.hg/stubdom/ioemu/hw/pt-graphics.c:74: undefined > reference to `ioperm''**** > > make[2]: *** [/root/xen-unstable.hg/stubdom/mini-os-x86_64-ioemu/mini-os] > Error 1**** > > make[2]: Leaving directory `/root/xen-unstable.hg/extras/mini-os''**** > > make[1]: *** [ioemu-stubdom] Error 2**** > > make[1]: Leaving directory `/root/xen-unstable.hg/stubdom''**** > > make: *** [install-stubdom] Error 2**** > > ** ** > > using linux kernel 3.3**** > > ** ** > > nm /usr/lib/libc.a |grep -i ioperm**** > > ioperm.o:**** > > 0000000000000000 T ioperm**** > > ** ** > > Best Regards,**** > > Kristijan Lecnik**** > > ** ** > > ** ** > > On Tue, Apr 3, 2012 at 11:07 PM, Wei Huang <wei.huang2@amd.com> wrote:**** > > I just re-spin the patch, but haven''t tested it yet. You want to try it > (attached)? Make sure you are using AMD GPU as the primary. > > -Wei**** > > > > > On 04/01/2012 08:03 PM, Kristijan Lečnik wrote: **** > > Hi, **** > > ** ** > > i am trying to apply AMD/ATI patch on xen4-2 unstable**** > > > http://old-list-archives.xen.org/archives/html/xen-devel/2010-12/txtNwRlN3jloS.txt > **** > > ** ** > > and there was some changes in code and the patch is unusable, is there a > new patch. or can somebody help me to update the patch?**** > > ** ** > > make[4]: Entering directory > `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remote/i386-dm'' > **** > > CC i386-dm/pt-graphics.o**** > > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c: > In function ‘igd_register_vga_regions’:**** > > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:373: > error: too many arguments to function ‘pt_pci_host_read’**** > > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:374: > error: too many arguments to function ‘pt_pci_host_read’**** > > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c: > In function ‘igd_unregister_vga_regions’:**** > > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:396: > error: too many arguments to function ‘pt_pci_host_read’**** > > /root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir/hw/pt-graphics.c:397: > error: too many arguments to function ‘pt_pci_host_read’**** > > make[4]: *** [pt-graphics.o] Error 1**** > > make[4]: Leaving directory > `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remote/i386-dm'' > **** > > make[3]: *** [subdir-i386-dm] Error 2**** > > make[3]: Leaving directory > `/root/xen-unstable.hg-IN_USE_PATCHED/tools/qemu-xen-traditional-dir-remote'' > **** > > make[2]: *** [subdir-install-qemu-xen-traditional-dir] Error 2**** > > make[2]: Leaving directory `/root/xen-unstable.hg-IN_USE_PATCHED/tools''*** > * > > make[1]: *** [subdirs-install] Error 2**** > > make[1]: Leaving directory `/root/xen-unstable.hg-IN_USE_PATCHED/tools''*** > * > > make: *** [install-tools] Error 2**** > > ** ** > > > http://xen.1045712.n5.nabble.com/PATCH-1-3-qemu-xen-Change-prototype-for-pt-pci-host-read-write-td5016713.html > **** > > ** ** > > example:**** > > ** ** > > old syle:**** > > vendor_id = pt_pci_host_read(0, 2, 0, 0, 2);**** > > ** ** > > new syle:**** > > vid = pt_pci_host_read(pci_dev_1f, PCI_VENDOR_ID, 2);**** > > ** ** > > Best Regards,**** > > Kristijan Lečnik**** > > ** ** > > ** ** > > ** ** >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Huang2, Wei wrote> > I just re-spin the patch, but haven''t tested it yet. You want to try it > (attached)? Make sure you are using AMD GPU as the primary. > > -Wei > _______________________________________________ > Xen-devel mailing list > Xen-devel@.xen > http://lists.xen.org/xen-devel >Works perfectly here. Intel i5-2500, Asrock z68 Extreme4 Gen3, AMD 6870 as primary. Xen Unstable 25254, Ubuntu 12.04, ubuntu 3.3.3 kernel. Gfx passthrough=0, just install ati drivers with vnc, then reboot and monitors turn on with full 3D acceleration. I''ve been using this patch (4.1 patch, 4.2 a couple of weeks) 6 months now, not a single bsod. Thanks everyone, Ivo -- View this message in context: http://xen.1045712.n5.nabble.com/AMD-ATI-patch-for-xen-4-2-unstable-tp5611297p5684634.html Sent from the Xen - Dev mailing list archive at Nabble.com.
Am Freitag, 4. Mai 2012, 02:32:13 schrieb n4rC0t1C:> Huang2, Wei wrote > > > I just re-spin the patch, but haven''t tested it yet. You want to try it > > (attached)? Make sure you are using AMD GPU as the primary. > > > > -Wei > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@.xen > > http://lists.xen.org/xen-devel > > Works perfectly here. > Intel i5-2500, Asrock z68 Extreme4 Gen3, AMD 6870 as primary. > Xen Unstable 25254, Ubuntu 12.04, ubuntu 3.3.3 kernel. > Gfx passthrough=0, just install ati drivers with vnc, then reboot and > monitors turn on with full 3D acceleration. >if i understand this patch and the gfx_passthrough parameter right, you don''t need this patch for this scenario: with gfx_passthrough=0 this patch does not what its intended to do, i.e. "declare" itself as the primary gpu within the DomU which would mean you could also see early boot messages and windows start screen on the monitor of the passed-through gpu (a feature i not really need). Greetings Tobias> I''ve been using this patch (4.1 patch, 4.2 a couple of weeks) 6 months now, > not a single bsod. > Thanks everyone, > Ivo > > > -- > View this message in context: > http://xen.1045712.n5.nabble.com/AMD-ATI-patch-for-xen-4-2-unstable-tp5611 > 297p5684634.html Sent from the Xen - Dev mailing list archive at > Nabble.com. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel