Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Intel ARC (a770) stuck at "Loading Linux"
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
sqrtd
n00b
n00b


Joined: 21 Jan 2023
Posts: 10
Location: Portugal

PostPosted: Wed Jan 25, 2023 1:21 pm    Post subject: [SOLVED] Intel ARC (a770) stuck at "Loading Linux" Reply with quote

I've been using Gentoo for a while, and recently I decided on getting an Intel Arc a770 (Limited Edition) to replace my NVIDIA card as I prefer using musl over glibc and nouveau ins't well-supported on my card and with my monitor.

The problem is when I booted my system, sway wouldn't work and after a while I saw on dmesg and on the Arch Wiki that I'd need to enable i915.force_probe=56a0 as the drivers are considered experimental, and as of now they are considered stable on 6.2. The problem is when force_probe is enabled, I get stuck on "Loading Linux 6.1.8" which usually means that Framebuffer support is disabled in the kernel which isn't the case, I've enabled these according to the Gentoo Wiki just to be safe:

VESA VGA graphics support
EFI-based Framebuffer Support
Simple framebuffer support

The only way to actually log in and use my computer at the moment is to use my iGPU which lets me use sway, or to disable i915.force_probe=56a0 which leaves me without a WM/DE. Any help would be appreciated, thanks!

Kernel config: https://paste.sr.ht/blob/b169babe8a9eb01d663f48ae631a51ed6fe3c621
emerge --info: https://paste.sr.ht/blob/3e5c30417d7b426712c12f332128717ffcd3a82d


Last edited by sqrtd on Sun Jan 29, 2023 5:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5376
Location: Bavaria

PostPosted: Wed Jan 25, 2023 1:58 pm    Post subject: Reply with quote

sqrtd,

is this a notebook ? If yes, it would be wise to enable:
# CONFIG_X86_INTEL_LPSS is not set

Now comes a shot in the dark ... ;-) ... what happens if you disable:
CONFIG_FB_SIMPLE=y

and enable both:
CONFIG_SYSFB_SIMPLEFB
CONFIG_DRM_SIMPLEDRM

?

(be aware this could result also in a stuck at "loading Linux ...")
Back to top
View user's profile Send private message
sqrtd
n00b
n00b


Joined: 21 Jan 2023
Posts: 10
Location: Portugal

PostPosted: Wed Jan 25, 2023 2:31 pm    Post subject: Reply with quote

pietinger wrote:
sqrtd,

is this a notebook ? If yes, it would be wise to enable:
# CONFIG_X86_INTEL_LPSS is not set

Now comes a shot in the dark ... ;-) ... what happens if you disable:
CONFIG_FB_SIMPLE=y

and enable both:
CONFIG_SYSFB_SIMPLEFB
CONFIG_DRM_SIMPLEDRM

?

(be aware this could result also in a stuck at "loading Linux ...")


Thanks, unfortunately it's still stuck on "loading Linux..."
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5376
Location: Bavaria

PostPosted: Wed Jan 25, 2023 2:42 pm    Post subject: Reply with quote

Sorry I cannot help further ... maybe the only solution is to wait for 6.2 ... :(
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23089

PostPosted: Wed Jan 25, 2023 3:51 pm    Post subject: Reply with quote

The 6.2 kernels are up to -rc5, as of this writing. You wrote that the drivers are considered stable in 6.2. Have you tried using kernel 6.2-rc5 (or later, if one is available) to see if it works for you?
Back to top
View user's profile Send private message
sqrtd
n00b
n00b


Joined: 21 Jan 2023
Posts: 10
Location: Portugal

PostPosted: Wed Jan 25, 2023 6:46 pm    Post subject: Reply with quote

Hu wrote:
The 6.2 kernels are up to -rc5, as of this writing. You wrote that the drivers are considered stable in 6.2. Have you tried using kernel 6.2-rc5 (or later, if one is available) to see if it works for you?


Just tried using gentoo-kernel-bin-6.1.8, and it seems to be working with i915.force_probe=56a0. The issue most likely is with my kernel config, but I'll still try using 6.2-rc5 (or later) with it just to be sure and reply later if it works, thanks!
Back to top
View user's profile Send private message
sqrtd
n00b
n00b


Joined: 21 Jan 2023
Posts: 10
Location: Portugal

PostPosted: Fri Jan 27, 2023 3:48 pm    Post subject: Reply with quote

Was able to get dmesg running when using the dGPU:
dmesg: https://paste.sr.ht/blob/26e6f5081edfb1f5ade960a6e2f2449ffa5c3d09
dmesg | grep i915:
Code:
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-6.1.8 root=/dev/sda3 ro init=/sbin/openrc-init i915.force_probe=56a0
[    0.029576] Kernel command line: root=/dev/sda3 rootfstype=btrfs BOOT_IMAGE=/vmlinuz-6.1.8 root=/dev/sda3 ro init=/sbin/openrc-init i915.force_probe=56a0
[    0.029593] Setting dangerous option i915.force_probe - tainting kernel
[    0.324637] i915 0000:03:00.0: [drm] Incompatible option enable_guc=3 - HuC is not supported!
[    0.325493] i915 0000:03:00.0: vgaarb: deactivate vga console
[    0.325536] i915 0000:03:00.0: [drm] Local memory IO size: 0x00000003fa000000
[    0.325538] i915 0000:03:00.0: [drm] Local memory available: 0x00000003fa000000
[    0.338596] i915 0000:03:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=none
[    0.339046] Loading firmware: i915/dg2_dmc_ver2_07.bin
[    0.341535] i915 0000:03:00.0: [drm] Finished loading DMC firmware i915/dg2_dmc_ver2_07.bin (v2.7)
[    0.341592] genirq: Flags mismatch irq 0. 00000080 (i915) vs. 00015a00 (timer)
[    0.346983] i915 0000:03:00.0: Device initialization failed (-16)
[    0.346987] i915: probe of 0000:03:00.0 failed with error -16
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jan 27, 2023 5:38 pm    Post subject: Reply with quote

sqrtd,

This page says that
Code:
lkddb pci 8086 56a0 .... .... 03.... : CONFIG_DRM_I915 : drivers/gpu/drm/i915/i915_pci.c # in 6.0–6.1, 6.2-rc+HEAD
that your device ID 56a0, was added in the the 6.0 kernel.

If you
Code:
grep 56a0 drivers/gpu/drm/i915/i915_pci.c
do you get any hits?
Its not is my 6.1.1, nor in 6.1.7.
_________________
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
sqrtd
n00b
n00b


Joined: 21 Jan 2023
Posts: 10
Location: Portugal

PostPosted: Fri Jan 27, 2023 5:58 pm    Post subject: Reply with quote

NeddySeagoon wrote:
sqrtd,

This page says that
Code:
lkddb pci 8086 56a0 .... .... 03.... : CONFIG_DRM_I915 : drivers/gpu/drm/i915/i915_pci.c # in 6.0–6.1, 6.2-rc+HEAD
that your device ID 56a0, was added in the the 6.0 kernel.

If you
Code:
grep 56a0 drivers/gpu/drm/i915/i915_pci.c
do you get any hits?
Its not is my 6.1.1, nor in 6.1.7.


grep 56a0 didn't return any results. But DG2 is there:

grep DG2 drivers/gpu/drm/i915/i915_pci.c
Code:
#define DG2_FEATURES \
   PLATFORM(INTEL_DG2), \
   DG2_FEATURES,
   DG2_FEATURES,
   INTEL_DG2_IDS(&dg2_info),


https://github.com/torvalds/linux/blob/v6.1/drivers/gpu/drm/i915/i915_pci.c#L1056
Back to top
View user's profile Send private message
sqrtd
n00b
n00b


Joined: 21 Jan 2023
Posts: 10
Location: Portugal

PostPosted: Sun Jan 29, 2023 5:58 pm    Post subject: Reply with quote

SOLVED!

After doing some searching I've found that having these enabled seems to have fixed it:
https://gitlab.freedesktop.org/drm/intel/-/issues/7732
Code:
CONFIG_DRM_I915=y
CONFIG_DRM_I915_FORCE_PROBE="*"
CONFIG_DRM_I915_CAPTURE_ERROR=y
CONFIG_DRM_I915_COMPRESS_ERROR=y
CONFIG_DRM_I915_USERPTR=y
CONFIG_DRM_I915_GVT=y
CONFIG_DRM_I915_GVT_KVMGT=y
CONFIG_DRM_I915_PXP=y
CONFIG_DRM_I915_REQUEST_TIMEOUT=20000
CONFIG_DRM_I915_FENCE_TIMEOUT=10000
CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250
CONFIG_DRM_I915_HEARTBEAT_INTERVAL=2500
CONFIG_DRM_I915_PREEMPT_TIMEOUT=640
CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT=8000
CONFIG_DRM_I915_STOP_TIMEOUT=100
CONFIG_DRM_I915_TIMESLICE_DURATION=1
CONFIG_SND_HDA_I915=y


Code:
CONFIG_INTEL_MEI=y
CONFIG_INTEL_MEI_ME=y
CONFIG_INTEL_MEI_TXE=y
CONFIG_INTEL_MEI_GSC=y
CONFIG_INTEL_MEI_HDCP=y
CONFIG_INTEL_MEI_PXP=y
CONFIG_INTEL_MEI_WDT=y

Code:
CONFIG_EXTRA_FIRMWARE="i915/dg2_guc_70.bin i915/dg2_huc_gsc.bin i915/dg2_dmc_ver2_07.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"


+ Enabling IOMMU (Intel) related options:
Code:
CONFIG_IRQ_MSI_IOMMU=y
CONFIG_IOMMU_IOVA=y
CONFIG_IOMMU_API=y
CONFIG_IOMMU_SUPPORT=y
CONFIG_IOMMU_DEFAULT_DMA_LAZY=y
CONFIG_IOMMU_DMA=y
CONFIG_INTEL_IOMMU=y
CONFIG_INTEL_IOMMU_DEFAULT_ON=y
CONFIG_INTEL_IOMMU_FLOPPY_WA=y
CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON=y


diff (diff between current config and old one, contains a lot of unrelated changes)

Also make sure to enable i915.force_probe: (don't use force_probe when using kernel 6.2 or higher on Intel Arc)
Code:
/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="init=/sbin/openrc-init i915.force_probe=56a0"
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