Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
All new kernels blackscreen almost immediately
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Sat Jun 03, 2017 7:25 pm    Post subject: All new kernels blackscreen almost immediately Reply with quote

I installed gentoo not too long ago, all went well; took a long time on my system, but it went rather smoothly considering how much of a newbie I am. Anyways, now that I've gotten the base setup, I decided I want to use the ck-sources kernel. I do the usual configure, make, install, etc; but then it immediately blackscreens not too long after I select it in grub, I frankly don't even think it loaded the kernel, it definitely didn't unpack the raminits.

I figured there's a bug in the ck-sources, so I go back to the generic gentoo kernel that the handbook recommends. I do the whole procedure again, but it does the exact same thing. In fact every single kernel I try does it, regardless of config; even genkernel fails! I managed to save the only kernel that can boot, which is the kernel I first compiled. I'm honestly not sure how it boots either, because if I compile another kernel with the exact same config it doesn't boot either(I'm not sure if it's the same config that the safe kernel uses).

Here's lspci -k ; I still need help configuring this whole thing, my ultrawide isn't recognized correctly, and my second monitor isn't recognized at all. And my sound doesn't work. But of course the most important thing is that no new kernels work at all.

Code:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD9x0/RX980 Host Bridge (rev 02)
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] RD9x0/RX980 Host Bridge
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 0)
        Kernel driver in use: pcieport
00:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 3)
        Kernel driver in use: pcieport
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
        Subsystem: ASUSTeK Computer Inc. SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
        Kernel driver in use: ahci
        Kernel modules: ahci
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
        Kernel driver in use: ohci-pci
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
        Kernel driver in use: ehci-pci
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
        Kernel driver in use: ohci-pci
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
        Kernel driver in use: ehci-pci
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
        Subsystem: ASUSTeK Computer Inc. SBx00 Azalia (Intel HDA)
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
        Kernel driver in use: ohci-pci
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
        Kernel driver in use: pcieport
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
        Kernel driver in use: ohci-pci                                                                                                                     
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller                                                       
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller                                                           
        Kernel driver in use: ehci-pci                                                                                                                     
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration                                                 
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map                                                                   
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller                                                               
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control                                                         
        Kernel modules: k10temp                                                                                                                           
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control                                                                 
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)                           
        Subsystem: ASUSTeK Computer Inc. P8P67 and other motherboards                                                                                     
        Kernel driver in use: r8169                                                                                                                       
        Kernel modules: r8169                                                                                                                             
02:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller                                                                     
        Subsystem: ASUSTeK Computer Inc. P8B WS Motherboard                                                                                               
        Kernel modules: xhci_pci                                                                                                                           
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480] (rev c7)                                           
        Subsystem: PC Partner Limited / Sapphire Technology Ellesmere [Radeon RX 470/480]                                                                 
        Kernel modules: amdgpu                                                                                                                             
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aaf0                                                                                   
        Subsystem: PC Partner Limited / Sapphire Technology Device aaf0                                                                                   
        Kernel driver in use: snd_hda_intel                                                                                                               
        Kernel modules: snd_hda_intel               


my fstab. I'm using EFI in legacy mode with mbr SSD and mbr HDD dualbooting with windows, the motherboard is rather old. First gen asus m5a97 no revision version.
Code:

UUID=8f19e2ef-735b-4984-abf8-e069a1e9375e /boot ext2 defaults 0 2
UUID=df3ffa31-5e29-4b0e-85c7-f0f8cabee3af / xfs defaults 0 1
UUID=bd605719-f989-4367-8e6a-438d07576f4b /tmp xfs defaults 0 2
UUID=16526bba-c521-4756-937b-2c1bca90364e swap sw 0 0
UUID=92402546-d3fd-42a0-90f8-722ec1836928 /home xfs defaults 0 2


my ls /boot ; as you can see I've been tearing my hair out over this
Code:

laachax@LaachaxNix ~ $ ls /boot
4.11.3-ck-r1-gentoo                        config-4.11.2-ck           config-4.9.16-gentoo.old                  vmlinuz-4.11.3-ck-r1
System.map-4.11.3-ck-r1                    config-4.11.2-ck.old       grub                                      vmlinuz-4.9.16-gentoo
System.map-4.9.16-gentoo                   config-4.11.3-ck-r1        initramfs-genkernel-x86_64-4.11.3-ck-r1   vmlinuz-4.9.16-gentoo-safe
System.map-4.9.16-gentoo-safe              config-4.11.3-ck-r1.old    initramfs-genkernel-x86_64-4.9.16-gentoo  vmlinuz-4.9.16-gentoo.old
System.map-4.9.16-gentoo.old               config-4.9.16-gentoo       kernel-genkernel-x86_64-4.9.16-gentoo
System.map-genkernel-x86_64-4.9.16-gentoo  config-4.9.16-gentoo-safe  lost+found




"safe old" config http://www.mediafire.com/file/ajoogvcu1psavu7/config-4.9.16-gentoo-safe

"new nonbooting" config http://www.mediafire.com/file/ncbloyc3e87m996/config-4.11.3-ck-r1

sorry for the mediafire links, if you have alternatives to host these on, please tell me!

Anyways, I'm completely lost and defeated. I need a new kernel with all the features that I'm missing, but none of them boot. Thanks for any help!


Last edited by Laachax on Sat Jun 03, 2017 11:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43192
Location: 56N 3W

PostPosted: Sat Jun 03, 2017 8:26 pm    Post subject: Reply with quote

Laachax,

Make friends with wgetpaste.
Its a command line tool to put files and command output on the web.
Post the URLs it gives you.

One oddity. Your working config has
Code:
CONFIG_EXTRA_FIRMWARE="amdgpu/polaris10_ce.bin amdgpu/polaris10_k_smc.bin amdgpu/polaris10_mc.bin amdgpu/polaris10_mec2.bin \
                       amdgpu/polaris10_mec.bin amdgpu/polaris10_pfp.bin amdgpu/polaris10_rlc.bin amdgpu/polaris10_sdma1.bin \
                       amdgpu/polaris10_sdma.bin amdgpu/polaris10_smc.bin amdgpu/polaris10_uvd.bin amdgpu/polaris10_vce.bin"
CONFIG_EXTRA_FIRMWARE_DIR="firmware"

and the non workng one has
Code:
CONFIG_EXTRA_FIRMWARE="amdgpu/polaris10_ce.bin amdgpu/polaris10_k_smc.bin amdgpu/polaris10_mc.bin amdgpu/polaris10_mec2.bin \
                        amdgpu/polaris10_mec.bin amdgpu/polaris10_pfp.bin amdgpu/polaris10_rlc.bin amdgpu/polaris10_sdma1.bin \
                        amdgpu/polaris10_sdma.bin amdgpu/polaris10_smc.bin amdgpu/polaris10_uvd.bin amdgpu/polaris10_vce.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"


CONFIG_EXTRA_FIRMWARE_DIR is correct in the non working case.

By way of debug, try a non working config with # CONFIG_FB_SIMPLE is not set changed to * using menuconfig.

Its a verybadthing to use $EDITOR on the kernel .config file. Some options flip half a dozen CONFIG_ flags. menuconfig will get it right.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Sat Jun 03, 2017 8:36 pm    Post subject: Reply with quote

Thanks for the tool! Will become very handy.

working config https://paste.pound-python.org/show/gNiqKyUIq77QxaScIuKz/

non working config https://paste.pound-python.org/show/FG0c1wEWZtgGe1SmrKcv/

If you need the copy of any other files on here, let me know. I'm currently compiling the new kernel with that option, and I'll see if it changes anything. I'll edit this post to report back.

edit: changed nothing.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43192
Location: 56N 3W

PostPosted: Sat Jun 03, 2017 9:21 pm    Post subject: Reply with quote

Laachax,

Post the content of
Code:
ls -l /boot

The output of
Code:
uname -a
from your working kernel and put the content of /boot/grub/grub.cfg onto a pastebin.

wgetpaste is used extensively on IRC where a 3 line paste is likely to get you kicked.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Sat Jun 03, 2017 9:25 pm    Post subject: Reply with quote

Code:
total 107565
-rw-r--r-- 1 root root  7736816 Jun  3 12:59 4.11.3-ck-r1-gentoo
-rw-r--r-- 1 root root  3976842 Jun  3 16:02 System.map-4.11.3-ck-r1
-rw-r--r-- 1 root root  3969862 Jun  3 15:46 System.map-4.11.3-ck-r1.old
-rw-r--r-- 1 root root  3914564 May 30 07:50 System.map-4.9.16-gentoo
-rw-r--r-- 1 root root  3914603 May 30 06:52 System.map-4.9.16-gentoo-safe
-rw-r--r-- 1 root root  3914564 May 30 07:42 System.map-4.9.16-gentoo.old
-rw-r--r-- 1 root root  3339768 May 31 11:34 System.map-genkernel-x86_64-4.9.16-gentoo
-rw-r--r-- 1 root root   107373 May 27 12:06 config-4.11.2-ck
-rw-r--r-- 1 root root   107439 May 27 11:36 config-4.11.2-ck.old
-rw-r--r-- 1 root root   110039 Jun  3 16:02 config-4.11.3-ck-r1
-rw-r--r-- 1 root root   110021 Jun  3 15:46 config-4.11.3-ck-r1.old
-rw-r--r-- 1 root root   108060 May 30 07:50 config-4.9.16-gentoo
-rw-r--r-- 1 root root   108080 May 30 06:45 config-4.9.16-gentoo-safe
-rw-r--r-- 1 root root   108085 May 30 07:42 config-4.9.16-gentoo.old
drwxr-xr-x 6 root root     1024 Jun  3 16:03 grub
-rw-r--r-- 1 root root  1357864 Jun  3 16:03 initramfs-genkernel-x86_64-4.11.3-ck-r1
-rw-r--r-- 1 root root 34109672 May 31 11:50 initramfs-genkernel-x86_64-4.9.16-gentoo
-rw-r--r-- 1 root root  5457584 May 31 11:34 kernel-genkernel-x86_64-4.9.16-gentoo
drwx------ 2 root root    12288 May 25 09:34 lost+found
-rw-r--r-- 1 root root  7743632 Jun  3 16:02 vmlinuz-4.11.3-ck-r1
-rw-r--r-- 1 root root  7731152 Jun  3 15:46 vmlinuz-4.11.3-ck-r1.old
-rw-r--r-- 1 root root  7427824 May 30 07:50 vmlinuz-4.9.16-gentoo
-rw-r--r-- 1 root root  6887312 May 30 06:43 vmlinuz-4.9.16-gentoo-safe
-rw-r--r-- 1 root root  7427824 May 30 07:42 vmlinuz-4.9.16-gentoo.old


Code:
Linux LaachaxNix 4.9.16-gentoo #3 SMP Thu May 25 20:16:44 CDT 2017 x86_64 AMD Phenom(tm) II X4 965 Processor AuthenticAMD GNU/Linux



my grub https://paste.pound-python.org/show/qrNhVq7Ohj2tfkCvFzvr/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43192
Location: 56N 3W

PostPosted: Sat Jun 03, 2017 9:40 pm    Post subject: Reply with quote

Laachax,

That's interesting ...

Your running kernel was made on Thu May 25 20:16:44 CDT 2017, and it was your #3 attempt.
However, there are no kernels in your /boot dated before May 30.

That suggests that you are not running the kernel you think you are.

What is in /boot when /boot is not mounted?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Sat Jun 03, 2017 9:43 pm    Post subject: Reply with quote

Ah, I renamed that kernel on the 30th to -safe, that's why it's dated from the 30th and not the 25th. I also cleaned up the non-working kernels.
Back to top
View user's profile Send private message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Sat Jun 03, 2017 11:53 pm    Post subject: Reply with quote

A friend recommend me try to set amdgpu as a module and load it via the etc/conf.d/modules modules="amdgpu". Is this right? And do I add more by leaving spaces or commas between them?

Anyways, doing that greatly changed when the system crashes, in fact a I see a few lines of the familiar blue text of the start up text, but then it goes black. Numlock is not stuck, and I can change tty's and verify this by the numlock state changing. Otherwise the screen is black. I'll see if I can grab the dmesg tomorrow from a rescue CD and see what it gets hung up upon.

edit: I also edited the main post with my boot situation for a bit more info. I'm using EFI in legacy mode with mbr SSD and mbr HDD dualbooting with windows, the motherboard is rather old. First gen asus m5a97 no revision version.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43192
Location: 56N 3W

PostPosted: Sun Jun 04, 2017 7:58 am    Post subject: Reply with quote

Laachax,

amdgpu, either as a module, or built in provides your framebuffer console.
When its a kernel built in, it loads earlier than when its a module, so you see boot messages sooner.

You should not need the /etc/conf.d/modules modules="amdgpu". The auto kernel module loading should do it for you.
Exactly which file that goes in depends on the version of openRC you are using.

That you get a few lines of boot text suggests that you still have Simple Framebuffer enabled.
That works until the amdgpu framebuffer console kicks in, it starts later now.

That's a pointer to something amdgpu related.
Wild guess, the firmware and new kernels do not play nicely together. When did you update linux-firmware last?

I suspect your system boots, you just can't see it ... can you ssh into it and get dmesg ?
That would be very useful.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Wed Jun 07, 2017 7:15 pm    Post subject: Reply with quote

Sorry for the lack of updates. Been really busy the last few days. Anyways, I tried to SSH into it and no dice, cannot connect. I suppose I could try a rescue CD and see if it writes to dmesg. But if I can't ssh into it, and ssh is running and default level, I'm not sure if it writes anything.

I updated the firmware not too long ago, probably around the 28th.
Back to top
View user's profile Send private message
shrike
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2004
Posts: 136
Location: Closer to home

PostPosted: Thu Jun 08, 2017 12:33 pm    Post subject: Reply with quote

WRT to dmesg you could simply mount the drive:

Code:
 # mount /dev/sda3 /mnt/gentoo


Code:
l /mnt/gentoo/var/log/
total 1.6M
drwxr-xr-x 9 root     root     3.5K May 28 08:00 .
drwxr-xr-x 9 root     root     3.5K Apr 27 05:42 ..
drwx------ 2 root     root     3.5K Jun  3 08:02 cron
-rw-r----- 1 root     root      64K Jun  3 16:22 dmesg
-rw-rw---- 1 portage  portage  1.1K Jun  3 16:18 emerge-fetch.log
-rw-rw---- 1 portage  portage  606K Jun  3 16:20 emerge.log
drwx------ 2 root     root     3.5K Jun  3 08:02 everything
-rw-r--r-- 1 root     root        0 Apr 27 05:42 .keep
drwx------ 2 root     root     3.5K Jun  3 08:02 kernel
-rw-r--r-- 1 root     root      292 Jun  3 16:29 lastlog
drwxrwx--- 2 nullmail nullmail 3.5K May 28 10:04 nullmailer
drwxrwsr-x 3 portage  portage  3.5K Apr 27 06:16 portage
-rw-r--r-- 1 root     root     155K Jun  3 16:29 rc.log
-rw-r--r-- 1 root     root     2.0K May 18 06:37 rc.log-20170518.gz
-rw-r--r-- 1 root     root     1.4K May 21 10:35 rc.log-20170521.gz
-rw-r--r-- 1 root     root     1.7K May 28 07:50 rc.log-20170528.gz
drwxrwx--- 2 root     portage  3.5K May 11 19:41 sandbox
-rw------- 1 root     root       64 Jun  3 16:29 tallylog
drwx------ 2 root     root     3.5K Jun  3 08:03 telnet
-rw-rw-r-- 1 root     utmp     669K Jun  3 16:29 wtmp


Code:
grep drm /mnt/gentoo/var/log/dmesg
[    2.322764] [drm] amdgpu kernel modesetting enabled.
[    2.323001] [drm] initializing kernel modesetting (OLAND 0x1002:0x6610 0x1458:0x22BF 0x00).
[    2.323012] [drm] register mmio base: 0xF4000000
[    2.323013] [drm] register mmio size: 262144
[    2.346799] [drm] BIOS signature incorrect 6e 7
[    2.346834] [drm] GPU post is not needed
[    2.347386] [drm] Detected VRAM RAM=2048M, BAR=256M
[    2.347387] [drm] RAM width 128bits DDR3
[    2.347485] [drm] amdgpu: 2048M of VRAM memory ready
[    2.347486] [drm] amdgpu: 2048M of GTT memory ready.
[    2.347588] [drm] GART: num cpu pages 524288, num gpu pages 524288
[    2.353301] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.353302] [drm] Driver supports precise vblank timestamp query.
[    2.353352] [drm] amdgpu: irq initialized.
[    2.353362] [drm] probing gen 2 caps for device 8086:340a = 3b3d02/0
[    2.353387] [drm] Internal thermal controller with fan control
[    2.353397] [drm] amdgpu: dpm initialized
[    2.353503] [drm] AMDGPU Display Connectors
[    2.353504] [drm] Connector 0:
[    2.353504] [drm]   HDMI-A-1
[    2.353505] [drm]   HPD1
[    2.353506] [drm]   DDC: 0x194c 0x194c 0x194d 0x194d 0x194e 0x194e 0x194f 0x194f
[    2.353507] [drm]   Encoders:
[    2.353507] [drm]     DFP1: INTERNAL_UNIPHY
[    2.353508] [drm] Connector 1:
[    2.353508] [drm]   DVI-D-1
[    2.353509] [drm]   HPD2
[    2.353510] [drm]   DDC: 0x1950 0x1950 0x1951 0x1951 0x1952 0x1952 0x1953 0x1953
[    2.353510] [drm]   Encoders:
[    2.353511] [drm]     DFP2: INTERNAL_UNIPHY
[    2.353511] [drm] Connector 2:
[    2.353511] [drm]   VGA-1
[    2.353513] [drm]   DDC: 0x1970 0x1970 0x1971 0x1971 0x1972 0x1972 0x1973 0x1973
[    2.353513] [drm]   Encoders:
[    2.353514] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    2.353940] [drm] probing gen 2 caps for device 8086:340a = 3b3d02/0
[    2.353942] [drm] PCIE gen 2 link speeds already enabled
[    2.535896] [drm] ring test on 0 succeeded in 9 usecs
[    2.537903] [drm] ring test on 1 succeeded in 1 usecs
[    2.537909] [drm] ring test on 2 succeeded in 2 usecs
[    2.537917] [drm] ring test on 3 succeeded in 3 usecs
[    2.537925] [drm] ring test on 4 succeeded in 4 usecs
[    2.622821] [drm] fb mappable at 0xE0443000
[    2.622822] [drm] vram apper at 0xE0000000
[    2.622823] [drm] size 33177600
[    2.622823] [drm] fb depth is 24
[    2.622823] [drm]    pitch is 15360
[    2.623001] fbcon: amdgpudrmfb (fb0) is primary device
[    2.661014] amdgpu 0000:0f:00.0: fb0: amdgpudrmfb frame buffer device
[    2.666349] [drm] ib test on ring 0 succeeded
[    2.666381] [drm] ib test on ring 1 succeeded
[    2.666411] [drm] ib test on ring 2 succeeded
[    2.666439] [drm] ib test on ring 3 succeeded
[    2.666466] [drm] ib test on ring 4 succeeded
[    2.981291] [drm] Initialized amdgpu 3.10.0 20150101 for 0000:0f:00.0 on minor 0



shrike
Back to top
View user's profile Send private message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Fri Jun 09, 2017 6:17 pm    Post subject: Reply with quote

Code:
[    1.631667] [drm] Initialized
[    1.631831] [drm] amdgpu kernel modesetting enabled.
[    1.632134] [drm] initializing kernel modesetting (POLARIS10 0x1002:0x67DF 0x174B:0xE353 0xC7).
[    1.632406] [drm] register mmio base: 0xFE900000
[    1.632551] [drm] register mmio size: 262144
[    1.632699] [drm] doorbell mmio base: 0xD0000000
[    1.632876] [drm] doorbell mmio size: 2097152
[    1.633027] [drm] probing gen 2 caps for device 1002:43a0 = 300c42/0
[    1.633173] [drm] probing mlw for device 1002:43a0 = 300c42
[    1.633333] [drm] UVD is enabled in VM mode
[    1.633477] [drm] VCE enabled in VM mode
[    1.634103] [drm] GPU post is not needed
[    1.634788] [drm:gmc_v8_0_sw_init] *ERROR* Failed to load mc firmware!
[    1.634935] [drm:amdgpu_device_init] *ERROR* sw_init of IP block <gmc_v8_0> failed -2
[    1.635521] [drm] amdgpu: finishing device.


Code:
[    1.631831] [drm] amdgpu kernel modesetting enabled.
[    1.633638] amdgpu 0000:04:00.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0xffff
[    1.634386] amdgpu 0000:04:00.0: Direct firmware load for amdgpu/polaris10_mc.bin failed with error -2
[    1.634641] mc: Failed to load firmware "amdgpu/polaris10_mc.bin"
[    1.634935] [drm:amdgpu_device_init] *ERROR* sw_init of IP block <gmc_v8_0> failed -2
[    1.635190] amdgpu 0000:04:00.0: amdgpu_init failed
[    1.635375] amdgpu 0000:04:00.0: Fatal error during GPU init
[    1.635521] [drm] amdgpu: finishing device.
[    1.636051] amdgpu: probe of 0000:04:00.0 failed with error -2


for the drm

and the whole dmesg https://paste.pound-python.org/show/LokEKjPfDWvbSjtUG7b9/

Does this mean the whole time I was just missing a single firmware file, fml. Let me see if it's not in the firmware section.

edit; well it's there as amdgpu/polaris10_mc.bin so idk why it fails to load the firmware.

edit 2; huh, I was missing polaris10_me.bin. Let me compile the kernel again and see what happens.

edit3;Nope. got one more thing to check. Then I'm out of ideas. Alright, I'm out of ideas, I tried. I'll let you gentoo geniuses help x)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13845

PostPosted: Sat Jun 10, 2017 12:03 am    Post subject: Reply with quote

Your prior kernel configuration suggests, and the latest dmesg confirms, that you have included the graphics driver in the core kernel. If you do this, you must also embed the firmware in the kernel because the graphics driver will need it before your root filesystem is mounted. Your edits suggest that you probably understand this, but it is easy to miss. The other problem that I have seen for people in this situation is that they embed the firmware in a way that gives it a path other than the one the kernel uses, so the kernel fails to find the firmware even though it is present. Please pastebin the config that corresponds to your most recent dmesg.
Back to top
View user's profile Send private message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Sat Jun 10, 2017 2:04 am    Post subject: Reply with quote

Hu wrote:
Your prior kernel configuration suggests, and the latest dmesg confirms, that you have included the graphics driver in the core kernel. If you do this, you must also embed the firmware in the kernel because the graphics driver will need it before your root filesystem is mounted. Your edits suggest that you probably understand this, but it is easy to miss. The other problem that I have seen for people in this situation is that they embed the firmware in a way that gives it a path other than the one the kernel uses, so the kernel fails to find the firmware even though it is present. Please pastebin the config that corresponds to your most recent dmesg.


The non-working config in the OP should be the same as the one that gave the current dmesg.

An update and clean appears to have destroyed all my x11 stuff so I can't quickly give another config.

edit: here's the config that came with that dmesg https://paste.pound-python.org/show/7Is9oLPAHIu6i38Ro41s/

if you want to help with my sudden x11 issues, here's the Xorg.0.log https://paste.pound-python.org/show/6Lpz3eSYNqRhyeDw2dcL/
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13845

PostPosted: Sat Jun 10, 2017 2:22 am    Post subject: Reply with quote

Although slight variations might be permissible, I try to have the path in .config match exactly the path shown in dmesg. Yours do not. You have a leading slash on each of the files in CONFIG_EXTRA_FIRMWARE, relative to the output from the kernel. Please remove those slashes and try again.
Back to top
View user's profile Send private message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Sat Jun 10, 2017 2:44 am    Post subject: Reply with quote

Done, nothing changed.

Here's the new dmesg with a new kernel with the new config https://paste.pound-python.org/show/8QlDB4SoffTFKxxpRHCW/

the config https://paste.pound-python.org/show/M5VchBMOEI2L7yfUkQJB/
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13845

PostPosted: Sat Jun 10, 2017 5:06 pm    Post subject: Reply with quote

Laachax wrote:
Done, nothing changed.
You need to boot the modified kernel, not just build it. From your dmesg:
dmesg:
[    0.000000] Linux version 4.9.16-gentoo (root@LaachaxNix) (gcc version 5.4.0 (Gentoo 5.4.0-r3 p1.3, pie-0.6.5) ) #3 SMP Thu May 25 20:16:44 CDT 2017
This tells me you booted and tested a 4.9.16-gentoo kernel built May 25.

From your config:
config:

3   # Linux/x86 4.11.4-ck Kernel Configuration
1203   CONFIG_EXTRA_FIRMWARE="amdgpu/polaris10_me.bin amdgpu/polaris10_ce.bin amdgpu/polaris10_k_smc.bin amdgpu/polaris10_mc.bin amdgpu/polaris10_mec2.bin amdgpu/polaris10_mec.bin amdgpu/polaris10_pfp.bin amdgpu/polaris10_rlc.bin amdgpu/polaris10_sdma1.bin amdgpu/polaris10_sdma.bin amdgpu/polaris10_smc.bin amdgpu/polaris10_uvd.bin amdgpu/polaris10_vce.bin"
1204   CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
This tells me you reconfigured (and likely built) a 4.11.4-ck kernel. Your dmesg is not from this kernel, so the configuration changes made to it cannot affect your observed symptoms.
Back to top
View user's profile Send private message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Sat Jun 10, 2017 5:31 pm    Post subject: Reply with quote

That's strange. I can assure you I'm trying to boot 4.11 and not 4.9. It must have overwritten my dmesg.bak when I booted back into the working kernel to send the wgetpaste.
Back to top
View user's profile Send private message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Thu Jun 15, 2017 6:27 am    Post subject: amdgpu blackscreens upon loading module Reply with quote

Been very busy again, sorry for the lack of updates...

Anyways, thanks to the help of a very nice redditor we have pinned it down to mesa/amdgpu misbehaving. I blacklisted amdgpu from loading and the kernel boots! Then I modprobe it in and it black screens... At this point I'm not sure what to do as this is incredibly beyond my knowledge. At least all kernels boot now that I blacklisted the amdgpu module from loading.

Check the reddit thread to see what we have done so far https://www.reddit.com/r/Gentoo/comments/6gd4xh/having_kernel_and_xorg_issues_on_new_install_can/

Any help is appreciated. If I should make a new thread, I will. Thanks :)
Back to top
View user's profile Send private message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Fri Jun 16, 2017 10:59 pm    Post subject: Reply with quote

So on a hunch I changed slots my graphics card was in...

it works now. No problems whatsoever.

I don't even. Sorry everyone for the wild ride. I apparently need a new motherboard or something...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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