Hi,
I made the big jump and setup FreeBSD as my desktop
First I have to say the installation and setup of Wayland, XWayland, the login manager and Sway was a clear path and flawless. Thanks to the excellent FreeBSD handbook.
Now the big problem:
I have one of those very common Intel N100 with an Alder Lake-N UHD graphics
And I knew there might be some issues:
https://bsd-hardware.info/?id=pci:8086-46d1
I have installed drm-kmod gpu-firmware-kmod and drm-61-kmod
Problems:
1/ When suspend with
I see a lot of error at wake up and get about 2min30 of those messages:
I can live with that... no problem.
2/ I get a lot of total freeze with the only GUI application I use:
- `chromium` (I tried both `--ozone-platform=wayland` and `--ozone-platform=x11`)
- but I got them with librewolf too
- qutebrowser just throw a `Trace/BPT trap (core dumped)` at startup
When it freeze I can't even get to a tty.
Sometimes only one of my monitor freeze.
Some things I collected:
Also related to the suspend problem:
I will make a bug report once I have more insight in this thread.
My questions are:
Am I right assuming this is related to the Alder Lake-N UHD graphics driver WIP ?
Do you think there is something I could do to make FreeBSD usable on this hardware while things progress? (like disabling HW acceleration in chrome, GPU, etc., directly going for FreeBSD 15 BETA ).
The most fancy thing I do is maybe watch youtube video in HD, so I could live with some feature disable.
If not I will have to format and go back to Linux for the time being because this is just unusable, I have to hard reboot every 10 minutes.
Many thanks for your help !
By the way, just sharing an opinion:
I always hear Wifi drivers are a big barrier to the adoption of FreeBSD on the desktop and never understood why.
If I need Wifi I have one of those $30 GL iNet mini access point running OpenWRT and an Ethernet cable, no big deal. But finding a board and GPU available on the market and that is well supported is much harder.
I made the big jump and setup FreeBSD as my desktop
First I have to say the installation and setup of Wayland, XWayland, the login manager and Sway was a clear path and flawless. Thanks to the excellent FreeBSD handbook.
Now the big problem:
I have one of those very common Intel N100 with an Alder Lake-N UHD graphics
vgapci0@pci0:0:2:0: class=0x030000 rev=0x00 hdr=0x00 vendor=0x8086 device=0x46d1 subvendor=0x0000 subdevice=0x0000
vendor = 'Intel Corporation'
device = 'Alder Lake-N [UHD Graphics]'
class = display
subclass = VGA
And I knew there might be some issues:
https://bsd-hardware.info/?id=pci:8086-46d1
20241212 - needs drm-610 package, min FreeBSD 14, still kernel panics occasionally, hardware decoding via vaapi/vdupa crashes. Open GL Works
I have installed drm-kmod gpu-firmware-kmod and drm-61-kmod
Problems:
1/ When suspend with
acpiconf -s 3I see a lot of error at wake up and get about 2min30 of those messages:
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Controller timeout
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: ============== REGISTER DUMP ==============
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Sys addr: 0x00000000 | Version: 0x00001002
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Blk size: 0x00000000 | Blk cnt: 0x00000000
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Argument: 0x00000000 | Trn mode: 0x00000000
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Present: 0x1fff0000 | Host ctl: 0x00000001
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Power: 0x0000000b | Blk gap: 0x00000080
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x0000fa07
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Timeout: 0x00000000 | Int stat: 0x00000001
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Int enab: 0x01ff003b | Sig enab: 0x01ff003b
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Caps: 0x546ec881 | Caps2: 0x80000807
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: ===========================================
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Controller timeout
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: ============== REGISTER DUMP ==============
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Sys addr: 0x00000000 | Version: 0x00001002
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Blk size: 0x00000000 | Blk cnt: 0x00000000
I can live with that... no problem.
2/ I get a lot of total freeze with the only GUI application I use:
- `chromium` (I tried both `--ozone-platform=wayland` and `--ozone-platform=x11`)
- but I got them with librewolf too
- qutebrowser just throw a `Trace/BPT trap (core dumped)` at startup
When it freeze I can't even get to a tty.
Sometimes only one of my monitor freeze.
Some things I collected:
> doas kldstat
Password:
Id Refs Address Size Name
1 90 0xffffffff80200000 1f41500 kernel
2 1 0xffffffff82143000 5e9328 zfs.ko
3 1 0xffffffff8272d000 7808 cryptodev.ko
4 1 0xffffffff82735000 1c5e8 geom_eli.ko
5 1 0xffffffff831e5000 1e0228 i915kms.ko
6 2 0xffffffff833c6000 85090 drm.ko
7 1 0xffffffff8344c000 22b8 iic.ko
8 2 0xffffffff8344f000 4120 linuxkpi_video.ko
9 3 0xffffffff83454000 7350 dmabuf.ko
10 4 0xffffffff8345c000 3378 lindebugfs.ko
11 1 0xffffffff83460000 c338 ttm.ko
12 1 0xffffffff8346d000 4250 ichsmb.ko
13 1 0xffffffff83472000 2178 smbus.ko
14 1 0xffffffff83475000 b1270 if_iwlwifi.ko
15 1 0xffffffff83527000 6020 ig4.ko
16 1 0xffffffff8352e000 3360 uhid.ko
17 1 0xffffffff83532000 4364 ums.ko
18 1 0xffffffff83537000 5640 ng_ubt.ko
19 4 0xffffffff8353d000 abb8 netgraph.ko
20 3 0xffffffff83548000 a250 ng_hci.ko
21 2 0xffffffff83553000 2670 ng_bluetooth.ko
22 1 0xffffffff83556000 2260 pflog.ko
23 1 0xffffffff83559000 4f978 pf.ko
24 1 0xffffffff835a9000 2a80 mac_ntpd.ko
> dmesg
...
drmn0: [drm] *ERROR* [CRTC:80ipe A] flip_done timed out
WARNING new_crtc_state->event failed at /wrkdir/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.128_6/drivers/gpu/drm/drm_atomic_helper.c:2485
drmn0: [drm] *ERROR* flip_done timed out
drmn0: [drm] *ERROR* [CRTC:80ipe A] commit wait timed out
drmn0: [drm] *ERROR* flip_done timed out
drmn0: [drm] *ERROR* [CONNECTOR:195:HDMI-A-1] commit wait timed out
drmn0: [drm] *ERROR* flip_done timed out
drmn0: [drm] *ERROR* [PLANE:31lane 1A] commit wait timed out
drmn0: [drm] *ERROR* flip_done timed out
drmn0: [drm] *ERROR* [PLANE:76:cursor A] commit wait timed out
drmn0: [drm] *ERROR* [CRTC:80ipe A] flip_done timed out
WARNING new_crtc_state->event failed at /wrkdir/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.128_6/drivers/gpu/drm/drm_atomic_helper.c:2485
drmn0: [drm] *ERROR* [CRTC:131ipe B] flip_done timed out
WARNING new_crtc_state->event failed at /wrkdir/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.128_6/drivers/gpu/drm/drm_atomic_helper.c:2485
drmn0: [drm] *ERROR* flip_done timed out
drmn0: [drm] *ERROR* [CRTC:80ipe A] commit wait timed out
drmn0: [drm] *ERROR* flip_done timed out
drmn0: [drm] *ERROR* [CRTC:131ipe B] commit wait timed out
drmn0: [drm] *ERROR* flip_done timed out
drmn0: [drm] *ERROR* [CONNECTOR:195:HDMI-A-1] commit wait timed out
drmn0: [drm] *ERROR* flip_done timed out
drmn0: [drm] *ERROR* [CONNECTOR:202:HDMI-A-2] commit wait timed out
drmn0: [drm] *ERROR* flip_done timed out
drmn0: [drm] *ERROR* [PLANE:31lane 1A] commit wait timed out
drmn0: [drm] *ERROR* flip_done timed out
drmn0: [drm] *ERROR* [PLANE:76:cursor A] commit wait timed out
drmn0: [drm] *ERROR* flip_done timed out
drmn0: [drm] *ERROR* [PLANE:82lane 1B] commit wait timed out
...
cat /var/log/messages
...
Nov 6 12:58:50 lander2 pulseaudio[31035]: [] cli-command.c: stat('/usr/local/etc/pulse/default.pa.d'): No such file or directory
Nov 6 13:03:50 lander2 devd[72439]: check_clients: dropping disconnected client
Nov 6 15:09:53 lander2 kernel: drmn0: [drm] *ERROR* [CRTC:80ipe A] flip_done timed out
Nov 6 15:09:53 lander2 kernel: WARNING new_crtc_state->event failed at /wrkdir/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.128_6/drivers/gpu/drm/drm_atomic_helper.c:2485
Nov 6 15:21:32 lander2 kernel: drmn0: [drm] *ERROR* [CRTC:131ipe B] flip_done timed out
Nov 6 15:21:32 lander2 kernel: WARNING new_crtc_state->event failed at /wrkdir/usr/ports/graphics/drm-61-kmod/work/drm-kmod-drm_v6.1.128_6/drivers/gpu/drm/drm_atomic_helper.c:2485
Nov 6 15:21:45 lander2 seatd[13433]: 05:21:03.850 [INFO] [seatd/seat.c:673] Switching from VT 2 to VT 3
Nov 6 15:21:45 lander2 seatd[13433]: 05:21:03.851 [INFO] [seatd/seat.c:606] Disabling client 2 on seat0
Nov 6 15:22:00 lander2 kernel: drmn0: [drm] *ERROR* flip_done timed out
Nov 6 15:22:00 lander2 kernel: drmn0: [drm] *ERROR* [CRTC:80ipe A] commit wait timed out
Nov 6 15:22:07 lander2 kernel: drmn0: [drm] *ERROR* flip_done timed out
Nov 6 15:22:07 lander2 kernel: drmn0: [drm] *ERROR* [CRTC:131ipe B] commit wait timed out
Nov 6 15:22:37 lander2 kernel: drmn0: [drm] *ERROR* flip_done timed out
Nov 6 15:22:37 lander2 kernel: drmn0: [drm] *ERROR* [CONNECTOR:195:HDMI-A-1] commit wait timed out
Nov 6 15:22:37 lander2 kernel: drmn0: [drm] *ERROR* flip_done timed out
Nov 6 15:22:37 lander2 kernel: drmn0: [drm] *ERROR* [CONNECTOR:202:HDMI-A-2] commit wait timed out
Nov 6 15:22:37 lander2 kernel: drmn0: [drm] *ERROR* flip_done timed out
Nov 6 15:22:37 lander2 kernel: drmn0: [drm] *ERROR* [PLANE:31lane 1A] commit wait timed out
Nov 6 15:22:56 lander2 seatd[13433]: 05:22:14.071 [INFO] [seatd/seat.c:625] Disabled client 2 on seat0
Nov 6 15:22:56 lander2 kernel: drmn0: [drm] *ERROR* flip_done timed out
Nov 6 15:22:56 lander2 kernel: drmn0: [drm] *ERROR* [PLANE:76:cursor A] commit wait timed out
Nov 6 15:22:56 lander2 kernel: drmn0: [drm] *ERROR* flip_done timed out
Nov 6 15:22:56 lander2 kernel: drmn0: [drm] *ERROR* [PLANE:82lane 1B] commit wait timed out
Nov 6 15:23:40 lander2 devd[72439]: check_clients: dropping disconnected client
Nov 6 15:37:34 lander2 seatd[13433]: 05:36:51.961 [INFO] [seatd/seat.c:563] Opened client 2 on seat0
...
Also related to the suspend problem:
Nov 6 16:44:21 lander2 kernel: vgapci0: child drmn0 requested pci_set_powerstate
Nov 6 16:44:21 lander2 kernel: pci0: failed to set ACPI power state D3 on \_SB_.PC00.GFX0: AE_BAD_PARAMETER
Nov 6 16:44:21 lander2 kernel: acpi0: cleared fixed power button status
Nov 6 16:44:21 lander2 kernel: vgapci0: child drmn0 requested pci_set_powerstate
Nov 6 16:44:21 lander2 kernel: vgapci0: child drmn0 requested pci_enable_io
Nov 6 16:44:21 lander2 syslogd: last message repeated 1 times
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Controller timeout
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: ============== REGISTER DUMP ==============
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Sys addr: 0x00000000 | Version: 0x00001002
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Blk size: 0x00000000 | Blk cnt: 0x00000000
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Argument: 0x00000000 | Trn mode: 0x00000000
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Present: 0x1fff0000 | Host ctl: 0x00000001
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Power: 0x0000000b | Blk gap: 0x00000080
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x0000fa07
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Timeout: 0x00000000 | Int stat: 0x00000001
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Int enab: 0x01ff003b | Sig enab: 0x01ff003b
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Caps: 0x546ec881 | Caps2: 0x80000807
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: ===========================================
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Controller timeout
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: ============== REGISTER DUMP ==============
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Sys addr: 0x00000000 | Version: 0x00001002
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Blk size: 0x00000000 | Blk cnt: 0x00000000
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Argument: 0x00000000 | Trn mode: 0x00000000
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Present: 0x1fff0000 | Host ctl: 0x00000001
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Power: 0x0000000b | Blk gap: 0x00000080
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Wake-up: 0x00000000 | Clock: 0x0000fa07
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Timeout: 0x00000000 | Int stat: 0x00000001
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Int enab: 0x01ff003b | Sig enab: 0x01ff003b
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Caps: 0x546ec881 | Caps2: 0x80000807
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: ADMA addr:0x00000000 | Slot int: 0x00000001
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: ===========================================
Nov 6 16:44:21 lander2 kernel: sdhci_pci0-slot0: Controller timeout
I will make a bug report once I have more insight in this thread.
My questions are:
Am I right assuming this is related to the Alder Lake-N UHD graphics driver WIP ?
Do you think there is something I could do to make FreeBSD usable on this hardware while things progress? (like disabling HW acceleration in chrome, GPU, etc., directly going for FreeBSD 15 BETA ).
The most fancy thing I do is maybe watch youtube video in HD, so I could live with some feature disable.
If not I will have to format and go back to Linux for the time being because this is just unusable, I have to hard reboot every 10 minutes.
Many thanks for your help !
By the way, just sharing an opinion:
I always hear Wifi drivers are a big barrier to the adoption of FreeBSD on the desktop and never understood why.
If I need Wifi I have one of those $30 GL iNet mini access point running OpenWRT and an Ethernet cable, no big deal. But finding a board and GPU available on the market and that is well supported is much harder.
