system boots extremely slow with AMD R9 GPU

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Xen
Reply | Threaded
Open this post in threaded view
|

system boots extremely slow with AMD R9 GPU

Xen
I was actually just meaning to ask here,

that my Linux system boots very slowly when I have inserted a AMD R9 380
graphics card.

I don't know how to say it now, my message was aborted because I
attached a dmesg log.

Both when running kernel 4.4.0 and 4.8.0 on a Kubuntu 16.04 system the
booting takes almost indefinitely long, both during the kernel
initialization, or actually mostly during that, after a while the system
is functional.

Basically the kernel takes extremely long before it even enters the
systemd stage.

I am talking about several minutes before it hits SystemD.

The only messages in dmesg that really seem out of the ordinary are
these:

[   13.963791] Failed to send Previous Message.
[   14.161143] Failed to send Message.
[   14.358509] Failed to send Previous Message.
[   14.555867] Failed to send Message.
[   14.753214] Failed to send Previous Message.

And there is a bunch of them.

If I filter out those messages, this is what my dmesg looks like:

I will just show you what starts happening after the AMD GPU is
recognised apparently. I have filtered out the majority of those
messages. (The failed to send previous message, messges).

As you can see, after 14 seconds (more or about) the first normal
message is:

"[  139.328143] Console: switching to colour frame buffer device 180x56"

and

"[  139.333613] amdgpu 0000:01:00.0: fb0: amdgpudrmfb frame buffer
device"

and this is after 139 total seconds into booting. In between, there is
only:

[  100.054980] Failed to send Previous Message.
[  100.252320] Failed to send Message.
[  100.647012] Failed to send Previous Message.
[  100.844367] Failed to send Message.
[  101.239097] Failed to send Previous Message.
[  101.436457] Failed to send Message.
[  101.633824] Failed to send Previous Message.
[  101.831165] Failed to send Message.

and nothing else.

This is a very condensed dmesg, I have taken out all the USB stuff and
everything leading up to 2.75.

I have also taken out most of the sata stuff.

These messagses keep appearing also after boot. The full text is
available at : https://paste.ubuntu.com/24150392/

What could be causing those messages and is this clear it is a AMD GPU
problem here?



-----------------------------------------------------------

[    2.753135] [drm] Initialized drm 1.1.0 20060810

[    2.784700] [drm] amdgpu kernel modesetting enabled.
[    2.787553] AMD IOMMUv2 driver by Joerg Roedel <[hidden email]>
[    2.787557] AMD IOMMUv2 functionality not available on this system
[    2.791214] CRAT table not found
[    2.791218] Finished initializing topology ret=0
[    2.791279] kfd kfd: Initialized module
[    2.791569] checking generic (b0000000 510000) vs hw (b0000000
10000000)
[    2.791571] fb: switching to amdgpudrmfb from VESA VGA
[    2.791609] Console: switching to colour dummy device 80x25
[    2.792054] [drm] initializing kernel modesetting (TONGA
0x1002:0x6939 0x1462:0x2015 0xF1).
[    2.792069] [drm] register mmio base: 0xFDD80000
[    2.792070] [drm] register mmio size: 262144
[    2.792074] [drm] doorbell mmio base: 0xCFE00000
[    2.792075] [drm] doorbell mmio size: 2097152
[    2.792083] [drm] probing gen 2 caps for device 1002:5978 = 100d02/0
[    2.792085] [drm] probing mlw for device 1002:5978 = 100d02
[    2.792569] ATOM BIOS: 113
[    2.793209] amdgpu 0000:01:00.0: VRAM: 2048M 0x0000000000000000 -
0x000000007FFFFFFF (2048M used)
[    2.793212] amdgpu 0000:01:00.0: GTT: 2048M 0x0000000080000000 -
0x00000000FFFFFFFF
[    2.793214] [drm] Detected VRAM RAM=2048M, BAR=256M
[    2.793215] [drm] RAM width 256bits DDR
[    2.793285] [TTM] Zone  kernel: Available graphics memory: 4087792
kiB
[    2.793287] [TTM] Zone   dma32: Available graphics memory: 2097152
kiB
[    2.793288] [TTM] Initializing pool allocator
[    2.793294] [TTM] Initializing DMA pool allocator
[    2.793322] [drm] amdgpu: 2048M of VRAM memory ready
[    2.793323] [drm] amdgpu: 2048M of GTT memory ready.
[    2.793338] [drm] GART: num cpu pages 524288, num gpu pages 524288
[    2.801108] [drm] PCIE GART of 2048M enabled (table at
0x0000000000040000).
[    2.801130] [drm] Supports vblank timestamp caching Rev 2
(21.10.2013).
[    2.801132] [drm] Driver supports precise vblank timestamp query.
[    2.801183] amdgpu 0000:01:00.0: amdgpu: using MSI.
[    2.801219] [drm] amdgpu: irq initialized.
[    2.801231] Can't find requested voltage id in vdd_dep_on_sclk table!

[    2.808674] amdgpu: powerplay initialized
[    2.810236] [drm] AMDGPU Display Connectors
[    2.810239] [drm] Connector 0:
[    2.810240] [drm]   DP-1
[    2.810241] [drm]   HPD4
[    2.810243] [drm]   DDC: 0x4868 0x4868 0x4869 0x4869 0x486a 0x486a
0x486b 0x486b
[    2.810267] [drm]   Encoders:
[    2.810268] [drm]     DFP1: INTERNAL_UNIPHY1
[    2.810270] [drm] Connector 1:
[    2.810270] [drm]   HDMI-A-1
[    2.810271] [drm]   HPD5
[    2.810273] [drm]   DDC: 0x4870 0x4870 0x4871 0x4871 0x4872 0x4872
0x4873 0x4873
[    2.810274] [drm]   Encoders:
[    2.810275] [drm]     DFP2: INTERNAL_UNIPHY1
[    2.810276] [drm] Connector 2:
[    2.810277] [drm]   DVI-D-1
[    2.810278] [drm]   HPD1
[    2.810279] [drm]   DDC: 0x4878 0x4878 0x4879 0x4879 0x487a 0x487a
0x487b 0x487b
[    2.810280] [drm]   Encoders:
[    2.810281] [drm]     DFP3: INTERNAL_UNIPHY
[    2.810282] [drm] Connector 3:
[    2.810283] [drm]   DVI-I-1
[    2.810284] [drm]   HPD6
[    2.810285] [drm]   DDC: 0x487c 0x487c 0x487d 0x487d 0x487e 0x487e
0x487f 0x487f
[    2.810286] [drm]   Encoders:
[    2.810287] [drm]     DFP4: INTERNAL_UNIPHY2
[    2.810288] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    2.811219] amdgpu 0000:01:00.0: fence driver on ring 0 use gpu addr
0x0000000080000008, cpu addr 0xffff880240562008

[    2.813363] amdgpu 0000:01:00.0: fence driver on ring 10 use gpu addr
0x00000000800000a8, cpu addr 0xffff8802405620a8
[    2.813649] [drm] Found UVD firmware Version: 1.65 Family ID: 10
[    2.814514] amdgpu 0000:01:00.0: fence driver on ring 11 use gpu addr
0x000000000048ff40, cpu addr 0xffffc90002c4ef40
[    2.814699] [drm] Found VCE firmware Version: 52.4 Binary ID: 3
[    2.814825] amdgpu 0000:01:00.0: fence driver on ring 12 use gpu addr
0x00000000800000c8, cpu addr 0xffff8802405620c8
[    2.814870] amdgpu 0000:01:00.0: fence driver on ring 13 use gpu addr
0x00000000800000d8, cpu addr 0xffff8802405620d8
[    2.817197] sky2 0000:03:00.0 enp3s0: renamed from eth0
[    2.951502] [drm] ring test on 0 succeeded in 12 usecs

[    2.997572] [drm] ring test on 11 succeeded in 3 usecs
[    3.007509] usb 1-10: new high-speed USB device number 4 using
ehci-pci
[    3.017458] [drm] UVD initialized successfully.
[    3.086286] ata5: SATA link down (SStatus 0 SControl 300)
[    3.086342] ata4: SATA link down (SStatus 0 SControl 300)
[    3.090277] ata2: SATA link down (SStatus 0 SControl 300)

[    3.235848] [drm] ring test on 12 succeeded in 27 usecs
[    3.235876] [drm] ring test on 13 succeeded in 7 usecs
[    3.235877] [drm] VCE initialized successfully.
[    3.258267] ata3: softreset failed (device not ready)
[    3.258275] ata3: applying PMP SRST workaround and retrying
[    3.288535] [drm] fb mappable at 0xB07AA000
[    3.288537] [drm] vram apper at 0xB0000000
[    3.288538] [drm] size 5324800
[    3.288539] [drm] fb depth is 24
[    3.288540] [drm]    pitch is 5888
[    3.288610] fbcon: amdgpudrmfb (fb0) is primary device

[    3.381183] hidraw: raw HID events driver (C) Jiri Kosina

[    3.430290] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    3.434580] ata3.00: ATA-8: WDC WD7500BPKX-00HPJT0, 01.01A01, max
UDMA/133
[    3.434582] ata3.00: 1465149168 sectors, multi 1: LBA48 NCQ (depth
31/32), AA
[    3.434585] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
[    3.438582] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
[    3.438583] ata3.00: configured for UDMA/133
[    3.450367] hid-generic 0003:045E:07F8.0001: input,hidraw0: USB HID
v1.11 Keyboard [Microsoft Wired Keyboard 600] on
usb-0000:00:13.3-1/input0
[    3.452392] input: Microsoft Wired Keyboard 600 as
/devices/pci0000:00/0000:00:13.3/usb5/5-1/5-1:1.1/0003:045E:07F8.0002/input/input6
[    3.487379] Failed to send Message.           <--- first time

[    3.883377] Failed to send Previous Message.

[    6.650467] Failed to send Message.
[    6.650492] clocksource: Switched to clocksource tsc
[    6.650503] ata1: SATA link down (SStatus 0 SControl 0)
[    6.650567] usb 1-10.3: new full-speed USB device number 6 using
ehci-pci
[    6.650596] floppy0: no floppy controllers found
[    6.650624] work still pending

[    6.856269] Failed to send Previous Message.

[    9.028176] Failed to send Message.

[    9.225782] Failed to send Previous Message.

[    9.423233] Failed to send Message.
[    9.620673] Failed to send Previous Message.

[   10.212979] Failed to send Message.
[   10.283122] scsi 8:0:0:0: Direct-Access     MUSHKIN  MKNUFDAM32GB    
PMAP PQ: 0 ANSI: 6
[   10.607867] Failed to send Previous Message.

[   11.397584] Failed to send Message.

[   11.595028] Failed to send Previous Message.

[   11.792519] Failed to send Message.
[   11.989846] Failed to send Previous Message.

[   13.766098] Failed to send Message.

[   13.963791] Failed to send Previous Message.

[  139.328133] Failed to send Message.
[  139.328143] Console: switching to colour frame buffer device 180x56
[  139.333613] amdgpu 0000:01:00.0: fb0: amdgpudrmfb frame buffer device
[  139.355557] [drm] ib test on ring 0 succeeded in 0 usecs

[  139.355960] [drm] ib test on ring 10 succeeded in 0 usecs
[  139.376648] [drm] ib test on ring 11 succeeded
[  139.396617] [drm] ib test on ring 12 succeeded
[  139.396701] [drm] Initialized amdgpu 3.1.0 20150101 for 0000:01:00.0
on minor 0

[  261.054496] Failed to send Message.
[  261.944397] systemd[1]: RTC configured in localtime, applying delta
of 60 minutes to system time.

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Xen
Reply | Threaded
Open this post in threaded view
|

Re: system boots extremely slow with AMD R9 GPU

Xen
Xen schreef op 10-03-2017 8:55:

> that my Linux system boots very slowly when I have inserted a AMD R9
> 380 graphics card.

Lol I don't know what changed in between.

I activated a bunch of BIOS settings for other reasons and now suddenly
the system boots quickly.

This is the difference:

[    3.444927] Console: switching to colour frame buffer device 180x56
[    3.451101] amdgpu 0000:01:00.0: fb0: amdgpudrmfb frame buffer device

versus

[  139.328143] Console: switching to colour frame buffer device 180x56
[  139.333613] amdgpu 0000:01:00.0: fb0: amdgpudrmfb frame buffer device

I also installed some AMD drivers directly from their homepage but I
don't think it installed any kernel module.

The reason I don't know is because I went to do something else while the
system was booting, so not knowing how long it actually took.

So from second 3.4 to second 139 it was actually enmeshed in sending
those error messages, or perhaps some ringbuffer filling up?

This immediately followed the recognition of an USB keyboard.

No other differences were observed other than:

[    0.000000] ACPI BIOS Warning (bug): 32/64X length mismatch in
FADT/Pm1aEventBlock: 32/8 (20150930/tbfadt-623)
[    0.000000] ACPI BIOS Warning (bug): 32/64X length mismatch in
FADT/Pm1aControlBlock: 16/8 (20150930/tbfadt-623)
[    0.000000] ACPI BIOS Warning (bug): 32/64X length mismatch in
FADT/PmTimerBlock: 32/8 (20150930/tbfadt-623)
[    0.000000] ACPI BIOS Warning (bug): 32/64X length mismatch in
FADT/Gpe0Block: 64/8 (20150930/tbfadt-623)
[    0.000000] ACPI BIOS Warning (bug): Invalid length for
FADT/Pm1aEventBlock: 8, using default 32 (20150930/tbfadt-704)
[    0.000000] ACPI BIOS Warning (bug): Invalid length for
FADT/Pm1aControlBlock: 8, using default 16 (20150930/tbfadt-704)
[    0.000000] ACPI BIOS Warning (bug): Invalid length for
FADT/PmTimerBlock: 8, using default 32 (20150930/tbfadt-704)

That wasn't there before (possibly due to a bios option being
activated), and...

[    0.007220] ACPI: 2 ACPI AML tables successfully acquired and loaded

versus

[    0.005935] ACPI: 1 ACPI AML tables successfully acquired and loaded

in the original, possibly also due to all kinds of BIOS options being
activated by me.

To me it's still a mystery.

Quite possibly it was an USB error because the kernel can hang on
malfunctioning USB devices.

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: system boots extremely slow with AMD R9 GPU

compdoc
In reply to this post by Xen
On 03/10/2017 12:55 AM, Xen wrote:

> my Linux system boots very slowly when I have inserted a AMD R9 380
> graphics card.

There is a bios setting that some boards have named PCI Latency Timer.
Make sure this is set to 32.

And there are settings for UEFI vs legacy video.

Also, do you have the proper 8-pin power cable connected to the card?


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Xen
Reply | Threaded
Open this post in threaded view
|

Re: system boots extremely slow with AMD R9 GPU

Xen
compdoc schreef op 10-03-2017 17:40:
> On 03/10/2017 12:55 AM, Xen wrote:
>
>> my Linux system boots very slowly when I have inserted a AMD R9 380
>> graphics card.
>
> There is a bios setting that some boards have named PCI Latency Timer.
> Make sure this is set to 32.

Right, I will check. (Maybe I changed it?).

> And there are settings for UEFI vs legacy video.

BIOS motherboard.

> Also, do you have the proper 8-pin power cable connected to the card?

Yeah.

Maybe it was just an USB thing but I can't tell. Both kernels suddenly
boot alright. Prior, I have done at least 8 reboots and every time it
was the same thing. So perhaps they were BIOS settings after all, thank
you, I will check later.

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users