Levono all-in-one Intel Alderlake X problems.

I got an Levono All-in-one for free and I want FreeBSD on it for the shop. All was good until working with X. On the advice of a few on irc, I advanced to -CURRENT to get drm 6.1

Some details:

[drm] Got Intel graphics stolen memory base 0x4b800000, size 0x4000000
drmn0: <drmn> on vgapci0
drmn0: [drm] Finished loading DMC firmware i915/adlp_dmc_ver2_16.bin (v2.16)
[drm] Initialized i915 1.6.0 20201103 for drmn0 on minor 0
VT: Replacing driver "efifb" with new "drmfb".
VT: Replacing driver "efifb" with new "drmfb".
start FB_INFO:
height=1080 width=1920 depth=32
pbase=0x4000200000 vbase=0xfffffe014d830000
name=drmn0 id=i915drmfb flags=0x0 stride=7680
end FB_INFO

Note that with DRM 515 on 14-R, it would lock up loading drm, so this is progress.

The hardware says this from pciconf -lv:

hostb0@pci0:0:0:0: class=0x060000 rev=0x02 hdr=0x00 vendor=0x8086 device=0x4621 subvendor=0x17aa subdevice=0x375a
vendor = 'Intel Corporation'
class = bridge
subclass = HOST-PCI
vgapci0@pci0:0:2:0: class=0x030000 rev=0x0c hdr=0x00 vendor=0x8086 device=0x46a6 subvendor=0x17aa subdevice=0x375a
vendor = 'Intel Corporation'
device = 'Alder Lake-P GT2 [Iris Xe Graphics]'
class = display
subclass = VGA

X -configure generated a fairly generic xorg.conf, which I put in /usr/local/etc/X11/xorg.conf.d and I try to launch X.

The error I get is:

[ 2832.541] (II) Initializing extension DRI2
[ 2832.542] (EE) intel(0): intel_uxa_set_pixmap_bo: size of buffer object does not match constraints: size=8388608, must be greater than 8294400, but less than 4194304
[ 2832.542] (EE)
Fatal server error:
[ 2832.542] (EE) failed to create screen resources(EE)

Which is amusing ... the memory must be more than 8M while also being less than 4M.

Xorg.0.log at https://termbin.com/mwgi
dmesg.boot at https://termbin.com/gbqe

Help?
 
I'm currently running a lenovo laptop with the Raptor lake P.
The best compromise I found was to move to current to access the drm 6.1
which works in a decent way with my configuration.
Hope it works for you.

 
DRM 6.1 should be available on a recent 14-STABLE now.

Code:
.if ${OPSYS} == FreeBSD && !( ${OSVERSION} >= 1500008 || ( ${OSVERSION} >= 1400508 && ${OSVERSION} < 1500000 ))
IGNORE=		not supported on older than 14-STABLE 1400508, no kernel support
.endif
 
Running Thinkpad P14s with Alder Lake and getting the same issue with 6.1 and 14.1-RELEASE-p5:

[ 24.052] (II) Initializing extension DRI2
[ 24.052] (EE) intel(0): intel_uxa_set_pixmap_bo: size of buffer object does not match constraints: size=29360128, must be greater than 25804800, but less than 4194304
[ 24.052] (EE)
Fatal server error:
[ 24.052] (EE) failed to create screen resources(EE)
 
I was told to use the modesetting driver (vesa). When I do this, I see:

[ 21.414] (II) Loading sub module "glamoregl"
[ 21.414] (II) LoadModule: "glamoregl"
[ 21.414] (II) Loading /usr/local/lib/xorg/modules/libglamoregl.so
[ 21.429] (II) Module glamoregl: vendor="X.Org Foundation"
[ 21.429] compiled for 1.21.1.13, module version = 1.0.1
[ 21.429] ABI class: X.Org ANSI C Emulation, version 0.4
[ 21.592] (II) modeset(0): glamor X acceleration enabled on Mesa Intel(R) Graphics (ADL GT2)
[ 21.592] (II) modeset(0): glamor initialized

... so 3D acceleration, such as it is, is present. I heavily use xscreensaver ... and it only rarely crashes ... so it must do pretty good.
 
It seems to be the default. I did an autoconfigure and at the bottom of my device block I have:

Identifier "Card0"
#Driver "intel"
BusID "PCI:0:2:0"

which is to say that the Driver is not specified. I'm not sure if the file is even required... but I did want/need to specify some other things like mouse buttons and stuff.
 
Just to confirm that drm-61-kmod works fine on my ThinkPad P14s with Alder Lake-P after deleting the xf86-video-intel driver. This is FreeBSD 14.1. No X configuration is required.
 
Last edited:
Back
Top