summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k
AgeCommit message (Collapse)Author
2009-07-30Make sure the BUS_SPACE_BARRIER_xxx constants are all non-zero and can beMiod Vallat
or'ed together, even on platforms where bus_space_barrier() ignores the barrier argument yet.
2009-07-26Make sure all platforms understand the flags argument of bus_space_map() andMiod Vallat
bus_space_alloc() as a bitmask of flags, and not a boolean controlling cacheability; and make sure the three MI BUS_SPACE_MAP_xxx values documented in the manual page are defined on all platforms as well.
2009-06-15Back out all the buffer cache changes I committed during c2k9. This reverts ↵Bob Beck
three commits: 1) The sysctl allowing bufcachepercent to be changed at boot time. 2) The change moving the buffer cache hash chains to a red-black tree 3) The dynamic buffer cache (Which depended on the earlier too). ok on the backout from marco and todd
2009-06-07Do not look at the avail_{start,end} members from vm_physmem[] anymore.Miod Vallat
These values were used to eventually pass ranges to uvm_pglistalloc(), which has been fixed to correctly skip no-memory ranges a lot of time ago; however mvme68k would still use the computed range and osiop would no longer attach; this repairs it.
2009-06-04More fallback from struct disklabel changes, yawnMiod Vallat
2009-06-03add kern.bufcachepercent sysctl to allow adjusting the buffer cacheBob Beck
size on a running system. ok art@, oga@
2009-06-03Arla client rename from xfs to nnpfs for later upgrades. Tested on various ↵Janne Johansson
arches. ok todd@ beck@
2009-05-31Remove BUS_DMAMEM_NOSYNC definition. Its name is not consistent withMiod Vallat
other BUS_DMA_xxx flag names, and nothing uses it. ok many@
2009-05-31Fix definition of CL_FIFO_MAX to match what the hardware can do; this inMiod Vallat
turn fixes a stack smash in cl_rxintr().
2009-04-20Add a BUS_DMA_ZERO flag for bus_dmamem_alloc() to return zeroed memory.Owain Ainsworth
Saves every damned driver calling bzero(), and continues the M_ZERO, PR_ZERO symmetry.
2009-04-14Convert the waitok field of uvm_pglistalloc to "flags", more will be added soon.Owain Ainsworth
For the possibility of sleeping, the first two flags are UVM_PLA_WAITOK and UVM_PLA_NOWAIT. It is an error not to show intention, so assert that one of the two is provided. Switch over every caller in the tree to using the appropriate flag. ok art@, ariane@
2009-04-12need nvram to link; ok miodTheo de Raadt
2009-03-26Remove cpu_wait(). It's original use was to be called from the reaper soOwain Ainsworth
MD code would free resources that couldn't be freed until we were no longer running in that processor. However, it's is unused on all architectures since mikeb@'s tss changes on x86 earlier in the year. ok miod@
2009-03-25Nuke old useless define. Miod was ok with the idea.Tobias Weingartner
2009-03-15Generic softinterrupt code for m68k platforms, now copied from m88k.Miod Vallat
2009-03-01Support for MVME141 boards. Tested with both VME and VSB memory boardsMiod Vallat
(and MVME327 SCSI and MVME376 Ethernet, to provide a complete system).
2009-03-01Tweak pccspeed() to not report 33MHz boards as 50MHz (until better code isMiod Vallat
used there).
2009-03-01Support for MVME165 board - code written in april 2006, eventually debuggedMiod Vallat
last month.
2009-03-01Fix bus_space_map() on intio space, it is not mapped 1:1...Miod Vallat
2009-03-01Clean up match routines vs board id; this should give 166, 172 and 176 aMiod Vallat
change to work better.
2009-02-21dma_cachectl() bye-bye.Miod Vallat
2009-02-21No need to use special copy{from,to}buf for MVME376, the board's buffersMiod Vallat
are mapped uncached anyway.
2009-02-21Previous delay() fix broke 1x2 boards. Make sure delay() works on themMiod Vallat
before mc attaches, as intended.
2009-02-18Fix thinko in list traversal in vsbic_cmd_ccb().Miod Vallat
2009-02-18Better bus_dmamap_sync() routine, lets vsbic(4) run on 68060 systems, soMiod Vallat
let it attach on them now.
2009-02-18delay() would only work as intended after clock0 attached. Initialize theMiod Vallat
delay strategy variable in locore now; this fixes the occasional console output artefacts on MVME177.
2009-02-18Check for nofault being set in the 68030 bus error handler, too. This makesMiod Vallat
bad[pv]addr work again on MVME147.
2009-02-18Repair DCI[ASU] operation on 68030 processors, broken by accident in r1.53Miod Vallat
2009-02-17Add real bus_space and bus_dma to mvme68k, so that it can benefit fromMiod Vallat
recent driver work; this gives us better osiop and vs drivers, vsbic (although currently disabled on 68060 boards until more bugs are fixed), and the ability to boot and root off vs and vsbic. Existing code is not modified and still uses memory mapped structures; this might change eventually as more code gets factorized and moved to MI land.
2009-02-17Forgot to crank version after ethernet buffer address change.Miod Vallat
2009-02-17Move ethernet buffers higher in memory, just below our text, to allowMiod Vallat
larger bsd.rd to load correctly. Tested on MVME147 (if_le) and MVME167 (if_ie).
2009-02-16Extend the scsi_adapter minphys() callback to take a struct scsi_link *Miod Vallat
as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
2009-01-25Remove /dev/drum and related code.Miod Vallat
2009-01-11Fix a sed bug in the makefile's depend target.Paul Irofti
What happened was that the output of mkdep was fed to a sed expression that trimmed a bit more than required and also failed to work when attempting to do make depend with pcc. Example: genassym_c.o: /tmp/genassym.whatever ../../../../../sys/param.h \ was changed to: assym.h: \ but what was intended was: assym.h: ../../../../../sys/param.h \ For the pcc -M output things were a bit different and after the make depend the genassym entry would still remain and make would fail. This affected all platforms except amd64 and sgi. Okay miod@.
2008-11-28Eliminate the redundant bits of code for MTU and multicast handlingBrad Smith
from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
2008-11-25Another bunch of TRY_AGAIN_LATER -> NO_CCB when no I/O could be started.Kenneth R Westerback
"looks sane to me" marco@
2008-10-02First step towards cleaning up the Ethernet driver ioctl handling.Brad Smith
Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch case. Thus allowing drivers to define their own ioctl handlers and then falling back on ether_ioctl(). The only functional change this results in at the moment is having all Ethernet drivers returning the proper errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown ioctl's. Shrinks the i386 kernels by.. RAMDISK - 1024 bytes RAMDISKB - 1120 bytes RAMDISKC - 832 bytes Tested by martin@/jsing@/todd@/brad@ Build tested on almost all archs by todd@/brad@ ok jsing@
2008-09-12SCSI_DATA_UIO is never used. Code which checks for it is either dead orMiod Vallat
commented out, remove it. Unifdef TFS while there. ok marco@ krw@
2008-08-05One last duplicate scsi initiator report in dmesg.Miod Vallat
2008-07-30Do not print adapter target id on the attachment line, now that scsibus(4)Miod Vallat
prints it. These should be the last offenders.
2008-07-21nam2blk[] needs a "vnd" entry for some things (like softraid)Todd T. Fries
ok marco@ no objection miod@ need this for regress djm@ no objection krw@
2008-07-18Add a macro that clears the want_resched flag that need_resched sets.Artur Grabowski
Right now when mi_switch picks up the same proc, we didn't clear the flag which would mean that every time we service an AST we would attempt a context switch. For some architectures, amd64 being probably the most extreme, that meant attempting to context switch for every trap and interrupt. Now we clear_resched explicitly after every context switch, even if it didn't do anything. Which also allows us to remove some more code in cpu_switchto (not done yet). miod@ ok
2008-06-27Clear swap encryption keys before dumping a kernel image.Miod Vallat
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-06-22One last forgotten FREE().Miod Vallat
2008-06-12Bring biomem diff back into the tree after the nfs_bio.c fix went in.Theo de Raadt
ok thib beck art
2008-06-11back out biomem diff since it is not right yet. Doing very largeTheo de Raadt
file copies to nfsv2 causes the system to eventually peg the console. On the console ^T indicates that the load is increasing rapidly, ddb indicates many calls to getbuf, there is some very slow nfs traffic making none (or extremely slow) progress. Eventually some machines seize up entirely.
2008-06-10Fix buffer cache pending read statistics by ensuring we can identifyBob Beck
biowait() reads that do *not* come from the buffer cache - we use the B_RAW flag to identify these at art's suggestion - since it makes sense and the flag was not being used. this just flags all these buffers with B_RAW - biodone already ignores returned buffers marked B_RAW. ok art@
2008-06-08Make sure to cnpollc(1)/cnpollc(0) around cngetc() or getsn() calls.Miod Vallat
2008-06-08alpha/conf/RAMDISKTheo de Raadt