Re: New pmap status update
Izumi Tsutsui <[email protected]> Tue, 16 Dec 2025 00:00:57 +0900
| Newsgroups | gmane.os.netbsd.ports.m68k |
|---|---|
| Message-ID | <[email protected]> |
thorpej@ wrote: > > Yes, looks like it's __cpu_simple_lock() and/or > > __cpu_simple_lock_try(). I'll add a __HAVE_M68K_BROKEN_RMC check > > in <m68k/lock.h> and make it use _atomic_cas_32() in that case. > > Ok, this one is a little annoying because __cpu_simple_lock_t is > 8-bit, and I need a 32-bit datum for the kernel restartable atomic > sequence. > > https://www.netbsd.org/~thorpej/m68k-simple-lock-rmc-fix.txt > > I'm not entirely satisfied with that solution, if only because > it feels a little gross. Also tried on HP319C with the patch (traditional pmap). No panic, but stalls before init(8) starts: --- >> NetBSD/hp300 Primary Boot, Revision 1.22 (Sat May 31 17:00:41 UTC 2025) (from NetBSD 10.99.14) >> HP 9000/318/319/330 SPU >> Enter "reset" to reset system. Boot: [[[le0a:]netbsd][-a][-c][-d][-s][-v][-q]] :- le0a:netbsd.small020 -s WARNING: bad date in battery clock boot: client IP address: 192.168.20.74 root addr=192.168.20.1 path=/r/export/NetBSD/hp300/root 2292116+99012 [211280+198022]=0x2abf50 Start @ 0xff803000 [1=0xffa49c58-0x2abf50]... Entry point: 0xff803000 [ 1.0000000] bootinfo found at 0xff802000 [ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, [ 1.0000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, [ 1.0000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, [ 1.0000000] 2024, 2025 [ 1.0000000] The NetBSD Foundation, Inc. All rights reserved. [ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993 [ 1.0000000] The Regents of the University of California. All rights reserved. [ 1.0000000] NetBSD 11.99.4 (SMALL020) #1: Mon Dec 15 23:11:00 JST 2025 [ 1.0000000] tsutsui@mirage:/s/tsutsui/netbsd/src/sys/arch/hp300/compile/SMALL020 [ 1.0000000] HP 9000/318/319/330 (16.67MHz MC68020 CPU, MC68851 MMU, 16.67MHz MC68881 FPU) [ 1.0000000] total memory = 8180 KB [ 1.0000000] avail memory = 4552 KB [ 1.0000000] mainbus0 (root) [ 1.0000000] intio0 at mainbus0 [ 1.0000000] rtc0 at intio0 addr 0x420000 [ 1.0000000] hil0 at intio0 addr 0x428000 ipl 1 [ 1.0000000] nhpib1 at intio0 addr 0x478000 ipl 3: internal HP-IB [ 1.0000000] hpibbus1 at nhpib1 [ 1.0000000] dma0 at intio0 addr 0x500000 ipl 1: 98620C, 2 channels, 32-bit DMA [ 1.0000000] topcat0 at intio0 addr 0x560000: 1024x768x6 HP98549 catseye frame buffer [ 1.0000000] wsdisplay0 at topcat0 kbdmux 1 [ 1.0000000] dio0 at mainbus0 [ 1.0000000] com0 at dio0 scode 9 ipl 5: ns8250 or ns16450, no fifo [ 1.0000000] com0: console [ 1.0000000] fhpib0 at dio0 scode 14 ipl 4: 98625A/98625B HP-IB [ 1.0000000] hpibbus2 at fhpib0 [ 1.0000000] le0 at dio0 scode 21 ipl 5: address 08:00:09:02:6a:99 [ 1.0000000] le0: 8 receive buffers, 2 transmit buffers [ 1.0000000] WARNING: system needs entropy for security; see entropy(7) [ 2.1739310] hil0: no devices [ 5.7425990] boot device: le0 [ 5.7625870] root on le0 [ 5.7875790] nfs_boot: trying DHCP/BOOTP [ 8.8710910] nfs_boot: DHCP next-server: 192.168.20.1 [ 8.8866790] nfs_boot: my_domain=ceres.dti.ne.jp [ 8.9010870] nfs_boot: my_addr=192.168.20.74 [ 8.9209790] nfs_boot: my_mask=255.255.255.0 [ 8.9409710] nfs_boot: gateway=192.168.20.1 [ 15.1884790] root on mirage:/r/export/NetBSD/hp300/root [ 15.2043710] root file system type: nfs [ 15.2096830] kern.module.path=/stand/hp300/11.99.4/modules [ 15.2684630] WARNING: preposterous TOD clock time [ 15.2830150] WARNING: using filesystem time [ 15.2923830] WARNING: CHECK AND RESET THE DATE! [ 23.1255950] entropy: best effort --- I can enter ddb by break, and backtrace shows: --- Stopped in pid 1.1 (init) at netbsd:cpu_Debugger+0x6: unlk a6 db> bt cpu_Debugger(5,0,a,1,0) + 6 comintr(1322340) + 36e m68k_intr_autovec(0,2004,1349100,13a3f98,20040011) + 56 intrstub_autovec(?) lwp_unlock(1317280) + a sigpost(?) sched_tick(1349100,0,103,a) + 146 kpsignal2(137a020,3c90ec8,80,1c5e8,3c8f000) + 2c0 trapsignal(1349100,3c90ec8) + 24a trap(3c90f60,0,1c1,10018f14) + 438 faultstkadj() + 4 db> --- Izumi Tsutsui