On Tue, May 04, 2021 at 10:27:05AM +0200, Matthias Pressfreund wrote: > >Environment: > System : OpenBSD 6.9 > Details : OpenBSD 6.9 (GENERIC.MP) #473: Mon Apr 19 10:40:28 MDT > 2021 > > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > Architecture: OpenBSD.amd64 > Machine : amd64 > >Description: > After the first boot into a fresh 6.9-stable installation succeeded, > the system dropped to ddb from the 2nd reboot on. I was connected through the > serial console only, no monitor connected ... > > > 2nd reboot: > ----------------------------------------- > >> OpenBSD/amd64 BOOT 3.53 > boot> > booting sr0a:/bsd: 14419240+3220496+344096+0+1175552 > [1011652+128+1145856+866050]=0x152a750 > entry point at 0xffffffff81001000 > [ using 3024720 bytes of bsd ELF symbol table ] > Copyright (c) 1982, 1986, 1989, 1991, 1993 > The Regents of the University of California. All rights reserved. > Copyright (c) 1995-2021 OpenBSD. All rights reserved. https://www.OpenBSD.org > > OpenBSD 6.9 (GENERIC.MP) #473: Mon Apr 19 10:40:28 MDT 2021 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 4108800000 (3918MB) > avail mem = 3968888832 (3785MB) > random: good seed from bootblocks > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 3.0 @ 0xecef0 (51 entries) > bios0: vendor American Megatrends Inc. version "D7530A09" date 06/18/2019 > bios0: MiTAC PD14RI > acpi0 at bios0: ACPI 5.0 > acpi0: sleep states S0 S5 > acpi0: tables DSDT FACP APIC FPDT FIDT MCFG SSDT SSDT SSDT UEFI LPIT CSRT > acpi0: wakeup devices PS2K(S0) PS2M(S0) BRCM(S0) XHC1(S4) HDEF(S4) RP01(S4) > PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1600.45 MHz, 06-4c-03 > 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: 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 80MHz > 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) Pentium(R) CPU N3700 @ 1.60GHz, 1599.97 MHz, 06-4c-03 > 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: 1MB 64b/line 16-way L2 cache > cpu1: smt 0, core 1, package 0 > cpu2 at mainbus0: apid 4 (application processor) > cpu2: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1599.97 MHz, 06-4c-03 > 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: 1MB 64b/line 16-way L2 cache > cpu2: smt 0, core 2, package 0 > cpu3 at mainbus0: apid 6 (application processor) > cpu3: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1599.97 MHz, 06-4c-03 > 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: 1MB 64b/line 16-way L2 cache > cpu3: smt 0, core 3, package 0 > ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 115 pins > acpimcfg0 at acpi0 > acpimcfg0: addr 0xe0000000, bus 0-255 > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus 1 (RP01) > acpiprt2 at acpi0: bus 2 (RP02) > acpiprt3 at acpi0: bus -1 (RP03) > acpiprt4 at acpi0: bus -1 (RP04) > acpiec0 at acpi0: not present > acpicmos0 at acpi0 > acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001 > "BCM43241" at acpi0 not configured > acpibtn0 at acpi0: SLPB > "PNP0C0B" at acpi0 not configured > acpicpu0 at acpi0: C2(10@500 mwait.1@0x58), C1(1000@1 mwait.1), PSS > acpicpu1 at acpi0: C2(10@500 mwait.1@0x58), C1(1000@1 mwait.1), PSS > acpicpu2 at acpi0: C2(10@500 mwait.1@0x58), C1(1000@1 mwait.1), PSS > acpicpu3 at acpi0: C2(10@500 mwait.1@0x58), C1(1000@1 mwait.1), PSS > acpipwrres0 at acpi0: ID3C, resource for ISP3 > acpipwrres1 at acpi0: CLK0, resource for CAMD > acpipwrres2 at acpi0: USBC, resource for XHC1 > acpipwrres3 at acpi0: FN00, resource for FAN0 > acpitz0 at acpi0: critical temperature is 95 degC > acpivideo0 at acpi0: GFX0 > acpivout0 at acpivideo0: DD1F > cpu0: using VERW MDS workaround > cpu0: Enhanced SpeedStep 1600 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 0x21 > inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x21 > drm0 at inteldrm0 > inteldrm0: msi, CHERRYVIEW, gen 8 > ahci0 at pci0 dev 19 function 0 "Intel Braswell AHCI" rev 0x21: msi, AHCI > 1.3.1 > ahci0: port 0: 6.0Gb/s > ahci0: port 1: 6.0Gb/s > scsibus1 at ahci0: 32 targets > sd0 at scsibus1 targ 0 lun 0: <ATA, C300-CTFDDAC128M, 0007> > naa.500a0751030455cf > sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin > sd1 at scsibus1 targ 1 lun 0: <ATA, C300-CTFDDAC128M, 0006> > naa.500a07510303a338 > sd1: 122104MB, 512 bytes/sector, 250069680 sectors, thin > xhci0 at pci0 dev 20 function 0 "Intel Braswell xHCI" rev 0x21: 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 > "Intel Braswell TXE" rev 0x21 at pci0 dev 26 function 0 not configured > azalia0 at pci0 dev 27 function 0 "Intel Braswell HD Audio" rev 0x21: msi > azalia0: codecs: Realtek ALC662, Intel/0x2883, using Realtek ALC662 > audio0 at azalia0 > ppb0 at pci0 dev 28 function 0 "Intel Braswell PCIE" rev 0x21: msi > pci1 at ppb0 bus 1 > re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G > (0x4c00), msi, address xx:xx:xx:xx:xx:xx > rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0 > ppb1 at pci0 dev 28 function 1 "Intel Braswell PCIE" rev 0x21: msi > pci2 at ppb1 bus 2 > ppb2 at pci2 dev 0 function 0 "ASMedia ASM1182e" rev 0x00 > pci3 at ppb2 bus 3 > ppb3 at pci3 dev 3 function 0 "ASMedia ASM1182e" rev 0x00: msi > pci4 at ppb3 bus 4 > re1 at pci4 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G > (0x4c00), msi, address xx:xx:xx:xx:xx:xx > rgephy1 at re1 phy 7: RTL8251 PHY, rev. 0 > ppb4 at pci3 dev 7 function 0 "ASMedia ASM1182e" rev 0x00: msi > pci5 at ppb4 bus 5 > re2 at pci5 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G > (0x4c00), msi, address xx:xx:xx:xx:xx:xx > rgephy2 at re2 phy 7: RTL8251 PHY, rev. 0 > pcib0 at pci0 dev 31 function 0 "Intel Braswell PCU LPC" rev 0x21 > ichiic0 at pci0 dev 31 function 3 "Intel Braswell SMBus" rev 0x21: apic 1 int > 18 > iic0 at ichiic0 > spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-12800 SO-DIMM > isa0 at pcib0 > isadma0 at isa0 > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > com0: console > pckbc0 at isa0 port 0x60/5 irq 1 irq 12 > pckbd0 at pckbc0 (kbd slot) > wskbd0 at pckbd0 mux 1 > vga0 at isa0 port 0x3b0/48 iomem 0xa0000/131072 > wsdisplay at vga0 not configured > pcppi0 at isa0 port 0x61 > spkr0 at pcppi0 > wbsio0 at isa0 port 0x2e/2: NCT6792D rev 0x13 > lm1 at wbsio0 port 0xa10/8: NCT6792D > vmm0 at mainbus0: VMX/EPT (using slow L1TF mitigation) > uhub1 at uhub0 port 5 configuration 1 interface 0 "Alcor Micro product > 0x6254" rev 2.00/1.00 addr 2 > vscsi0 at root > scsibus2 at vscsi0: 256 targets > softraid0 at root > scsibus3 at softraid0: 256 targets > sd2 at scsibus3 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> > sd2: 122103MB, 512 bytes/sector, 250067198 sectors > root on sd2a (da12fadb67cf7a4d.a) swap on sd2b dump on sd2b > uvm_fault(0xffffffff8214ea68, 0xb8, 0, 1) -> e > kernel: page fault trap, code=0 > Stopped at i915_ggtt_pin+0x29: movq 0xb8(%rdi),%r12 > ddb{2}> show panic > kernel page fault > uvm_fault(0xffffffff8214ea68, 0xb8, 0, 1) -> e > i915_ggtt_pin(0,10000,20) at i915_ggtt_pin+0x29 > end trace frame: 0xffffffff82531bf0, count: 0 > ddb{2}> trace > i915_ggtt_pin(0,10000,20) at i915_ggtt_pin+0x29 > gen6_ppgtt_pin(ffff800000cb9400) at gen6_ppgtt_pin+0x7c > __intel_context_do_pin(fffffd817dc8ad80) at __intel_context_do_pin+0xca > intel_engines_init(ffff800000104c38) at intel_engines_init+0x4b5 > intel_gt_init(ffff800000104c38) at intel_gt_init+0x130 > i915_gem_init(ffff800000100000) at i915_gem_init+0xa3 > i915_driver_probe(ffff800000100000,ffffffff81fc6e90) at > i915_driver_probe+0x7ed >
the vma setup is somehow not occuring gen6_ppgtt_create ppgtt->vma = pd_vma_create(... __ppgtt_create i915_ppgtt_create this should help but isn't a proper fix Index: sys/dev/pci/drm/i915/i915_vma.c =================================================================== RCS file: /cvs/src/sys/dev/pci/drm/i915/i915_vma.c,v retrieving revision 1.5 diff -u -p -r1.5 i915_vma.c --- sys/dev/pci/drm/i915/i915_vma.c 11 Oct 2020 05:45:33 -0000 1.5 +++ sys/dev/pci/drm/i915/i915_vma.c 4 May 2021 10:13:37 -0000 @@ -1029,8 +1029,13 @@ static void flush_idle_contexts(struct i int i915_ggtt_pin(struct i915_vma *vma, u32 align, unsigned int flags) { - struct i915_address_space *vm = vma->vm; + struct i915_address_space *vm; int err; + + if (vma == NULL) + return -EINVAL; + + vm = vma->vm; GEM_BUG_ON(!i915_vma_is_ggtt(vma));