tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Can't compile kernel with DRI legacy drivers
Thanks for taking the time.
Can you be any more specific about the trouble you're having?
Running glxgears hangs system, same with mpv so it can't play videos
etc.
I was actually thinking of posting about the issues on tech-x11. But
thought I'd try the kernel thing first.
Do you have any dmesg output you can share?
Of course.
[ 1.000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003,
[ 1.000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
2012, 2013,
[ 1.000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021,
2022, 2023,
[ 1.000000] 2024
[ 1.000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.000000] The Regents of the University of California. All
rights reserved.
[ 1.000000] NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024
[ 1.000000]
mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
[ 1.000000] total memory = 3891 MB
[ 1.000000] avail memory = 3733 MB
...
[ 1.000004] Firmware Warning (ACPI): 32/64X length mismatch in
FADT/Pm1aControlBlock: 16/32 (20221020/tbfadt-640)
[ 1.000004] Firmware Warning (ACPI): Invalid length for
FADT/Pm1aControlBlock: 32, using default 16 (20221020/tbfadt-742)
...
[ 1.000004] ACPI: 6 ACPI AML tables successfully acquired and loaded
[ 1.000004] ioapic0 at mainbus0 apid 1: pa 0xfec00000, version 0x20,
24 pins
[ 1.000004] cpu0 at mainbus0 apid 0
[ 1.000004] cpu0: Use lfence to serialize rdtsc
[ 1.000004] cpu0: Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz,
id 0x20652
[ 1.000004] cpu0: node 0, package 0, core 0, smt 0
[ 1.000004] cpu1 at mainbus0 apid 1
[ 1.000004] cpu1: Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz,
id 0x20652
[ 1.000004] cpu1: node 0, package 0, core 0, smt 1
[ 1.000004] cpu2 at mainbus0 apid 4
[ 1.000004] cpu2: Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz,
id 0x20652
[ 1.000004] cpu2: node 0, package 0, core 2, smt 0
[ 1.000004] cpu3 at mainbus0 apid 5
[ 1.000004] cpu3: Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz,
id 0x20652
[ 1.000004] cpu3: node 0, package 0, core 2, smt 1
[ 1.000004] acpi0 at mainbus0: Intel ACPICA 20221020
[ 1.000004] acpi0: X/RSDT: OemId <LENOVO,TP-6Q ,00001400>, AslId <
LTP,00000000>
...
[ 1.041754] acpivga0: connected output devices:
[ 1.041754] acpivga0: 0x0400 (acpiout0): Unknown Output Device,
head 0
[ 1.041754] attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43 irq 0
[ 1.041754] pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
[ 1.041754] spkr0 at pcppi1: PC Speaker
[ 1.041754] wsbell at spkr0 not configured
[ 1.041754] midi0 at pcppi1: PC speaker
[ 1.041754] sysbeep0 at pcppi1
[ 1.041754] pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64
irq 1
[ 1.041754] pckbc2 at acpi0 (MOU, LEN0018) (aux port): irq 12
[ 1.041754] tpm0 at acpi0 (TPM, SMO1200-1): mem
0xfed40000-0xfed44fff
[ 1.041754] tpm0: device 0x0000104a rev 0x4e
[ 1.041754] acpibat0 at acpi0 (BAT0, PNP0C0A-0): ACPI Battery
[ 1.041754] acpiacad0 at acpi0 (AC, ACPI0003-0): ACPI AC Adapter
[ 1.041754] thinkpad0 at acpi0 (HKEY, IBM0068)
[ 1.041754] thinkpad0: version 0100
[ 1.041754] acpiwmi0 at acpi0 (WMI1, PNP0C14-1): ACPI WMI Interface
[ 1.041754] acpiwmibus at acpiwmi0 not configured
[ 1.041754] acpitz0 at acpi0 (THM0): cpu0 cpu1 cpu2 cpu3
[ 1.041754] acpitz0: levels: critical 100.0 C, passive 91.5 C,
passive cooling
[ 1.041754] ACPI: Enabled 3 GPEs in block 00 to 3F
...
[ 1.041754] pci0 at mainbus0 bus 0: configuration mode 1
[ 1.041754] pci0: i/o space, memory space enabled, rd/line, rd/mult,
wr/inv ok
[ 1.041754] pchb0 at pci0 dev 0 function 0: Intel Iron Lake Host
Bridge (rev. 0x02)
[ 1.041754] agp0 at pchb0: G4X-family chipset
[ 1.041754] agp0: detected 32252k stolen memory
[ 1.041754] agp0: aperture at 0xd0000000, size 0x10000000
[ 1.041754] i915drmkms0 at pci0 dev 2 function 0: Intel Iron Lake
Integrated Graphics Device (rev. 0x02)
[ 1.041754] Intel 3400 MEI (miscellaneous communications, revision
0x06) at pci0 dev 22 function 0 not configured
...
[ 5.027839] uvideo0 at uhub3 port 6 configuration 1 interface 0:
Chicony Electronics Co., Ltd. (0x17ef) Integrated Camera (0x4816), rev
2.00/23.45, addr 6
[ 5.027839] video0 at uvideo0: Chicony Electronics Co., Ltd.
(0x17ef) Integrated Camera (0x4816), rev 2.00/23.45, addr 6
...
[ 5.087843] [drm] Supports vblank timestamp caching Rev 2
(21.10.2013).
[ 5.087843] [drm] Driver supports precise vblank timestamp query.
[ 5.087843] i915drmkms0: interrupting at msi4 vec 0 (i915drmkms0)
[ 5.117839] [drm] Initialized i915 1.6.0 20200114 for i915drmkms0 on
minor 0
[ 5.137841] intelfb0 at i915drmkms0
[ 5.137841] [drm] DRM_I915_DEBUG enabled
[ 5.137841] [drm] DRM_I915_DEBUG_GEM enabled
[ 5.137841] intelfb0: framebuffer at 0xd0010000, size 1280x800,
depth 32, stride 5120
...
[ 6.467841] wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100
emulation), using wskbd0
[ 6.677842] wsmux1: connecting to wsdisplay0
...
using the >decade-old, unmaintained, UMS-only, older-generation
drivers which we intend to delete at some point
Had to try something.
The machine is old and the regular install is having issues. Tried to
fix this with modular xorg, that failed. It was actually worse,
drawing screen elements one by one very very slowly. Clicking things
doesn't update anything on screen sometimes or is very slow to update,
like 10 seconds. And even then elements show up randomly broken. It's
unusable. My guess is that it is related to graphics drivers.
Hardware is working. Can play videos on Void Linux and FreeBSD. Since
NetBSD is about wide hardware support, I think older drivers should be
kept.
you will also need to comment out all the newer-generation
drmkms drivers
Tried it but no dice. Commented nouveau lines too since it was under
DRMKMS comment.
--- GENERIC 2023-11-03 08:56:36.000000000 +0000
+++ MYKERNEL 2024-10-28 09:36:43.703874939 +0000
@@ -22,7 +22,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "GENERIC-$Revision: 1.599.4.5 $"
+ident "MYKERNEL-$Revision: 1.599.4.5 $"
maxusers 64 # estimated number of users
@@ -445,7 +445,7 @@
sysbeep0 at pcppi?
# DRI legacy drivers
-#i915drm* at drm? # Intel i915, i945 DRM driver
+i915drm* at drm? # Intel i915, i945 DRM driver
#mach64drm* at drm? # mach64 (3D Rage Pro, Rage) DRM driver
#mgadrm* at drm? # Matrox G[24]00, G[45]50 DRM driver
#r128drm* at drm? # ATI Rage 128 DRM driver
@@ -455,17 +455,17 @@
#tdfxdrm* at drm? # 3dfx (voodoo) DRM driver
# DRMKMS drivers
-i915drmkms* at pci? dev ? function ?
-intelfb* at intelfbbus?
+#i915drmkms* at pci? dev ? function ?
+#intelfb* at intelfbbus?
-radeon* at pci? dev ? function ?
-radeondrmkmsfb* at radeonfbbus?
+#radeon* at pci? dev ? function ?
+#radeondrmkmsfb* at radeonfbbus?
#amdgpu* at pci? dev ? function ?
#amdgpufb* at amdgpufbbus?
-nouveau* at pci? dev ? function ?
-nouveaufb* at nouveaufbbus?
+#nouveau* at pci? dev ? function ?
+#nouveaufb* at nouveaufbbus?
# DRMUMS drivers -- make them loadable, but not statically linked in
options DRM_LEGACY
Still got errors. I didn't get the output this time. It had agp
related errors. So I tried to comment out all agp related lines. That
didn't help either.
Home |
Main Index |
Thread Index |
Old Index