History log of /src/sys/dev/ic/mpt_netbsd.c |
Revision | | Date | Author | Comments |
1.40 |
| 09-Feb-2024 |
andvar | fix spelling mistakes, mainly in comments and log messages.
|
1.39 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.38 |
| 24-Apr-2021 |
thorpej | branches: 1.38.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.37 |
| 15-Sep-2020 |
mlelstv | branches: 1.37.4; max_devices is a 8bit value and zero is interpreted as 256. This value can be reported by an mpt device emulated by VMware ESXi.
|
1.36 |
| 08-May-2019 |
cnst | branches: 1.36.2; mpt(4): remove ENOTTY / noop implementation of bio(4) setstate
* All other bio(4) drivers either do or don't implement each command.
* This changes the returned error code, but it does not seem to matter, as some bio(4) drivers always return ENOTTY in the default case, whilst others always return EINVAL (e.g., both cac(4) and ciss(4) for setstate).
|
1.35 |
| 05-Feb-2018 |
mrg | branches: 1.35.4; fixes for GCC 6.4:
- fix an indentation issue in radioioctl(). - fix an indentation issue in mpt_run_xfer(). - grep's printline() has some {} placement issues.
|
1.34 |
| 30-Jan-2018 |
jakllsch | Move mpt_disc_enable setting into is_scsi block.
The field is only 16 bits, and is only refered to in the is_scsi case.
|
1.33 |
| 02-May-2016 |
christos | branches: 1.33.10; move scsipi_strvis -> libkern:strnvisx() change the prototype to match userland fix sizes of strings passed to it
|
1.32 |
| 22-Jul-2015 |
hannken | Adapter leaks requests when mpt_event_notify_reply() has to acknowledge an event leading to "adapter resource shortage" messages when the scsipi subsystem tries to use all adapt_openings.
Change mpt_ctlop() to free the request on event MPI_FUNCTION_EVENT_ACK.
Tested on a SunFire X4275 with Symbios Logic SAS1068E (1000:0058, rev. 4).
|
1.31 |
| 28-Sep-2014 |
jmcneill | branches: 1.31.2; for BIOCDISK_NOVOL, when setting bd_disknovol=false, also set bv_volid
|
1.30 |
| 28-Sep-2014 |
jmcneill | for BIOCDISK_NOVOL, set bd_disknovol=true for any disk not associated with a volume
|
1.29 |
| 27-Sep-2014 |
jmcneill | implement BIOCDISK_NOVOL
|
1.28 |
| 27-Sep-2014 |
jmcneill | include vendor/product/rev info for volumes and their disks
|
1.27 |
| 27-Sep-2014 |
jmcneill | show "sd0" instead of "mpt0" for volume device name
|
1.26 |
| 27-Sep-2014 |
jmcneill | add bio(4) support
|
1.25 |
| 08-Jul-2014 |
chs | branches: 1.25.2; fix a device/softc error. remove some related glue that is no longer needed.
|
1.24 |
| 17-Apr-2014 |
christos | CID/1203197: NULL deref
|
1.23 |
| 17-Apr-2014 |
christos | CID 1203189: Null deref.
|
1.22 |
| 15-Apr-2014 |
buhrow | Checking in cosmetic changes -- no functional change. (Suggestions made by Taylor Campbell)
|
1.21 |
| 11-Apr-2014 |
buhrow | Fix up some KNF errors.
|
1.20 |
| 01-Apr-2014 |
buhrow | branches: 1.20.2;
Checking in changes to improve error handling. Specifically:
- if commands timeout, clear the queues to the the card and perform a soft reset on the LSI hardware since when these timeouts occur, the LSI firmware is not graceful about recovering at all.
- Recover gracefully from more kinds of errors using the same recovery mechanism listed above.
Also, implement mpt_ioctl() to handle bus reset requests from scsictl(8).
|
1.19 |
| 23-Sep-2012 |
chs | branches: 1.19.2; set chan_bustype correctly.
|
1.18 |
| 18-Mar-2012 |
martin | branches: 1.18.2; Split device_t
|
1.17 |
| 30-Jan-2012 |
mhitch | branches: 1.17.2; Allow adapters with SAS/SATA or FC devices to use tagged queuing by the scsipi layer. Can improve write performance on SAS adapters under certain conditions when the logical drive does not have write caching enabled. Also need to reserver a couple of slots for commands for the driver to use - stops the adapter shortage messages. Multiple commands can now cause QUEUE_FULL events, so add that to the events handled, currently just ignoring it. Changes based on the thread http://mail-index.netbsd.org/tech-kern/2011/02/08/msg009946.html. cvs: ----------------------------------------------------------------------
|
1.16 |
| 17-Jul-2011 |
joerg | branches: 1.16.2; 1.16.6; Retire varargs.h support. Move machine/stdarg.h logic into MI sys/stdarg.h and expect compiler to provide proper builtins, defaulting to the GCC interface. lint still has a special fallback. Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and derive va_list as required by standards.
|
1.15 |
| 28-Apr-2010 |
chs | add byte-swapping so that this works on BE platforms. the logic is based on the current freebsd driver. fixes PR 42870.
|
1.14 |
| 08-Apr-2008 |
cegger | branches: 1.14.4; 1.14.14; 1.14.24; 1.14.26; use aprint_*_dev and device_xname
|
1.13 |
| 04-Aug-2007 |
tron | branches: 1.13.22; 1.13.24; Fix some KNF glitches pointed out by Garrett D'Amore.
|
1.12 |
| 27-Jul-2007 |
tron | branches: 1.12.4; Add support for newer SAS and similar devices to mpt(4). Tested with the LSI SAS1064 in a Sun x4200 server.
These enhancements were developed by Garrett D'Amore and contributed to NetBSD by the TELES AG.
|
1.11 |
| 04-Mar-2007 |
christos | branches: 1.11.2; 1.11.10; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.10 |
| 11-Dec-2005 |
christos | branches: 1.10.24; 1.10.26; 1.10.30; merge ktrace-lwp.
|
1.9 |
| 27-Feb-2005 |
perry | branches: 1.9.2; 1.9.4; 1.9.12; 1.9.14; nuke trailing whitespace
|
1.8 |
| 10-Apr-2004 |
briggs | branches: 1.8.4; 1.8.6; Set the DMA SGL length correctly if the DMA request must be chained because it is too large to fit in one SGL. Fix from HITOSHI Osada <QFH02545 (at) nifty.com> in response to PR kern/24967.
|
1.7 |
| 14-Jul-2003 |
lukem | branches: 1.7.2; add missing __KERNEL_RCSID()
|
1.6 |
| 01-May-2003 |
thorpej | branches: 1.6.2; Free the mpt request structure before calling scsipi_done(), as scsipi_done() may start another command which needs the request structure being freed.
Patch from Stephan Uphoff, modified slightly by me.
|
1.5 |
| 23-Apr-2003 |
tls | Correct use of MAXBSIZE where MAXPHYS was intended. This is a necessary first step towards per-device MAXPHYS, and has the beneficial side effect of allowing clustering to MAXPHYS even on systems that need to run with a reduced MAXBSIZE to get more metadata buffers.
|
1.4 |
| 16-Apr-2003 |
thorpej | In the polling case, don't call mpt_timeout() twice.
|
1.3 |
| 16-Apr-2003 |
thorpej | mpt_dma_mem_alloc(): If we fail, only destroy request DMA maps that were actually created.
|
1.2 |
| 16-Apr-2003 |
thorpej | Correctly sync the MPT request buffers, and remove BUS_DMA_COHERENT from the mapping of those buffers.
|
1.1 |
| 16-Apr-2003 |
thorpej | Device driver for the LSI Logic Fusion-MPT based SCSI and Fibre Channel adapters. Currently supports:
* LSI 53c1030 Ultra320 SCSI * LSI FC909, FC909A, FC919, and FC929 Fibre Channel
Ported from the FreeBSD "mpt" driver, written by Greg Ansley. Thanks to Frank van der Linden for testing and some bug finding.
This work was sponsored by Wasabi Systems, Inc.
|
1.6.2.4 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.6.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.6.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.6.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.7.2.1 |
| 11-Apr-2004 |
jmc | Pullup rev 1.8 (requested by briggs in ticket #113)
Set the DMA SGL length correctly if the DMA request must be chained because it is too large to fit in one SGL. PR#24967
|
1.8.6.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.8.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.9.14.1 |
| 04-Oct-2007 |
bouyer | Pull up following revision(s) (requested by tron in ticket #1822): sys/dev/ic/mpt_netbsd.c: revision 1.12 via patch sys/dev/ic/mpt_netbsd.h: revision 1.6 via patch sys/dev/ic/mpt_mpilib.h: revision 1.3 via patch sys/dev/ic/mpt.h: revision 1.6 via patch sys/dev/ic/mpt.c: revisions 1.9, 1.10 via patch sys/dev/ic/mpt_debug.c: patch sys/dev/pci/mpt_pci.c: revision 1.11 via patch sys/dev/pci/pcidevs: patch sys/dev/pci/pcidevs.h: patch sys/dev/pci/pcidevs_data.h: patch Add support for newer SAS and similar devices to mpt(4). Tested with the LSI SAS1064 in a Sun x4200 server. These enhancements were developed by Garrett D'Amore and contributed to NetBSD by the TELES AG.
|
1.9.12.1 |
| 04-Oct-2007 |
bouyer | Pull up following revision(s) (requested by tron in ticket #1822): sys/dev/ic/mpt_netbsd.c: revision 1.12 via patch sys/dev/ic/mpt_netbsd.h: revision 1.6 via patch sys/dev/ic/mpt_mpilib.h: revision 1.3 via patch sys/dev/ic/mpt.h: revision 1.6 via patch sys/dev/ic/mpt.c: revisions 1.9, 1.10 via patch sys/dev/ic/mpt_debug.c: patch sys/dev/pci/mpt_pci.c: revision 1.11 via patch sys/dev/pci/pcidevs: patch sys/dev/pci/pcidevs.h: patch sys/dev/pci/pcidevs_data.h: patch Add support for newer SAS and similar devices to mpt(4). Tested with the LSI SAS1064 in a Sun x4200 server. These enhancements were developed by Garrett D'Amore and contributed to NetBSD by the TELES AG.
|
1.9.4.1 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.9.2.1 |
| 13-Sep-2007 |
bouyer | Pull up following revision(s) (requested by tron in ticket #1822): sys/dev/ic/mpt_netbsd.c: revision 1.12 via patch sys/dev/ic/mpt_netbsd.h: revision 1.6 via patch sys/dev/ic/mpt_mpilib.h: revision 1.3 via patch sys/dev/ic/mpt.h: revision 1.6 via patch sys/dev/ic/mpt.c: revisions 1.9, 1.10 via patch sys/dev/ic/mpt_debug.c: patch sys/dev/pci/mpt_pci.c: revision 1.11 via patch sys/dev/pci/pcidevs: patch sys/dev/pci/pcidevs.h: patch sys/dev/pci/pcidevs_data.h: patch Add support for newer SAS and similar devices to mpt(4). Tested with the LSI SAS1064 in a Sun x4200 server. These enhancements were developed by Garrett D'Amore and contributed to NetBSD by the TELES AG.
|
1.10.30.1 |
| 03-Sep-2007 |
wrstuden | Sync w/ NetBSD-4-RC_1
|
1.10.26.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.10.24.1 |
| 30-Jul-2007 |
liamjfoy | Pull up following revision(s) (requested by tron in ticket #797): sys/dev/ic/mpt_netbsd.c: revision 1.12 sys/dev/ic/mpt_mpilib.h: revision 1.3 sys/dev/ic/mpt.h: revision 1.6 sys/dev/ic/mpt.c: revision 1.9 sys/dev/ic/mpt_netbsd.h: revision 1.6 sys/dev/pci/mpt_pci.c: revision 1.11 doc/CHANGES: revision 1.893 Add support for newer SAS and similar devices to mpt(4). Tested with the LSI SAS1064 in a Sun x4200 server. These enhancements were developed by Garrett D'Amore and contributed to NetBSD by the TELES AG. Mention support for new hardware in mpt(4).
|
1.11.10.1 |
| 15-Aug-2007 |
skrll | Sync with HEAD.
|
1.11.2.1 |
| 20-Aug-2007 |
ad | Sync with HEAD.
|
1.12.4.1 |
| 09-Aug-2007 |
jmcneill | Sync with HEAD.
|
1.13.24.2 |
| 04-Aug-2007 |
tron | Fix some KNF glitches pointed out by Garrett D'Amore.
|
1.13.24.1 |
| 04-Aug-2007 |
tron | file mpt_netbsd.c was added on branch matt-mips64 on 2007-08-04 22:01:07 +0000
|
1.13.22.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.14.26.1 |
| 30-May-2010 |
rmind | sync with head
|
1.14.24.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.14.14.2 |
| 04-Feb-2012 |
bouyer | Pull up following revision(s) (requested by mhitch in ticket #1720): sys/dev/ic/mpt_netbsd.c: revision 1.17 Allow adapters with SAS/SATA or FC devices to use tagged queuing by the scsipi layer. Can improve write performance on SAS adapters under certain conditions when the logical drive does not have write caching enabled. Also need to reserver a couple of slots for commands for the driver to use - stops the adapter shortage messages. Multiple commands can now cause QUEUE_FULL events, so add that to the events handled, currently just ignoring it. Changes based on the thread http://mail-index.netbsd.org/tech-kern/2011/02/08/msg009946.html. cvs: ----------------------------------------------------------------------
|
1.14.14.1 |
| 02-Dec-2010 |
snj | Pull up following revision(s) (requested by riz in ticket #1487): sys/dev/ic/mpt.c: revision 1.14 sys/dev/ic/mpt.h: revision 1.7 sys/dev/ic/mpt_debug.c: revision 1.7 sys/dev/ic/mpt_netbsd.c: revision 1.15 add byte-swapping so that this works on BE platforms. the logic is based on the current freebsd driver. fixes PR 42870.
|
1.14.4.1 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.16.6.2 |
| 05-Apr-2012 |
mrg | sync to latest -current.
|
1.16.6.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.16.2.3 |
| 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.16.2.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.16.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.17.2.3 |
| 15-Nov-2015 |
bouyer | Pull up following revision(s) (requested by hannken in ticket #1316): sys/dev/ic/mpt_netbsd.c: revision 1.32 Adapter leaks requests when mpt_event_notify_reply() has to acknowledge an event leading to "adapter resource shortage" messages when the scsipi subsystem tries to use all adapt_openings. Change mpt_ctlop() to free the request on event MPI_FUNCTION_EVENT_ACK. Tested on a SunFire X4275 with Symbios Logic SAS1068E (1000:0058, rev. 4).
|
1.17.2.2 |
| 03-Nov-2014 |
msaitoh | Pull up following revision(s) (requested by jmcneill in ticket #1160): sys/dev/ic/mpt_netbsd.c: revision 1.26-1.31 sys/dev/ic/mpt.c: revision 1.17 share/man/man4/bio.4: revision 1.12 share/man/man4/mpt.4: revision 1.6 sys/dev/ic/mpt.h: revision 1.8 - Add bio(4) support. - xref mpt(4) in bio(4). - xref bio(4) in mpt(4). - show "sd0" instead of "mpt0" for volume device name - include vendor/product/rev info for volumes and their disks. - for BIOCDISK_NOVOL, set bd_disknovol=true for any disk not associated with a volume for BIOCDISK_NOVOL, when setting bd_disknovol=false, also set bv_volid
|
1.17.2.1 |
| 22-Nov-2012 |
riz | Pull up following revision(s) (requested by chs in ticket #686): sys/dev/ic/mpt_netbsd.c: revision 1.19 set chan_bustype correctly.
|
1.18.2.4 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.18.2.3 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.18.2.2 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.18.2.1 |
| 12-Sep-2012 |
tls | Initial snapshot of work to eliminate 64K MAXPHYS. Basically works for physio (I/O to raw devices); needs more doing to get it going with the filesystems, but it shouldn't damage data.
All work's been done on amd64 so far. Not hard to add support to other ports. If others want to pitch in, one very helpful thing would be to sort out when and how IDE disks can do 128K or larger transfers, and adjust the various PCI IDE (or at least ahcisata) drivers and wd.c accordingly -- it would make testing much easier. Another very helpful thing would be to implement a smart minphys() for RAIDframe along the lines detailed in the MAXPHYS-NOTES file.
|
1.19.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.20.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.25.2.2 |
| 30-Jul-2015 |
snj | Pull up following revision(s) (requested by hannken in ticket #910): sys/dev/ic/mpt_netbsd.c: revision 1.32 Adapter leaks requests when mpt_event_notify_reply() has to acknowledge an event leading to "adapter resource shortage" messages when the scsipi subsystem tries to use all adapt_openings. Change mpt_ctlop() to free the request on event MPI_FUNCTION_EVENT_ACK. Tested on a SunFire X4275 with Symbios Logic SAS1068E (1000:0058, rev. 4).
|
1.25.2.1 |
| 29-Sep-2014 |
msaitoh | Pull up following revision(s) (requested by jmcneill in ticket #120): sys/dev/ic/mpt_netbsd.c: revision 1.28 sys/dev/ic/mpt_netbsd.c: revision 1.29 sys/dev/ic/mpt.c: revision 1.17 sys/dev/ic/mpt_netbsd.c: revision 1.30 sys/dev/ic/mpt_netbsd.c: revision 1.31 share/man/man4/bio.4: revision 1.12 share/man/man4/mpt.4: revision 1.6 sys/dev/ic/mpt.h: revision 1.8 sys/dev/ic/mpt_netbsd.c: revision 1.26 sys/dev/ic/mpt_netbsd.c: revision 1.27 - Add bio(4) support. - xref mpt(4) in bio(4). - xref bio(4) in mpt(4). - show "sd0" instead of "mpt0" for volume device name - include vendor/product/rev info for volumes and their disks. - implement BIOCDISK_NOVOL - for BIOCDISK_NOVOL, set bd_disknovol=true for any disk not associated with a volume for BIOCDISK_NOVOL, when setting bd_disknovol=false, also set bv_volid
|
1.31.2.2 |
| 29-May-2016 |
skrll | Sync with HEAD
|
1.31.2.1 |
| 22-Sep-2015 |
skrll | Sync with HEAD
|
1.33.10.1 |
| 16-Sep-2020 |
martin | Pull up following revision(s) (requested by mlelstv in ticket #1605):
sys/dev/ic/mpt_netbsd.c: revision 1.37
max_devices is a 8bit value and zero is interpreted as 256. This value can be reported by an mpt device emulated by VMware ESXi.
|
1.35.4.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.36.2.1 |
| 16-Sep-2020 |
martin | Pull up following revision(s) (requested by mlelstv in ticket #1085):
sys/dev/ic/mpt_netbsd.c: revision 1.37
max_devices is a 8bit value and zero is interpreted as 256. This value can be reported by an mpt device emulated by VMware ESXi.
|
1.37.4.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.38.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|