TODO revision 1.13
11.13Ssoda$NetBSD: TODO,v 1.13 2000/06/17 09:18:39 soda Exp $ 21.2Sthorpej 31.1SjonathanTo do list (not in any particular order). 41.12Ssoda 51.12Ssoda o XXX at least 2000/06/07 version is already quite unstable 61.12Ssoda on PICA and NEC Image RISCstation. (but almost OK on Magnum) 71.12Ssoda Userland commands dumps core randomly. 81.12Ssoda This version is before _MIPS_PADDR_T_64BIT changes 91.12Ssoda and MIPS3_TLB_WIRED_UPAGES changes. 101.1Sjonathan 111.9Ssoda o XXX sudden hang up in a few minutes or dozens of minutes. 121.9Ssoda 2000 Mar 17 -current is OK. Mar 29 is NG. 131.9Ssoda 141.1Sjonathan o Move the RO and WIRED attribute from the pte to the pv table. 151.1Sjonathan This saves four instructions in the tlb miss handler. 161.1Sjonathan 171.11Ssoda o Boot. Standalone boot program instead of booting the kernel directly. 181.1Sjonathan 191.5Ssoda o Find out why bitmap load to S3-928 flashes screen. (X server) 201.4Ssoda Know why (enable linear mode). Need S3 info. 211.4Ssoda 221.4Ssoda o Can we have 32 double registers? 231.4Ssoda 241.4Ssoda o 64bit kernel/userland 251.4Ssoda 261.11Ssoda o NEC RISCstation 2200 support 271.5Ssoda 281.11Ssoda - framebuffer? 291.5Ssoda 301.11Ssoda - interrupt handling? 311.11Ssoda 321.11Ssoda o repair DeskStation support 331.11Ssoda 341.11Ssoda - requires bounce buffer bus_dma for Tyne 351.11Ssoda 361.11Ssoda - set up rPC44 wired TLB entries explicitly 371.11Ssoda 381.11Ssoda o repair Algor support 391.11Ssoda 401.11Ssoda - pci/pbcpcibus.c:vtophysaddr(): pbc_version < V96X_VREV_C0 case 411.11Ssoda 421.11Ssoda o sysinst 431.11Ssoda 441.11Ssoda o install notes 451.11Ssoda 461.11Ssoda o www: diskless HOW-TO port-arc specific part. 471.11Ssoda 481.11Ssoda o Xserver 491.11Ssoda 501.11Ssoda - VXL magnum, some RISCserver 2200 511.11Ssoda - vga/S3 pica, Image RISCstation - OpenBSD's? 521.11Ssoda - vga/cirrus some RISCserver 2200 531.11Ssoda - vga/??? DESKstation Tyne, rPC44 541.11Ssoda - TGA RISCserver 2250 551.11Ssoda 561.11Ssoda o X clients 571.11Ssoda probably pmax binary is good enough. 581.5Ssoda 591.4Ssoda o source code structure is quite obsolete, 601.4Ssoda general clean up is needed as nisimura-san suggested. 611.4Ssoda especially: 621.4Ssoda 631.4Ssoda - introduce struct platform and remove ugly ``switch (cputype)'' 641.4Ssoda in many places. 651.4Ssoda 661.7Snisimura - redesign interrupt handler framework to be flexible for 671.7Snisimura possible variations; must be sane and useful for R4030/R4230 681.7Snisimura 'local' devices and any combinations with ISA/EISA/PCI 691.7Snisimura 701.11Ssoda - remove inb/outb 711.8Snisimura 721.8Snisimura - try to interporate HZ; may be possible for R4030/R4230 system 731.8Snisimura or 'hardclock() by R4000' system. Clock resolution of 100Hz 741.8Snisimura without any interporation is substandard 751.9Ssoda 761.13Ssoda - remove UADDR 771.13Ssoda 781.9Ssoda o overblocking on interrupt handler, and related problems 791.9Ssoda 801.9Ssoda - SR_INT_IE should be enabled before calling hardclock(). 811.9Ssoda Since this is not done currently, spllowersoftclock() 821.9Ssoda on hardclock() doesn't have effect, and softclock() is 831.9Ssoda handled with all interrupt disabled in this case. 841.9Ssoda -> overblocking, possibly causes missing hardclock() 851.9Ssoda 861.9Ssoda - MIPS3_CLKF_BASEPRI() doesn't work correctly, 871.9Ssoda when MIPS_INT_MASK_5 (== MIPS_INT_MASK_CLOCK) is disabled. 881.9Ssoda -> micro optimization on hardclock() doesn't work. 891.9Ssoda but currently this may make hardclock() latency better 901.9Ssoda due to above SR_INT_IE problem. 911.9Ssoda s/MIPS_INT_MASK/MIPS3_INT_MASK/ makes this work, although tricky. 921.9Ssoda 931.9Ssoda - if (ipending & INT_MASK_REAL_DEV) == 0, 941.9Ssoda softnet() and softclock() are handled with all interrupt disabled. 951.9Ssoda -> overblocking, possibly causes missing hardclock() 961.9Ssoda 971.9Ssoda - softclock() is handled with softnet() disabled. 981.9Ssoda -> slightly overblocking 991.9Ssoda 1001.9Ssoda - `netisr' handling in netintr() implies potential race condition. 1011.9Ssoda `netisr' access should be protected by splnet(). 1021.9Ssoda currently this is not real problem due to above overblocking. 1031.9Ssoda 1041.9Ssoda `ssir' handling on many mips ports has same problem. 1051.9Ssoda It should be protected by splnet() or splserial() or splhigh() 1061.9Ssoda (depends on the highest interrupt level which sets `ssir'). 1071.9Ssoda Since `ssir' is accessed not only by setsoftnet() but also 1081.9Ssoda by setsoft(), setsoftnet() should protect `ssir' by splserial() 1091.9Ssoda or something. (i.e. priority level which setsoft() will be called) 1101.9Ssoda Probably, it is better to split `ssir' variable for each 1111.9Ssoda priority level. 1121.9Ssoda also, _clearsoftintr() should be called before `ssir' access. 1131.9Ssoda currently this is not real problem due to above overblocking. 1141.9Ssoda 1151.10Ssoda - INT_MASK_REAL_DEV should be removed 1161.10Ssoda 1171.11Ssoda - make CLKF_INTR() work. 1181.11Ssoda 1191.11Ssoda - major rework, possibly by software emulated spl. 1201.11Ssoda splserial()/splsoftserial() 1211.11Ssoda 1221.9Ssoda o it is better to always disable MIPS_INT_MASK_CLOCK. 1231.9Ssoda those are the points which should be fixed: 1241.9Ssoda mips_idle: li t0, (MIPS_INT_MASK | MIPS_SR_INT_IE) 1251.9Ssoda machdep.c: curpcb->pcb_context[11] = MIPS_INT_MASK | MIPS_SR_INT_IE; 1261.9Ssoda spl0() 1271.9Ssoda splnone() 1281.10Ssoda 1291.10Ssoda - MIPS_INT_MASK_CLOCK should be removed in someway 1301.1Sjonathan 1311.4Ssoda o fix kernel start address 1321.1Sjonathan 1331.11Ssoda o allocate PICA_TL_BASE and SONICBUF dynamically 1341.11Ssoda 1351.4Ssoda o merge new wscons 1361.1Sjonathan 1371.11Ssoda o fix mem_clusters[] usage. 1381.11Ssoda 1391.11Ssoda o test and merge soren's clean up about proc0.p_addr. 1401.11Ssoda 1411.4Ssoda o parse ARC BIOS configuration information and use it 1421.4Ssoda 1431.5Ssoda o omit __BROKEN_CONFIG_UNIT_USAGE 1441.5Ssoda 1451.5Ssoda o omit __SWAP_BROKEN in <mips/types.h> 1461.5Ssoda 1471.4Ssoda o fix implementation of DELAY(), clean up clock implementation 1481.4Ssoda 1491.11Ssoda o increase MAXPHYS to 64KB 1501.11Ssoda 1511.5Ssoda o asc.c scsi clock/NCR53CF94 handling clean up 1521.5Ssoda 1531.11Ssoda o if_sn.c 1541.11Ssoda 1551.11Ssoda - ether address handling clean up 1561.11Ssoda 1571.11Ssoda - bus_dma'fy 1581.11Ssoda - bus_space'fy 1591.11Ssoda - split frontend and backend 1601.11Ssoda - make this MI, and share with mac68k, newsmips/apbus 1611.4Ssoda 1621.5Ssoda o com_lbus.c clock handling clean up 1631.5Ssoda 1641.11Ssoda o intrcnt[] name cleanup 1651.11Ssoda 1661.13Ssoda o implement NCR 53c700(?) driver for NEC RISCserver 2200, 1671.13Ssoda RISCstation 2200 and RISCstation 2250. 1681.13Ssoda based on MI siop driver? 1691.5Ssoda 1701.6Ssoda o audio driver 1711.6Ssoda 1721.4Ssoda o use MI driver 1731.4Ssoda 1741.4Ssoda - use MI ncr53c9x driver instead of home grown asc 1751.4Ssoda 1761.4Ssoda - use MI bha driver instead of home grown btl 1771.4Ssoda 1781.4Ssoda - make fd driver MI, and share it with i386 1791.4Ssoda (contact christos about MI fd driver) 1801.1Sjonathan 1811.4Ssoda - make pccons MI, and share it with i386, 1821.4Ssoda or simply eliminate pccons 1831.5Ssoda 1841.6Ssoda - LKM 1851.5Ssoda 1861.6Ssoda o ARC boot device name -> NetBSD root device conversion 1871.5Ssoda 1881.6Ssoda o and missing MI devices 1891.6Ssoda ses?, lkm, vcoda, ... 1901.5Ssoda 1911.11Ssoda o bus_dmamap_sync: Hit_Invalidate and Hit_Write_Back cache operation 1921.11Ssoda 1931.11Ssoda o clean up ALEAF/NLEAF/NON_LEAF/NNON_LEAF in userland. 1941.11Ssoda 1951.11Ssoda o resolve "XXX" 1961.1Sjonathan 1971.1SjonathanLots of other things..... 198