You are not logged in.

#1 2019-11-02 15:50:11

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

can't boot unless i block amdgpu and radeon

I updated yesterday and after a while my desktop wouldn't connect to websites, I decidee it was a good time to reboot since there was a kernel update. On reboot the process got stuck after loading lvm, doing some searches I found that adding ’modprobe.blacklist=amdgpu,radeon' succesfully gets me to log in (in which point the x server obviously errors).

My gpu is amd r9 270x

Offline

#2 2019-11-02 15:57:48

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: can't boot unless i block amdgpu and radeon

Please post the output of

uname -a
pacman -Qs linux

Can you boot the multi-user.target w/o blacklisting the GPU modules? https://wiki.archlinux.org/index.php/Sy … _boot_into

Offline

#3 2019-11-02 16:34:41

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

Re: can't boot unless i block amdgpu and radeon

✗ ~ uname -a
Linux glad0s 5.3.8-arch1-1 #1 SMP PREEMPT @1572357769 x86_64 GNU/Linux

pacman -Qs linux: https://paste.xinu.at/LXeq1g/

seth wrote:

Can you boot the multi-user.target w/o blacklisting the GPU modules? https://wiki.archlinux.org/index.php/Sy … _boot_into

Yes I can! Feels good to be in my normal session again, could you explain why this could've happened? And should I just set the default to multi user or is there a reason not to do that and find another solution?

Thank you for the quick response.

Last edited by indeedwatson (2019-11-02 16:35:57)

Offline

#4 2019-11-02 18:34:20

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: can't boot unless i block amdgpu and radeon

Please post the journal contents from a failed boot.

Offline

#5 2019-11-02 21:13:40

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

Re: can't boot unless i block amdgpu and radeon

Offline

#6 2019-11-02 21:24:35

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: can't boot unless i block amdgpu and radeon

Nov 02 12:57:43 glad0s kernel: amdgpu 0000:01:00.0: Direct firmware load for amdgpu/si58_mc.bin failed with error -2
Nov 02 12:57:43 glad0s kernel: amdgpu 0000:01:00.0: si_mc: Failed to load firmware "amdgpu/si58_mc.bin"
Nov 02 12:57:43 glad0s kernel: amdgpu 0000:01:00.0: Failed to load mc firmware!

Is the linux-firmware package installed?

Offline

#7 2019-11-02 21:36:16

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

Re: can't boot unless i block amdgpu and radeon

loqs wrote:
Nov 02 12:57:43 glad0s kernel: amdgpu 0000:01:00.0: Direct firmware load for amdgpu/si58_mc.bin failed with error -2
Nov 02 12:57:43 glad0s kernel: amdgpu 0000:01:00.0: si_mc: Failed to load firmware "amdgpu/si58_mc.bin"
Nov 02 12:57:43 glad0s kernel: amdgpu 0000:01:00.0: Failed to load mc firmware!

Is the linux-firmware package installed?

It wasn't (and until yesterday it worked fine without it), I spotted that, installed it, and it didn't help.

The error did stop appearing, but it froze in the same way.

Last edited by indeedwatson (2019-11-02 21:36:52)

Offline

#8 2019-11-02 21:37:53

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: can't boot unless i block amdgpu and radeon

From the pacman query:

local/linux-firmware 20191022.2b016af-1
    Firmware files for Linux

Might be missing in the inicpio in case of early kms?

Edit:
please post an up-to-date journal and also: what's your graphical target? Can you start it fom the multi-user.target?

Last edited by seth (2019-11-02 21:39:43)

Offline

#9 2019-11-02 21:56:59

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

Re: can't boot unless i block amdgpu and radeon

journalctl -b 0: https://paste.xinu.at/dbgVP/

systemctl list-units --type=target: https://paste.xinu.at/9Tainn/

I'm not sure how to start a target, if you mean

# systemctl isolate graphical.target

that seems to work fine.

Offline

#10 2019-11-02 22:02:51

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: can't boot unless i block amdgpu and radeon

You could try https://wiki.archlinux.org/index.php/Ke … _KMS_start

systemctl list-units --type=target

Try

systemctl list-unit-files --state=enabled

to reveal the graphical.target

Offline

#11 2019-11-02 22:27:18

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

Re: can't boot unless i block amdgpu and radeon

UNIT FILE                             STATE  
autovt@.service                       enabled
bluetooth.service                     enabled
dbus-org.bluez.service                enabled
dbus-org.freedesktop.thermald.service enabled
dhcpcd.service                        enabled
getty@.service                        enabled
netctl.service                        enabled
thermald.service                      enabled
remote-fs.target                      enabled
fstrim.timer                          enabled

Offline

#12 2019-11-03 07:35:18

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: can't boot unless i block amdgpu and radeon

That doesn't include any graphical.target did you completely disable it in order to enter the multi-user.target?
Please just state what your regular graphical target is, also: did you try enabling early KMS?

Edit: oh, and you've netctl AND dhcpcd enabled, likely throwing off the network config. Please pick one network managing service or ensure to read up the wiki pages and keep the managed interfaces apart.

Last edited by seth (2019-11-03 07:36:34)

Offline

#13 2019-11-03 13:42:02

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

Re: can't boot unless i block amdgpu and radeon

seth wrote:

That doesn't include any graphical.target did you completely disable it in order to enter the multi-user.target?
Please just state what your regular graphical target is, also: did you try enabling early KMS?

Nope, I didn't do anything regarding targets, ever, until I set the multi user one yesterday.

I'm not sure what you're asking, which other command should I use to answer your question? Because this isn't something I've ever manually set up or modified.

Early KMS was already enabled.


Edit: oh, and you've netctl AND dhcpcd enabled, likely throwing off the network config. Please pick one network managing service or ensure to read up the wiki pages and keep the managed interfaces apart.

This is my bad after I had a similar problem and solved it, and didn't clean it up well apparently. About a year ago my desktop would suddenly stop connecting to websites, so I switched to netctl.

Offline

#14 2019-11-03 14:39:05

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: can't boot unless i block amdgpu and radeon

You graphical.target would typically be some DM like SDDM, GDM, lightdm, …
If you don't use such, but eg. autolog'd into startx or something, please elaborate what your "regular" boot process (w/o selecting the multi-user.target) looked like. If you've always been booting into a getty and are still, the target  selection might have had no impact at all, but the initial delay (if you edit the kernel cmdline by hand) might (ie. the HW is slow to come up and/or a crng issue)

Offline

#15 2019-11-03 22:40:32

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

Re: can't boot unless i block amdgpu and radeon

seth wrote:

You graphical.target would typically be some DM like SDDM, GDM, lightdm, …
If you don't use such, but eg. autolog'd into startx or something, please elaborate what your "regular" boot process (w/o selecting the multi-user.target) looked like. If you've always been booting into a getty and are still, the target  selection might have had no impact at all, but the initial delay (if you edit the kernel cmdline by hand) might (ie. the HW is slow to come up and/or a crng issue)

Oh right, yeah booting into startx. I'm gonna describe the booting process in vague words because it's the best I can do by memory: grub, select kernel (which I have to manually do because I could never find a way to make grub remember the last selection, apparently something to do with lvm iirc), then white text that goes fast, then different white text with green [ ok ] on the left, then it takes a bit to connect to the network (probably due to what you pointed out about dhcp/netctl) and then x starts right away into bspwm.

When I couldn't boot the point at which it would hang was before the text with the green [ ok ]

Sorry for the crudeness of the explanation, I'm short on time.

Offline

#16 2019-11-04 09:09:25

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: can't boot unless i block amdgpu and radeon

Ok, that makes the question: can you successfully run startx after booting into the multi-user.target?

Offline

#17 2019-11-04 15:08:54

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

Re: can't boot unless i block amdgpu and radeon

seth wrote:

Ok, that makes the question: can you successfully run startx after booting into the multi-user.target?

Yes, when I added the multi user line to the kernel it booted perfectly. I can mark this as solved, but I would like to learn why this happened

Offline

#18 2019-11-04 15:11:19

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: can't boot unless i block amdgpu and radeon

This sounds as if the system boots so fast that the GPU isn't fully initialized when attempting to startx - try to add a brief sleep (5 seconds or so) before the automatic startx call.

Offline

#19 2019-11-05 13:22:12

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

Re: can't boot unless i block amdgpu and radeon

seth wrote:

This sounds as if the system boots so fast that the GPU isn't fully initialized when attempting to startx - try to add a brief sleep (5 seconds or so) before the automatic startx call.

Why would this start happening after an update?

Offline

#20 2019-11-05 14:01:51

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: can't boot unless i block amdgpu and radeon

*shrug* - something accelerated the boot process or the GPU module/firmware takes longer to initialize it…
Did you try a delay? Does it work?

Offline

#21 2019-11-05 16:14:44

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: can't boot unless i block amdgpu and radeon

What was in the update that triggered the issue?
Does Xorg.log contain:

 (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted

Offline

#22 2019-11-06 13:50:47

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

Re: can't boot unless i block amdgpu and radeon

I had dhcpd freeze and use 100% cpu, I couldn't kill the process so I rebooted to get internet again and figure out how to fully disable it.

Upon reboot I ran into the same issue from the start of this  thread, except I can't boot into it even with multi user target.

EDIT: Installing linux-firmware again lets me boot, even without multi user target. Still not sure what's going on tho.

And the dhcpcd thing seems to be a bug

Last edited by indeedwatson (2019-11-07 04:44:04)

Offline

#23 2019-11-06 14:13:33

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

Re: can't boot unless i block amdgpu and radeon

seth wrote:

*shrug* - something accelerated the boot process or the GPU module/firmware takes longer to initialize it…
Did you try a delay? Does it work?


Does not work, my impression is the issue happens to early to even touch ~/.zprofile.

Last edited by indeedwatson (2019-11-06 14:41:45)

Offline

Board footer

Powered by FluxBB