Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
amd graphics driver loads screen darkly tinted red
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
visionlogic
n00b
n00b


Joined: 04 Nov 2017
Posts: 8

PostPosted: Sun Nov 05, 2017 4:47 am    Post subject: amd graphics driver loads screen darkly tinted red Reply with quote

Hey everybody. I don't have very much experience with graphics hardware or drivers, but am running into trouble with mine. I was hoping somebody here might know what to do :D

When I startx, the image is displayed darkly tinted red, almost not visible.

While I was configuring the kernel, I followed the instructions found here:
https://wiki.gentoo.org/wiki/AMDGPU

Two messages in dmesg seem like errors to me:
Code:
amdgpu: [powerplay] Can't find requested voltage id in vdd_dep_on_sclk table!
amdgpu: [powerplay] Voltage Table empty.


I am not exactly sure how to diagnose this problem. I took a look at the end of /var/log/Xorg.0.log and found the following:
Code:
[    31.705] (II) AMDGPU(0): [DRI2]   DRI driver: radeonsi
[    31.705] (II) AMDGPU(0): [DRI2]   VDPAU driver: radeonsi
[    31.715] (EE) AIGLX error: dlopen of /usr/lib64/dri/radeonsi_dri.so failed (/usr/lib64/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory)


Here is some other information about my system, and what I have checked so far:

Code:
$ uname -r
4.11.12-rt-rt14

$ lspci | grep -i vga
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tonga XT / Amethyst XT [Radeon R9 380X / R9 M295X]

$ grep -i amd /usr/src/linux/.config
# CONFIG_X86_AMD_PLATFORM_DEVICE is not set
CONFIG_CPU_SUP_AMD=y
CONFIG_X86_MCE_AMD=y
# CONFIG_PERF_EVENTS_AMD_POWER is not set
CONFIG_MICROCODE_AMD=y
CONFIG_AMD_NUMA=y
# CONFIG_X86_AMD_FREQ_SENSITIVITY is not set
CONFIG_AMD_NB=y
CONFIG_EXTRA_FIRMWARE="amdgpu/tonga_ce.bin amdgpu/tonga_k_smc.bin amdgpu/tonga_mc.bin amdgpu/tonga_me.bin amdgpu/tonga_mec2.bin amdgpu/tonga_mec.bin amdgpu/tonga_pfp.bin amdgpu/tonga_rlc.bin amdgpu/tonga_sdma1.bin amdgpu/tonga_sdma.bin amdgpu/tonga_smc.bin amdgpu/tonga_uvd.bin amdgpu/tonga_vce.bin"
# CONFIG_PATA_AMD is not set
CONFIG_NET_VENDOR_AMD=y
# CONFIG_AMD8111_ETH is not set
# CONFIG_AMD_XGBE is not set
# CONFIG_AMD_XGBE_HAVE_ECC is not set
# CONFIG_AMD_PHY is not set
# CONFIG_HW_RANDOM_AMD is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
CONFIG_AGP_AMD64=y
CONFIG_DRM_AMDGPU=y
# CONFIG_DRM_AMDGPU_SI is not set
# CONFIG_DRM_AMDGPU_CIK is not set
# CONFIG_DRM_AMDGPU_USERPTR is not set
# CONFIG_DRM_AMDGPU_GART_DEBUGFS is not set
CONFIG_DRM_AMD_ACP=y
CONFIG_AMD_IOMMU=y
# CONFIG_AMD_IOMMU_V2 is not set
# CONFIG_MCE_AMD_INJ is not set

$ grep -i firmware /usr/src/linux/.config
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE="amdgpu/tonga_ce.bin amdgpu/tonga_k_smc.bin amdgpu/tonga_mc.bin amdgpu/tonga_me.bin amdgpu/tonga_mec2.bin amdgpu/tonga_mec.bin amdgpu/tonga_pfp.bin amdgpu/tonga_rlc.bin amdgpu/tonga_sdma1.bin amdgpu/tonga_sdma.bin amdgpu/tonga_smc.bin amdgpu/tonga_uvd.bin amdgpu/tonga_vce.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
# Altera FPGA firmware download module
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
# CONFIG_FIRMWARE_EDID is not set
# Firmware Drivers
CONFIG_FIRMWARE_MEMMAP=y
# CONFIG_GOOGLE_FIRMWARE is not set
# EFI (Extensible Firmware Interface) Support
# Tegra firmware driver
# CONFIG_TEST_FIRMWARE is not set

$ dmesg | grep amd
[    1.012818] [drm] amdgpu kernel modesetting enabled.
[    1.012833] fb: switching to amdgpudrmfb from EFI VGA
[    1.013135] amdgpu 0000:01:00.0: VRAM: 4096M 0x0000000000000000 - 0x00000000FFFFFFFF (4096M used)
[    1.013138] amdgpu 0000:01:00.0: GTT: 4096M 0x0000000100000000 - 0x00000001FFFFFFFF
[    1.013183] [drm] amdgpu: 4096M of VRAM memory ready
[    1.013185] [drm] amdgpu: 4096M of GTT memory ready.
[    1.014831] amdgpu 0000:01:00.0: amdgpu: using MSI.
[    1.014842] [drm] amdgpu: irq initialized.
[    1.014857] amdgpu: [powerplay] amdgpu: powerplay sw initialized
[    1.015030] amdgpu 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000100000008, cpu addr 0xffff88084ae28008
[    1.015049] amdgpu 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000100000018, cpu addr 0xffff88084ae28018
[    1.015067] amdgpu 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000100000028, cpu addr 0xffff88084ae28028
[    1.015085] amdgpu 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000100000038, cpu addr 0xffff88084ae28038
[    1.015108] amdgpu 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000100000048, cpu addr 0xffff88084ae28048
[    1.015133] amdgpu 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000100000058, cpu addr 0xffff88084ae28058
[    1.015157] amdgpu 0000:01:00.0: fence driver on ring 6 use gpu addr 0x0000000100000068, cpu addr 0xffff88084ae28068
[    1.015181] amdgpu 0000:01:00.0: fence driver on ring 7 use gpu addr 0x0000000100000078, cpu addr 0xffff88084ae28078
[    1.015204] amdgpu 0000:01:00.0: fence driver on ring 8 use gpu addr 0x0000000100000088, cpu addr 0xffff88084ae28088
[    1.015227] amdgpu 0000:01:00.0: fence driver on ring 9 use gpu addr 0x0000000100000098, cpu addr 0xffff88084ae28098
[    1.015260] amdgpu 0000:01:00.0: fence driver on ring 10 use gpu addr 0x00000001000000a8, cpu addr 0xffff88084ae280a8
[    1.015289] amdgpu 0000:01:00.0: fence driver on ring 11 use gpu addr 0x00000001000000b8, cpu addr 0xffff88084ae280b8
[    1.015546] amdgpu 0000:01:00.0: fence driver on ring 12 use gpu addr 0x0000000000959f40, cpu addr 0xffffc90005a4ef40
[    1.015608] amdgpu 0000:01:00.0: fence driver on ring 13 use gpu addr 0x00000001000000d8, cpu addr 0xffff88084ae280d8
[    1.015624] amdgpu 0000:01:00.0: fence driver on ring 14 use gpu addr 0x00000001000000e8, cpu addr 0xffff88084ae280e8
[    1.015641] amdgpu 0000:01:00.0: fence driver on ring 15 use gpu addr 0x00000001000000f8, cpu addr 0xffff88084ae280f8
[    1.053948] amdgpu: [powerplay] Can't find requested voltage id in vdd_dep_on_sclk table!
[    1.058340] amdgpu: [powerplay] Voltage Table empty.
[    2.062354] fbcon: amdgpudrmfb (fb0) is primary device
[    4.235929] amdgpu 0000:01:00.0: fb0: amdgpudrmfb frame buffer device
[    4.464919] [drm] Initialized amdgpu 3.10.0 20150101 for 0000:01:00.0 on minor 0


Does anybody know how to continue this investigation? I have been searching the internet for a few hours, but so far no luck :cry:

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
theotherjoe
Guru
Guru


Joined: 22 Nov 2003
Posts: 368

PostPosted: Sun Nov 05, 2017 12:10 pm    Post subject: Reply with quote

visionlogic,

please familiarise yourself with wgetpaste https://wiki.gentoo.org/wiki/Wgetpaste
and post links to complete dmesg output, /var/log/Xorg.0.log and your current
/usr/src/linux/.config files.
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1414

PostPosted: Sun Nov 05, 2017 2:57 pm    Post subject: Re: amd graphics driver loads screen darkly tinted red Reply with quote

visionlogic wrote:

Two messages in dmesg seem like errors to me:
amdgpu: [powerplay] Can't find requested voltage id in vdd_dep_on_sclk table!
amdgpu: [powerplay] Voltage Table empty.

This does not (yet) work with amdgpu. Do not worry, it will come sometime.

visionlogic wrote:

# CONFIG_DRM_AMDGPU_SI is not set
# CONFIG_DRM_AMDGPU_CIK is not set
# CONFIG_DRM_AMDGPU_USERPTR is not set
# CONFIG_DRM_AMDGPU_GART_DEBUGFS is not set
Set this to yes [*] and do not forget CONFIG_HSA_AMD

Set the 10-device.conf similar to this:
tux ~ # cat /etc/X11/xorg.conf.d/10-device.conf wrote:

Section "Device"
Identifier "AMD Radeon RX460 4G (Island POLARIS11)"
Driver "amdgpu"
BusID "PCI:1:0:0"
Option "DRI" "3"
Option "AccelMethod" "glamor"
Option "TearFree" "on"
EndSection

Use only VIDEO_CARDS="amdgpu radeonsi"
Put the USEFLAG glamor, vdpau, vulkan into make.conf
and make an emerge -NDuva @world

Check with eselect
tux ~ # eselect mesa list wrote:

i915 (Intel 915, 945)
i965 (Intel GMA 965, G/Q3x, G/Q4x, HD)
r300 (Radeon R300-R500)
r600 (Radeon R600-R700, Evergreen, Northern Islands)
sw (Software renderer)
[1] classic
[2] gallium *

tux ~ # eselect opencl list
Available OpenCL implementations:
[1] mesa *

tux ~ # eselect opengl list
Available OpenGL implementations:
[1] xorg-x11 *


And at the end ...
tux ~ # cat /var/log/Xorg.0.log | grep DRI wrote:

[ 9.784] (**) AMDGPU(0): Option "DRI" "3"
[ 10.060] (II) glamor: EGL version 1.5 (DRI2):
[ 10.201] (II) AMDGPU(0): [DRI2] Setup complete
[ 10.201] (II) AMDGPU(0): [DRI2] DRI driver: radeonsi
[ 10.201] (II) AMDGPU(0): [DRI2] VDPAU driver: radeonsi ## ---> stands for vdpau
[ 10.203] (**) AMDGPU(0): DRI3 enabled ##----------------------> stands for vulkan
[ 10.279] (II) GLX: Initialized DRI2 GL provider for screen 0


rejoice in the result
Ma
_________________
Thank you for your attention, interest and support.
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
visionlogic
n00b
n00b


Joined: 04 Nov 2017
Posts: 8

PostPosted: Sun Nov 05, 2017 11:01 pm    Post subject: Reply with quote

Hi theotherjoe,
Thanks for your help! Here's the output you requested:

dmesg | wgetpaste
https://paste.pound-python.org/raw/CdXwdRFdvPlsWm6WUSqc/

cat /var/log/Xorg.0.log | wgetpaste
https://paste.pound-python.org/raw/bB7LTfEf6BIMLP5MN1Kj/

cat /usr/src/linux/.config | wgetpaste
https://paste.pound-python.org/raw/NzlvIouo8Nefee3R5xI9/

Hi Marlo,
Thanks! I performed the above steps and the display actually got a bit better. Now there are some dark blues and light oranges, and the screen is less dark. There is a bit more dynamic range in the spectrum. Cycling through a few desktop backgrounds has been amusing, but it is not yet usable for anything else.

The output I have included above is from after the changes.

Additionally, here is my make.conf
https://paste.pound-python.org/raw/Bi46XakpdswQ1RdxyizJ/

cat /etc/X11/xorg.conf.d/10-device.conf | wgetpaste
https://paste.pound-python.org/raw/HETyUDvghaabGSpcB9GU/

lspci | wgetpaste
https://paste.pound-python.org/raw/RP9XpBpmZT53A3myoZe6/

Again, I appreciate the help! :D
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1414

PostPosted: Sun Nov 05, 2017 11:32 pm    Post subject: Reply with quote

[ 34.466] (**) AMDGPU(0): DRI3 enabled
[ 34.466] (==) AMDGPU(0): Backing store enabled
[ 34.466] (II) AMDGPU(0): Direct rendering enabled
[ 34.974] (II) AMDGPU(0): Use GLAMOR acceleration.
[ 34.974] (II) AMDGPU(0): Acceleration enabled
[ 34.974] (==) AMDGPU(0): DPMS enabled

The Xorg.0.log has no errors. amdgpu is installed correctly.
Everything works as it should with the driver.

Check again with eselect the settings.
_________________
Thank you for your attention, interest and support.
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1414

PostPosted: Sun Nov 05, 2017 11:54 pm    Post subject: Reply with quote

/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:01/LNXVIDEO:00/input/input3
[ 1.061185] ACPI Error: [\_PR_.CPU0._CST] Namespace lookup failure, AE_NOT_FOUND (20170119/psargs-363)
[ 1.061204] ACPI Error: Method parse/execution failed [\_PR.CPU1._CST] (Node ffff88084a45c280), AE_NOT_FOUND (20170119/psparse-543)

Dmesg is full of them. Search for the right settings in the kernel.

And lspci please with lspci -v

Or it is better you make a new thread and ask closely the correct kernel settings for your Apple hardware.

This thread to amdgpu seems solved.

Best regards
Ma
_________________
Thank you for your attention, interest and support.
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
visionlogic
n00b
n00b


Joined: 04 Nov 2017
Posts: 8

PostPosted: Mon Nov 06, 2017 4:40 am    Post subject: Reply with quote

Thanks again for the help! I double checked the kernel settings, and built in a few things I may have had missing, but still no luck.

I posted the updated issue on another thread:
https://forums.gentoo.org/viewtopic-t-1071594.html

Cheers
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum