3 Replies Latest reply on Nov 9, 2017 6:09 AM by amdmatt

    Problems using Radeon HD 5770 with AMDGPU-Driver 17.4 on Ubuntu 16.04.3 LTS

    spikeygg

      I have a system that has a Radeon HD 5770 in it. I've been using it with Ubuntu for the last several years in Trusty Tahr LTS and it worked great (I believe I was using the proprietary drivers). Yesterday, I upgraded the system to Xenial Xerus 16.04.3 and when it came up it appeared to work until I tried to play a video file -- it was choppy and did not play smoothly. I started to google around and I found that there is a new AMDGPU-Driver.

       

      I downloaded it and followed the instructions on this page: AMDGPU-Driver - Community Help Wiki and this page: AMDGPU-PRO Driver for Linux® Release Notes and got the driver installed. I added the blurb to grub about vm_fragment_size and reran the update-grub. Now when the system boots up it leaves me at the login screen. When I try to log in it boots me back to the login screen. I'm not sure what I need to do to get this working again.

       

      I'm not sure how to go about troubleshooting this issue since there isn't much detail online for debugging this situation. I checked out the Xorg.0.log file and it said this:

       

      [    18.746] (II) modesetting: Driver for Modesetting Kernel Drivers: kms

      [    18.746] (II) FBDEV: driver for framebuffer: fbdev

      [    18.746] (II) VESA: driver for VESA chipsets: vesa

      [    18.746] (II) [KMS] drm report modesetting isn't supported.

      [    18.746] (EE) open /dev/dri/card0: No such file or directory

      [    18.746] (WW) Falling back to old probe method for modesetting

      [    18.746] (EE) open /dev/dri/card0: No such file or directory

      [    18.746] (II) Loading sub module "fbdevhw"

      [    18.746] (II) LoadModule: "fbdevhw"

      [    18.746] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so

      [    18.746] (II) Module fbdevhw: vendor="X.Org Foundation"

      [    18.746]    compiled for 1.19.3, module version = 0.0.2

      [    18.747]    ABI class: X.Org Video Driver, version 23.0

      [    18.747] (**) FBDEV(2): claimed PCI slot 1@0:0:0

      [    18.747] (II) FBDEV(2): using default device

      [    18.747] (WW) Falling back to old probe method for vesa

      [    18.747] (EE) Screen 0 deleted because of no matching config section.

      [    18.747] (II) UnloadModule: "radeon"

      [    18.747] (EE) Screen 0 deleted because of no matching config section.

      [    18.747] (II) UnloadModule: "modesetting"

      [    18.747] (II) FBDEV(0): Creating default Display subsection in Screen section

       

       

      Anyway, it looks like it's having problems with the radeon module. When I try to load the radeon module, the screen blanks out and syslog shows this:

       

      Nov  5 09:10:51 bones kernel: [ 1755.972054] [drm] Initialized

      Nov  5 09:10:51 bones kernel: [ 1756.003885] [drm] radeon kernel modesetting enabled.

      Nov  5 09:10:51 bones kernel: [ 1756.007101] amdkcl: loading out-of-tree module taints kernel.

      Nov  5 09:10:51 bones kernel: [ 1756.007136] amdkcl: module verification failed: signature and/or required key missing - tainting kernel

      Nov  5 09:10:51 bones kernel: [ 1756.073495] AMD IOMMUv2 driver by Joerg Roedel <jroedel@suse.de>

      Nov  5 09:10:51 bones kernel: [ 1756.076417] Parsing CRAT table with 1 nodes

      Nov  5 09:10:51 bones kernel: [ 1756.076422] Ignoring ACPI CRAT on non-APU system

      Nov  5 09:10:51 bones kernel: [ 1756.076426] Virtual CRAT table created for CPU

      Nov  5 09:10:51 bones kernel: [ 1756.076427] Parsing CRAT table with 1 nodes

      Nov  5 09:10:51 bones kernel: [ 1756.076428] Creating topology SYSFS entries

      Nov  5 09:10:51 bones kernel: [ 1756.076457] Topology: Add CPU node

      Nov  5 09:10:51 bones kernel: [ 1756.076457] Finished initializing topology

      Nov  5 09:10:51 bones kernel: [ 1756.080407] kfd kfd: Initialized module

      Nov  5 09:10:51 bones kernel: [ 1756.080677] checking generic (c0000000 300000) vs hw (c0000000 10000000)

      Nov  5 09:10:51 bones kernel: [ 1756.080679] fb: switching to radeondrmfb from VESA VGA

      Nov  5 09:10:51 bones kernel: [ 1756.080852] Console: switching to colour dummy device 80x25

      Nov  5 09:10:51 bones kernel: [ 1756.081284] [drm] initializing kernel modesetting (JUNIPER 0x1002:0x68B8 0x1682:0x2990 0x00).

      Nov  5 09:10:51 bones kernel: [ 1756.081328] [drm] register mmio base: 0xFEA20000

      Nov  5 09:10:51 bones kernel: [ 1756.081329] [drm] register mmio size: 131072

      Nov  5 09:10:51 bones kernel: [ 1756.081415] ATOM BIOS: JUNIPER

      Nov  5 09:10:51 bones kernel: [ 1756.081477] radeon 0000:01:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)

      Nov  5 09:10:51 bones kernel: [ 1756.081480] radeon 0000:01:00.0: GTT: 1024M 0x0000000040000000 - 0x000000007FFFFFFF

      Nov  5 09:10:51 bones kernel: [ 1756.081486] [drm] Detected VRAM RAM=1024M, BAR=256M

      Nov  5 09:10:51 bones kernel: [ 1756.081487] [drm] RAM width 128bits DDR

      Nov  5 09:10:51 bones kernel: [ 1756.081573] [TTM] Zone  kernel: Available graphics memory: 8223488 kiB

      Nov  5 09:10:51 bones kernel: [ 1756.081574] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB

      Nov  5 09:10:51 bones kernel: [ 1756.081575] [TTM] Initializing pool allocator

      Nov  5 09:10:51 bones kernel: [ 1756.081581] [TTM] Initializing DMA pool allocator

      Nov  5 09:10:51 bones kernel: [ 1756.081614] [drm] radeon: 1024M of VRAM memory ready

      Nov  5 09:10:51 bones kernel: [ 1756.081615] [drm] radeon: 1024M of GTT memory ready.

      Nov  5 09:10:51 bones kernel: [ 1756.081625] [drm] Loading JUNIPER Microcode

      Nov  5 09:10:51 bones systemd[1]: Starting IIO Sensor Proxy service...

      Nov  5 09:10:51 bones kernel: [ 1756.084887] [drm] Internal thermal controller with fan control

      Nov  5 09:10:51 bones systemd[1]: Started IIO Sensor Proxy service.

      Nov  5 09:10:51 bones kernel: [ 1756.108308] [drm] radeon: dpm initialized

      Nov  5 09:10:51 bones kernel: [ 1756.108944] [drm] GART: num cpu pages 262144, num gpu pages 262144

      Nov  5 09:10:51 bones kernel: [ 1756.110135] [drm] enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0

      Nov  5 09:10:51 bones kernel: [ 1756.132584] [drm] PCIE GART of 1024M enabled (table at 0x000000000014C000).

      Nov  5 09:10:51 bones kernel: [ 1756.132674] radeon 0000:01:00.0: WB enabled

      Nov  5 09:10:51 bones kernel: [ 1756.132675] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xffff932769d08c00

      Nov  5 09:10:51 bones kernel: [ 1756.132676] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xffff932769d08c0c

      Nov  5 09:10:51 bones kernel: [ 1756.134421] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x000000000005c418 and cpu addr 0xffff9eba02e1c418

      Nov  5 09:10:51 bones kernel: [ 1756.134424] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).

      Nov  5 09:10:51 bones kernel: [ 1756.134424] [drm] Driver supports precise vblank timestamp query.

      Nov  5 09:10:51 bones kernel: [ 1756.134426] radeon 0000:01:00.0: radeon: MSI limited to 32-bit

      Nov  5 09:10:51 bones kernel: [ 1756.134484] radeon 0000:01:00.0: radeon: using MSI.

      Nov  5 09:10:51 bones kernel: [ 1756.134503] [drm] radeon: irq initialized.

      Nov  5 09:10:51 bones kernel: [ 1756.150642] [drm] ring test on 0 succeeded in 1 usecs

      Nov  5 09:10:51 bones kernel: [ 1756.150648] [drm] ring test on 3 succeeded in 2 usecs

      Nov  5 09:10:51 bones kernel: [ 1756.336299] [drm] ring test on 5 succeeded in 1 usecs

      Nov  5 09:10:51 bones kernel: [ 1756.336304] [drm] UVD initialized successfully.

      Nov  5 09:10:51 bones kernel: [ 1756.336476] [drm] ib test on ring 0 succeeded in 0 usecs

      Nov  5 09:10:51 bones kernel: [ 1756.336500] [drm] ib test on ring 3 succeeded in 0 usecs

      Nov  5 09:10:52 bones kernel: [ 1756.506284] [drm] ib test on ring 5 succeeded

      Nov  5 09:10:52 bones kernel: [ 1756.507187] [drm] Radeon Display Connectors

      Nov  5 09:10:52 bones kernel: [ 1756.507188] [drm] Connector 0:

      Nov  5 09:10:52 bones kernel: [ 1756.507188] [drm]   DP-1

      Nov  5 09:10:52 bones kernel: [ 1756.507189] [drm]   HPD4

      Nov  5 09:10:52 bones kernel: [ 1756.507190] [drm]   DDC: 0x6440 0x6440 0x6444 0x6444 0x6448 0x6448 0x644c 0x644c

      Nov  5 09:10:52 bones kernel: [ 1756.507190] [drm]   Encoders:

      Nov  5 09:10:52 bones kernel: [ 1756.507191] [drm]     DFP1: INTERNAL_UNIPHY2

      Nov  5 09:10:52 bones kernel: [ 1756.507192] [drm] Connector 1:

      Nov  5 09:10:52 bones kernel: [ 1756.507192] [drm]   HDMI-A-1

      Nov  5 09:10:52 bones kernel: [ 1756.507193] [drm]   HPD5

      Nov  5 09:10:52 bones kernel: [ 1756.507193] [drm]   DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 0x643c

      Nov  5 09:10:52 bones kernel: [ 1756.507194] [drm]   Encoders:

      Nov  5 09:10:52 bones kernel: [ 1756.507194] [drm]     DFP2: INTERNAL_UNIPHY2

      Nov  5 09:10:52 bones kernel: [ 1756.507195] [drm] Connector 2:

      Nov  5 09:10:52 bones kernel: [ 1756.507195] [drm]   DVI-I-1

      Nov  5 09:10:52 bones kernel: [ 1756.507195] [drm]   HPD1

      Nov  5 09:10:52 bones kernel: [ 1756.507196] [drm]   DDC: 0x6460 0x6460 0x6464 0x6464 0x6468 0x6468 0x646c 0x646c

      Nov  5 09:10:52 bones kernel: [ 1756.507197] [drm]   Encoders:

      Nov  5 09:10:52 bones kernel: [ 1756.507197] [drm]     DFP3: INTERNAL_UNIPHY1

      Nov  5 09:10:52 bones kernel: [ 1756.507198] [drm]     CRT2: INTERNAL_KLDSCP_DAC2

      Nov  5 09:10:52 bones kernel: [ 1756.507198] [drm] Connector 3:

      Nov  5 09:10:52 bones kernel: [ 1756.507198] [drm]   DVI-I-2

      Nov  5 09:10:52 bones kernel: [ 1756.507199] [drm]   HPD6

      Nov  5 09:10:52 bones kernel: [ 1756.507200] [drm]   DDC: 0x6450 0x6450 0x6454 0x6454 0x6458 0x6458 0x645c 0x645c

      Nov  5 09:10:52 bones kernel: [ 1756.507200] [drm]   Encoders:

      Nov  5 09:10:52 bones kernel: [ 1756.507200] [drm]     DFP4: INTERNAL_UNIPHY

      Nov  5 09:10:52 bones kernel: [ 1756.507201] [drm]     CRT1: INTERNAL_KLDSCP_DAC1

      Nov  5 09:10:52 bones kernel: [ 1756.608126] snd_hda_codec_hdmi hdaudioC1D0: HDMI ATI/AMD: no speaker allocation for ELD

      Nov  5 09:10:52 bones kernel: [ 1756.645237] [drm] fb mappable at 0xC034D000

      Nov  5 09:10:52 bones kernel: [ 1756.645239] [drm] vram apper at 0xC0000000

      Nov  5 09:10:52 bones kernel: [ 1756.645240] [drm] size 4325376

      Nov  5 09:10:52 bones kernel: [ 1756.645241] [drm] fb depth is 24

      Nov  5 09:10:52 bones kernel: [ 1756.645241] [drm]    pitch is 5632

      Nov  5 09:10:52 bones kernel: [ 1756.645365] fbcon: radeondrmfb (fb0) is primary device

      Nov  5 09:10:52 bones kernel: [ 1756.645541] Console: switching to colour frame buffer device 170x48

      Nov  5 09:10:52 bones kernel: [ 1756.645550] radeon 0000:01:00.0: fb0: radeondrmfb frame buffer device

      Nov  5 09:10:52 bones kernel: [ 1756.658130] [drm] Initialized radeon 2.49.0 20080528 for 0000:01:00.0 on minor 0

       

      After that I can see that a /dev/dri directory exists but I still cannot log into Ubuntu because the screen is black. I tried blindly punching in my password and it just dumped me to a black screen with one line of text at the top and no prompt. I had to reboot. When it came back I looked at the Xorg log and it showed this:

       

      [  1840.145] (II) RADEON(0): Acceleration enabled

      [  1840.145] (==) RADEON(0): DPMS enabled

      [  1840.145] (==) RADEON(0): Silken mouse enabled

      [  1840.145] (II) RADEON(0): Set up textured video

      [  1840.145] (II) RADEON(0): [XvMC] Associated with Radeon Textured Video.

      [  1840.145] (II) RADEON(0): [XvMC] Extension initialized.

      [  1840.145] (II) RADEON(0): RandR 1.2 enabled, ignore the following RandR disabled message.

      [  1840.146] (--) RandR disabled

      [  1840.153] (II) SELinux: Disabled on system

      [  1840.163] (EE)

      [  1840.163] (EE) Backtrace:

      [  1840.163] (EE) 0: /usr/lib/xorg/Xorg (xorg_backtrace+0x4e) [0x564fbf9e1a9e]

      [  1840.163] (EE) 1: /usr/lib/xorg/Xorg (0x564fbf830000+0x1b57f9) [0x564fbf9e57f9]

      [  1840.163] (EE) 2: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7f8e79aeb000+0x11390) [0x7f8e79afc390]

      [  1840.163] (EE) 3: /opt/amdgpu-pro/lib/xorg/modules/extensions/libglx.so (0x7f8e77ecb000+0x56dd0) [0x7f8e77f21dd0]

      [  1840.163] (EE)

      [  1840.163] (EE) Segmentation fault at address 0x65

      [  1840.163] (EE)

      Fatal server error:

      [  1840.163] (EE) Caught signal 11 (Segmentation fault). Server aborting

      [  1840.163] (EE)

      [  1840.163] (EE)

       

      What are the next steps in debug??

       

      Thanks,

      -Greg