crash, maybe drm related, on i386

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

crash, maybe drm related, on i386

Markus Lude-3
Hello,

I tried to upgrade to the recent i386 snapshot from august 12th.
The notebook crashed right after displaying the login prompt and
probably while starting X.

dmesg from old kernel (from june 26th) attached

Regards,
Markus Lude


following typed in by hand:

uvm_fault(0xd0c54390, 0xd2f13000, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      i915_gem_pwrite_ioctl+0x621:    movl    0x34(%eax),%eax
ddb{1}> trace
i915_gem_pwrite_ioctl(d573f000,f5f80e98,d5bdc280) at i915_gem_pwrite_ioctl+0x621
drm_do_ioctl(d573f000,100,8020645d,f5f80e98) at drm_do_ioctl+0x199
drmioctl(15800,8020645d,f5f80e98,3,d51a1dfc) at drmioctl+0xb3
spec_ioctl(f5f80da0) at spec_ioctl+0x38
VOP_IOCTL(d5240a1c,8020645d,f5f80e98,3,d56bda80,d51a1dfc) at VOP_IOCTL+0x4b
vn_ioctl(d55a77d8,8020645d,f5f80e98,d51a1dfc,8020645d) at vn_ioctl+0x50
sys_ioctl(d51a1dfc,f5f80f68,f5f80f60) at sys_ioctl+0x21e
syscall() at syscall+0x1ee
--- syscall (number 6528) ---
0x4:
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 83777  296233  29044      0  3    0x100002  biowait       ld
 29044   98234  32908      0  3    0x10008a  pause         sh
 32908  222370  18823      0  3    0x10008a  pause         make
 45551  240919  68900      0  3    0x1000b0  netio         Xorg
 34197   97857      1      0  3    0x100083  ttyin         getty
 30732  481463      1      0  3    0x100083  ttyin         getty
 40763  448764      1      0  3    0x100083  ttyin         getty
 32783   78937      1      0  3    0x100083  ttyin         getty
 77880   19401      1      0  3    0x100083  ttyin         getty
*68900  314715  67343     35  7        0x32                Xorg
 18823  397976  18401      0  3    0x100089  pause         sh
 18401   15254      1      0  3    0x100089  pause         sh
 67343  222305      1      0  3        0x88  poll          xenodm
 59940   69803      1      0  3    0x100098  poll          cron
 37589  176187      1     99  3    0x100090  poll          sndio
 58668  180993      1    110  3    0x100090  poll          sndio
 24127  184891  77062     95  3    0x100092  kqread        smtpd
 83069  491990  77062    103  3    0x100092  kqread        smtpd
  6355  153041  77062     95  3    0x100092  kqread        smtpd
 48643    3543  77062     95  3    0x100092  kqread        smtpd
 91317   82290  77062     95  3    0x100092  kqread        smtpd
 39506  520202  77062     95  3    0x100092  kqread        smtpd
 77062  160261      1      0  3    0x100080  kqread        smtpd
   752  149563      1      0  3        0x80  select        sshd
ddb{1}>



dmesg.snoopy (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: crash, maybe drm related, on i386

Markus Lude-3
On Sun, Aug 13, 2017 at 08:01:06PM +0200, Markus Lude wrote:
> Hello,
>
> I tried to upgrade to the recent i386 snapshot from august 12th.
> The notebook crashed right after displaying the login prompt and
> probably while starting X.
>
> dmesg from old kernel (from june 26th) attached

>
> following typed in by hand:
>
> uvm_fault(0xd0c54390, 0xd2f13000, 0, 1) -> e
> kernel: page fault trap, code=0
> Stopped at      i915_gem_pwrite_ioctl+0x621:    movl    0x34(%eax),%eax
> ddb{1}> trace
> i915_gem_pwrite_ioctl(d573f000,f5f80e98,d5bdc280) at i915_gem_pwrite_ioctl+0x621
> drm_do_ioctl(d573f000,100,8020645d,f5f80e98) at drm_do_ioctl+0x199
> drmioctl(15800,8020645d,f5f80e98,3,d51a1dfc) at drmioctl+0xb3
> spec_ioctl(f5f80da0) at spec_ioctl+0x38
> VOP_IOCTL(d5240a1c,8020645d,f5f80e98,3,d56bda80,d51a1dfc) at VOP_IOCTL+0x4b
> vn_ioctl(d55a77d8,8020645d,f5f80e98,d51a1dfc,8020645d) at vn_ioctl+0x50
> sys_ioctl(d51a1dfc,f5f80f68,f5f80f60) at sys_ioctl+0x21e
> syscall() at syscall+0x1ee
> --- syscall (number 6528) ---

same crash with latest snapshot from september 8th

any ideas how to debug this?

Regards,
Markus

following typed in by hand:

uvm_fault(0xd0c4f8a8, 0xd2f9c000, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      i915_gem_pwrite_ioctl+0x621:    movl    0x34(%eax),%eax
ddb{1}> trace
i915_gem_pwrite_ioctl(d57db800,f5f1a078,d5e81200) at i915_gem_pwrite_ioctl+0x621
drm_do_ioctl(d57db800,100,8020645d,f5f1a078) at drm_do_ioctl+0x199
drmioctl(15800,8020645d,f5f1a078,3,d523a2dc) at drmioctl+0xb3
spec_ioctl(f5f19f80) at spec_ioctl+0x38
VOP_IOCTL(d518f3a8,8020645d,f5f1a078,3,d5762a80,d523a2dc) at VOP_IOCTL+0x4b
vn_ioctl(d522d64c,8020645d,f5f1a078,d523a2dc) at vn_ioctl+0x50
sys_ioctl(d523a2dc,f5f1a148,f5f1a140) at sys_ioctl+0x21e
syscall() at syscall+0x20b
--- syscall (number 6528) ---
0x4:
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 10368  319037  36571      0  3    0x100002                ld
 36571  353491  17606      0  3    0x10008a  pause         sh
 17606   46515  63810      0  3    0x10008a  pause         make
 58383  211820   6038      0  3    0x1000b0  netio         Xorg
 41167  120612      1      0  3    0x100083  ttyin         getty
 27005  352063      1      0  3    0x100083  ttyin         getty
 73282    2030      1      0  3    0x100083  ttyin         getty
 68843  265766      1      0  3    0x100083  ttyin         getty
 93305  166750      1      0  3    0x100083  ttyin         getty
* 6038   72562  81069     35  7        0x32                Xorg
 63810  384388      1      0  3    0x10008b  pause         ksh
 81069  400034      1      0  3        0x88  poll          xenodm
 73148  428726      1      0  3    0x100098  poll          cron
 78849  368293      1     99  3    0x100090  poll          sndiod
 92068  392626      1    110  3    0x100090  poll          sndiod
 37749  161306  11869     95  3    0x100092  kqread        smtpd
 42648   88649  11869    103  3    0x100092  kqread        smtpd
 40373  405363  11869     95  3    0x100092  kqread        smtpd
 62502  157242  11869     95  3    0x100092  kqread        smtpd
 72569  330048  11869     95  3    0x100092  kqread        smtpd
 72946  382958  11869     95  3    0x100092  kqread        smtpd
 11869  427727      1      0  3    0x100080  kqread        smtpd
 35963  467223      1      0  3        0x80  select        sshd
 37285  266279  32092     83  3    0x100092  poll          ntpd
 32092  125937  95027     83  3    0x100092  poll          ntpd
 95027  327408      1      0  3    0x100080  poll          ntpd
  2933  236656      1      0  3        0x80  netio         pflogd
 70652  110400      1     74  3    0x100090  bpf           pflogd
 76907  463379  62204     73  7    0x100090                syslogd
 62204  481935      1      0  3    0x100082  netio         syslogd
 68053     956      1     77  3    0x100090  poll          dhclient
 61272  416606      1      0  3        0x80  poll          dhclient
 55126  231144      1     77  3    0x100090  poll          dhclient
 82608  139437      1      0  3        0x80  poll          dhclient
 20931  328899  38944    115  3    0x100092  kqread        slaacd
 26691   60384  38944    115  3    0x100092  kqread        slaacd
 38944  184027      1      0  3        0x80  kqread        slaacd
 30856  496927      0      0  3     0x14200  pgzero        zerothread
 15733   80860      0      0  3     0x14200  aiodoned      aiodoned
 79532  197652      0      0  3     0x14200  syncer        update
 57083  347521      0      0  3     0x14200  cleaner       cleaner
 84694  344081      0      0  3     0x14200  reaper        reaper
 56718  272076      0      0  3     0x14200  pgdaemon      pagedaemon
 60350   18932      0      0  3     0x14200  bored         crynlk
 95112  123753      0      0  3     0x14200  bored         crypto
 33179  257219      0      0  3     0x14200  usbtsk        usbtask
 67856  294328      0      0  3     0x14200  usbatsk       usbtask
 21325  512290      0      0  3     0x14200  bored         i915-hangcheck
 88615   42557      0      0  3     0x14200  bored         i915-dp
 72983  161527      0      0  3     0x14200  bored         i915
 90685  258007      0      0  3     0x14200  bored         sensors
  9765  122414      0      0  3  0x40014200  acpi0         acpi0
 99136  238582      0      0  3  0x40014200                idle1
 70204  368171      0      0  3     0x14200  bored         softnet
 65500    1890      0      0  3     0x14200  bored         systqmp
 39916   62361      0      0  3     0x14200  bored         systq
 46023  206573      0      0  3  0x40014200  bored         softclock
 81224  216928      0      0  3  0x40014200                idle0
 49316  346369      0      0  3     0x14200  bored         sbar
 34513  384321      0      0  3     0x14200  kmalloc       kmthread
     1  410241      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x14200  scheduler     swapper
ddb{1}>

> OpenBSD 6.1-current (GENERIC.MP) #153: Mon Jun 26 00:12:32 MDT 2017
>     [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC.MP
> cpu0: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz ("GenuineIntel" 686-class) 2.20 GHz
> cpu0: FPU,V86,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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,LAHF,PERF,SENSOR
> real mem  = 2120425472 (2022MB)
> avail mem = 2066972672 (1971MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: date 05/11/09, BIOS32 rev. 0 @ 0xfdc60, SMBIOS rev. 2.4 @ 0xe0010 (73 entries)
> bios0: vendor LENOVO version "7LETC6WW (2.26 )" date 05/11/2009
> bios0: LENOVO 8895W3Z
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF! SSDT SSDT SSDT SSDT
> acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) EHC0(S3) EHC1(S3) [...]
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpiec0 at acpi0
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 199MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
> cpu1: FPU,V86,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,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,LAHF,PERF,SENSOR
> ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
> acpimcfg0 at acpi0 addr 0xf0000000, bus 0-63
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (AGP_)
> acpiprt2 at acpi0: bus 2 (EXP0)
> acpiprt3 at acpi0: bus 3 (EXP1)
> acpiprt4 at acpi0: bus 4 (EXP2)
> acpiprt5 at acpi0: bus 5 (EXP3)
> acpiprt6 at acpi0: bus 13 (EXP4)
> acpiprt7 at acpi0: bus 21 (PCI1)
> acpicpu0 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpicpu1 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS
> acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB4, EHC0, EHC1
> acpitz0 at acpi0: critical temperature is 127 degC
> acpitz1 at acpi0: critical temperature is 100 degC
> acpibtn0 at acpi0: LID_
> acpibtn1 at acpi0: SLPB
> "PNP0303" at acpi0 not configured
> "IBM0057" at acpi0 not configured
> acpibat0 at acpi0: BAT0 model "92P1139" serial  2107 type LION oem "Panasonic"
> acpiac0 at acpi0: AC unit online
> acpithinkpad0 at acpi0
> "PNP0C14" at acpi0 not configured
> acpidock0 at acpi0: GDCK not docked (0)
> acpivideo0 at acpi0: VID_
> acpivout0 at acpivideo0: LCD0
> acpivideo1 at acpi0: VID_
> bios0: ROM list: 0xc0000/0x10000! 0xd0000/0x1000 0xd1000/0x1000 0xe0000/0x10000!
> cpu0: Enhanced SpeedStep 1996 MHz: speeds: 2001, 2000, 1600, 1200, 800 MHz
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x0c
> inteldrm0 at pci0 dev 2 function 0 "Intel GM965 Video" rev 0x0c
> drm0 at inteldrm0
> intagp0 at inteldrm0
> agp0 at intagp0: aperture at 0xe0000000, size 0x10000000
> inteldrm0: msi
> inteldrm0: 1400x1050, 32bpp
> wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> "Intel GM965 Video" rev 0x0c at pci0 dev 2 function 1 not configured
> em0 at pci0 dev 25 function 0 "Intel ICH8 IGP M AMT" rev 0x03: msi, address 00:1c:25:7e:9e:df
> uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 20
> uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 21
> ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 22
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x03: msi
> azalia0: codecs: Analog Devices AD1984, Conexant/0x2bfa, using Analog Devices AD1984
> audio0 at azalia0
> ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03: apic 1 int 20
> pci1 at ppb0 bus 2
> ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03: apic 1 int 21
> pci2 at ppb1 bus 3
> wpi0 at pci2 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: msi, MoW2, address 00:1f:3c:67:51:83
> ppb2 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x03: apic 1 int 22
> pci3 at ppb2 bus 4
> ppb3 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev 0x03: apic 1 int 23
> pci4 at ppb3 bus 5
> ppb4 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x03: apic 1 int 20
> pci5 at ppb4 bus 13
> uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 16
> uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 17
> uhci4 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x03: apic 1 int 18
> ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 19
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb5 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf3
> pci6 at ppb5 bus 21
> cbb0 at pci6 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0xb6: apic 1 int 16
> cardslot0 at cbb0 slot 0 flags 0
> cardbus0 at cardslot0: bus 22 device 0 cacheline 0x8, lattimer 0xb0
> pcmcia0 at cardslot0
> pcib0 at pci0 dev 31 function 0 "Intel 82801HEM LPC" rev 0x03
> pciide0 at pci0 dev 31 function 1 "Intel 82801HBM IDE" rev 0x03: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
> atapiscsi0 at pciide0 channel 0 drive 0
> scsibus1 at atapiscsi0: 2 targets
> cd0 at scsibus1 targ 0 lun 0: <MATSHITA, DVD-RAM UJ-862, RB01> ATAPI 5/cdrom removable
> cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> pciide0: channel 1 ignored (disabled)
> ahci0 at pci0 dev 31 function 2 "Intel 82801HBM AHCI" rev 0x03: msi, AHCI 1.1
> ahci0: port 0: 1.5Gb/s
> scsibus2 at ahci0: 32 targets
> sd0 at scsibus2 targ 0 lun 0: <ATA, FUJITSU MHZ2080B, 0084> SCSI3 0/direct fixed naa.500000e0420358a1
> sd0: 76319MB, 512 bytes/sector, 156301488 sectors
> ichiic0 at pci0 dev 31 function 3 "Intel 82801H SMBus" rev 0x03: apic 1 int 23
> iic0 at ichiic0
> usb2 at uhci0: USB revision 1.0
> uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb3 at uhci1: USB revision 1.0
> uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb4 at uhci2: USB revision 1.0
> uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb5 at uhci3: USB revision 1.0
> uhub5 at usb5 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb6 at uhci4: USB revision 1.0
> uhub6 at usb6 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pms0 at pckbc0 (aux slot)
> wsmouse0 at pms0 mux 0
> wsmouse1 at pms0 mux 0
> pms0: Synaptics touchpad, firmware 6.2
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> aps0 at isa0 port 0x1600/31
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> uhidev0 at uhub4 port 1 configuration 1 interface 0 "Logitech USB-PS/2 Optical Mouse" rev 2.00/27.20 addr 2
> uhidev0: iclass 3/1
> ums0 at uhidev0: 8 buttons, Z and W dir
> wsmouse2 at ums0 mux 0
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> root on sd0a (e89a317f7c946a77.a) swap on sd0b dump on sd0b

Reply | Threaded
Open this post in threaded view
|

Re: crash, maybe drm related, on i386

Martin Pieuchot
On 09/09/17(Sat) 17:49, Markus Lude wrote:

> On Sun, Aug 13, 2017 at 08:01:06PM +0200, Markus Lude wrote:
> > Hello,
> >
> > I tried to upgrade to the recent i386 snapshot from august 12th.
> > The notebook crashed right after displaying the login prompt and
> > probably while starting X.
> >
> > dmesg from old kernel (from june 26th) attached
>
> >
> > following typed in by hand:
> >
> > uvm_fault(0xd0c54390, 0xd2f13000, 0, 1) -> e
> > kernel: page fault trap, code=0
> > Stopped at      i915_gem_pwrite_ioctl+0x621:    movl    0x34(%eax),%eax

That means that `page' is NULL in the following code:

1033:           page_do_bit17_swizzling = obj_do_bit17_swizzling &&
1034:                   (page_to_phys(page) & (1 << 17)) != 0;

And `page' is set in the loop:

1007:   for_each_sg_page(obj->pages->sgl, &sg_iter, obj->pages->nents,
1008:                    offset >> PAGE_SHIFT) {
1009:           struct vm_page *page = sg_page_iter_page(&sg_iter);


sg_page_iter_page() calls PHYS_TO_VM_PAGE() which returns NULL.

At that point I can't tell if it's an off-by-one or a VM problem.