Announcement

Collapse
No announcement yet.

R600 + Radeon SI switchable graphics on Ubuntu 16.04+

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #21
    The current grub config is:
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet radeon.runpm=0 acpi_backlight=video"
    With this setting it fails sometimes and then I have to reboot. If it works, I can boot, use the iGPU as intendet but switching to dGPU fails.

    My /var/log/Xorg.0.log is in pastebin:
    https://pastebin.com/rZ5UzBrS

    Comment


    • #22
      Yeah everything seems to be in order (that was a log without radeon.runpm=0 though, correct?). Here's mine for comparison:

      https://pastebin.com/SE5N6prR

      The only differences are that I use slightly different versions of the kernel(newer), Xorg server (older), radeon module (newer), and probably mesa (recent git), and that I don't pass acpi_backlight=video. Also the TearFree option is set, but it works perfectly fine without, it just prevents tearing during video playback.

      I should mention that I do get crashes from times to times while disabling the compositor, but I never had a crash at launch or while keeping the compositor on. I'm on KDE with KWin's OpenGL 3 compositor enabled.

      So perhaps you did hit a kernel bug.

      Comment


      • #23
        The log is without "radeon.runpm=0" it is with "runpm=0" xD Okay, I'll fix that and upload another log. This is Arch Linux so I update it every time I use it. The kernel and mesa should be the newest stable release. I use Mate desktop, maybe this has some bugs. But on the otherside I have problems with the GPU before I load Xorg... Or more precise: I can't load Xorg after the problems appear once... I'll check the results with your command and post here again. Thanks!

        Comment


        • #24
          Okay, I checked the setting again. Unfortunately it has already "radeon.runpm=0" included. Should I add amdgpu.runpm=0 or something? Maybe there is some kind of conflict with that?

          Comment


          • #25
            Quick but dumb question, Did you install using Legacy or EFI mode? most newer laptops allow you to enable the dGPU only in EFI mode

            Comment


            • #26
              That's a good question. At least I tried to install in EFI mode but without secure boot. But how can I check it now? Doesn't anybody see anything suspicious in the logs?

              Comment


              • #27
                Okay, now my grub config says
                Code:
                GRUB_CMDLINE_LINUX_DEFAULT="quiet radeon.runpm=0 amdgpu.runpm=0 acpi_backlight=video"
                The orange LED is lit all the time, the dGPU temp sensor is showing up all the time. So - yes. Now the dGPU is on. Still DRI_PRIME=1 fails.

                dmesg, only gpu-dependant stuff:
                Code:
                [   12.171160] ACPI Error: Field [TEMP] at 524288 exceeds Buffer [TVGA] size 512000 (bits) (20170119/dsopcode-236)
                [   12.171222] ACPI Error: Method parse/execution failed [\_SB.PCI0.VGA.ATRM] (Node ffff880332caf708), AE_AML_BUFFER_LIMIT (20170119/psparse-543)
                [   12.171295] failed to evaluate ATRM got AE_AML_BUFFER_LIMIT
                [   12.171299] ATOM BIOS: MSI
                [   12.171327] [drm] GPU not posted. posting now...
                [   12.175010] [drm] Probable bad vram size: 0xff8002c0
                [   12.175018] radeon 0000:01:00.0: VRAM: 704M 0x0000000000000000 - 0x000000002BFFFFFF (704M used)
                [   12.175021] radeon 0000:01:00.0: GTT: 1024M 0x000000002C000000 - 0x000000006BFFFFFF
                [   12.175033] [drm] Detected VRAM RAM=704M, BAR=256M
                [   12.175034] [drm] RAM width 512bits DDR
                [   12.175059] [drm] radeon: 704M of VRAM memory ready
                [   12.175061] [drm] radeon: 1024M of GTT memory ready.
                [   12.175075] [drm] Loading pitcairn Microcode
                [   12.176550] Linux video capture interface: v2.00
                [   12.303601] kvm: Nested Virtualization enabled
                [   12.303606] kvm: Nested Paging enabled
                [   12.336881] usbcore: registered new interface driver btusb
                [   12.339270] usbcore: registered new interface driver ath3k
                [   12.378102] EDAC MC: Ver: 3.0.0
                [   12.380286] MCE: In-kernel MCE decoding enabled.
                [   12.381674] EDAC amd64: Node 0: DRAM ECC disabled.
                [   12.381675] EDAC amd64: ECC disabled in the BIOS or no ECC capability, module will not load.
                                Either enable ECC checking or force module loading by setting 'ecc_enable_override'.
                                (Note that use of the override may cause unknown side effects.)
                [   12.424551] [drm] Internal thermal controller without fan control
                [   12.424641] [drm] probing gen 2 caps for device 1022:1413 = 700d01/6
                [   12.434124] [drm] radeon: dpm initialized
                [   12.435297] alx 0000:03:00.0 enp3s0: renamed from eth0
                [   12.435303] [drm] Found VCE firmware/feedback version 50.0.1 / 17!
                [   12.435315] [drm] GART: num cpu pages 262144, num gpu pages 262144
                [   12.436902] [drm] probing gen 2 caps for device 1022:1413 = 700d01/6
                [   12.436907] [drm] enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0
                
                ... wifi and mouse
                
                [   12.774685] [drm] PCIE GART of 1024M enabled (table at 0x00000000001D6000).
                [   12.774832] radeon 0000:01:00.0: WB enabled
                [   12.774835] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x000000002c000c00 and cpu addr 0xffff880326a7ac00
                [   12.774836] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x000000002c000c04 and cpu addr 0xffff880326a7ac04
                [   12.774838] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x000000002c000c08 and cpu addr 0xffff880326a7ac08
                [   12.774839] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x000000002c000c0c and cpu addr 0xffff880326a7ac0c
                [   12.774840] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x000000002c000c10 and cpu addr 0xffff880326a7ac10
                [   12.775633] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90005035a18
                [   12.786000] radeon 0000:01:00.0: failed VCE resume (-22).
                [   12.786002] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
                [   12.786003] [drm] Driver supports precise vblank timestamp query.
                [   12.786004] radeon 0000:01:00.0: radeon: MSI limited to 32-bit
                [   12.786046] radeon 0000:01:00.0: radeon: using MSI.
                [   12.786079] [drm] radeon: irq initialized.
                [   13.187659] [drm:r600_ring_test [radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
                [   13.187705] radeon 0000:01:00.0: disabling GPU acceleration
                [   13.388270] [drm] Radeon Display Connectors
                [   13.388272] [drm] Connector 0:
                [   13.388273] [drm]   VGA-2
                [   13.388275] [drm]   DDC: 0x65c0 0x65c0 0x65c4 0x65c4 0x65c8 0x65c8 0x65cc 0x65cc
                [   13.388275] [drm]   Encoders:
                [   13.388276] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
                [   13.398324] [drm:si_dpm_set_power_state [radeon]] *ERROR* si_upload_sw_state failed
                [   13.414302] [drm] Cannot find any crtc or sizes - going 1024x768
                [   13.416442] [drm] fb mappable at 0xD03D7000
                [   13.416442] [drm] vram apper at 0xD0000000
                [   13.416443] [drm] size 3145728
                [   13.416444] [drm] fb depth is 24
                [   13.416444] [drm]    pitch is 4096
                [   13.416634] radeon 0000:01:00.0: fb1: radeondrmfb frame buffer device
                [   13.416994] [drm] Initialized radeon 2.49.0 20080528 for 0000:01:00.0 on minor 1
                [   13.484124] [drm] amdgpu kernel modesetting enabled.
                [   13.484151] vga_switcheroo: detected switching method \_SB_.PCI0.VGA_.ATPX handle
                [   13.484282] ATPX version 1, functions 0x00000003

                Comment


                • #28
                  openSUSE has pretty good UEFI and secure boot support. Can you post your lspci output? Your dmesg logs dont show anything suspicious except for that ring 0 test failed error

                  Comment


                  • #29
                    As far as I remember the lspci command lists the two GPUs with (rev ff) after the 7970m dGPU.
                    For now I killed my Arch Linux setup (something with the driver is messed. Can't get Xorg to work anymore.. Reinstalling Xorg, mesa and radeon driver didn't help.) so now I wanted to try Manjaro A setup with a stable, fully working iGPU and a deactivated dGPU would be fine, I think. Ubuntu and Arch wer like this but every second reboot failed because of GPU problems. So I want to try some different distros.
                    I'll post logs as soon as my notebook has a working OS again.

                    Comment


                    • #30
                      I recommend trying opensuse leap. Install it in uefi mode and you should be good to go. Ubuntu is a pain in the as for switchable graphics iirc

                      Comment

                      Working...
                      X