On Fri, Nov 11, 2022 at 7:53 AM Finnegan McBrisket <finnmcbris...@gmail.com> wrote: > > I'm trying to disable inteldrm from loading on my headless firewall, > because it slows down my system, but I can't make the change stick > after another reboot. > > After upgrading to 7.2 I noticed a higher than usual load average on > my openbsd firewall. A system process called drmwq seems to be > responsible for this if I'm understanding systat pigs correctly. > Seeing that this is a part of the inteldrm, I've disabled inteldrm in > the kernel and rebooted and noticed that my system seems back to > normal levels. Unfortunately after a reboot this morning, inteldrm is > back. This box is a headless box and I don't know why drmwq is doing > whatever it is doing, but I seem to be fine with it disabled. I > realize I shouldn't disable things if I don't know what I'm doing, but > I don't know what else I can do to with this drmwq process. How can I > keep inteldrm disabled after reboots? > > I'm running current (Nov 10 snapshot) > > I've disabled intel drm this way: > # config -ef /bsd > ukc> disable inteldrm > ukc> quit > # sha256 -h /var/db/kernel.SHA256 /bsd > # reboot > > The device I'm using: https://protectli.com/product/fw4b/ > > Here is my dmesg > > OpenBSD 7.2-current (GENERIC.MP) #827: Thu Nov 10 13:46:36 MST 2022 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 4224679936 (4028MB) > avail mem = 4079226880 (3890MB) > random: good seed from bootblocks > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.8 @ 0x7cd0b020 (14 entries) > bios0: vendor coreboot version "v4.12.0.7" date 09/28/2021 > bios0: Protectli FW4B > acpi0 at bios0: ACPI 6.0 > acpi0: sleep states S0 S3 S4 S5 > acpi0: tables DSDT FACP SSDT MCFG APIC > acpi0: wakeup devices XHCI(S3) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimcfg0 at acpi0 > acpimcfg0: addr 0xe0000000, bus 0-255 > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Celeron(R) CPU J3160 @ 1.60GHz, 2240.41 MHz, 06-4c-04 > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN > cpu0: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB > 64b/line 16-way L2 cache > cpu0: smt 0, core 0, package 0 > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges > cpu0: apic clock running at 79MHz > cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0.0.3.3, IBE > cpu1 at mainbus0: apid 2 (application processor) > cpu1: Intel(R) Celeron(R) CPU J3160 @ 1.60GHz, 2240.96 MHz, 06-4c-04 > cpu1: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN > cpu1: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB > 64b/line 16-way L2 cache > cpu1: smt 0, core 1, package 0 > cpu2 at mainbus0: apid 4 (application processor) > cpu2: Intel(R) Celeron(R) CPU J3160 @ 1.60GHz, 2241.21 MHz, 06-4c-04 > cpu2: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN > cpu2: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB > 64b/line 16-way L2 cache > cpu2: smt 0, core 2, package 0 > cpu3 at mainbus0: apid 6 (application processor) > cpu3: Intel(R) Celeron(R) CPU J3160 @ 1.60GHz, 2241.36 MHz, 06-4c-04 > cpu3: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,MD_CLEAR,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN > cpu3: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB > 64b/line 16-way L2 cache > cpu3: smt 0, core 3, package 0 > ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 115 pins, remapped > acpiprt0 at acpi0: bus 0 (PCI0) > acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001 > "INT33BD" at acpi0 not configured > acpicmos0 at acpi0 > com0 at acpi0 COM1 addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo > com0: console > chvgpio0 at acpi0 GPSW uid 1 addr 0xfed80000/0x8000 irq 49, 56 pins > chvgpio1 at acpi0 GPNC uid 2 addr 0xfed88000/0x8000 irq 48, 59 pins > chvgpio2 at acpi0 GPEC uid 3 addr 0xfed90000/0x8000 irq 50, 24 pins > chvgpio3 at acpi0 GPSE uid 4 addr 0xfed98000/0x8000 irq 91, 55 pins > "BOOT0000" at acpi0 not configured > acpicpu0 at acpi0: C3(1@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51), > C1(1000@1 mwait.1), PSS > acpicpu1 at acpi0: C3(1@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51), > C1(1000@1 mwait.1), PSS > acpicpu2 at acpi0: C3(1@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51), > C1(1000@1 mwait.1), PSS > acpicpu3 at acpi0: C3(1@1500 mwait.1@0x52), C2(10@500 mwait.1@0x51), > C1(1000@1 mwait.1), PSS > cpu0: using VERW MDS workaround > cpu0: Enhanced SpeedStep 2240 MHz: speeds: 1601, 1600, 1520, 1440, > 1360, 1280, 1200, 1120, 1040, 960, 880, 800, 720, 640, 560, 480 MHz > pci0 at mainbus0 bus 0 > pchb0 at pci0 dev 0 function 0 "Intel Braswell Host" rev 0x35 > inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x35 > drm0 at inteldrm0 > inteldrm0: msi, CHERRYVIEW, gen 8 > ahci0 at pci0 dev 19 function 0 "Intel Braswell AHCI" rev 0x35: msi, AHCI > 1.3.1 > ahci0: port 0: 1.5Gb/s > scsibus1 at ahci0: 32 targets > sd0 at scsibus1 targ 0 lun 0: <ATA, BIWIN SSD, QHY2> naa.0000000000000000 > sd0: 15272MB, 512 bytes/sector, 31277232 sectors, thin > xhci0 at pci0 dev 20 function 0 "Intel Braswell xHCI" rev 0x35: msi, xHCI 1.0 > usb0 at xhci0: USB revision 3.0 > uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev > 3.00/1.00 addr 1 > azalia0 at pci0 dev 27 function 0 "Intel Braswell HD Audio" rev 0x35: msi > azalia0: codecs: Realtek ALC662, Intel/0x2883, using Realtek ALC662 > audio0 at azalia0 > ppb0 at pci0 dev 28 function 0 "Intel Braswell PCIE" rev 0x35: msi > pci1 at ppb0 bus 1 > em0 at pci1 dev 0 function 0 "Intel I210" rev 0x03: msi, address > ppb1 at pci0 dev 28 function 1 "Intel Braswell PCIE" rev 0x35: msi > pci2 at ppb1 bus 2 > em1 at pci2 dev 0 function 0 "Intel I210" rev 0x03: msi, address > ppb2 at pci0 dev 28 function 2 "Intel Braswell PCIE" rev 0x35: msi > pci3 at ppb2 bus 3 > em2 at pci3 dev 0 function 0 "Intel I210" rev 0x03: msi, address 2 > ppb3 at pci0 dev 28 function 3 "Intel Braswell PCIE" rev 0x35: msi > pci4 at ppb3 bus 4 > em3 at pci4 dev 0 function 0 "Intel I210" rev 0x03: msi, address > pcib0 at pci0 dev 31 function 0 "Intel Braswell PCU LPC" rev 0x35 > ichiic0 at pci0 dev 31 function 3 "Intel Braswell SMBus" rev 0x35: apic 2 int > 18 > iic0 at ichiic0 > spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-12800 SO-DIMM > isa0 at pcib0 > isadma0 at isa0 > vga0 at isa0 port 0x3b0/48 iomem 0xa0000/131072 > wsdisplay at vga0 not configured > pcppi0 at isa0 port 0x61 > spkr0 at pcppi0 > vmm0 at mainbus0: VMX/EPT (using slow L1TF mitigation) > vscsi0 at root > scsibus2 at vscsi0: 256 targets > softraid0 at root > scsibus3 at softraid0: 256 targets > root on sd0a (d3d81fe166194904.a) swap on sd0b dump on sd0b > inteldrm0: 1024x768, 32bpp > wsdisplay0 at inteldrm0 mux 1 > wsdisplay0: screen 0-5 added (std, vt100 emulation)
Problem with getting "disable inteldrm" to stick has been solved. I found this thread: https://www.mail-archive.com/tech@openbsd.org/msg65655.html and learned about bsd.re-config. After adding "disable inteldrm" to /etc/bsd.reconfig my issue seems to be resolved. With regard to inteldrm, I also found drmhpwq running and after searching for that process found this thread: https://www.mail-archive.com/bugs@openbsd.org/msg16027.html which may be the same issue I'm having, the intel gpu is not happy without an hdml monitor.