You are not logged in.

#1 2024-07-06 12:47:54

martinbaselier
Member
Registered: 2010-06-30
Posts: 14

[SOLVED] Xorg not starting with kernel 6.9

I have a i915 and when I update the kernel to 6.9 Xorg won't start. Currently it's 6.9.7 but it's with all versions of 6.9
I have 2 videocards and I use to onboard card for Linux and for my VM I use a 1080Ti.
This is my Xorg.conf to select the intel driver:

Section "OutputClass"
        Identifier "intel"
        MatchDriver "i915"
        Driver "intel"
        Option "PrimaryGPU" "yes"
EndSection

Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"
  Option      "DRI"  "iris"
  Option      "TearFree"        "false"
  Option      "TripleBuffer"    "false"

  Option      "SwapbuffersWait" "false"
EndSection

If I turn that config  off X starts, but it's totally unusable. It looks like it's using my 1080 (since it's using all 3 of my monitors and one is only attached to the 1080)  but without a proper driver, since I removed all nvida-related stuff and blacklisted nouveau. X is using 100% cpu and I need to force X to close. I've also tried removing the options and only choosing the intel driver, but that makes no difference.

These are the errors in the log of Xorg when X doesn't start.

[     9.040] (II) intel: Driver for Intel(R) HD Graphics
[     9.040] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[     9.040] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[     9.041] xf86EnableIO: failed to enable I/O ports 0000-03ff (Operation not permitted)
[     9.041] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20230929
[     9.041] (II) intel(0): SNA compiled from 2.99.917-923-gb74b67f0
[     9.042] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    11.269] (EE) intel(0): [drm] failed to set drm interface version: Permission denied [13].
[    11.269] (EE) intel(0): Failed to claim DRM device.
[    11.269] (II) UnloadModule: "intel"
[    11.269] (EE) Screen(s) found, but none have a usable configuration.

This are my kernel options:
root=PARTUUID=c33d4a58-e3f5-4b71-ab6b-9a30672abe37 rw initrd=\initramfs-linux.img intel_iommu=on
This is everything related to the i915 in journalctl when booting kernel 9.5:

Jul 06 12:18:43 tinpc kernel: i915 0000:00:02.0: [drm] VT-d active for gfx access
Jul 06 12:18:43 tinpc kernel: i915 0000:00:02.0: [drm] Using Transparent Hugepages
Jul 06 12:18:43 tinpc kernel: i915 0000:00:02.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=io+mem
Jul 06 12:18:43 tinpc kernel: i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
Jul 06 12:18:43 tinpc kernel: i915 0000:00:02.0: [drm] [ENCODER:94:DDI A/PHY A] HPD is down, disabling eDP
Jul 06 12:18:43 tinpc kernel: [drm] Initialized i915 1.6.0 20230929 for 0000:00:02.0 on minor 1
Jul 06 12:18:43 tinpc kernel: i915 0000:00:02.0: [drm] fb1: i915drmfb frame buffer device
Jul 06 12:18:44 tinpc kernel: mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_ops [i915])
Jul 06 12:18:44 tinpc kernel: snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])

This is the same as normal, except on 6.8.8 it also shows i915 display info.

Jul 06 12:50:08 tinpc kernel: i915 display info: display version: 9
Jul 06 12:50:08 tinpc kernel: i915 display info: cursor_needs_physical: no
Jul 06 12:50:08 tinpc kernel: i915 display info: has_cdclk_crawl: no
Jul 06 12:50:08 tinpc kernel: i915 display info: has_cdclk_squash: no
Jul 06 12:50:08 tinpc kernel: i915 display info: has_ddi: yes
.....
06 12:50:08 tinpc kernel: i915 display info: has_hdcp: yes

Jul 06 14:17:46 tinpc kernel: i915 0000:00:02.0: [drm] [ENCODER:104:DDI C/PHY C] is disabled/in DSI mode with an ungated DDI clock, gate it
Jul 06 14:17:46 tinpc kernel: i915 0000:00:02.0: [drm] [ENCODER:108:DDI D/PHY D] is disabled/in DSI mode with an ungated DDI clock, gate it
Jul 06 14:17:46 tinpc kernel: i915 0000:00:02.0: [drm] [ENCODER:119:DDI E/PHY E] is disabled/in DSI mode with an ungated DDI clock, gate it
Jul 06 14:17:46 tinpc kernel: mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_ops [i915])

I've read somewhere kms should be enabled, so I enabled it. Thuis is my mkinitcpio.conf:

MODULES=(i915)
BINARIES=()
FILES=()
HOOKS=(base udev autodetect modconf kms keyboard keymap block filesystems fsck)

This are the videocards I have and my CPU is a Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz.

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04) (prog-if 00 [VGA controller])
	DeviceName:  Onboard IGD
	Subsystem: Gigabyte Technology Co., Ltd Device d000
	Flags: bus master, fast devsel, latency 0, IRQ 129, IOMMU group 0
	Memory at f5000000 (64-bit, non-prefetchable) [size=16M]
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at f000 [size=64]
	Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
	Capabilities: [40] Vendor Specific Information: Len=0c <?>
	Capabilities: [70] Express Root Complex Integrated Endpoint, IntMsgNum 0
	Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [d0] Power Management version 2
	Capabilities: [100] Process Address Space ID (PASID)
	Capabilities: [200] Address Translation Service (ATS)
	Capabilities: [300] Page Request Interface (PRI)
	Kernel driver in use: i915
	Kernel modules: i915
01:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Gigabyte Technology Co., Ltd Device 374c
	Flags: fast devsel, IRQ 255, IOMMU group 2
	Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at e000 [size=128]
	Expansion ROM at f7000000 [disabled] [size=512K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Legacy Endpoint, IntMsgNum 0
	Capabilities: [100] Virtual Channel
	Capabilities: [250] Latency Tolerance Reporting
	Capabilities: [128] Power Budgeting <?>
	Capabilities: [420] Advanced Error Reporting
	Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
	Capabilities: [900] Secondary PCI Express
	Kernel modules: nouveau

I understand there has been a major change in the kernel, specifically on the video-part. If someone could give a suggestion on where to look, I'd be happy.

Last edited by martinbaselier (2024-07-06 14:12:22)

Offline

#2 2024-07-06 12:51:54

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,147

Re: [SOLVED] Xorg not starting with kernel 6.9

Remove your config as well as xf86-video-intel and retest. xf86-video-intel should generally not be necessary and is not going to be well tested on newer iGPUs

Online

#3 2024-07-06 13:35:06

martinbaselier
Member
Registered: 2010-06-30
Posts: 14

Re: [SOLVED] Xorg not starting with kernel 6.9

That gives a slightly worse result. X still uses my 1080 and not my i915. I only have one monitor for use, no start menu, no panels (xfce4) and I can hear my CPU fan spinning up to maximum speed. That's an indication of high cpu usage. Also there's no display when I quite X. I could still type and reboot.
I started using a conf-file for xorg again in 2022, since X kept using my 1080, even if I blocked all kernel-modules.
Also my cpu is of the 7th generation. Which isn't quite new.

Last edited by martinbaselier (2024-07-06 13:42:29)

Offline

#4 2024-07-06 14:10:58

martinbaselier
Member
Registered: 2010-06-30
Posts: 14

Re: [SOLVED] Xorg not starting with kernel 6.9

Thank you @V1del for pointing me in the right direction. I created a new config for X and now I can use the modesetting driver on my intel-card and get rid of x86-video-intel and use the new kernel. Hopefully this will also solve some weird other display-stuff which I couldn't find a solution for.

Section "Device"
  Identifier "Intel"
  Driver "modesetting"
  BusID  "pci:00:02:0"

Offline

Board footer

Powered by FluxBB