Hi! it does help a lot!
co...@sdf.org wrote:
does this help? (I assume removing the free would work but not be ideal) I think the difference is that firmware_*'s allocator is kmem_alloc which should be kmem_free'd, not regular free.
I detached the ral0 driver successfylly. I tried to issue sysctl -w hw.acpi.sleep.state=3 I get a notice (without crash) in dmesg that uaudio doesn't support power management. thus I did the trick... drvctl -d uaudio0 it detached properly, so I issued sleep again... and voilĂ ! I see the flush message and indeed the screen turns black and the power led "blinks". So we went to sleep. This means we have two problematic drivers? However success is partial, since waking up went bad: I hit the powerbutton which then lights continuously again, so it partially awakens, but the screen remains black and I poweed off by holding it 5 seconds. I tried "dmesg scrollback" but the information about the previous boot is partially corrupted and full of escape characters. The last stuff I can read is below. You can guess the message about the device without power management support and about flushing, up to a kernel panic, which looks 915 related. 7sDisplay0: 3credn1added (de&a5l4, vt1 0 emuladion) ws`is^Heen 3 a@ded (`efault, vT10 emu^Lation) wcdispHay0: rcpeDn 4 addEe S3 DebiceS without `ower iana^Eement s0p0ort^Z uaudIo `cpi0: abgst`pe S3 Flus`ing disj caches8 0 done ioapic0 reena"ling DRE ` ct, ffFfffff hEad &fffFf&f tai, ffff&f&f s4art ffffffff uvm_faq 0h102^P2cr2 0 i,efel 0 psp 0xffdfd400B5 63ab0 cUrlwp 0pffffe401^SM^@pu0* Bedih traceback... vPanib() at netbsd:vpanic+0p1^Sd^Hpanac() r 6) -- dr%_`ci_irq_^Hnsta,l() at n%tbs$:drl_pcH_irp_Hn3tAll+0x1aw() at nDtbs`:^__i915GdRm_thaw+0xcf i915drikm^Q_Pesume^H) at jeTbSv)ce_`m&_driv%p^S2esume+0x5& pmfCdeVIca_resume^Wlgc+ed() at net"qdWDevice^^resumd+ x47 pmfCsistem_`equMe ) at netbsd:plf^system_pe!te+0x07a sisctL]hw_acpiWsle%pstate() !t netbqd:^Byscdl_hw_acpiRslyr_^__sysctl ) at netbqd*sys__CsYsctl+0x#8 sxsaaLl() a4 Jetbsd2sx tracebAck...^B umpin' po ddv 0(0 (offqet=2215,size=00^B3045)2 dippinG ^Crash duhp od recursive palic p!Nic8 wddUmP: p/lle` coImAp nic+0x13d panic() a0 letbsd2panic+0x3c wddu-p() at nepbrd:w`d4mp_heada2Oaddbyt%s() !t netbs$:du-p^_h%a$eR_`ddbyt%s+0x41 $uip^_heM^@at netbqd8dum`_`%c]it%r#0xe3 cpq_dump()at netbsd:cpuBd$m0+0x&f +0x1d^Hv@anic(! `t net^Bs`:vpanic+0p1 6 p`hic() aT netbsd:p`lic+08rq_inst`ll(! t netbsd:drm_pch_`rq_)nCt!ll+0x)0drm_h"q\instahl(915_d2M]thag+ xcf i915d^BmKmq_re#ume() at netbsd*a915d2m+ms_re1ume+0p40 DeviceNpMf_`riveB_besume ) ap netbsd:dEvhce_`mb_`paver^SrA_locked"0xd3 0md_$eviceZrEsume(^A at netbsd:pmd_deViceWrasuma+ x4r_sleep[stade() at .etbsd:Acpi_Dnteb_slaep_Stat!+0x^Q7d #ysctlOhwtl_dirpatC`() a4 ne$b3d8syscth_disp`t#h+0xb9 3yq___syqcdl() a0 hsbaLl (Nueber 202) --% ^W901345262fa: "pu^P8 EnD ^Tr!cebaca... r`b^OCopyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 The NetBSD Foundation, Inc. All rights reserved. Copyright (c) 1982, 1986, 1989, 1991, 1993