History log of /src/sys/dev/ic/osiop.c |
Revision | | Date | Author | Comments |
1.43 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.42 |
| 24-Apr-2021 |
thorpej | branches: 1.42.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.41 |
| 10-Nov-2019 |
chs | branches: 1.41.10; in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT and remove code to handle failures that can no longer happen.
|
1.40 |
| 16-Dec-2013 |
mrg | branches: 1.40.30; avoid unused variables outside of diag code.
|
1.39 |
| 13-Nov-2010 |
uebayasi | branches: 1.39.8; 1.39.18; 1.39.22; Don't pull in the whole uvm(9) API to access only PAGE_SIZE and some other constants. These are provided by sys/param.h now.
|
1.38 |
| 04-May-2010 |
tsutsui | Make local functions static.
|
1.37 |
| 09-Dec-2008 |
tsutsui | branches: 1.37.4; 1.37.6; Sync with src/sys/arch/amiga/dev/siop.c rev 1.59: > Deal with unrecognized SCSI message byte - restart script to clear the > ACK. No longer hangs the driver when an unhandled message byte is seen.
|
1.36 |
| 14-May-2008 |
tsutsui | branches: 1.36.4; 1.36.6; 1.36.8; Normalize my licenses.
|
1.35 |
| 03-May-2008 |
tsutsui | branches: 1.35.2; - remove dead URL of datasheet - change my mail address to NetBSD.org one
|
1.34 |
| 29-Mar-2008 |
tsutsui | branches: 1.34.2; 1.34.4; Split softc/device_t for oosiop(4) and osiop(4), with misc cosmetic changes.
|
1.33 |
| 19-Oct-2007 |
ad | branches: 1.33.16; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.32 |
| 30-Jun-2007 |
tsutsui | branches: 1.32.6; 1.32.8; 1.32.12; - avoid possible NULL pointer dereference in error path - call Debugger() only #ifdef OSIOP_DEBUG Partially from OpenBSD.
|
1.31 |
| 30-Jun-2007 |
tsutsui | Use more TAILQ macro. From OpenBSD.
|
1.30 |
| 30-Jun-2007 |
tsutsui | Backout previous; defer bus_dmamap_sync(9) op against data buffer instead.
XXX ews4800mips (which has 128byte L2 cacheline) still has XXX some problem in sd_read_capacity() on some unclear condition.
|
1.29 |
| 30-Jun-2007 |
tsutsui | Copy SCSI command before bus_dmamap_sync(9) PREREAD ops against data xfer buffer because command and data buffers might be in the same cacheline.
|
1.28 |
| 30-Jun-2007 |
tsutsui | Rather than preparing DMA map for SCSI command (which is less than 16 bytes) of each SCSI command block (acb), just prepare DMA safe buffer in struct osiop_ds and copy commands into the buffer on each transfer to save resources and reduce small and unaligned cache flush ops.
As a side effect, sizeof struct osiop_ds (DMA safe data buffer) is now 256 bytes (including padding) so it could be more cacheline friendly on bus_dmamap_sync(9) ops.
Tested on Express5800/230 (arc) and EWS4800/360AD (ews4800mips), and no visible performance difference on bonnie. (hppa and mvme68k are untested)
|
1.27 |
| 04-Mar-2007 |
christos | branches: 1.27.2; 1.27.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.26 |
| 29-Mar-2006 |
thorpej | branches: 1.26.14; Use device_cfdata().
|
1.25 |
| 11-Dec-2005 |
christos | branches: 1.25.4; 1.25.6; 1.25.8; 1.25.10; 1.25.12; merge ktrace-lwp.
|
1.24 |
| 30-Apr-2005 |
tsutsui | branches: 1.24.2; Avoid NULL pointer dereference on unexpected error cases. (from OpenBSD)
|
1.23 |
| 27-Feb-2005 |
perry | nuke trailing whitespace
|
1.22 |
| 18-Feb-2005 |
tsutsui | Print newline in some error messages.
|
1.21 |
| 17-Feb-2005 |
tsutsui | Allow MD attachments to override CTEST4 register value.
|
1.20 |
| 02-Jan-2005 |
tsutsui | branches: 1.20.2; 1.20.4; u_intNN_t -> uintNN_t
|
1.19 |
| 25-Sep-2004 |
tsutsui | Use ANSI function decls.
|
1.18 |
| 28-Mar-2004 |
mhitch | Remove clauses 3 and 4.
|
1.17 |
| 02-Nov-2003 |
wiz | Fix some typos. From Tom Cosgrove via jmc@openbsd.
|
1.16 |
| 29-Oct-2003 |
tsutsui | Add a bogus initializer to appease gcc's uninitialized warning.
XXX osiop_checkintr() should be rewritten.
|
1.15 |
| 29-Sep-2003 |
wiz | available, not avaliable. From miod@openbsd.
|
1.14 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.13 |
| 12-Apr-2003 |
tsutsui | branches: 1.13.2; Add some delays between 8bit reads of DSTAT and SSTAT0 registers as per the 53c710 manual. Pointed out by fredette in osiop_gsc.c long ago.
|
1.12 |
| 12-Apr-2003 |
tsutsui | Fixes from OpenBSD: - Fix index bounds checking in save data pointers logic. - Fix an indent problem and an extra blank space.
|
1.11 |
| 18-Feb-2003 |
tsutsui | Also remove (probably) incorrect comment.
|
1.10 |
| 18-Feb-2003 |
tsutsui | Remove unusable debug code.
|
1.9 |
| 05-Apr-2002 |
bouyer | Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers to convert xs->timeout to callout() parameter.
|
1.8 |
| 16-Dec-2001 |
tsutsui | malloc() + memset() -> malloc() with M_ZERO flag
|
1.7 |
| 18-Nov-2001 |
tsutsui | - Use MI ADAPTER_REQ_SET_XFER_MODE callback - Move values in sc_sync[] member to sc_tinfo[] - Change some u_int8_t values to int - Remove unused wide negotiation states - Misc cleanup
|
1.6 |
| 13-Nov-2001 |
lukem | add/cleanup RCSID
|
1.5 |
| 19-Jul-2001 |
thorpej | Use BUS_DMA_READ and BUS_DMA_WRITE in some obvious places.
|
1.4 |
| 09-Jun-2001 |
tsutsui | branches: 1.4.2; 1.4.4; Fix an uninitialized variable in #ifdef DIAGNOSTIC. Pointed out by soda.
|
1.3 |
| 17-May-2001 |
scw | In osiop_scsidone(), call scsipi_done() even for polled operations.
This fixes a `hang' on shutdown when the `Synchronise Cache' command is sent to a disk. (It uses polled mode because it is called from inside a shutdown hook).
|
1.2 |
| 09-May-2001 |
tsutsui | Print a clock frequency of the chip.
|
1.1 |
| 30-Apr-2001 |
tsutsui | Add a MI driver for the Symbios/NCR 53c710 SCSI controller. This is based on amiga's siop driver, but converted to use bus_space(9) functions and modified to fit bus_dma(9) framework.
Currently tested on NetBSD/arc with jazzio 53c710 SCSI, which really requires bus_dma(9) functions :-) Sync transfers and disconnect/reconnect are also working.
TODO: - Test under more heavy load - Clean up osiop_checkintr() hander - Reorganize command queue and sync negotiation handling more suitable for thorpej-scsipi mid-layer - Re-think defered interrupt handling for amiga
|
1.4.4.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.4.4.2 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.4.4.1 |
| 03-Aug-2001 |
lukem | update to -current
|
1.4.2.6 |
| 17-Apr-2002 |
nathanw | Catch up to -current.
|
1.4.2.5 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.4.2.4 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.4.2.3 |
| 24-Aug-2001 |
nathanw | Catch up with -current.
|
1.4.2.2 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.4.2.1 |
| 09-Jun-2001 |
nathanw | file osiop.c was added on branch nathanw_sa on 2001-06-21 20:03:04 +0000
|
1.13.2.7 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.13.2.6 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.13.2.5 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.13.2.4 |
| 19-Oct-2004 |
skrll | Sync with HEAD
|
1.13.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.13.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.13.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.20.4.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.20.2.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.24.2.3 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.24.2.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.24.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.25.12.1 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.25.10.1 |
| 19-Apr-2006 |
elad | sync with head.
|
1.25.8.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.25.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.25.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.26.14.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.27.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.27.2.2 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.27.2.1 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.32.12.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.32.8.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.32.6.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.33.16.3 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.33.16.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.33.16.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.34.4.3 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.34.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.34.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.34.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.35.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.36.8.1 |
| 13-Dec-2008 |
bouyer | Pull up following revision(s) (requested by tsutsui in ticket #183): sys/dev/ic/osiop.c: revision 1.37 Sync with src/sys/arch/amiga/dev/siop.c rev 1.59: Deal with unrecognized SCSI message byte - restart script to clear the ACK. No longer hangs the driver when an unhandled message byte is seen.
|
1.36.6.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.36.4.1 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
1.37.6.2 |
| 05-Mar-2011 |
rmind | sync with head
|
1.37.6.1 |
| 30-May-2010 |
rmind | sync with head
|
1.37.4.1 |
| 17-Aug-2010 |
uebayasi | Sync with HEAD.
|
1.39.22.1 |
| 18-May-2014 |
rmind | sync with head
|
1.39.18.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.39.8.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.40.30.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.41.10.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
1.42.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|