TODO revision 1.27
11.27Spalle /* $NetBSD: TODO,v 1.27 2018/10/05 19:53:47 palle Exp $ */
21.1Spalle
31.1SpalleThings to be done:
41.1Spalle
51.5Spallecommon:
61.5Spalle- make %g6 point to curcpu
71.5Spalle- make %g7 point to curlwp
81.8Spalle- change run-time checks for cpu type to function pointers
91.5Spalle
101.1Spallesun4u:
111.10Spalle- GENERIC.UP kernel hangs on v445 (missing interrupt?)
121.1Spalle
131.1Spallesun4v:
141.26Spalle - current status: The kernel boots and starts the init process (pid 1) 
151.27Spalle   which spawns /sbin/sh (pid 2). This is forked as a new /sbin/sh (pid 3) which crashes, probably due to MMU DPROT issues.
161.1Spalle- 64-bit kernel support
171.1Spalle- 32-bit kernel support
181.2Spalle- libkvm
191.2Spalle- ofwboot: tlb_init_sun4v() hardcodes number of slots to 64
201.17Spalle- locore.s: sun4v_datatrap missing implementation for trap level 1
211.5Spalle- check build without SUN4V defined
221.13Spalle- replace relevant references to %ver with GET_MAXCWP
231.6Spalle- pmap_mp_init(): sun4v missing handling
241.6Spalle- replace constructs like "wrpr %g0, PSTATE_KERN, %pstate" with NORMAL_GLOBALS
251.6Spalle- replace constructs line "wrpr %g0, PSTATE_INTR, %pstate" with ALTERNATE_GOBALS
261.7Spalle- sun4v tsb no need to lock... per cpu... anyway...
271.7Spalle- ci_tsb_desc->td_ctxidx: -1 or 1?
281.14Spalle- MP support - currently bypassed in pmap_bootstrap() for sun4v
291.12Spalle- vpci.c/vpcivar.h: cleanup FIXMEs
301.16Spalle- interrups not handled properly (com at ebus only...)
311.18Spalle- mpt(4) complains: mpt0: Phy 0: Link Status Unknown
321.20Spalle- man pages for drivers imported from OpenBSD lke vpci, vbus, cbus, vdsk, ldc etc.
331.20Spalle- vdsk and ldc drivers: code maked with OPENBSD_BUSDMA - make the bus_dma stuff work properly
341.22Spalle- vbus.c: handle prom_getprop() memory leaks
351.25Spalle- locore.s: rft_user (sun4v specific manaul fill) - seems to work, but is it good enough (compared to openbsds rft_user?
361.27Spalle - platforms tested so far:
371.27Spalle -- qemu sun4v/niagara - crash in init process relaed to fork (stack?)
381.27Spalle -- T2000 - mmu fault somewhere
391.27Spalle -- T5 - stickcmpr is not properly initialized ???
40