From: "Kristijan Lečnik" <janez3k@gmail.com>
To: wei.huang2@amd.com
Cc: xen-devel@lists.xen.org
Subject: Re: AMD/ATI patch for xen 4.2-unstable
Date: Sun, 8 Apr 2012 15:37:49 +0200	[thread overview]
Message-ID: <CACC+8CQOyeaijF-eUaCeOpiroCi6zS08UYh+LN+jYd9cR_XxUQ@mail.gmail.com> (raw)
In-Reply-To: <4F7B66A3.3080802@amd.com>
[-- Attachment #1.1: Type: text/plain, Size: 6422 bytes --]
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
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 8320 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply	other threads:[~2012-04-08 13:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-02  1:03 AMD/ATI patch for xen 4.2-unstable Kristijan Lečnik
2012-04-02  8:27 ` Pavel Mateja
2012-04-03 21:07 ` Wei Huang
2012-04-08 13:37   ` Kristijan Lečnik [this message]
2012-04-08 14:01     ` Pavel Matěja
     [not found]     ` <CACC+8CTGuZBhM7HJPiQSXwmkAe487iOz00AsnPZ6MB58nb8b1g@mail.gmail.com>
     [not found]       ` <4400B41FB768044EA720935D0808176C090BD76C@sausexdag02.amd.com>
2012-04-20  0:39         ` Kristijan Lečnik
2012-05-04  0:32   ` n4rC0t1C
2012-05-04  7:56     ` Tobias Geiger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox
  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):
  git send-email \
    --in-reply-to=CACC+8CQOyeaijF-eUaCeOpiroCi6zS08UYh+LN+jYd9cR_XxUQ@mail.gmail.com \
    --to=janez3k@gmail.com \
    --cc=wei.huang2@amd.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY
  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
  Be sure your reply has a Subject: header at the top and a blank line
  before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).