Some issues with the new amdgpu driver
diff mbox

Message ID 554B2B47.9090002@daenzer.net
State New
Headers show

Commit Message

Michel Dänzer May 7, 2015, 9:07 a.m. UTC
On 06.05.2015 12:12, Brian Paterni wrote:
> 
> I was on irc a few days ago trying to get the new amdgpu driver up and
> running on my system. I am able to get the kernel booted successfully,
> however X via amdgpu is turning out to be a real roadblock. It is the
> problem with amdgpu_drv.so seeing gbm_create_device as an undefined
> symbol. From what little I understand, I may be needing a more recent
> xserver to resolve this...

I don't think that would help.

Does the attached xf86-video-amdgpu patch fix the problem?

If not, you can manually load the glamoregl module in /etc/X11/xorg.conf
to pull in libgbm:

Section "Module"
	Load	"glamoregl"
EndSection

Comments

Brian Paterni May 10, 2015, 12:11 a.m. UTC | #1
On 05/09/2015 03:34 AM, Michel Dänzer wrote:
> On 09.05.2015 11:44, Brian Paterni wrote:
>> On 05/07/2015 04:07 AM, Michel Dänzer wrote:
>>> On 06.05.2015 12:12, Brian Paterni wrote:
>>>>
>>>> I was on irc a few days ago trying to get the new amdgpu driver up and
>>>> running on my system. I am able to get the kernel booted successfully,
>>>> however X via amdgpu is turning out to be a real roadblock. It is the
>>>> problem with amdgpu_drv.so seeing gbm_create_device as an undefined
>>>> symbol. From what little I understand, I may be needing a more recent
>>>> xserver to resolve this...
>>>
>>> I don't think that would help.
>>>
>>> Does the attached xf86-video-amdgpu patch fix the problem?
>>>
>>> If not, you can manually load the glamoregl module in /etc/X11/xorg.conf
>>> to pull in libgbm:
>>>
>>> Section "Module"
>>> 	Load	"glamoregl"
>>> EndSection
>>>
>>>
>>
>> Hi Michel, thanks for the reply. I got around to recompiling the stack
>> from the latest trees as noted by Alex earlier. However, I'm afraid
>> something may have changed recently and I may be needing a newer xserver
>> after all. Loading amdgpu_drv.so now results in:
>>
>> [  1122.347] (EE) module ABI major version (19) doesn't match the
>> server's version (18)
> 
> That just means the driver it's trying to load wasn't built against the
> same version of xserver. Make sure the xf86-video-amdgpu build is
> picking up the xorg-server.pc and header files of the same version of
> xserver you're trying to run.
> 
> 

Oops! Looks like I forgot to cc the mailing list.

I think my version mismatch issues above may have been resolved by a
recent upload of xserver-xorg-core 2:1.17.1-2 to debian unstable(?)...

As a result, I could finally test Michel's patch, and I am happy to say
that X via amdgpu is now working for me! Thanks to Michel! :)

However, the two additional issues mentioned in my initial post are
still present:

*) Non-working DVI-I-0 -- even if I use xrandr to turn it off and on
again, a signal is never acquired.

*) System lockup on xen boot (even magic sysrq is not recognized)
Brian Paterni May 10, 2015, 4:06 p.m. UTC | #2
On 05/09/2015 07:11 PM, Brian Paterni wrote:
> *) System lockup on xen boot (even magic sysrq is not recognized)

It's probably not much to go on, but I was able to capture a kernel/xen
boot log over serial. Unfortunately it doesn't look like a backtrace (or
any indication of a problem) was able to be captured. AFAICT all logging
just stops after line 388.

Regardless, the captured bootlog should be attached with hopes that it
may be helpful
__  __            _  _    __                      _        _     _      
 \ \/ /___ _ __   | || |  / /_     _   _ _ __  ___| |_ __ _| |__ | | ___ 
  \  // _ \ '_ \  | || |_| '_ \ __| | | | '_ \/ __| __/ _` | '_ \| |/ _ \
  /  \  __/ | | | |__   _| (_) |__| |_| | | | \__ \ || (_| | |_) | |  __/
 /_/\_\___|_| |_|    |_|(_)___/    \__,_|_| |_|___/\__\__,_|_.__/|_|\___|
                                                                         
(XEN) Xen version 4.6-unstable (root@) (gcc (Debian 4.9.2-10) 4.9.2) debug=y Wed Mar 11 19:20:10 CDT 2015
(XEN) Latest ChangeSet: Tue Mar 3 17:02:22 2015 +0000 git:f919dbc
(XEN) Bootloader: GRUB 2.02~beta2-22
(XEN) Command line: placeholder loglvl=all guest_loglvl=all com1=115200 console=com1,vga loglvl=all guest_loglvl=all vga=gfx-1920x1080x32
(XEN) Video information:
(XEN)  VGA is graphics mode 1920x1080, 32 bpp
(XEN)  VBE/DDC methods: V2; EDID transfer time: 1 seconds
(XEN) Disc information:
(XEN)  Found 5 MBR signatures
(XEN)  Found 5 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009e800 (usable)
(XEN)  000000000009e800 - 00000000000a0000 (reserved)
(XEN)  00000000000e0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 000000009a763000 (usable)
(XEN)  000000009a763000 - 000000009ab97000 (reserved)
(XEN)  000000009ab97000 - 000000009aba7000 (ACPI data)
(XEN)  000000009aba7000 - 000000009b9af000 (ACPI NVS)
(XEN)  000000009b9af000 - 000000009ca34000 (reserved)
(XEN)  000000009ca34000 - 000000009ca35000 (usable)
(XEN)  000000009ca35000 - 000000009cc3b000 (ACPI NVS)
(XEN)  000000009cc3b000 - 000000009d083000 (usable)
(XEN)  000000009d083000 - 000000009d7f4000 (reserved)
(XEN)  000000009d7f4000 - 000000009d800000 (usable)
(XEN)  00000000f8000000 - 00000000fc000000 (reserved)
(XEN)  00000000fec00000 - 00000000fec01000 (reserved)
(XEN)  00000000fec10000 - 00000000fec11000 (reserved)
(XEN)  00000000fec20000 - 00000000fec21000 (reserved)
(XEN)  00000000fed00000 - 00000000fed01000 (reserved)
(XEN)  00000000fed61000 - 00000000fed71000 (reserved)
(XEN)  00000000fed80000 - 00000000fed90000 (reserved)
(XEN)  00000000fef00000 - 0000000100000000 (reserved)
(XEN)  0000000100001000 - 000000045f000000 (usable)
(XEN) ACPI: RSDP 000F0490, 0024 (r2 ALASKA)
(XEN) ACPI: XSDT 9AB9E070, 005C (r1 ALASKA    A M I  1072009 AMI     10013)
(XEN) ACPI: FACP 9ABA5110, 010C (r5 ALASKA    A M I  1072009 AMI     10013)
(XEN) ACPI Warning (tbfadt-0464): Optional field "Pm2ControlBlock" has zero address or length: 0000000000000000/1 [20070126]
(XEN) ACPI: DSDT 9AB9E168, 6FA8 (r2 ALASKA    A M I        0 INTL 20051117)
(XEN) ACPI: FACS 9B9A9F80, 0040
(XEN) ACPI: APIC 9ABA5220, 009E (r3 ALASKA    A M I  1072009 AMI     10013)
(XEN) ACPI: FPDT 9ABA52C0, 0044 (r1 ALASKA    A M I  1072009 AMI     10013)
(XEN) ACPI: MCFG 9ABA5308, 003C (r1 ALASKA    A M I  1072009 MSFT    10013)
(XEN) ACPI: HPET 9ABA5348, 0038 (r1 ALASKA    A M I  1072009 AMI         5)
(XEN) ACPI: IVRS 9ABA6AF0, 0100 (r1  AMD     RD890S   202031 AMD         0)
(XEN) ACPI: SSDT 9ABA53D8, 1714 (r1 AMD    POWERNOW        1 AMD         1)
(XEN) System RAM: 16283MB (16674132kB)
(XEN) No NUMA configuration found
(XEN) Faking a node at 0000000000000000-000000045f000000
(XEN) Domain heap initialised
(XEN) vesafb: framebuffer at 0xc0000000, mapped to 0xffff82c000201000, using 8192k, total 16384k
(XEN) vesafb: mode is 1920x1080x32, linelength=7680, font 8x16
(XEN) vesafb: Truecolor: size=0:8:8:8, shift=0:16:8:0
(XEN) Couldn't initialize a 1920x1080 framebuffer early.
(XEN) DMI 2.7 present.
(XEN) Using APIC driver default
(XEN) ACPI: PM-Timer IO Port: 0x808
(XEN) ACPI: v5 SLEEP INFO: control[0:0], status[0:0]
(XEN) ACPI: SLEEP INFO: pm1x_cnt[1:804,1:0], pm1x_evt[1:800,1:0]
(XEN) ACPI: 32/64X FACS address mismatch in FADT - 9b9a9f80/0000000000000000, using 32
(XEN) ACPI:             wakeup_vec[9b9a9f8c], vec_size[20]
(XEN) ACPI: Local APIC address 0xfee00000
(XEN) ACPI: LAPIC (acpi_id[0x01] lapic_id[0x10] enabled)
(XEN) Processor #16 5:2 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x02] lapic_id[0x11] enabled)
(XEN) Processor #17 5:2 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x03] lapic_id[0x12] enabled)
(XEN) Processor #18 5:2 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x13] enabled)
(XEN) Processor #19 5:2 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x05] lapic_id[0x14] enabled)
(XEN) Processor #20 5:2 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x06] lapic_id[0x15] enabled)
(XEN) Processor #21 5:2 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x07] lapic_id[0x16] enabled)
(XEN) Processor #22 5:2 APIC version 16
(XEN) ACPI: LAPIC (acpi_id[0x08] lapic_id[0x17] enabled)
(XEN) Processor #23 5:2 APIC version 16
(XEN) ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
(XEN) ACPI: IOAPIC (id[0x09] address[0xfec00000] gsi_base[0])
(XEN) IOAPIC[0]: apic_id 9, version 33, address 0xfec00000, GSI 0-23
(XEN) ACPI: IOAPIC (id[0x0a] address[0xfec20000] gsi_base[24])
(XEN) IOAPIC[1]: apic_id 10, version 33, address 0xfec20000, GSI 24-55
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
(XEN) ACPI: IRQ0 used by override.
(XEN) ACPI: IRQ2 used by override.
(XEN) ACPI: IRQ9 used by override.
(XEN) Enabling APIC mode:  Flat.  Using 2 I/O APICs
(XEN) ACPI: HPET id: 0x43538210 base: 0xfed00000
(XEN) ERST table was not found
(XEN) Using ACPI (MADT) for SMP configuration information
(XEN) SMP: Allowing 8 CPUs (0 hotplug CPUs)
(XEN) IRQ limits: 56 GSI, 1496 MSI/MSI-X
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 4013.601 MHz processor.
(XEN) Initing memory sharing.
(XEN) xstate_init: using cntxt_size: 0x3c0 and states: 0x4000000000000007
(XEN) AMD Fam15h machine check reporting enabled
(XEN) alt table ffff82d0802db890 -> ffff82d0802dca90
(XEN) PCI: MCFG configuration 0: base e0000000 segment 0000 buses 00 - ff
(XEN) PCI: Not using MCFG for segment 0000 bus 00-ff
(XEN) AMD-Vi: Disabled HAP memory map sharing with IOMMU
(XEN) AMD-Vi: IOMMU 0 Enabled.
(XEN) I/O virtualisation enabled
(XEN)  - Dom0 mode: Relaxed
(XEN) Interrupt remapping enabled
(XEN) ENABLING IO-APIC IRQs
(XEN)  -> Using new ACK method
(XEN) ..TIMER: vector=0xF0 apic1=0 pin1=2 apic2=-1 pin2=-1
(XEN) Platform timer is 14.318MHz HPET
(XEN) Allocated console ring of 64 KiB.
(XEN) HVM: ASIDs enabled.
(XEN) SVM: Supported advanced features:
(XEN)  - Nested Page Tables (NPT)
(XEN)  - Last Branch Record (LBR) Virtualisation
(XEN)  - Next-RIP Saved on #VMEXIT
(XEN)  - VMCB Clean Bits
(XEN)  - DecodeAssists
(XEN)  - Pause-Intercept Filter
(XEN)  - TSC Rate MSR
(XEN) HVM: SVM enabled
(XEN) HVM: Hardware Assisted Paging (HAP) detected
(XEN) HVM: HAP page sizes: 4kB, 2MB, 1GB
(XEN) HVM: PVH mode not supported on this platform
(XEN) Brought up 8 CPUs
(XEN) ACPI sleep modes: S3
(XEN) MCA: Use hw thresholding to adjust polling frequency
(XEN) mcheck_poll: Machine check polling timer started.
(XEN) mtrr: your CPUs had inconsistent variable MTRR settings
(XEN) mtrr: probably your BIOS does not setup all CPUs.
(XEN) mtrr: corrected configuration.
(XEN) MTRR default type: uncachable
(XEN) MTRR fixed ranges enabled:
(XEN)   00000-9ffff write-back
(XEN)   a0000-bffff write-through
(XEN)   c0000-cffff write-protect
(XEN)   d0000-ebfff uncachable
(XEN)   ec000-fffff write-protect
(XEN) MTRR variable ranges enabled:
(XEN)   0 base 000000000000 mask ffff80000000 write-back
(XEN)   1 base 000080000000 mask ffffe0000000 write-back
(XEN)   2 base 00009d800000 mask ffffff800000 uncachable
(XEN)   3 base 00009e000000 mask fffffe000000 uncachable
(XEN)   4 disabled
(XEN)   5 disabled
(XEN)   6 disabled
(XEN)   7 disabled
(XEN) Dom0 has maximum 824 PIRQs
(XEN) *** LOADING DOMAIN 0 ***
(XEN) elf_parse_binary: phdr: paddr=0x1000000 memsz=0x7cf000
(XEN) elf_parse_binary: phdr: paddr=0x1800000 memsz=0x10b000
(XEN) elf_parse_binary: phdr: paddr=0x190b000 memsz=0x17758
(XEN) elf_parse_binary: phdr: paddr=0x1923000 memsz=0x21e000
(XEN) elf_parse_binary: memory: 0x1000000 -> 0x1b41000
(XEN) elf_xen_parse_note: GUEST_OS = "linux"
(XEN) elf_xen_parse_note: GUEST_VERSION = "2.6"
(XEN) elf_xen_parse_note: XEN_VERSION = "xen-3.0"
(XEN) elf_xen_parse_note: VIRT_BASE = 0xffffffff80000000
(XEN) elf_xen_parse_note: ENTRY = 0xffffffff819231f0
(XEN) elf_xen_parse_note: HYPERCALL_PAGE = 0xffffffff81001000
(XEN) elf_xen_parse_note: FEATURES = "!writable_page_tables|pae_pgdir_above_4gb|writable_descriptor_tables|auto_translated_physmap|supervisor_mode_kernel"
(XEN) elf_xen_parse_note: SUPPORTED_FEATURES = 0x90d
(XEN) elf_xen_parse_note: PAE_MODE = "yes"
(XEN) elf_xen_parse_note: LOADER = "generic"
(XEN) elf_xen_parse_note: unknown xen elf note (0xd)
(XEN) elf_xen_parse_note: SUSPEND_CANCEL = 0x1
(XEN) elf_xen_parse_note: MOD_START_PFN = 0x1
(XEN) elf_xen_parse_note: HV_START_LOW = 0xffff800000000000
(XEN) elf_xen_parse_note: PADDR_OFFSET = 0x0
(XEN) elf_xen_addr_calc_check: addresses:
(XEN)     virt_base        = 0xffffffff80000000
(XEN)     elf_paddr_offset = 0x0
(XEN)     virt_offset      = 0xffffffff80000000
(XEN)     virt_kstart      = 0xffffffff81000000
(XEN)     virt_kend        = 0xffffffff81b41000
(XEN)     virt_entry       = 0xffffffff819231f0
(XEN)     p2m_base         = 0xffffffffffffffff
(XEN)  Xen  kernel: 64-bit, lsb, compat32
(XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x1b41000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Dom0 alloc.:   000000044c000000->0000000450000000 (4059030 pages to be allocated)
(XEN)  Init. ramdisk: 000000045e007000->000000045efffc16
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: ffffffff81000000->ffffffff81b41000
(XEN)  Init. ramdisk: 0000000000000000->0000000000000000
(XEN)  Phys-Mach map: ffffffff81b41000->ffffffff83a60c78
(XEN)  Start info:    ffffffff83a61000->ffffffff83a614b4
(XEN)  Page tables:   ffffffff83a62000->ffffffff83a83000
(XEN)  Boot stack:    ffffffff83a83000->ffffffff83a84000
(XEN)  TOTAL:         ffffffff80000000->ffffffff83c00000
(XEN)  ENTRY ADDRESS: ffffffff819231f0
(XEN) Dom0 has maximum 8 VCPUs
(XEN) elf_load_binary: phdr 0 at 0xffffffff81000000 -> 0xffffffff817cf000
(XEN) elf_load_binary: phdr 1 at 0xffffffff81800000 -> 0xffffffff8190b000
(XEN) elf_load_binary: phdr 2 at 0xffffffff8190b000 -> 0xffffffff81922758
(XEN) elf_load_binary: phdr 3 at 0xffffffff81923000 -> 0xffffffff81a4a000
(XEN) Scrubbing Free RAM on 1 nodes using 4 CPUs
(XEN) ...................................done.
(XEN) Initial low memory virq threshold set at 0x4000 pages.
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 284kB init memory.
mapping kernel into physical memory
about to get started...
(XEN) traps.c:2654:d0v0 Domain attempted WRMSR 00000000c0000081 from 0xe023e00800000000 to 0x0023001000000000.
(XEN) traps.c:2654:d0v0 Domain attempted WRMSR 00000000c0000082 from 0xffff82d0802e3000 to 0xffffffff81567150.
(XEN) traps.c:2654:d0v0 Domain attempted WRMSR 00000000c0000083 from 0xffff82d0802e3080 to 0xffffffff81569a40.
(XEN) traps.c:2654:d0v0 Domain attempted WRMSR 0000000000000174 from 0x0000000000000000 to 0x0000000000000010.
(XEN) traps.c:2654:d0v0 Domain attempted WRMSR 0000000000000176 from 0x0000000000000000 to 0xffffffff81569810.
(XEN) traps.c:2654:d0v0 Domain attempted WRMSR 00000000c0000084 from 0x0000000000074700 to 0x0000000000047700.
[    0.000000] PAT configuration [0-7]: WB  WT  UC- UC  WC  WP  UC  UC  
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.0-rc2amdgpu+ (bpaterni@hafx) (gcc version 4.9.2 (Debian 4.9.2-16) ) #1 SMP Fri May 8 19:33:42 CDT 2015
[    0.000000] Command line: placeholder root=/dev/mapper/hafx-root ro console=tty console=hvc0 console=ttyS0,115200n8 earlyprintk=serial,ttyS0,115200,keep
[    0.000000] Released 0 page(s)
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] Xen: [mem 0x0000000000000000-0x000000000009dfff] usable
[    0.000000] Xen: [mem 0x000000000009e800-0x00000000000fffff] reserved
[    0.000000] Xen: [mem 0x0000000000100000-0x000000009a762fff] usable
[    0.000000] Xen: [mem 0x000000009a763000-0x000000009ab96fff] reserved
[    0.000000] Xen: [mem 0x000000009ab97000-0x000000009aba6fff] ACPI data
[    0.000000] Xen: [mem 0x000000009aba7000-0x000000009b9aefff] ACPI NVS
[    0.000000] Xen: [mem 0x000000009b9af000-0x000000009ca33fff] reserved
[    0.000000] Xen: [mem 0x000000009ca34000-0x000000009ca34fff] usable
[    0.000000] Xen: [mem 0x000000009ca35000-0x000000009cc3afff] ACPI NVS
[    0.000000] Xen: [mem 0x000000009cc3b000-0x000000009d082fff] usable
[    0.000000] Xen: [mem 0x000000009d083000-0x000000009d7f3fff] reserved
[    0.000000] Xen: [mem 0x000000009d7f4000-0x000000009d7fffff] usable
[    0.000000] Xen: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
[    0.000000] Xen: [mem 0x00000000feb20000-0x00000000feb23fff] reserved
[    0.000000] Xen: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
[    0.000000] Xen: [mem 0x00000000fec10000-0x00000000fec10fff] reserved
[    0.000000] Xen: [mem 0x00000000fec20000-0x00000000fec20fff] reserved
[    0.000000] Xen: [mem 0x00000000fed00000-0x00000000fed00fff] reserved
[    0.000000] Xen: [mem 0x00000000fed61000-0x00000000fed70fff] reserved
[    0.000000] Xen: [mem 0x00000000fed80000-0x00000000fed8ffff] reserved
[    0.000000] Xen: [mem 0x00000000fee00000-0x00000000ffffffff] reserved
[    0.000000] Xen: [mem 0x0000000100001000-0x000000045effffff] usable
[    0.000000] Xen: [mem 0x000000fd00000000-0x000000ffffffffff] reserved
[    0.000000] earlycon: no match for tty
[    0.000000] earlycon: no match for hvc0
[    0.000000] earlycon: no match for ttyS0,115200n8
[    0.000000] console [earlyser0] enabled
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.7 present.
[    0.000000] AGP: No AGP bridge found
[    0.000000] e820: last_pfn = 0x45f000 max_arch_pfn = 0x400000000
[    0.000000] e820: last_pfn = 0x9d800 max_arch_pfn = 0x400000000
[    0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[    0.000000] init_memory_mapping: [mem 0x3e3c00000-0x3e3dfffff]
[    0.000000] init_memory_mapping: [mem 0x3e0000000-0x3e3bfffff]
[    0.000000] init_memory_mapping: [mem 0x3c0000000-0x3dfffffff]
[    0.000000] init_memory_mapping: [mem 0x00100000-0x9a762fff]
[    0.000000] init_memory_mapping: [mem 0x9ca34000-0x9ca34fff]
[    0.000000] init_memory_mapping: [mem 0x9cc3b000-0x9d082fff]
[    0.000000] init_memory_mapping: [mem 0x9d7f4000-0x9d7fffff]
[    0.000000] init_memory_mapping: [mem 0x100001000-0x3bfffffff]
[    0.000000] init_memory_mapping: [mem 0x3e3e00000-0x45effffff]
[    0.000000] RAMDISK: [mem 0x04000000-0x04ff8fff]
[    0.000000] ACPI: Early table checksum verification disabled
[    0.000000] ACPI: RSDP 0x00000000000F0490 000024 (v02 ALASKA)
[    0.000000] ACPI: XSDT 0x000000009AB9E070 00005C (v01 ALASKA A M I    01072009 AMI  00010013)
[    0.000000] ACPI: FACP 0x000000009ABA5110 00010C (v05 ALASKA A M I    01072009 AMI  00010013)
[    0.000000] ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has zero address or length: 0x0000000000000000/0x1 (20150410/tbfadt-649)
[    0.000000] ACPI: DSDT 0x000000009AB9E168 006FA8 (v02 ALASKA A M I    00000000 INTL 20051117)
[    0.000000] ACPI: FACS 0x000000009B9A9F80 000040
[    0.000000] ACPI: APIC 0x000000009ABA5220 00009E (v03 ALASKA A M I    01072009 AMI  00010013)
[    0.000000] ACPI: FPDT 0x000000009ABA52C0 000044 (v01 ALASKA A M I    01072009 AMI  00010013)
[    0.000000] ACPI: MCFG 0x000000009ABA5308 00003C (v01 ALASKA A M I    01072009 MSFT 00010013)
[    0.000000] ACPI: HPET 0x000000009ABA5348 000038 (v01 ALASKA A M I    01072009 AMI  00000005)
[    0.000000] ACPI: IVRS 0x000000009ABA6AF0 000100 (v01 AMD    RD890S   00202031 AMD  00000000)
[    0.000000] ACPI: SSDT 0x000000009ABA53D8 001714 (v01 AMD    POWERNOW 00000001 AMD  00000001)
[    0.000000] Setting APIC routing to Xen PV.
[    0.000000] NUMA turned off
[    0.000000] Faking a node at [mem 0x0000000000000000-0x000000045effffff]
[    0.000000] NODE_DATA(0) allocated [mem 0x3e3f8b000-0x3e3f8efff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000000]   DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000045effffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000001000-0x000000000009dfff]
[    0.000000]   node   0: [mem 0x0000000000100000-0x000000009a762fff]
[    0.000000]   node   0: [mem 0x000000009ca34000-0x000000009ca34fff]
[    0.000000]   node   0: [mem 0x000000009cc3b000-0x000000009d082fff]
[    0.000000]   node   0: [mem 0x000000009d7f4000-0x000000009d7fffff]
[    0.000000]   node   0: [mem 0x0000000100001000-0x000000045effffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000045effffff]
[    0.000000] p2m virtual area at ffffc90000000000, size is 40000000
[    0.000000] Remapped 414891 page(s)
[    0.000000] ACPI: PM-Timer IO Port: 0x808
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
[    0.000000] IOAPIC[0]: apic_id 9, version 33, address 0xfec00000, GSI 0-23
[    0.000000] IOAPIC[1]: apic_id 10, version 33, address 0xfec20000, GSI 24-55
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] ACPI: HPET id: 0x43538210 base: 0xfed00000
[    0.000000] smpboot: Allowing 8 CPUs, 0 hotplug CPUs
[    0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[    0.000000] PM: Registered nosave memory: [mem 0x0009e000-0x0009efff]
[    0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x000fffff]
[    0.000000] PM: Registered nosave memory: [mem 0x9a763000-0x9ab96fff]
[    0.000000] PM: Registered nosave memory: [mem 0x9ab97000-0x9aba6fff]
[    0.000000] PM: Registered nosave memory: [mem 0x9aba7000-0x9b9aefff]
[    0.000000] PM: Registered nosave memory: [mem 0x9b9af000-0x9ca33fff]
[    0.000000] PM: Registered nosave memory: [mem 0x9ca35000-0x9cc3afff]
[    0.000000] PM: Registered nosave memory: [mem 0x9d083000-0x9d7f3fff]
[    0.000000] PM: Registered nosave memory: [mem 0x9d800000-0xf7ffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xf8000000-0xfbffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfc000000-0xfeb1ffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfeb20000-0xfeb23fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfeb24000-0xfebfffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec00000-0xfec00fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec01000-0xfec0ffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec10000-0xfec10fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec11000-0xfec1ffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec20000-0xfec20fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec21000-0xfecfffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfed00000-0xfed00fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfed01000-0xfed60fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfed61000-0xfed70fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfed71000-0xfed7ffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfed80000-0xfed8ffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfed90000-0xfedfffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfee00000-0xffffffff]
[    0.000000] PM: Registered nosave memory: [mem 0x100000000-0x100000fff]
[    0.000000] e820: [mem 0x9d800000-0xf7ffffff] available for PCI devices
[    0.000000] Booting paravirtualized kernel on Xen
[    0.000000] Xen version: 4.6-unstable (preserve-AD)
[    0.000000] clocksource refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.000000] setup_percpu: NR_CPUS:512 nr_cpumask_bits:512 nr_cpu_ids:8 nr_node_ids:1
[    0.000000] PERCPU: Embedded 33 pages/cpu @ffff880449200000 s96088 r8192 d30888 u262144
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 4103376
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: placeholder root=/dev/mapper/hafx-root ro console=tty console=hvc0 console=ttyS0,115200n8 earlyprintk=serial,ttyS0,115200,keep
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] xsave: enabled xstate_bv 0x7, cntxt size 0x340 using standard form
[    0.000000] software IO TLB [mem 0x445200000-0x449200000] (64MB) mapped at [ffff880445200000-ffff8804491fffff]
[    0.000000] Memory: 15894748K/16674128K available (5552K kernel code, 1062K rwdata, 1852K rodata, 1252K init, 832K bss, 779380K reserved, 0K cma-reserved)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	RCU dyntick-idle grace-period acceleration is enabled.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=512 to nr_cpu_ids=8.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8
[    0.000000] NR_IRQS:33024 nr_irqs:1032 16
[    0.000000] xen:events: Using FIFO-based ABI
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [tty0] enabled
[    0.000000] console [hvc0] enabled
[    0.000000] console [ttyS0] enabled
[    0.000000] clocksource xen: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[    0.000000] installing Xen timer for CPU 0
[    0.000000] tsc: Detected 4013.600 MHz processor
[    5.072968] Calibrating delay loop (skipped), value calculated using timer frequency.. 8027.20 BogoMIPS (lpj=16054400)
[    5.073181] pid_max: default: 32768 minimum: 301
[    5.073279] ACPI: Core revision 20150410
[    5.078592] ACPI: All ACPI Tables successfully acquired
[    5.353940] Security Framework initialized
[    5.354033] AppArmor: AppArmor disabled by boot time parameter
[    5.354148] Yama: becoming mindful.
[    5.356672] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes)
[    5.361486] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[    5.363430] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    5.363607] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    5.364038] Initializing cgroup subsys blkio
[    5.364125] Initializing cgroup subsys memory
[    5.364221] Initializing cgroup subsys devices
[    5.364312] Initializing cgroup subsys freezer
[    5.364403] Initializing cgroup subsys net_cls
[    5.364494] Initializing cgroup subsys perf_event
[    5.364589] Initializing cgroup subsys net_prio
[    5.364760] CPU: Physical Processor ID: 0
[    5.364843] CPU: Processor Core ID: 0
[    5.364919] mce: CPU supports 2 MCE banks
[    5.365008] Last level iTLB entries: 4KB 512, 2MB 1024, 4MB 512
[    5.365126] Last level dTLB entries: 4KB 1024, 2MB 1024, 4MB 512, 1GB 0
[    5.365331] Freeing SMP alternatives memory: 20K (ffffffff81a44000 - ffffffff81a49000)
[    5.366275] ftrace: allocating 22574 entries in 89 pages

Patch
diff mbox

From 8ae3d0696257cab73676481273885c6a74bd21ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <michel.daenzer@amd.com>
Date: Thu, 7 May 2015 18:05:32 +0900
Subject: [PATCH xf86-video-amdgpu] Link against libgbm
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
---
 configure.ac    | 1 +
 src/Makefile.am | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index ead206e..946c70e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,6 +73,7 @@  XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
 # Checks for libraries.
 PKG_CHECK_MODULES(LIBDRM, [libdrm >= 2.4.46])
 PKG_CHECK_MODULES(LIBDRM_AMDGPU, [libdrm_amdgpu])
+PKG_CHECK_MODULES(GBM, [gbm])
 
 # Obtain compiler/linker options for the driver dependencies
 PKG_CHECK_MODULES(XORG, [xorg-server >= 1.7 xproto fontsproto xf86driproto $REQUIRED_MODULES])
diff --git a/src/Makefile.am b/src/Makefile.am
index 817da2d..8715eb3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -26,11 +26,12 @@ 
 # _ladir passes a dummy rpath to libtool so the thing will actually link
 # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
 
-amdgpu_drv_la_LIBADD = $(PCIACCESS_LIBS) $(LIBDRM_AMDGPU_LIBS)
+amdgpu_drv_la_LIBADD = $(PCIACCESS_LIBS) $(LIBDRM_AMDGPU_LIBS) $(GBM_LIBS)
 
 AMDGPU_KMS_SRCS=amdgpu_dri2.c amdgpu_kms.c drmmode_display.c amdgpu_bo_helper.c
 
 AM_CFLAGS = \
+            @GBM_CFLAGS@ \
             @LIBDRM_AMDGPU_CFLAGS@ \
             @XORG_CFLAGS@ \
             @LIBUDEV_CFLAGS@
-- 
2.1.4