Age | Commit message (Collapse) | Author | |
---|---|---|---|
2007-03-21 | A polled xfer has completed and been put by the time ata_cmd returns, so | Christopher Pascoe | |
don't use xa->flags afterwards. | |||
2007-03-21 | no need to include uvm_extern.h here | Martin Reindl | |
2007-03-21 | Map the kernel text read only. Because we can. | Miod Vallat | |
2007-03-21 | Uninitialized variable in db_write_bytes(). | Miod Vallat | |
2007-03-21 | typo | Pedro Martelletto | |
2007-03-21 | Remove the v_interlock simplelock from the vnode structure. | Thordur I. Bjornsson | |
Zap all calls to simple_lock/unlock() on it (those calls are #defined away though). Remove the LK_INTERLOCK from the calls to vn_lock() and cleanup the filesystems wich implement VOP_LOCK(). (by remvoing the v_interlock from there calls to lockmgr()). ok pedro@, art@, tedu@ | |||
2007-03-21 | Add support for mounting arbitrary sessions, from Enache Adrian | Pedro Martelletto | |
OK deraadt@ mjc@ canacar@ krw@, with much input from Enache himself | |||
2007-03-21 | NCQ commands generate a "Set Device Bits" FIS upon completion. Enable the | Christopher Pascoe | |
generation of interrupts when they arrive. | |||
2007-03-21 | Add support for issuing NCQ commands via AHCI. | Christopher Pascoe | |
Because you cannot have NCQ commands active at the same time as standard (non-queued) commands, we must introduce a queueing scheme into the driver. This scheme ensures that a standard command is only issued to the drive when all currently active NCQ commands have finished, and that NCQ command issue is delayed when we have a pending standard command. Additionally, the queueing scheme adds a constraint to ensure that there are never more than two standard commands issued on a port at once. This should ensure that commands become active in the order they were submitted (regardless of their command slot number) both initially and when the port is reactivated after error recovery. These points mean that issuing a standard command effectively serialises the port, which may help us implement meaningful I/O barriers in the future. | |||
2007-03-21 | Basic support for JMicron PATA. | Jonathan Gray | |
JMB368 supported for now, multi port cards that share PATA/SATA need to do a complicated internal channel mapping dance I plan to look into next. ok grange@ | |||
2007-03-21 | dont print if there is a device found or not, you can figure that out by | David Gwynne | |
seeing things attach to the scsibus. ok pascoe@ | |||
2007-03-21 | ahci seems to work fine on i386. thanks to marc winiger for figuring that | David Gwynne | |
out for me. | |||
2007-03-21 | Split tsleep into pieces. Instead of doing everything in a large "shove | Artur Grabowski | |
everything into it" function, there are now 6 stages of tsleep with an on-stack (remember that kernel stacks are not swappable now?) structure that keeps track of the state. This way we first setup the sleep, setup the events that might break the sleep, finish the sleep (actually sleeping) and then take care of the events that could wake us up. In the future this will make it easier to implement functionality like: setup sleep, release lock or check some condition, finish sleep, in a race-free way and without duplicating or complicating the tsleep function too much. miod@, millert@ ok. | |||
2007-03-21 | Real atomic_{set,clear}bits_int implementation, ok deraadt | Miod Vallat | |
2007-03-21 | Real atomic_{set,clear}bits_int implementation, no performance hit on 060 | Miod Vallat | |
unless used on non-aligned data; ok deraadt@ | |||
2007-03-21 | Mips_IOSyncDCache last argument is in the 0..2 range, not -1..1, so let | Miod Vallat | |
C and asm code agree on this; this causes no functional change on r10k and fewer wt invalidates on r5k. ok kettenis@ | |||
2007-03-21 | atascsi sends h2d fis's, not d2h. | David Gwynne | |
2007-03-21 | remove extra *p test, from charles longeau | Ted Unangst | |
ok deraadt millert | |||
2007-03-21 | enable ahci(4). this only attaches to the jmicron controllers so far. | David Gwynne | |
if anyone can quickly try this on i386 i'll enable it there too. ok deraadt@ | |||
2007-03-21 | replace the array of u_int8_ts for the fis/registers with a struct to make | David Gwynne | |
it a bit easier to read. there are variations on this, but they can be defined later. | |||
2007-03-21 | For now, reserve one opening so we always have a CCB free to issue a soft | Christopher Pascoe | |
reset with during error recovery. Also, ensure that that CCB has been stopped on the chip before putting it back in the pool. | |||
2007-03-20 | Fix crystal on/off routine (no more panic). Add two new routines to | Marcus Glocker | |
set and clear the device's MAC filter. | |||
2007-03-20 | Move macppc to __HAVE_CPUINFO, and make locore.S and trap.c suitable for | Mark Kettenis | |
MULTIPROCESSOR. From now on sprg0 holds a pointer to struct cpuinfo, which is used to spill registers to during trap instead of the globals we used to use for that purpose. Bits and pieces from NetBSD. Help from drahn@ and art@. Tested by xsa@, thib@, miod@, gwk@, deraadt@. ok drahn@, gwk@ | |||
2007-03-20 | swiss spelling | Theo de Raadt | |
2007-03-20 | An complete lack of peer review before this is commited means it gets pulled. | Theo de Raadt | |
No exceptions. | |||
2007-03-20 | Use aml_val2int() instead of accessing v_integer directly. | Michael Knudsen | |
`sort of ok' marco (before lock) | |||
2007-03-20 | Be sure to reset ata_xfer flags for all PACKET transfers, otherwise we | Christopher Pascoe | |
could pick up a previous ATA_F_POLL from a previous non-data command. | |||
2007-03-20 | Remove unused ALIGN32 macro. It wouldn't work anyway, since | Deanna Phillips | |
ALIGNBYTES32 has been gone for years. ok art | |||
2007-03-20 | add missing FLUSH_CACHE commands. | David Gwynne | |
2007-03-20 | Document some routines by pointing to the refering specs URL. | Marcus Glocker | |
2007-03-20 | Basic FLUSH CACHE support. | Christopher Pascoe | |
Note that the ATA spec says we're should retry after error until we see no more errors. This is not (yet) implemented. | |||
2007-03-20 | Use ALLOCNOW flag when creating PRDT dmamap, otherwise it could fail during | Christopher Pascoe | |
error handling. | |||
2007-03-20 | Tag ATAPI transfers that have no data phase correctly, otherwise the command | Christopher Pascoe | |
isn't sent to the device. | |||
2007-03-20 | Our timeout and error handlers complete the commands for us, so we should | Christopher Pascoe | |
always return ATA_COMPLETE in the polled transfer case. Also, respect the passed in timeout value when polling. | |||
2007-03-20 | typo in comment | Todd T. Fries | |
ok jmc@ | |||
2007-03-20 | commit the rest of the jmicron ids. jsg has been trying to get me to add | David Gwynne | |
these since last year, but i didnt see the point till the code would be useful anywhere. | |||
2007-03-20 | Oops, remove some unused variables and unmangle a command name. | Christopher Pascoe | |
2007-03-20 | zap unused variable. | Thordur I. Bjornsson | |
ok pedro@ | |||
2007-03-20 | Cap the device size we present to 2TB, just in case someone attaches | Christopher Pascoe | |
something really big. The SCSI layer isn't yet ready for it. | |||
2007-03-20 | Move common completion handling into ata_exec itself. Removes a double free | Christopher Pascoe | |
in the inquiry error paths, as the HBA will have already completed the ata_xfer with an error. Reminder and ok dlg@ | |||
2007-03-20 | Add support for ATA PACKET commands. This should make ATAPI cdrom drives, | Christopher Pascoe | |
etc, just work. | |||
2007-03-20 | Read the whole SPROM content with a single routine to a own sprom struct. | Marcus Glocker | |
For those people who have reported about broken MAC address at attach time, this should fix the problem. | |||
2007-03-20 | Catch failed commands and copy the error taskfile back to the ata_cmd, | Christopher Pascoe | |
so that atascsi can deal with it. | |||
2007-03-20 | move ata command definitions from atascsi.c to atascsi.h | David Gwynne | |
2007-03-20 | do not use out of scope variable in macros -- only use the macro arguments ↵ | Michael Shalayeff | |
passed; makes it less of nfs kind of code; henning@ ok | |||
2007-03-20 | on com_console we need a little delay to let fifo flush itself before ↵ | Michael Shalayeff | |
resetting it and stuff to avoid garbled dmesg output; found on some arm | |||
2007-03-20 | missing include and also use time_uptime as art suggested; compiles now | Michael Shalayeff | |
2007-03-20 | reorder slightly. ata bits before atascsi | David Gwynne | |
2007-03-20 | Spring cleaning: some whitespace, clean up the failure path in the attach | Gordon Willem Klok | |
routine, and check the return of the mapiodev, and dbdma_create functions. Tested on Power Macintosh 9500MP and a 9600MP. "the diff looks fine to me." dlg@ | |||
2007-03-20 | Add timeout handling for ATA commands. | Christopher Pascoe | |