Age | Commit message (Collapse) | Author | |
---|---|---|---|
2006-04-03 | Move scsi_done back under splbio. | Marco Peereboom | |
ok dlg | |||
2006-04-03 | Since we have a run-queue now lets check it in the isr and get io onto | Marco Peereboom | |
the card if there is any still pending. ok dlg | |||
2006-04-03 | Silly dlg hz/500 isnt a whole lot. Also removed busy-wait in | Marco Peereboom | |
ami_quartz_exec. This fixes interactivity issues that we saw when running iogen. This is possible due to the new run-queue model for io. ok dlg@ | |||
2006-03-29 | we never use what the ccb completion functions return, so make them all | David Gwynne | |
return void instead. | |||
2006-03-29 | fix the sync_cache scsi command up so it can run asynchronously using the | David Gwynne | |
callback bits for completions. also do the AMI_SYSFLUSH command as well as AMI_FLUSH. | |||
2006-03-27 | fixes interrupts processing. | Damien Bergamini | |
should fix a panic reported by Karel Gardas. | |||
2006-03-27 | in detach, mark device with COM_SW_DEAD, so that close() will not go | Theo de Raadt | |
tapping additional registes. allows it to work on macppc, where doing such a tap after unplug is very bad. drahn helped fkr@bytemine.de ok miod and drahn | |||
2006-03-25 | allow bpf(4) to ignore packets based on their direction (inbound or | Damien Miller | |
outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@ | |||
2006-03-22 | incorrect check for end of array; ok jsg | Theo de Raadt | |
2006-03-20 | remove kernel printfs that say "unable to allocate memory" just before | David Gwynne | |
returning ENOMEM and the like. userland can say that for us while keeping our dmesg clean. | |||
2006-03-20 | finer grained use of splbio in the ioctl paths. only use it when dealing | David Gwynne | |
with the ccb queues rather than over the whole ioctl. also get rid of the CMD_WAIT flag which is used to restrict the ioctl to only one caller at a time. this is actually protecting from overuse of ccbs for management tasks (like bioctl) by making sure the scsi paths will always have their ccbs. replace the flag with a real lock so that callers can sleep till the mgmt ccb is free, rather than returning EBUSY | |||
2006-03-20 | shrink the ccb even more. instead of having a "wakeup" member to say when | David Gwynne | |
the ioctl paths can wake up, check the state of the ccb instead. when the ccb becomes READY again then the command has completed. | |||
2006-03-20 | remove the bits in the ccb for generalised handling of dmaable memory. | David Gwynne | |
now that each code path that puts commands on the hardware has specific completion routines, we dont have to deal with the memory magic in a generic fashion. | |||
2006-03-20 | switch the mgmt ioctl path to use the ioctl completion function. | David Gwynne | |
2006-03-20 | move the drv_inq ioctl path to its own completion routine. all the cleanup | David Gwynne | |
of the dmammem is now done in the ioctl, the completion routing simply wakes it up. | |||
2006-03-20 | get rid of the CCB_READY check in ami_start, it is subtly broken and slows | David Gwynne | |
things down. this path is easy to verify without this code so im just dropping it. | |||
2006-03-20 | the command queues are important so wrap them up in splbio | David Gwynne | |
2006-03-20 | shorten the setup of the xs timeout | David Gwynne | |
2006-03-19 | this is a really large reworking of how ami works in terms of submitting | David Gwynne | |
commands to the hardware and completing them. previously the driver was very engineered toward moving io from the logical disks scsi commands onto the hardware and off. as we built extra functionality into the driver, this path grew more and more hairy as bits were tacked on to cope. this strips it back to dealing with getting the command onto the hardware and off again. each path that submits commands now has to do all its work before submitting the ccb, and supply a function for completing the ccb. both the async and polled paths call the completion routines for commands now. async commands that fail to get onto the hardware first go are stuck on a queue and retried out of a timeout. previously this was only done for scsi commands, now all paths take advantage of it. | |||
2006-03-18 | scsi completions never go via the generic done path now. xs is always set | David Gwynne | |
in the scis done path | |||
2006-03-18 | use polling for the synchronise command while i move the xs setup and | David Gwynne | |
completion stuff around. | |||
2006-03-18 | rename ami_cmd to ami_start_xs | David Gwynne | |
2006-03-17 | create a completion path for scsi commands without the cruft for waking | David Gwynne | |
up ioctl paths. | |||
2006-03-17 | split the completion path up. its now the responsibility of the the path | David Gwynne | |
that sets the command up to say how its should be completed. this means we dont have to complicate a generic handler to cope with all the different setup paths. however, at the moment we're using the generic complicated one :) | |||
2006-03-17 | remove the last remnants of AMI_POLLING | David Gwynne | |
2006-03-16 | Comment out tekram_sync_table and only degine {,dt_}scf_period[] for | Miod Vallat | |
siop_common.c; shaves half a KB. | |||
2006-03-15 | Correct checks against cd_ndevs - valid numbers are strictly inferior to | Miod Vallat | |
cd_ndevs. | |||
2006-03-15 | switch the ioctl paths to using ami_start instead of ami_cmd. now the only | David Gwynne | |
things left using ami_cmd are the scsi paths. | |||
2006-03-15 | clean up ami_start and move the error handling for a failed command from | David Gwynne | |
ami_cmd into ami_start. | |||
2006-03-15 | split the code in ami_cmd that does the polling commands out into a | David Gwynne | |
function of its own. switch callers of ami_cmd that want polled commands over to using ami_poll. | |||
2006-03-15 | sc->sc_dev.dv_xname converted to DEVNAME(sc). makes things a little easier | David Gwynne | |
for me to read. | |||
2006-03-14 | move the loading of the dmamaps for passthrough commands out of ami_cmd | David Gwynne | |
and into a function of its own called ami_load_ptmem. sleep now, more cleanup later. | |||
2006-03-14 | move the loading of the dma maps for logical disk reads and writes from | David Gwynne | |
ami_cmd up into ami_scsi_cmd. this simplifies ami_cmd somewhat and moves more stuff out from under splbio. theres more to come. | |||
2006-03-14 | knf | David Gwynne | |
2006-03-14 | shuffle the switch statement around in scsi_cmd. do the io commands | David Gwynne | |
outside the switch so i have some more room to put ugly code in there. | |||
2006-03-13 | make the dmseg printing look a little nicer. | Brad Smith | |
ok dlg@ | |||
2006-03-13 | repair commands w/ no scsi_xfer but the affected code was currently dead ↵ | Michael Shalayeff | |
anyway; pointed out by Tonnerre LOMBARD <tonnerre@thebsh.sygroup.ch> | |||
2006-03-13 | finner grained use of splbio in scsi_raw_cmd. | David Gwynne | |
2006-03-13 | finer use of splbio in scsi_cmd. | David Gwynne | |
2006-03-13 | split the io and synchronise paths for scsi commands going to the logical | David Gwynne | |
disks. | |||
2006-03-05 | Use more queue macros rather than doing it by hand; ok otto@ krw@ | Miod Vallat | |
2006-03-04 | remove extraneous brackets. | Brad Smith | |
From Mike Pechkin <mpech at mail dot ru> | |||
2006-03-04 | Typos grab bag of the month, eyeballed by jmc@ | Miod Vallat | |
2006-03-04 | All CAM_* values stored in xs->error must be 'interpreted' by | Kenneth R Westerback | |
ah[cd]_done() into XS_* values understood by the SCSI code before returning xs to the tender mercies of the SCSI code. So if we bail out without calling ah[cd]_done(), because the request cdb length is excessive, don't use ah[cd]_set_transaction() to put CAM_REQ_INVALID into xs->error, just jam in XS_DRIVER_STUFFUP as ah[cd]_done() would have. If CAM_REQ_INVALID escapes it will be interpreted as XS_SHORT_SENSE as far as I can tell. This code path should never be trod so the net effect should be minimal. | |||
2006-03-04 | remove the colon between "address" and the MAC address. | Brad Smith | |
2006-03-04 | some defines for PHY detection. | Brad Smith | |
From FreeBSD | |||
2006-03-04 | do not set the chip type in re_attach_common() as this is already | Brad Smith | |
set in the appropriate bus-dependent front-end attach routines. | |||
2006-03-04 | remove vlan header. | Brad Smith | |
2006-02-28 | Switch to software WEP in a way mostly similiar to what David Young | Jonathan Gray | |
did in NetBSD. Fixes WEP on aanriot@'s ADM8211A. ok deraadt@ | |||
2006-02-25 | comment code that is currently unused (radar detection and dynamic rx | Damien Bergamini | |
sensitivity tuning). fix a typo while i'm here. |