summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2006-05-28This commit changes the interpret_sense routine for st to catch theBob Beck
"Unit Becoming Ready" case, and just like ch, allow the driver to continue waiting, as long as the unit continues to promise us that the unit is becoming ready. This avoids the case of slow tape drives taking forever to bring media online requiring a huge retry count being set for all commands, and like ch, will wait indefinately only in this case. All other cases are handled as before. ok krw@
2006-05-28Add support for NFS mounts to be from non-reserved ports:Anil Madhavapeddy
- new sysctl vfs.nfs.privport to require NFS mount requests to be on reserved ports when set to 1 (the default). - mountd now automatically sets the sysctl depending on the -n flag. - add mountd_flags to rc.conf to enable the -n flag at boot. deraadt@ ok
2006-05-28In the absence of a coherent concept of 'RAW' tape devices, pass allKenneth R Westerback
unhandled ioctl requests to scsi_do_ioctl() like ch.c does. Previously only the mythical 'control devices' with certain minor numbers would pass the requests along. ok beck@
2006-05-28Whack a 'control device' leftover. Actually save the new density, etc.Kenneth R Westerback
that was just accepted by the device, no matter what the minor is. ok beck@
2006-05-28minor nit, use CPU ID instead of FPU ID for BTLB parameters after passingMartin Reindl
all kludges
2006-05-28make sure the IMR values are visible when we drop back into the promJason Wright
2006-05-28oops, nuke debugging stuffJason Wright
2006-05-28- Implement schizo_intr_map (mainly to | in the agentid).Jason Wright
- get correct IGN for intr_establish all of this is from kettenis and henric, I'm just cleaning it up and committing the easy bits
2006-05-28Remove obvious EST table dupe: Pentium M 733 and Pentium M 773 (VID #H),Dimitry Andric
and zap trailing spaces. No functional change.
2006-05-28junk to read and write configuration pages.David Gwynne
2006-05-28We don't have 'control devices' for st. Nor are we likely to get anyKenneth R Westerback
in the foreseeable future. Eliminate half-baked, semi-operational code that tried to handle such devices. People who had stumbled across the previous control-like behaviour of erstX devices should not be relying on these semantics. Suggested by deraadt@. ok beck@
2006-05-28back out my last commit. art pointed out that sysctl cannot sleep whenDavid Gwynne
copying out to userland, so my fix was useless bloat that didnt really do anything. the problem instead appears to be a use after free in a driver rather than bad interactions with sysctl.
2006-05-28ST_NEW_MOUNT was set/reset in a number of places but only examined insideKenneth R Westerback
a #if notyet/#endif block. It's been 'notyet' since 1995. Eliminate it. 'flense!' beck@
2006-05-28Can't call directly back into the prom if we "exit" at the rootJason Wright
device prompt. We need to call shutdownhooks which will set the sab back into the mode the prom likes (I hate this chip)
2006-05-28Change the timedelta sensor descritpion so that the first four bytes containMarc Balmer
the NTP identifier (filled with spaces), followed by a space and the station name (which might be the same as the NTP identifier). All timedelta sensor have to follow this scheme as OpenNTPD needs it. Requested by henning.
2006-05-28don't #undef SDMMC_DEBUGUwe Stuehler
2006-05-28- if the "upa-portid" property doesn't exist, try "portid" (schizo)Jason Wright
- hack enough of autoconf to get psycho and schizo working with device_register (autoconf appears to work now for schizo machines).
2006-05-28sync, enable and move twe(4) out from untested on alphaMartin Reindl
2006-05-28Fix open(2) semantics for ch(4) to not be completely on fresh minty crack:Bob Beck
1) Don't use SCSI_IGNORE_NOT_READY when doing test_unit ready to wait for the device to come up. 2) use SCSI_IGNORE_ILLEGAL_REQUEST when doing test_unit_ready to wait for the device to come up (just as is done in st(4)) 3) add a ch_interpret_sense routing to perform special handling of the case where the unit is in the process of becoming ready. Hope springs eternal, that if the device tells us it is trying to become ready, then we should wait for it to do so, however long it takes (and on tape library scans this can take a while - i.e. a few minutes for large libraries). The custom handler ensures that the retry count is not decremented in this case and this case only. ok krw@
2006-05-28Support for standard SD host controllers like the Ricoh 5C822, a smallUwe Stuehler
generic bus layer, and SCSI emulation for SD/MMC memory cards.
2006-05-28Add PCATCH to tsleep flags when a scsi command is waiting for an openingBob Beck
or is waiting to be retried, abort it when a signal interrupts the tsleep(). This fixes what was commited in version 1.92 to work properly. ok krw@
2006-05-28make the ISR bits visible so we can poll them in cngetc (w/out cnpollc).Jason Wright
I still hate this chip.
2006-05-28Allow len == 1 in systrace_fname(), so systraced processes can proceedPedro Martelletto
their *stat() calls, for example, and get ENOENT, which is expected for "", instead of a forced EINVAL. Fixes the spurious 'rm: : Invalid argument' warnings when building with option USE_SYSTRACE, reported on ports@. Okay provos@ sturm@ deraadt@
2006-05-28Actually remove the device id from events.Michael Knudsen
2006-05-28unbrek tree by syncing protoypes to hotplug.cHenning Brauer
2006-05-28remove the dev/isa/isavar.h include, as it is not neededFelix Kronlage
ok miod@, martin@
2006-05-28remove sc_ic member from struct com_softc as it is not used anywhereFelix Kronlage
ok miod@, martin@
2006-05-28Remove device id from hotplug events.Michael Knudsen
ok henning
2006-05-28do not print "root on ..." twice for the -a case, also cope with systemsTheo de Raadt
configured for 'root on nfs'
2006-05-28Configure network devices at ipl 3, not ipl 1.Miod Vallat
2006-05-28always set if_hardmtu.Brad Smith
2006-05-28Remove dead code; free commit on behalf of dlg@Uwe Stuehler
2006-05-28Use TEST_READY_RETRIES_TAPE instead of TEST_READY_RETRIES_DEFAULT,Kenneth R Westerback
thus allowing tape drives more time to become ready. ok beck@
2006-05-28more fallout from the sensors: Every single ramdisk got broken.Theo de Raadt
2006-05-28Use bit 23 of the device minor to indicate a control mode device. AKenneth R Westerback
control mode device can be opened but does not permit any i/o. Currently no such devices are created by MAKEDEV. However the previous code used bits 0 and 1 of the minor being set to indicate a control device. This conflicted with other uses of device minors to indicate things like rewind and eject. This behaviour would result in an open of a newly loaded tape drive failing until the tape was successfully mounted as a side effect of another command like 'mt status'. ok beck@
2006-05-28don't hardcode the iova... it uses the same scheme as the sbus machinesJason Wright
(cd0 at scsibus0 at siop0 now attaches on the blade2k)
2006-05-28formattingJason Wright
2006-05-28Fix multicast and broadcast over gre(4) tunnels. Clear the M_MCAST and M_BCASTClaudio Jeker
mbuf flags so that the packet is sent out with a normal link local address instead of a multicast or broadcast address. OK brad@
2006-05-28Spacing in vfs_sysctl()Pedro Martelletto
2006-05-28Nuke unused VFSGEN_MAXID definePedro Martelletto
2006-05-28intrducing device type DV_SENSOR turned out to be a bad idea as itHenning Brauer
affects way more than just hotplug messages. remove DV_SENSOR and use DV_DULL for the moment. proper solution coming. discussed with deraadt mk jason
2006-05-28regenJonathan Gray
2006-05-28Add a few more devices from submitted dmesgs.Jonathan Gray
2006-05-28more hotplug fallout: add DV_SENSOR to the device type switchJason Wright
2006-05-28Enable adaptive timeouts by default, with adaptive.start of 60% of theRyan Thomas McBride
state limit and adaptive.end of 120% of the state limit. Explicitly setting the adaptive timeouts will override the default, and it can be disabled by setting both adaptive.start and adaptive.end to 0. ok henning@
2006-05-28pass the reply from the hardware via the ccb rather than on the stack toDavid Gwynne
the function handling the completion. this means that the completion function can do nothing with the reply, instead leaving it up to the requester to deal with.
2006-05-28need <sys/device.h> or it doesn't compile on sparc64Jason Wright
2006-05-28new field at end of struct, discussed with theoHenning Brauer
2006-05-28Only preemptively increase the replay counter for outbound TDBs.Ryan Thomas McBride
Another ipsec failover fix from nathanael at polymorpheus dot com. ok hshoexer@
2006-05-28Include device id in hotplug events. This will be used by ntpd to checkMichael Knudsen
sensors on attach/detach. hotplugd changes following in a minute. ok henning.