summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2007-11-23use copyin and copyout to get the actual ata data in and out of the kernelDavid Gwynne
for the ata ioctl used by atactl. i dont know how this worked before.
2007-11-23Sanitize the use of timeouts:Marc Balmer
Instead of calling timeout_set(..., NULL, NULL) in attach routines and later timeout_del(...) timeout_set(..., func, arg) timeout_add(..., time) set the function and argument in the initial timeout_set() call and only use timeout_add(..., time) later. ok dlg, fgsch, krw, winiger
2007-11-23implement translation of the scsi vpd page for fetching a disks serialDavid Gwynne
number. lets bioctl against an atascsi disk see the serial number. continually requested by henning@
2007-11-23if we cant fetch the serial then fill it with "(unknown)".David Gwynne
2007-11-23kprintf -> printf, unbreaks USB_DEBUGMarc Winiger
"of course" deraadt@
2007-11-23t10 has a whole spec on doing SCSI to ATA translation called SAT. i wishDavid Gwynne
id known about it when i wrote atascsi. anyway. it says we should claim SPC-3 when we fake INQUIRY.
2007-11-23Degrade sensor status in an interrupt context.Marc Balmer
2007-11-23No need for process context to degrade the sensor status.Marc Balmer
Discussed with kettenis.
2007-11-23move nmea stuff to same place other line discs goTheo de Raadt
2007-11-22Split the cmmu code routines into single 88110 (MVME197LE) and 88110+88410Miod Vallat
combos (MVME197SP/DP), and implement supposedly smarter cache routines. There is still room for improvement, however, cache flush operation errata permissing. Tested on 197LE and 197DP.
2007-11-22Introduce an inline function to skip an instruction on 88110 and use itMiod Vallat
whenever necessary, instead of duplicating the same code 10+ times.
2007-11-22A decent workaround for errata #16. I have verified it gets triggered, theMiod Vallat
hard way.
2007-11-22Do not reenable interrupts for netsted interrupts if interrupts wereMiod Vallat
previously disabled on 88110, similar to a recent 88100 fix.
2007-11-22Do not bother saving the fault address registers if the fault statusMiod Vallat
registers are empty, to speed up a bit non-fault traps.
2007-11-22Do not redirect exception occuring when enabling the fpu to the error handler,Miod Vallat
for we are supposed to be able to recover from them.
2007-11-22Do not save a copy of the previous exception frame in a fixed memory location.Miod Vallat
2007-11-22disable i386 ipmi as well, because marco has an acpi interaction bug to fix ↵Theo de Raadt
still
2007-11-22On 88110, skip the faulting instruction in double_reg_fixup() if it canMiod Vallat
recover, otherwise we'll fault in a loop.
2007-11-22Quote a few errata to explain why odd things are done in oddly ways on 88110.Miod Vallat
2007-11-22Remove the cpu parameter from cmmu_set_sapr(), since it is only invokedMiod Vallat
for the current processor. And remove now unused cmmu_flush_data_page().
2007-11-22Remove explicit tlb flush from vmapbuf(), since pmap_enter() will takeMiod Vallat
care of this.
2007-11-22Add an extra parameter to pmap_remove_pte() to control whether it willMiod Vallat
flush tlbs or not. This is used by pmap_enter() to avoid flushing the same tlb entry twice.
2007-11-22Move the cmmu lock to 88200-specific code. 88110 MP code will use ipisMiod Vallat
and will not require such a lock.
2007-11-22Ansi-fy.Kenneth R Westerback
2007-11-22Ooops. Don't de-reference st until after it has been pointed at theKenneth R Westerback
correct st_softc. Fixes 'mt rewoffl' panics, as reported on misc@ by Jeff Ross and reproduced on my tape machine.
2007-11-22pass the carp ifp to rt_missmsg() when generating the RTM_ADD messagesHenning Brauer
so the resulting messages have ifindex set and the routing daemons can correctly indentify that route as connected. ok mcbride
2007-11-22pf_src_tree_remove_state() is called upon pf_insert_state() failures.Henning Brauer
but pf_insert_state does fiddle with the state's state_key pointer - it has too -, and can leave it at NULL. pf_src_tree_remove_state() tried to grab the protocol from it. fortunately that is superfluous here, since tcp_est will never be set in the non-tcp case - it is only touched in pf_src_connlimit which in turn is only ever called from pf_test_tcp(). ok mcbride + identical diff from pascoe, but he was a few minutes late :)
2007-11-22Factor out the virtual host portion of carp into a separate structMarco Pfatschbacher
that is kept in a list per carp interface. This is the huge first step necessary to make carp load balancing nice and easy. One carp interface can now contain up to 32 virtual host instances. This doesn't do anything useful yet, but here is how an ifconfig for multiple entries now looks like: # ifconfig carp2 carpnodes 5:0,6:100 192.168.5.88 carp2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:00:5e:00:01:05 carp: carpdev sis0 advbase 1 state MASTER vhid 5 advskew 0 state BACKUP vhid 6 advskew 100 groups: carp inet 192.168.5.88 netmask 0xffffff00 broadcast 192.168.5.255 OK mcbride@
2007-11-21Use bcopy instead of assignment to avoid a possible misaligned access.Miod Vallat
2007-11-21TypoMiod Vallat
2007-11-21simplify sppp_chap_scr() now that we are using arc4random_bytes()Can Erkin Acar
2007-11-21Better cache invalidation functions (still horribly unoptimal, but lessMiod Vallat
broken now).
2007-11-21Don't bother flushing caches in pmap_{copy,zero}_page(), since our cachesMiod Vallat
are physically addressed. Might be revisited for 88110 SMP, but we're not there yet.
2007-11-21Move pmap_set_modify() prototype to a header fileMiod Vallat
2007-11-21Move external interrupt and ast handling from m881[01]0_trap() to theirMiod Vallat
own functions, which do not need to be processor-specific. This speeds up the exception return sequence a bit.
2007-11-21A really horrible fix for sigreturn on 88110. This will probably be replacedMiod Vallat
by something better in the future, but for now this will do. Just don't tell anyone I did this.
2007-11-21Collect subid #defines at the top.Deanna Phillips
2007-11-21attach Logitech QuickCam Pro 5000 as ugen for nowRobert Nagy
2007-11-21regenRobert Nagy
2007-11-21add Logitech QuickCam Pro 5000Robert Nagy
2007-11-21Remove superfluous function declarationBret Lambert
ok jsg@
2007-11-20A line got lost while hand-editing diffs...Miod Vallat
2007-11-20On 88110, use a shorter path in pmap_is_modified(), since we performMiod Vallat
accurate mod tracking through the write fault traps; there is no need to walk the pv list since, unlike on 88200, hardware does not set PG_M or PG_U in page table entries.
2007-11-20Move 88110 trap-on-write processing from two duplicated sections in trap.c toMiod Vallat
a single function in pmap.c, which will do the right thing and also perform mod/ref vm_page flags accounting.
2007-11-20Fix MP locking issues when processing data access faults on 88110, similarMiod Vallat
to the fix already applied to 88100.
2007-11-20Overhaul of the pmap debug messages. They now provide slightly betterMiod Vallat
information, and are easier to parse. While there, a few never-happening checks move from option DIAGNOSTIC to option PMAPDEBUG.
2007-11-20Fix setregs() on 88110, so that binaries do not skip their first instruction.Miod Vallat
Makes binaries beyond init(8) running on MVME197, to some extent.
2007-11-20In data_access_emulation(), make sure that if we want the pipeline replayMiod Vallat
to be disabled, this effectively disables the three slots, instead of only the first. This will only make (rare) things faster.
2007-11-20Fix possible mbuf leak on error. ok reyk@Can Erkin Acar
2007-11-19armish and zaurus tooTheo de Raadt