summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2003-12-29Since pmap_activate() does a complete user tlb flush, it is not necessaryMiod Vallat
to do another one in process.S...
2003-12-29Properly recognize SiS CPU family;Alexander Yurchenko
tested by Ian Zagorskih <ianzag@megasignal.com>. ok mickey@
2003-12-29correct probe console printf; miod okTheo de Raadt
2003-12-28do not use MALLOC on variable sized allocationsMichael Shalayeff
2003-12-28Crank default data and stack limits, align with m68k values.Miod Vallat
2003-12-28Give i/o's requeued as a result of aborts, timeouts, etc. a status ofKenneth R Westerback
XS_RESET rather than XS_NOERROR. This prevents unfinished i/o's from being treated as successfully completed ones. Don't bother setting SCB_REQUEUE in scb->flags since the scb is immediately thrown away. Make setting TAG_ENB a little more correct by doing it somewhere both the initial scb setup and subsequent tag resets have access to. Fix a typo. ok miod "I'm not an authoritative person on SCSI issues... though I'm learning!" @.
2003-12-28Having vmel and vmes keep another pointer to their parent in their softc isMiod Vallat
just plain silly!
2003-12-28dma_cachectl() takes a va and computes the pa from it, no need to invoke itMiod Vallat
a second time with the pa...
2003-12-28add ian dowse's dirhash code from freebsd.Ted Unangst
by building a hash table for large directories, lookups and deletions become about constant time. this is an excellent improvement for dirs with 10k or more files. some more cleanup to come, but the code works. enabled with option UFS_DIRHASH testing brad millert otto
2003-12-28Add a new PFSYNC_ACT_UREQ message type.Ryan Thomas McBride
A pfsync system which recieves a partial update for a state it cannot find can now request a full version of the update, and insert it. pfsync'd firewalls now converge more gracefully if one is missing some states (due to reset, lost insert packets, etc).
2003-12-28new type for dirhashTed Unangst
2003-12-28add dirhash, and wire in rwlocks used by dirhashTed Unangst
2003-12-28multiple include protectionTed Unangst
2003-12-28make check for too large allocations earlier, instead of fiddling with it.Ted Unangst
less error prone (no wraparound). no real functional change though. ok markus tdeval
2003-12-28More optimizations borrowed from the m68k pmap:Miod Vallat
- in loops over va space, do the empty segment test only once per segment - do not flush tlb for wiring-only changes While there: - in pmap_remove_all(), do not treat wired pages special. - move more paranoid tests from DIAGNOSTIC to DEBUG.
2003-12-27Replace the MVME376 driver from a homemade and dusty if_ve driver toMiod Vallat
a ``regular'' if_le driver, sharing the common am7990 code.
2003-12-27Handle odd sizes in d16_bcopy() and d16_bzero().Miod Vallat
2003-12-27Do not print vaddr in vme attachments.Miod Vallat
2003-12-27Basic cleaning and KNF; no functional change.Miod Vallat
2003-12-26A simple compile-time micro-optimization in pmap_protect() forMiod Vallat
non-hp300 flavours.
2003-12-26Merge the attachment part and the real work part of the SCSI drivers inMiod Vallat
one file per driver.
2003-12-26- use 1/2 space for rijndael context in ipsecMarkus Friedl
- rijndael_set_key_enc_only() sets up context for encryption only - rijndael_set_key() always sets up full context - rijndaelKeySetupDec() gets back original protoype - uvm: use _enc_only() interface with hshoexer@, ok deraadt@
2003-12-25Enable vx(4) again - while it still awaits more tests, it can attach withoutMiod Vallat
affecting a multiuser boot.
2003-12-25Provide common D16 vmespace block access functions, instead of vs and vx eachMiod Vallat
rolling their own. Use them more cleverly in vx, in order to get the driver to at least attach and frob chips. Not tested besides multiuser boot (hence ttyflags -a), and checking cu(1) connects. More testing to come once I remember where I have hidden the 332XT transition module...
2003-12-25Remove duplicate ident strings.Miod Vallat
2003-12-25Disable vx* for now.Miod Vallat
2003-12-25Floating-point status register exception bits are supposed to be maintainedMiod Vallat
by software, so be sure to set them both the precise _and imprecise_ floating point exception handlers, whatever the state of the HANDLER define is (which is anyway, soon to be hitting the dust in a cvs tree near you...) This allows userland software to really trust fpgetsticky() results.
2003-12-24Sync ahc with NetBSD, which was in turn updated from FreeBSD by PascalKenneth R Westerback
Renauld of Network Storage Solutions, Inc. Many fixes, wider device support. In particular, the notorious 'Target 0' problem seems to be fixed. Does *not* include any updates to isa or eisa code beyond what was necessary to compile. Known issues: 1) Tagged Queuing is probably not optimal. 2) PPR negotiation may not be fully functional. 3) No support yet for freezing devices or channels. 4) The mechanism for preventing 'A' and 'B' channel confusion during probe can fail if scsibus > 254 found. 5) Requeuing I/O's not working. A workaround will be committed almost immediately. At the moment timeouts, SCSI message rejects, aborting SCB's and trying to freeze a device may cause incomplete i/o's to be reported as complete. 6) Verbosity and probe messages need work. 7) Last disk on bus seems to go through an extra re-negotiation. 8) >16 devices on an adapter will trigger the usual problems of total openings exceeding available SCB's under heavy load. Tested by deraadt@, beck@, miod@, naddy@, drahn@, marc@ amoung others. ok deraadt@.
2003-12-24Sync ahc with NetBSD, which was in turn updated from FreeBSD by PascalKenneth R Westerback
Renauld of Network Storage Solutions, Inc. Many fixes, wider device support. In particular, the notorious 'Target 0' problem seems to be fixed. Does *not* include any updates to isa or eisa code beyond what was necessary to compile. Known issues: 1) Tagged Queuing is probably not optimal. 2) PPR negotiation may not be fully functional. 3) No support yet for freezing devices or channels. 4) The mechanism for preventing 'A' and 'B' channel confusion during probe can fail if scsibus > 254 found. 5) Requeuing I/O's not working. A workaround will be committed almost immediately. At the moment timeouts, SCSI message rejects, aborting SCB's and trying to freeze a device may cause incomplete i/o's to be reported as complete. 6) Verbosity and probe messages need work. 7) Last disk on bus seems to go through an extra re-negotiation. 8) >16 devices on an adapter will trigger the usual problems of total openings exceeding available SCB's under heavy load. Tested by deraadt@, beck@, miod@, naddy@, drahn@, marc@ amoung others. ok deraadt@.
2003-12-24Sync ahc with NetBSD, which was in turn updated from FreeBSD by PascalKenneth R Westerback
Renauld of Network Storage Solutions, Inc. Many fixes, wider device support. In particular, the notorious 'Target 0' problem seems to be fixed. Does *not* include any updates to isa or eisa code beyond what was necessary to compile. Known issues: 1) Tagged Queuing is probably not optimal. 2) PPR negotiation may not be fully functional. 3) No support yet for freezing devices or channels. 4) The mechanism for preventing 'A' and 'B' channel confusion during probe can fail if scsibus > 254 found. 5) Requeuing I/O's not working. A workaround will be committed almost immediately. At the moment timeouts, SCSI message rejects, aborting SCB's and trying to freeze a device may cause incomplete i/o's to be reported as complete. 6) Verbosity and probe messages need work. 7) Last disk on bus seems to go through an extra re-negotiation. 8) >16 devices on an adapter will trigger the usual problems of total openings exceeding available SCB's under heavy load. Tested by deraadt@, beck@, miod@, naddy@, drahn@, marc@ amoung others. ok deraadt@.
2003-12-24Sync ahc with NetBSD, which was in turn updated from FreeBSD by PascalKenneth R Westerback
Renauld of Network Storage Solutions, Inc. Many fixes, wider device support. In particular, the notorious 'Target 0' problem seems to be fixed. Does *not* include any updates to isa or eisa code beyond what was necessary to compile. Known issues: 1) Tagged Queuing is probably not optimal. 2) PPR negotiation may not be fully functional. 3) No support yet for freezing devices or channels. 4) The mechanism for preventing 'A' and 'B' channel confusion during probe can fail if scsibus > 254 found. 5) Requeuing I/O's not working. A workaround will be committed almost immediately. At the moment timeouts, SCSI message rejects, aborting SCB's and trying to freeze a device may cause incomplete i/o's to be reported as complete. 6) Verbosity and probe messages need work. 7) Last disk on bus seems to go through an extra re-negotiation. 8) >16 devices on an adapter will trigger the usual problems of total openings exceeding available SCB's under heavy load. Tested by deraadt@, beck@, miod@, naddy@, drahn@, marc@ amoung others. ok deraadt@.
2003-12-24Sync ahc with NetBSD, which was in turn updated from FreeBSD by PascalKenneth R Westerback
Renauld of Network Storage Solutions, Inc. Many fixes, wider device support. In particular, the notorious 'Target 0' problem seems to be fixed. Does *not* include any updates to isa or eisa code beyond what was necessary to compile. Known issues: 1) Tagged Queuing is probably not optimal. 2) PPR negotiation may not be fully functional. 3) No support yet for freezing devices or channels. 4) The mechanism for preventing 'A' and 'B' channel confusion during probe can fail if scsibus > 254 found. 5) Requeuing I/O's not working. A workaround will be committed almost immediately. At the moment timeouts, SCSI message rejects, aborting SCB's and trying to freeze a device may cause incomplete i/o's to be reported as complete. 6) Verbosity and probe messages need work. 7) Last disk on bus seems to go through an extra re-negotiation. 8) >16 devices on an adapter will trigger the usual problems of total openings exceeding available SCB's under heavy load. Tested by deraadt@, beck@, miod@, naddy@, drahn@, marc@ amoung others. ok deraadt@.
2003-12-24Sync ahc with NetBSD, which was in turn updated from FreeBSD by PascalKenneth R Westerback
Renauld of Network Storage Solutions, Inc. Many fixes, wider device support. In particular, the notorious 'Target 0' problem seems to be fixed. Does *not* include any updates to isa or eisa code beyond what was necessary to compile. Known issues: 1) Tagged Queuing is probably not optimal. 2) PPR negotiation may not be fully functional. 3) No support yet for freezing devices or channels. 4) The mechanism for preventing 'A' and 'B' channel confusion during probe can fail if scsibus > 254 found. 5) Requeuing I/O's not working. A workaround will be committed almost immediately. At the moment timeouts, SCSI message rejects, aborting SCB's and trying to freeze a device may cause incomplete i/o's to be reported as complete. 6) Verbosity and probe messages need work. 7) Last disk on bus seems to go through an extra re-negotiation. 8) >16 devices on an adapter will trigger the usual problems of total openings exceeding available SCB's under heavy load. Tested by deraadt@, beck@, miod@, naddy@, drahn@, marc@ amoung others. ok deraadt@.
2003-12-24Murphy's law applied to BSD:Miod Vallat
Every non-KNF file in the source tree contains at least one severe bug. KNF and a timid start at cleaning, but not very far, so there is no functional change at the moment. This code is still pathetic for now, but it sorta works and the price was right.
2003-12-24Sync ahc with NetBSD, which was in turn updated from FreeBSD by PascalKenneth R Westerback
Renauld of Network Storage Solutions, Inc. Many fixes, wider device support. In particular, the notorious 'Target 0' problem seems to be fixed. Does *not* include any updates to isa or eisa code beyond what was necessary to compile. Known issues: 1) Tagged Queuing is probably not optimal. 2) PPR negotiation may not be fully functional. 3) No support yet for freezing devices or channels. 4) The mechanism for preventing 'A' and 'B' channel confusion during probe can fail if scsibus > 254 found. 5) Requeuing I/O's not working. A workaround will be committed almost immediately. At the moment timeouts, SCSI message rejects, aborting SCB's and trying to freeze a device may cause incomplete i/o's to be reported as complete. 6) Verbosity and probe messages need work. 7) Last disk on bus seems to go through an extra re-negotiation. 8) >16 devices on an adapter will trigger the usual problems of total openings exceeding available SCB's under heavy load. Tested by deraadt@, beck@, miod@, naddy@, drahn@, marc@ amoung others. ok deraadt@.
2003-12-24Since we have real bus error faults, and handle them as such, always treatMiod Vallat
uvm_fault() returning EACCES as a segmentation fault rather than a bus error, whatever address the fault is at. As a result, this correctly delivers SIGSEGV, rather than SIGBUS, when attempting to write to a page with only PROT_READ permissions.
2003-12-24syncTodd T. Fries
2003-12-24additional camera device; ok deraadt@Todd T. Fries
2003-12-24Make error message more informative by showing bad value that causedKenneth R Westerback
the error to be emitted. ok miod@.
2003-12-24setperf and cpuspeed support; ok deraadt@Markus Friedl
2003-12-24cpu_cpuspeed has a proper external def, remove this one, suggested by teduDale Rahn
2003-12-24kill unused defineMichael Shalayeff
2003-12-24support cpu_cpuspeed on macppc.Dale Rahn
2003-12-23provide cpuspeed fluffMichael Shalayeff
2003-12-23Data access faults occuring inside copyin() or copyinstr() would getMiod Vallat
treated as usermode traps, because they reference a user space address. However, the tests for pcb_onfault being set were only present in the kernelmode traps handling. Since pcb_onfault is only set in those functions, move the associated recovery code from the kernelmode part to the usermode part, and only attempt to jump to pcb_onfault() if the access could not be resolved by uvm_fault() earlier. This lets things like setlogin(NULL) correctly return EFAULT, rather than killing the process with SIGSEGV, and incidentally lets sendmail in a non-default configuration run.
2003-12-23make it a righteous print of the bootpath (tail gravity it has that is)Michael Shalayeff
2003-12-23recognize several more wi@usb devices.Dale Rahn
2003-12-23syncDale Rahn
2003-12-23Addional wi@usb devices. ok deraadt@Dale Rahn
2003-12-23do not panic if there is no IPL_IMPMichael Shalayeff