#
4e4f5ce5 |
| 06-Jul-2023 |
visa <visa@openbsd.org> |
Use mtx_init() to initialize stack-based mutexes
mtx_init() ensures the mutex' lock_object has static storage duration. This makes it safe to re-enable WITNESS with stack-based mutexes.
OK bluhm@ m
Use mtx_init() to initialize stack-based mutexes
mtx_init() ensures the mutex' lock_object has static storage duration. This makes it safe to re-enable WITNESS with stack-based mutexes.
OK bluhm@ miod@
show more ...
|
#
7bcaece1 |
| 25-May-2023 |
kurt <kurt@openbsd.org> |
Disable witness for mutexes created on the stack which allows the ddb command 'show witness' to succeed without panicking. Leaving witness enabled on these mutexes saves a pointer to struct lock_type
Disable witness for mutexes created on the stack which allows the ddb command 'show witness' to succeed without panicking. Leaving witness enabled on these mutexes saves a pointer to struct lock_type on the stack which gets clobbered resulting in a panic in witness_ddb_display_descendants().
okay miod@
show more ...
|
#
a454aff3 |
| 16-Apr-2022 |
naddy <naddy@openbsd.org> |
constify SCSI adapter entry points
ok krw@
|
#
664c6166 |
| 22-Sep-2020 |
krw <krw@openbsd.org> |
Since dlg@'s 2009 scsi midlayer refactoring the 'struct scsi_generic *cmd' member of 'struct scsi_xfer' has always been pointed at the 'struct scsi_generic cmdstore' member of the same instance. So n
Since dlg@'s 2009 scsi midlayer refactoring the 'struct scsi_generic *cmd' member of 'struct scsi_xfer' has always been pointed at the 'struct scsi_generic cmdstore' member of the same instance. So nuke 'cmdstore' and remove the '*' from cmd. Take the address of cmd as required by the various casts.
No intentional functional change.
luna88k test by aoyama@, sparc64 test by jmatthew@
Identification of 2009's last *cmd use and ok jmatthew@
show more ...
|
#
fc548c49 |
| 26-Aug-2020 |
krw <krw@openbsd.org> |
Remove needless uses of SDEV_ONLYBIG. It was always set when SDEV_UMASS was set, and was always checked in concert with SDEV_ATAPI. Just rely on SDEV_ATAPI and SDEV_UMASS in all but the one place sd(
Remove needless uses of SDEV_ONLYBIG. It was always set when SDEV_UMASS was set, and was always checked in concert with SDEV_ATAPI. Just rely on SDEV_ATAPI and SDEV_UMASS in all but the one place sd(4) where SDEV_ONLYBIG is set independently of SDEV_ATAPI/_UMASS.
ok jmatthew@
show more ...
|
#
e5eae15d |
| 20-Jul-2020 |
krw <krw@openbsd.org> |
Move remaining scsi bus initialization info from "prototype scsi link" fields to struct scsibus_attach_args. Nuke the struct scsi_link * (saa_sc_link) in scaibus_attach_args.
Explicitly initialize e
Move remaining scsi bus initialization info from "prototype scsi link" fields to struct scsibus_attach_args. Nuke the struct scsi_link * (saa_sc_link) in scaibus_attach_args.
Explicitly initialize each field in scsibus_attach_args variables.
show more ...
|
#
ead808c4 |
| 19-Jul-2020 |
krw <krw@openbsd.org> |
Move the adapter related items (luns, adapter, adapter_target, adapter_buswidth, adapter_softc) from struct scsi_link to struct scsibus_attach_args.
Additional compile tests by jmatthew@ (sparc64) a
Move the adapter related items (luns, adapter, adapter_target, adapter_buswidth, adapter_softc) from struct scsi_link to struct scsibus_attach_args.
Additional compile tests by jmatthew@ (sparc64) and aoyam@ (luna88k).
show more ...
|
#
0b29cb40 |
| 16-Jul-2020 |
krw <krw@openbsd.org> |
Access adapter softc via link->bus->sb_adapter_softc.
In sparc64 autoconf access 'luns' via sb_luns and 'adapter_buswidth' via sb_adapter_buswidth.
Removes last post-config uses of the copies of bu
Access adapter softc via link->bus->sb_adapter_softc.
In sparc64 autoconf access 'luns' via sb_luns and 'adapter_buswidth' via sb_adapter_buswidth.
Removes last post-config uses of the copies of bus related information in scsi_link.
show more ...
|
#
d114bbad |
| 13-Jul-2020 |
krw <krw@openbsd.org> |
Where we have a pointer (sc) to the relevant adapter_softc, use &sc->sc_dev to get a device pointer rather than using the void * whence we obtained 'sc'.
|
#
d4769f94 |
| 13-Jul-2020 |
krw <krw@openbsd.org> |
Remove some pointless casting of void * when assigning one (scsi_link.adapter_softc) to a pointer of a particular softc type.
|
#
e78ab20f |
| 11-Jul-2020 |
krw <krw@openbsd.org> |
Cache the adapter's port_wwn and node_wwn in mpi_softc, not the sc_link.
Keeps all the sc_link initialization in one easy target, er, place.
|
#
e803e20a |
| 11-Jul-2020 |
krw <krw@openbsd.org> |
Expunge some Captain Obvious comments, tweak whitespace a bit, move a debug statement. All to make upcoming diff(s) smaller and easier to read.
|
#
a7997e14 |
| 27-Jun-2020 |
krw <krw@openbsd.org> |
No need to bzero()/memset() 'struct scsibus_attach_args' variables immediately before initializing the only field in the struct.
|
#
8ea04389 |
| 21-Apr-2020 |
krw <krw@openbsd.org> |
Revert r1.207. Apparently mpi(4) on sparc64 blows up if sc_link.openings is greater than 34.
Encountered by Sigi Rudzio on his Blade 2500, who kindly did some testing to discover that the answer is
Revert r1.207. Apparently mpi(4) on sparc64 blows up if sc_link.openings is greater than 34.
Encountered by Sigi Rudzio on his Blade 2500, who kindly did some testing to discover that the answer is 34, not 42.
Nuke some whitespace on the way by.
show more ...
|
#
f4b58f5a |
| 13-Feb-2020 |
krw <krw@openbsd.org> |
Nuke *_minphys() functions that either simply apply MAXPHYS or do nothing at all. MAXPHYS will be applied in minphys() and nothing at all, well, doesn't do anything.
Also remove any '#define <blah>
Nuke *_minphys() functions that either simply apply MAXPHYS or do nothing at all. MAXPHYS will be applied in minphys() and nothing at all, well, doesn't do anything.
Also remove any '#define <blah> MAXPHYS' statements used solely to disguise MAXPHYS in said functions.
show more ...
|
#
fd0f4a36 |
| 27-Jan-2020 |
krw <krw@openbsd.org> |
Prototypes should not name the parameters.
|
#
6d832bc2 |
| 25-Jan-2020 |
krw <krw@openbsd.org> |
Drivers that implement their own *minphys() don't need to call the system minphys(). scsi_minphys() will do that and cd/sd/st will call scsi_minphys().
ok jmatthew@ as part of larger diff
|
#
a867c811 |
| 23-Jan-2020 |
krw <krw@openbsd.org> |
Use a consistant idiom/format when declaring scsi_adapter structures in drivers. Terse one liners, NULLs instead of 0's, explicitly specify all members, etc.
Nuke #ifdef notyet blocks related to the
Use a consistant idiom/format when declaring scsi_adapter structures in drivers. Terse one liners, NULLs instead of 0's, explicitly specify all members, etc.
Nuke #ifdef notyet blocks related to the scsi_adapter in aic.
No intentional functional change.
ok tedu@
show more ...
|
#
03604742 |
| 31-Dec-2019 |
mpi <mpi@openbsd.org> |
Convert infinite sleeps to {m,t}sleep_nsec(9).
ok kn@
|
#
9921026e |
| 14-Nov-2019 |
krw <krw@openbsd.org> |
Unleash all the available openings and let the midlayer sort things out like other "modern" devices.
ok dlg@
|
#
32d99de0 |
| 14-Aug-2018 |
jmatthew <jmatthew@openbsd.org> |
return ENOTTY rather than EINVAL to indicate an ioctl hasn't been handled
ok dlg@ deraadt@ kettenis@
|
#
8e9b01db |
| 17-Aug-2016 |
krw <krw@openbsd.org> |
Make error handling (esp. DATA_UNDERRUN) clearer and avoid losing resid value.
Specs from mikeb@, ok dlg@
|
#
62f7c8fb |
| 14-Aug-2016 |
dlg <dlg@openbsd.org> |
change some types in bio from u_quad_t to uint64_t, and fix casts in drivers that fill that field in too.
quad types are going away.
|
#
caf33b71 |
| 23-Oct-2015 |
jsg <jsg@openbsd.org> |
replace pointer arithmetic and casts with offsetof ok dlg@ krw@
|
#
2ec33d9c |
| 09-Sep-2015 |
deraadt <deraadt@openbsd.org> |
sizes for free(); ok sthen
|