You are not logged in.

#26 2020-06-22 06:44:17

pk.gmp
Member
Registered: 2020-06-15
Posts: 44

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

@loqs, based on the comments here https://gitlab.freedesktop.org/drm/intel/-/issues/2024, people seem to be still reporting erros. I am not sure this is with code change or not.

Will it be feasible to elaborate the steps to get that mentioned code change effected? I would love to volunteer to try this code (and debug if I can).

Last edited by pk.gmp (2020-06-22 07:17:27)

Offline

#27 2020-06-22 10:22:50

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 144

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

loqs wrote:
-	if (IS_HASWELL(engine->i915) && engine->class == RENDER_CLASS) {
+	if (IS_HASWELL(engine->i915) && engine->class == RENDER_CLASS && 0) {

No difference sad

I also update the sources to 5.8.rc2 and... no difference sad

I also tried to build firmware blobs into the kernel binary as suggested by the Gentoo Wiki. I am still getting the usual hang on

fb0: switching to inteldrmfb from EFI VGA

albeit now at ~0.4 s into the boot process instead of ~4 s.

Maybe one could massage EFI VGA so that the switch is softer? Like non having to change resolution, I don't know...


------------------------------

pk.gmp wrote:

Will it be feasible to elaborate the steps to get that mentioned code change effected?

You basically have to checkout the PKGBUILD of the linux package from ABS (or linux-git from AUR) together with its ancillary files.
Then you paste the patch (full code from loqs) in a file next to the PKGBUILD such as haswell.patch and you adjust the PKGBUILD as described here.
If you do everything properly, when you rebuild the patch is automatically applied. To be sure you can check in the source tree that the file was actually modified.

Offline

#28 2020-06-22 10:31:06

loqs
Member
Registered: 2014-03-06
Posts: 11,660

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

Or if you wanted to test drm-tip instructions are here.

@DarioP just to confirm it is the same fault does the journal contain "GPU HANG: ecode 8:1:85dffff9"?
If not could you please post the journal for a boot with the issue.

Offline

#29 2020-06-22 10:55:04

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 144

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

loqs wrote:

just to confirm it is the same fault does the journal contain "GPU HANG: ecode 8:1:85dffff9"?

When I inspect the journal with:

journalctl -b -1
journalctl -b -2
journalctl -b -3
...

I only see entries related to the successful boots with the LTS kernel, none about the failing ones, same as reported earlier by halasz.

I think that the situation is worse than the title of this topic, as even if the boot process completes when adding nomodeset to the kernel options, I did not manage to have xorg (or gdm) starting as it fails to find a display.
I thought that my config could be cluttered by 5+ years of use on this machine and several switching between different hybrid graphics setups, but even after a fresh install (I just kept my home partition) the situation is the same.

Last edited by DarioP (2020-06-22 10:57:34)

Offline

#30 2020-06-22 11:01:53

loqs
Member
Registered: 2014-03-06
Posts: 11,660

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

You could try drm-tip or bisect between 5.6 and 5.7.

Offline

#31 2020-06-22 12:23:59

pk.gmp
Member
Registered: 2020-06-15
Posts: 44

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

Hi, I want to call out something (with hope that it will help put together a missing piece). When I install kernel from "Clear linux" which is https://aur.archlinux.org/packages/linux-clear-bin, it allows me to boot with intel graphics (i915), eventhough it is 5.7.x series kernel. It has been allowing this since 5.7.2

As mentioned earlier, I have no luck with regular kernel series (upto 5.8.rc1 tried a few hours earlier).

With the expectation that clear linux has its extra patches on top of "stock" or "vanilla" kernel, perhaps one (or more) of these patches are needed to keep using i915 now going forward.

Does it make sense?

Last edited by pk.gmp (2020-06-22 12:26:02)

Offline

#32 2020-06-22 12:39:04

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 144

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

Very nice information!

Here is the their kernel repository https://github.com/clearlinux-pkgs/linux
There are a number of patches, but at a quick look nothing strikes my eye.
However they also include their kernel config file which is great.

I am going to have a deeper look in due time.

Offline

#33 2020-06-22 14:24:10

loqs
Member
Registered: 2014-03-06
Posts: 11,660

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

One difference I noticed:
Arch uses

CONFIG_DRM_I915=m
CONFIG_DRM_I915_FORCE_PROBE="*"

Clear uses

CONFIG_DRM_I915=y
CONFIG_DRM_I915_FORCE_PROBE=""

Does booting with i915.force_probe="" make a difference?

Last edited by loqs (2020-06-22 14:30:28)

Offline

#34 2020-06-22 15:25:17

pk.gmp
Member
Registered: 2020-06-15
Posts: 44

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

loqs wrote:

Does booting with i915.force_probe="" make a difference?

Sorry loqs, unfortunately it did not.

So far, I tried following:
Test #1:  install linux-clear (and headers), which forced compilation from sources (for audience actively looking at this thread this won't be surprise) installs kernel 5.7.5. I can boot into this (with i915, use graphical mode etc). Meaning... this is behaving the way everyone would expect from regular kernel. This is without above parameter.
Test #2:  tried above (kernel parameter i915.force_probe="") with 2 variations for archlinux stock (https://www.archlinux.org/packages/core/x86_64/linux/) kernel.
               #2A : /etc/mkinitcpio.conf with empty MODULES (meaning ... MODULES="")
               #2B : /etc/mkinitcpio.conf with i915 added in MODULES (meaning.... MODULES="i915")
               In both cases #2A and #2B, booting into stock kernel gets stuck. Sorry didn't capture journal or dmesg. I am sure it is same as what we have been discussing (and uploaded by many earlier). For sake of completeness, I did ensure that I ran mkinitcpio -p linux etc.
Test #3: install linux-clear-bin (and headers), this is binary build and installs kernel 5.7.4 (as of few minutes ago for me). This too boots properly (meaning I can use graphics mode etc with i915).
Test #4: boot into linux-lts kernel. Reconfirmed this is working as normal.
Test #5: boot into linux-hardenend kernel. Reconfirmed this is working as normal.

For sake of simplicity I eliminated usages of my otherwise kernel parameters for i915 which are "i915.fastboot=1 i915.enable_fbc=1". They didn't make any difference in human boot experience in any of the mentioned kernels.

Last edited by pk.gmp (2020-06-22 15:31:35)

Offline

#35 2020-06-22 15:30:44

pk.gmp
Member
Registered: 2020-06-15
Posts: 44

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

I would love to explore this aspect: When linux-clear build was happening, I did notice linux-5.7.tar.xz was downloaded (I believe, these are sources from kernel.org). I don't know where do these sources point to in git ... meaning is there any delta between these sources (which are underlying sources for linux-clear) vis a vis archlinux stock kernel.

Last edited by pk.gmp (2020-06-22 15:38:11)

Offline

#36 2020-06-22 15:49:46

loqs
Member
Registered: 2014-03-06
Posts: 11,660

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

See https://git.archlinux.org/linux.git/log/?h=v5.7.4-arch1,  the 5.7.4 tag is used to produce the 5.7.4 tarball,  Arch adds one patch to disable CLONE_NEWUSER at runtime and a second patch that labels the build -arch1.
You could try building the 5.7.4 package using the Clear config.  If that failed add in the Clear patches,  if it still fails that would leave the PKGBUILD and toolchain as differences.
Edit:
If you want to use the upstream git

pkgver=5.7.4
....
source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git#tag=v$pkgver?signed"
...
_srcname=linux

Last edited by loqs (2020-06-22 15:55:27)

Offline

#37 2020-06-22 16:29:06

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 144

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

pk.gmp wrote:
loqs wrote:
CONFIG_DRM_I915=y
CONFIG_DRM_I915_FORCE_PROBE=""

Sorry loqs, unfortunately it did not.

I confirm.

I had already CONFIG_DRM_I915=y in my setup. I changed CONFIG_DRM_I915_FORCE_PROBE="*" to ="".
A bunch of objects in drivers/gpu/drm/i915 were recompiled but the result is still the same.

Last edited by DarioP (2020-06-22 16:30:32)

Offline

#38 2020-06-22 17:41:04

pk.gmp
Member
Registered: 2020-06-15
Posts: 44

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

I have good news.

Here is what I did in short. I compiled sources from kernel.org's recent 5.7.5 tar file.  No new patches. Only that tar file named linux-5.7.5.tar.xz https://cdn.kernel.org/pub/linux/kernel … 7.5.tar.xz. I took that same config file from clear linux (those reading this first time, please read a few comments above for my tests which I did earlier today). Using this config, applied the arch set up (which is basically enabling APPARMOR, SELINUX etc..). Please notice: no patches.  I think I am describing that I did clear linux style source compilation (from the tests earlier mentioned) without the clear linux patches.

I was able to boot into this freshly compiled kernel without any problems.

Now, I have some questions:
1. Is archlinux kernel package built from same source? In theory yes. I took tar file from kernel.org. Not sure whether this makes a difference. Won't hurt to rule this out.
2. When I look at the contents of /usr/lib/modules/5.7.4-arch-1/kernel/drivers/gpu/drm, it shows me a folder of i915 ... while my compiled kernel doesn't have this folder. (We know because of CONFIG_DRM_I915=y from clear-linux config file, my kernel is packaged with i915 builtin). How big of a difference should this make? Should we check with intel? The difference that is showing up so far is that : when i915 is built-in the kernel then we are able to boot into this kernel. When i915 is a module (not built in), kernel is hanging at boot when i915 needs to be loaded.

Hoping this helps... or may be not.


PS: Though I believe I compared folder from stock arch linux kernel 5.7.4 with my 5.7.5 kernel, it is evident that the difference is due to how kernel is built (rather than versions). Same result for 5.8-rc2 (compilation from sources worked for this one too).

Last edited by pk.gmp (2020-06-22 18:48:53)

Offline

#39 2020-06-23 20:38:00

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 144

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

Unfortunately the Arch and the Clear config are quite different, so I think that it is important to narrow down the options that make the kernel boot again.

I have compiled a dozen of kernels today, but so far without success.

To make things easier I setup this repository on github: https://github.com/dpellegr/kernel-config/tree/master
It contains the kernel configs:
* from linux-git AUR package
* from ClearLinux (I merged the fragment)
* from my attempts at transfer the required options

I have been starting from the Arch config (trying to make it work), but it may be easier to start from the Clear config (trying to make it fail).

Last edited by DarioP (2020-06-23 20:46:00)

Offline

#40 2020-06-23 23:36:32

loqs
Member
Registered: 2014-03-06
Posts: 11,660

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

I would test the Clear config with linux-git to prove does work and its not something else that is making it work.
Edit:
https://github.com/clearlinux-pkgs/linu … 964/config is the config Clear uses rather than https://github.com/clearlinux-pkgs/linu … g-fragment

Last edited by loqs (2020-06-24 00:11:12)

Offline

#41 2020-06-24 01:15:37

pablox
Member
From: /home/chile/santiago/
Registered: 2008-05-14
Posts: 183
Website

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

I ran into the same issue into a fresh install with 5.7.4, downgrading works (just to make the point).


Geeks & Linux Atelier
An eye for an eye ... ends in making everybody blind -- Mahatma Gandhi
dotfiles

Offline

#42 2020-06-24 07:50:21

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 144

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

loqs wrote:

I would test the Clear config with linux-git

It does work.

I think that they keep a template config file and they overwrite it with their custom options in the fragment.
I added the simple python script that I used to generate the working config in the repo:
https://github.com/dpellegr/kernel-config/tree/master

As a side note the linux and linux-header packages generated with the config from clearlinux are about 300 MB, while arch is just 200 MB.
I am still in the process of trying to pinpoint the relevant options.

Offline

#43 2020-06-24 08:41:41

Ropid
Member
Registered: 2015-03-09
Posts: 884

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

DarioP wrote:

[...]

I think that they keep a template config file and they overwrite it with their custom options in the fragment.
I added the simple python script that I used to generate the working config in the repo:
https://github.com/dpellegr/kernel-config/tree/master

As a side note the linux and linux-header packages generated with the config from clearlinux are about 300 MB, while arch is just 200 MB.
I am still in the process of trying to pinpoint the relevant options.

In the kernel sources, there's a script "merge-config.sh". That's the official way to apply a "fragment" to a config. Here's a link to the script's source:

https://git.kernel.org/pub/scm/linux/ke … _config.sh

I use the merge-config.sh script like this in my own kernel PKGBUILD to apply a fragment file with my tweaks:

  echo "Setting config..."
  #cp ../config .config
  ./scripts/kconfig/merge_config.sh -m ../config ../my-config.fragment
  make olddefconfig

The original Arch PKGBUILD looks like this in the same section:

  echo "Setting config..."
  cp ../config .config
  make olddefconfig

About the larger kernel package size, that's because the kernel image compression and module compression are set up different. In the Arch config, things look like this:

CONFIG_KERNEL_XZ=y

CONFIG_MODULE_COMPRESS=y
CONFIG_MODULE_COMPRESS_XZ=y

In the clear-linux config, it's changed into this:

CONFIG_KERNEL_LZ4=y

# CONFIG_MODULE_COMPRESS is not set

The modules not being compressed is what's making the package very large (after installation). The CONFIG_KERNEL_LZ4 doesn't do that much, it changes the vmlinuz file size from 6MB to 12MB.

Offline

#44 2020-07-02 16:28:39

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 144

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

Some updates. When I say Arch config I mean the kernel config file from linux-git AUR tarball.

I merged the ClearLinux config fragment it into the Arch config and into the Clear config with the standard procedure described by Ropid (thank you!).
The latter kept working, the former kept not working. So I discarded the fragment at all.

I started to assembly new configs by taking the Arch one up to a certain break point, then continuing with the Clear one.

I got a working kernel by setting the break point at the line: end of Graphics support
I got a NON working kernel by setting the break point at the line: File Systems

I will keep narrowing down even more in the next days.

Offline

#45 2020-07-02 20:34:01

gianluca.pettinello
Member
Registered: 2013-04-16
Posts: 72

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

DarioP wrote:

Some updates. When I say Arch config I mean the kernel config file from linux-git AUR tarball.

I merged the ClearLinux config fragment it into the Arch config and into the Clear config with the standard procedure described by Ropid (thank you!).
The latter kept working, the former kept not working. So I discarded the fragment at all.

I started to assembly new configs by taking the Arch one up to a certain break point, then continuing with the Clear one.

I got a working kernel by setting the break point at the line: end of Graphics support
I got a NON working kernel by setting the break point at the line: File Systems

I will keep narrowing down even more in the next days.


Thanks for your work.
If you get a working config file it would be great. And probably to be used to modify the main package.
G

Offline

#46 2020-07-03 11:11:44

EdeWolf
Member
Registered: 2016-01-06
Posts: 51

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

Just wondering, may it be related to:
https://bbs.archlinux.org/viewtopic.php … 6#p1913206
https://gitlab.freedesktop.org/drm/intel/-/issues/2116
?

Last edited by EdeWolf (2020-07-03 11:12:01)

Offline

#47 2020-07-04 13:10:08

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 144

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

I am not sure. Here the boot process stops pretty early and we do not get any journal log.
When adding debug to the kernel options we get:

fb0: switching to inteldrmfb from EFI VGA

as the last message before it hangs.

Offline

#48 2020-07-04 13:19:36

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 144

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

I think I got it. It boils down to enabling CONFIG_INTEL_IOMMU_DEFAULT_ON

It is the only diff I have in my working config for 5.8RC3:

@@ -8809,7 +8809,7 @@ CONFIG_AMD_IOMMU_V2=y
 CONFIG_DMAR_TABLE=y
 CONFIG_INTEL_IOMMU=y
 CONFIG_INTEL_IOMMU_SVM=y
-# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
+CONFIG_INTEL_IOMMU_DEFAULT_ON=y
 CONFIG_INTEL_IOMMU_FLOPPY_WA=y
 # CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON is not set
 CONFIG_IRQ_REMAP=y

Offline

#49 2020-07-04 14:27:58

gianluca.pettinello
Member
Registered: 2013-04-16
Posts: 72

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

DarioP wrote:

I think I got it. It boils down to enabling CONFIG_INTEL_IOMMU_DEFAULT_ON

It is the only diff I have in my working config for 5.8RC3:

@@ -8809,7 +8809,7 @@ CONFIG_AMD_IOMMU_V2=y
 CONFIG_DMAR_TABLE=y
 CONFIG_INTEL_IOMMU=y
 CONFIG_INTEL_IOMMU_SVM=y
-# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
+CONFIG_INTEL_IOMMU_DEFAULT_ON=y
 CONFIG_INTEL_IOMMU_FLOPPY_WA=y
 # CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON is not set
 CONFIG_IRQ_REMAP=y

I'll try and revert to you, thanks!

Offline

#50 2020-07-04 14:34:55

loqs
Member
Registered: 2014-03-06
Posts: 11,660

Re: [SOLVED] Kernel 5.7 Intel graphics will not boot without nomodeset

What about booting the arch kernel with with the boot option intel_iommu=on or intel_iommu=on,igfx_off?

Last edited by loqs (2020-07-04 14:44:52)

Offline

Board footer

Powered by FluxBB