TODO revision 1.13 1 1.13 soda $NetBSD: TODO,v 1.13 2000/06/17 09:18:39 soda Exp $
2 1.2 thorpej
3 1.1 jonathan To do list (not in any particular order).
4 1.12 soda
5 1.12 soda o XXX at least 2000/06/07 version is already quite unstable
6 1.12 soda on PICA and NEC Image RISCstation. (but almost OK on Magnum)
7 1.12 soda Userland commands dumps core randomly.
8 1.12 soda This version is before _MIPS_PADDR_T_64BIT changes
9 1.12 soda and MIPS3_TLB_WIRED_UPAGES changes.
10 1.1 jonathan
11 1.9 soda o XXX sudden hang up in a few minutes or dozens of minutes.
12 1.9 soda 2000 Mar 17 -current is OK. Mar 29 is NG.
13 1.9 soda
14 1.1 jonathan o Move the RO and WIRED attribute from the pte to the pv table.
15 1.1 jonathan This saves four instructions in the tlb miss handler.
16 1.1 jonathan
17 1.11 soda o Boot. Standalone boot program instead of booting the kernel directly.
18 1.1 jonathan
19 1.5 soda o Find out why bitmap load to S3-928 flashes screen. (X server)
20 1.4 soda Know why (enable linear mode). Need S3 info.
21 1.4 soda
22 1.4 soda o Can we have 32 double registers?
23 1.4 soda
24 1.4 soda o 64bit kernel/userland
25 1.4 soda
26 1.11 soda o NEC RISCstation 2200 support
27 1.5 soda
28 1.11 soda - framebuffer?
29 1.5 soda
30 1.11 soda - interrupt handling?
31 1.11 soda
32 1.11 soda o repair DeskStation support
33 1.11 soda
34 1.11 soda - requires bounce buffer bus_dma for Tyne
35 1.11 soda
36 1.11 soda - set up rPC44 wired TLB entries explicitly
37 1.11 soda
38 1.11 soda o repair Algor support
39 1.11 soda
40 1.11 soda - pci/pbcpcibus.c:vtophysaddr(): pbc_version < V96X_VREV_C0 case
41 1.11 soda
42 1.11 soda o sysinst
43 1.11 soda
44 1.11 soda o install notes
45 1.11 soda
46 1.11 soda o www: diskless HOW-TO port-arc specific part.
47 1.11 soda
48 1.11 soda o Xserver
49 1.11 soda
50 1.11 soda - VXL magnum, some RISCserver 2200
51 1.11 soda - vga/S3 pica, Image RISCstation - OpenBSD's?
52 1.11 soda - vga/cirrus some RISCserver 2200
53 1.11 soda - vga/??? DESKstation Tyne, rPC44
54 1.11 soda - TGA RISCserver 2250
55 1.11 soda
56 1.11 soda o X clients
57 1.11 soda probably pmax binary is good enough.
58 1.5 soda
59 1.4 soda o source code structure is quite obsolete,
60 1.4 soda general clean up is needed as nisimura-san suggested.
61 1.4 soda especially:
62 1.4 soda
63 1.4 soda - introduce struct platform and remove ugly ``switch (cputype)''
64 1.4 soda in many places.
65 1.4 soda
66 1.7 nisimura - redesign interrupt handler framework to be flexible for
67 1.7 nisimura possible variations; must be sane and useful for R4030/R4230
68 1.7 nisimura 'local' devices and any combinations with ISA/EISA/PCI
69 1.7 nisimura
70 1.11 soda - remove inb/outb
71 1.8 nisimura
72 1.8 nisimura - try to interporate HZ; may be possible for R4030/R4230 system
73 1.8 nisimura or 'hardclock() by R4000' system. Clock resolution of 100Hz
74 1.8 nisimura without any interporation is substandard
75 1.9 soda
76 1.13 soda - remove UADDR
77 1.13 soda
78 1.9 soda o overblocking on interrupt handler, and related problems
79 1.9 soda
80 1.9 soda - SR_INT_IE should be enabled before calling hardclock().
81 1.9 soda Since this is not done currently, spllowersoftclock()
82 1.9 soda on hardclock() doesn't have effect, and softclock() is
83 1.9 soda handled with all interrupt disabled in this case.
84 1.9 soda -> overblocking, possibly causes missing hardclock()
85 1.9 soda
86 1.9 soda - MIPS3_CLKF_BASEPRI() doesn't work correctly,
87 1.9 soda when MIPS_INT_MASK_5 (== MIPS_INT_MASK_CLOCK) is disabled.
88 1.9 soda -> micro optimization on hardclock() doesn't work.
89 1.9 soda but currently this may make hardclock() latency better
90 1.9 soda due to above SR_INT_IE problem.
91 1.9 soda s/MIPS_INT_MASK/MIPS3_INT_MASK/ makes this work, although tricky.
92 1.9 soda
93 1.9 soda - if (ipending & INT_MASK_REAL_DEV) == 0,
94 1.9 soda softnet() and softclock() are handled with all interrupt disabled.
95 1.9 soda -> overblocking, possibly causes missing hardclock()
96 1.9 soda
97 1.9 soda - softclock() is handled with softnet() disabled.
98 1.9 soda -> slightly overblocking
99 1.9 soda
100 1.9 soda - `netisr' handling in netintr() implies potential race condition.
101 1.9 soda `netisr' access should be protected by splnet().
102 1.9 soda currently this is not real problem due to above overblocking.
103 1.9 soda
104 1.9 soda `ssir' handling on many mips ports has same problem.
105 1.9 soda It should be protected by splnet() or splserial() or splhigh()
106 1.9 soda (depends on the highest interrupt level which sets `ssir').
107 1.9 soda Since `ssir' is accessed not only by setsoftnet() but also
108 1.9 soda by setsoft(), setsoftnet() should protect `ssir' by splserial()
109 1.9 soda or something. (i.e. priority level which setsoft() will be called)
110 1.9 soda Probably, it is better to split `ssir' variable for each
111 1.9 soda priority level.
112 1.9 soda also, _clearsoftintr() should be called before `ssir' access.
113 1.9 soda currently this is not real problem due to above overblocking.
114 1.9 soda
115 1.10 soda - INT_MASK_REAL_DEV should be removed
116 1.10 soda
117 1.11 soda - make CLKF_INTR() work.
118 1.11 soda
119 1.11 soda - major rework, possibly by software emulated spl.
120 1.11 soda splserial()/splsoftserial()
121 1.11 soda
122 1.9 soda o it is better to always disable MIPS_INT_MASK_CLOCK.
123 1.9 soda those are the points which should be fixed:
124 1.9 soda mips_idle: li t0, (MIPS_INT_MASK | MIPS_SR_INT_IE)
125 1.9 soda machdep.c: curpcb->pcb_context[11] = MIPS_INT_MASK | MIPS_SR_INT_IE;
126 1.9 soda spl0()
127 1.9 soda splnone()
128 1.10 soda
129 1.10 soda - MIPS_INT_MASK_CLOCK should be removed in someway
130 1.1 jonathan
131 1.4 soda o fix kernel start address
132 1.1 jonathan
133 1.11 soda o allocate PICA_TL_BASE and SONICBUF dynamically
134 1.11 soda
135 1.4 soda o merge new wscons
136 1.1 jonathan
137 1.11 soda o fix mem_clusters[] usage.
138 1.11 soda
139 1.11 soda o test and merge soren's clean up about proc0.p_addr.
140 1.11 soda
141 1.4 soda o parse ARC BIOS configuration information and use it
142 1.4 soda
143 1.5 soda o omit __BROKEN_CONFIG_UNIT_USAGE
144 1.5 soda
145 1.5 soda o omit __SWAP_BROKEN in <mips/types.h>
146 1.5 soda
147 1.4 soda o fix implementation of DELAY(), clean up clock implementation
148 1.4 soda
149 1.11 soda o increase MAXPHYS to 64KB
150 1.11 soda
151 1.5 soda o asc.c scsi clock/NCR53CF94 handling clean up
152 1.5 soda
153 1.11 soda o if_sn.c
154 1.11 soda
155 1.11 soda - ether address handling clean up
156 1.11 soda
157 1.11 soda - bus_dma'fy
158 1.11 soda - bus_space'fy
159 1.11 soda - split frontend and backend
160 1.11 soda - make this MI, and share with mac68k, newsmips/apbus
161 1.4 soda
162 1.5 soda o com_lbus.c clock handling clean up
163 1.5 soda
164 1.11 soda o intrcnt[] name cleanup
165 1.11 soda
166 1.13 soda o implement NCR 53c700(?) driver for NEC RISCserver 2200,
167 1.13 soda RISCstation 2200 and RISCstation 2250.
168 1.13 soda based on MI siop driver?
169 1.5 soda
170 1.6 soda o audio driver
171 1.6 soda
172 1.4 soda o use MI driver
173 1.4 soda
174 1.4 soda - use MI ncr53c9x driver instead of home grown asc
175 1.4 soda
176 1.4 soda - use MI bha driver instead of home grown btl
177 1.4 soda
178 1.4 soda - make fd driver MI, and share it with i386
179 1.4 soda (contact christos about MI fd driver)
180 1.1 jonathan
181 1.4 soda - make pccons MI, and share it with i386,
182 1.4 soda or simply eliminate pccons
183 1.5 soda
184 1.6 soda - LKM
185 1.5 soda
186 1.6 soda o ARC boot device name -> NetBSD root device conversion
187 1.5 soda
188 1.6 soda o and missing MI devices
189 1.6 soda ses?, lkm, vcoda, ...
190 1.5 soda
191 1.11 soda o bus_dmamap_sync: Hit_Invalidate and Hit_Write_Back cache operation
192 1.11 soda
193 1.11 soda o clean up ALEAF/NLEAF/NON_LEAF/NNON_LEAF in userland.
194 1.11 soda
195 1.11 soda o resolve "XXX"
196 1.1 jonathan
197 1.1 jonathan Lots of other things.....
198