Home | History | Annotate | Download | only in i2o
History log of /src/sys/dev/i2o/iop.c
RevisionDateAuthorComments
 1.93  07-Sep-2023  ad Make the I2O management cdevs MPSAFE.
 1.92  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.91  24-Apr-2021  thorpej branches: 1.91.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.90  10-Nov-2019  chs branches: 1.90.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.89  03-Sep-2018  riastradh Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER! Some subsystems have

#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
 1.88  28-Oct-2017  riastradh branches: 1.88.2; 1.88.4;
Kill some more extern struct cfdriver declarations.

Down with externs in .c!
 1.87  16-Aug-2015  msaitoh Fix a buffer pointer check in iop_msg_unmap(). The number of im_xfer
is IOP_MAX_MSG_XFERS and it's three. iop_systab_set() makes three ximit
buffers. In this case, iop_msg_unmap() overrruns by "if((++ix)->ix_size == 0)".
Check overrun first.

This change fixes a bug that iop(4) panics while attaching iopsp(4).
 1.86  25-Jul-2014  dholland branches: 1.86.4;
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.85  16-Mar-2014  dholland branches: 1.85.2;
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
 1.84  17-Oct-2013  christos remove unused variables and __USE a debugging variable
 1.83  14-Sep-2013  joerg #if 0 iop_status, but keep it for documentation purposes.
 1.82  27-Oct-2012  chs branches: 1.82.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.81  13-Nov-2010  uebayasi branches: 1.81.8; 1.81.18;
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.80  21-Feb-2010  bouyer branches: 1.80.2;
Fix confusion about PRE/POST in previous; and another place that has the
same issue. Also add a BUS_DMASYNC_POSTWRITE to the POLL operation.
Problem pointed out by tsutsui@.
Still not perfect (a BUS_DMASYNC_PREREAD would be needed after the
testing the condition in the POLL() macro), but closer.
 1.79  21-Feb-2010  bouyer Fix bus_dmamap_sync(): it should be a BUS_DMASYNC_POSTWRITE after
writing to DMA memory.
Found by code inspection.
 1.78  19-Feb-2010  asau Don't mix BUS_DMASYNC_PREREAD and BUS_DMASYNC_POSTWRITE.
Suggested by <bouyer>, fixes PR kern/42662
 1.77  21-Oct-2009  rmind branches: 1.77.2;
Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code. Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.
 1.76  12-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.75  14-Sep-2008  mhitch branches: 1.75.8;
Use the physical address from the bus_dmamap_load() map, not the one from
the bus_dmamem_alloc(). Fixes iop(4) on alpha, and possibly sparc64 as
described in the thread
http://mail-index.netbsd.org/port-sparc64/2008/06/04/msg000413.html.
 1.74  08-Sep-2008  gmcgarry Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h
preprocessor macros.
 1.73  08-Jun-2008  tsutsui branches: 1.73.4;
Replace device_lookup() with device_lookup_private() on getting softc
for future device_t/softc spilt.
 1.72  08-Jun-2008  ad Fix up bus_dmamap_sync calls.
 1.71  05-May-2008  ad branches: 1.71.2;
- Convert hashinit() to use kmem_alloc(). The hash tables can be large
and it's better to not have them in kmem_map.
- Convert a couple of minor items along the way to kmem_alloc().
- Fix some memory leaks.
 1.70  28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.69  06-Apr-2008  cegger branches: 1.69.2; 1.69.4;
use aprint_*_dev and device_xname
 1.68  05-Dec-2007  ad branches: 1.68.12;
Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.
 1.67  19-Oct-2007  ad branches: 1.67.2; 1.67.4;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.66  09-Jul-2007  ad branches: 1.66.6; 1.66.8; 1.66.12;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.65  16-Jun-2007  ad - Merge changes from the vmlocking branch.
- Eliminate opt_i2o.h, since I2OVERBOSE is gone.
 1.64  04-Mar-2007  christos branches: 1.64.2; 1.64.4;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.63  15-Feb-2007  ad branches: 1.63.2;
Replace some uses of lockmgr() / simplelocks.
 1.62  02-Dec-2006  elad Change kauth(9) KPI for kauth_authorize_device_passthru() to add another
argument, u_long, serving as a bit-mask of generic requests for the
passthru request.

Discussed on tech-security@ and tech-kern@. Okay tls@.
 1.61  16-Nov-2006  christos branches: 1.61.2;
__unused removal on arguments; approved by core.
 1.60  08-Nov-2006  elad Replace securelevel checks with kauth(9) calls.
 1.59  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.58  04-Oct-2006  christos fix empty if.
 1.57  30-Aug-2006  christos branches: 1.57.2; 1.57.4;
- fix initializers
- comment out dead code.
 1.56  23-Aug-2006  christos Acting as Elad's keyboard:

Place the securelevel checks in their logical locations.
This will be clearer in the future when code changes to use kauth(9) calls.

input and okay ad@
 1.55  14-Apr-2006  christos Coverity CID 1081: Avoid NULL deref.
 1.54  29-Mar-2006  thorpej Use device_private().
 1.53  28-Mar-2006  thorpej Use device_unit().
 1.52  27-Mar-2006  bouyer A device that has just been detached can't be reconfigured. Coverity ID 2674.
Note: this was not a problem right now because there's no drivers with both
a detach and a ii_reconfig callback.
 1.51  11-Dec-2005  christos branches: 1.51.4; 1.51.6; 1.51.8; 1.51.10; 1.51.12;
merge ktrace-lwp.
 1.50  25-Aug-2005  drochner kill a number of autoconf submatch functions which follow the
standard scheme:
if (<configured> != <wildcard> && <configured> != <real>)
then fail
else
ask device match function

This is handled by config_stdsubmatch() now.
 1.49  25-Aug-2005  drochner replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks
 1.48  30-May-2005  christos branches: 1.48.2;
avoid variable shadowing.
 1.47  27-Feb-2005  perry nuke trailing whitespace
 1.46  15-Sep-2004  drochner branches: 1.46.4; 1.46.6;
oops, another typo, should fix report by taya
 1.45  15-Sep-2004  drochner actually pass the locators,
should fix panic reported by Shin'ichiro TAYA
 1.44  13-Sep-2004  drochner a round of autoconf cleanup:
-convert submatch() style functions (passed to config_search() or
config_found_sm()) to the locator passing variants
-pass interface attributes in some cases
-make submatch() functions look uniformly as far as possible
-avoid macros which just hide cfdata members, and reduce dependencies
on "locators.h"
 1.43  22-Apr-2004  itojun sprintf -> snprintf
 1.42  09-Dec-2003  ad Match Promise controllers.
 1.41  30-Oct-2003  simonb Remove some assigned-to but otherwise unused variables.
 1.40  25-Oct-2003  mycroft Fix the previous differently.
 1.39  25-Oct-2003  christos Fix uninitialized variable warnings
 1.38  29-Jun-2003  fvdl branches: 1.38.2;
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
 1.37  28-Jun-2003  darrenr Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V
 1.36  03-May-2003  wiz DMA, not dma nor Dma.
 1.35  20-Jan-2003  simonb Remove variable that is only assigned too but not referenced.
 1.34  18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.33  01-Jan-2003  thorpej Use aprint_normal() in cfprint routines.
 1.32  11-Dec-2002  ad Fix typo.
 1.31  06-Dec-2002  ad - Handle DPT ioctls from native NetBSD binaries.
- SCSI targets could disapper mid-way through autoconfig if the board
notifed us of a changed LCT at the wrong time. Fix that.
 1.30  15-Nov-2002  ad Cosmetic changes.
 1.29  08-Nov-2002  msaitoh Add support for Adaptec 200[05]S
reviewed by Andrew Doran
 1.28  23-Oct-2002  jdolecek merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
 1.27  22-Oct-2002  ad PR 18760: don't issue I2O_EXEC_IOP_CLEAR to AMI boards, since some
firmware revisions can't handle it.
 1.26  27-Sep-2002  thorpej Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
 1.25  06-Sep-2002  gehenna Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.

- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.

- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
 1.24  05-Apr-2002  bouyer branches: 1.24.2; 1.24.4;
Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers
to convert xs->timeout to callout() parameter.
 1.23  08-Mar-2002  ad PR 15552: don't explode if the board fails to respond during initalization.
 1.22  12-Jan-2002  tsutsui Call malloc(9) with M_ZERO flag instead of memset() after malloc().
 1.21  02-Jan-2002  ad Set sc_framesize to a reasonable value early on so that DEBUG code
doesn't choke before we discern the real value.
 1.20  13-Nov-2001  lukem add RCSID
 1.19  27-Sep-2001  ad branches: 1.19.4;
Make firmware updates work with dpti.
 1.18  21-Sep-2001  ad Add `dpti', which is an I2O vendor extension implementing the DPT/Adaptec
control interface. This makes it possible to run the Linux versions of
dptmgr, raidutil, dptelog and other tools under NetBSD.
 1.17  18-Sep-2001  wiz Give initiali[sz]e all the "i"s it deserves.
 1.16  22-Aug-2001  ad branches: 1.16.2;
Parameter group changes:

- Do FIELD_SET correctly for scalar types.
- Add some basic table ops.
- Push error reporting back into iop.c.
- Add some field index and (yet more) LAN defs to i2o.h.
 1.15  04-Aug-2001  ad Some changes from OpenBSD, and some of my own:

- More SCSI port defs.
- Nuke vtophys().
- Release resources in iop_init() upon failure.
- Don't use a message wrapper when initalising the outbound FIFO.
- A couple of field size/endian fixes.
- Just use iop_post() when we don't need special handling.
- IM_DISCARD is now pointless, since we don't queue at the driver level.
- Map data transfers from/to userspace directly.
- A few comment and stylistic changes.
 1.14  12-Jun-2001  wiz branches: 1.14.2;
receive, not recieve
 1.13  01-Apr-2001  ad - Allocate any private space that's requested.
- Fix a few bogons with the last update.
- Add some more LAN defs.
 1.12  21-Mar-2001  ad Decrease the timeouts on QUEIESCE and CLEAR lest the adapter doesn't reply.
 1.11  20-Mar-2001  ad Major update; basically, improve performance somewhat and play nicer with
Intel and AMI IOPs. There still exists one nasty problem with Intel adapters
when under load, which I'm working on.
 1.10  03-Jan-2001  ad branches: 1.10.2;
Fix thinko in previous.
 1.9  03-Jan-2001  ad - Fix a number of bugs with the configuration stuff.
- Bash the passthrough interface into working order.
- Add an ioctl to retrieve the `tidmap'.
 1.8  01-Jan-2001  ad Don't try to configure `uninteresting' devices.
 1.7  03-Dec-2000  ad Nit.
 1.6  03-Dec-2000  ad Fix a comment.
 1.5  03-Dec-2000  ad - Only configure un-claimed devices. Implement re-configuration.
- Adhere to the spec better in some places. Also, work around some quirks
noted in the Linux I2O code.
- Register event handlers for the executive and RBS devices.
- Fix a number of buglets and tidy a little.
- Implement a message pass-through interface and some other useful ioctls.
 1.4  14-Nov-2000  thorpej branches: 1.4.2;
NBPG -> PAGE_SIZE
 1.3  09-Nov-2000  itojun unused variable
 1.2  09-Nov-2000  ad - A few minor changes (typos and the like).
- Use SPLs in iop_msg_send() and not the interrupt mask - it accesses
shared resources lower down.
 1.1  08-Nov-2000  ad Add support for I2O adapters and SCSI/FC-AL/BSA class devices. This needs
more testing with different configurations, and work in a number of areas
(which I'm not able to do for a little while), but is at least functional
and stable on i386 with DPT adapters.
 1.4.2.6  01-Apr-2001  ad Sync w/current.
 1.4.2.5  27-Mar-2001  bouyer Sync with HEAD.
 1.4.2.4  05-Jan-2001  bouyer Sync with HEAD
 1.4.2.3  08-Dec-2000  bouyer Sync with HEAD.
 1.4.2.2  22-Nov-2000  bouyer Sync thorpej_scsipi with trunk.
 1.4.2.1  14-Nov-2000  bouyer file iop.c was added on branch thorpej_scsipi on 2000-11-22 17:34:20 +0000
 1.10.2.20  03-Jan-2003  thorpej Sync with HEAD.
 1.10.2.19  19-Dec-2002  thorpej Sync with HEAD.
 1.10.2.18  11-Dec-2002  thorpej Sync with HEAD.
 1.10.2.17  27-Nov-2002  christos sync to current
 1.10.2.16  11-Nov-2002  nathanw Catch up to -current
 1.10.2.15  18-Oct-2002  nathanw Catch up to -current.
 1.10.2.14  17-Sep-2002  nathanw Catch up to -current.
 1.10.2.13  24-Jun-2002  nathanw Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).
 1.10.2.12  17-Apr-2002  nathanw Catch up to -current.
 1.10.2.11  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.10.2.10  28-Feb-2002  nathanw Catch up to -current.
 1.10.2.9  11-Jan-2002  nathanw More catchup.
 1.10.2.8  14-Nov-2001  nathanw Catch up to -current.
 1.10.2.7  08-Oct-2001  nathanw Catch up to -current.
 1.10.2.6  26-Sep-2001  nathanw Catch up to -current.
Again.
 1.10.2.5  21-Sep-2001  nathanw Catch up to -current.
 1.10.2.4  24-Aug-2001  nathanw Catch up with -current.
 1.10.2.3  21-Jun-2001  nathanw Catch up to -current.
 1.10.2.2  09-Apr-2001  nathanw Catch up with -current.
 1.10.2.1  05-Mar-2001  nathanw Initial commit of scheduler activations and lightweight process support.
 1.14.2.6  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.14.2.5  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.14.2.4  16-Mar-2002  jdolecek Catch up with -current.
 1.14.2.3  11-Feb-2002  jdolecek Sync w/ -current.
 1.14.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.14.2.1  25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.16.2.3  01-Oct-2001  fvdl Catch up with -current.
 1.16.2.2  26-Sep-2001  fvdl * add a VCLONED vnode flag that indicates a vnode representing a cloned
device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
to the specinfo of a cloned vnode. could possibly redirect getattr to
the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
original device, and reassociates it with the specified dev_t. to be
used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
when debugging race conditions that still exist wrt. locking and
revoking vnodes.
* make the locking state of a vnode consistent when passed to
d_open and d_close (unlocked). locked would be better, but has
some deadlock issues
 1.16.2.1  07-Sep-2001  thorpej Commit my "devvp" changes to the thorpej-devvp branch. This
replaces the use of dev_t in most places with a struct vnode *.

This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).
 1.19.4.4  09-Mar-2002  he Pull up revisions 1.19-1.23 (via patch, requested by ad):
Use variable frame size to enable dpti firmware upgrades.
Don't explode if the board doesn't respond during initialization.
 1.19.4.3  09-Dec-2001  he Pull up revisions 1.17-1.18 (requested by ad):
Add driver for DPT/Adaptec I2O RAID management interface.
 1.19.4.2  25-Oct-2001  he Pull up revisions 1.1-1.16 (new, via patch, requested by ad):
Add Mylex DACC960, CAC-EISA, and I2O block/SCSI drivers.
 1.19.4.1  27-Sep-2001  he file iop.c was added on branch netbsd-1-5 on 2001-10-25 18:00:39 +0000
 1.24.4.2  12-Dec-2002  he Pull up revisions 1.29-1.32 (requested by ad in ticket #1030):
Add support for Adaptec 2005S.
Handle DPT ioctls() from native binaries.
Fix SCSI probe problem.
 1.24.4.1  23-Oct-2002  lukem Pull up revision 1.27 (requested by ad in ticket #939):
PR 18760: don't issue I2O_EXEC_IOP_CLEAR to AMI boards, since some
firmware revisions can't handle it.
 1.24.2.1  16-May-2002  gehenna Add the character device switch.
 1.38.2.6  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.38.2.5  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.38.2.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.38.2.3  18-Sep-2004  skrll Sync with HEAD.
 1.38.2.2  03-Aug-2004  skrll Sync with HEAD
 1.38.2.1  02-Jul-2003  darrenr Apply the aborted ktrace-lwp changes to a specific branch. This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it. This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.
 1.46.6.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.46.4.1  29-Apr-2005  kent sync with -current
 1.48.2.6  07-Dec-2007  yamt sync with head
 1.48.2.5  27-Oct-2007  yamt sync with head.
 1.48.2.4  03-Sep-2007  yamt sync with head.
 1.48.2.3  26-Feb-2007  yamt sync with head.
 1.48.2.2  30-Dec-2006  yamt sync with head.
 1.48.2.1  21-Jun-2006  yamt sync with head.
 1.51.12.3  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.51.12.2  31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.51.12.1  28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.51.10.1  19-Apr-2006  elad sync with head.
 1.51.8.3  03-Sep-2006  yamt sync with head.
 1.51.8.2  24-May-2006  yamt sync with head.
 1.51.8.1  01-Apr-2006  yamt sync with head.
 1.51.6.1  22-Apr-2006  simonb Sync with head.
 1.51.4.1  09-Sep-2006  rpaulo sync with head
 1.57.4.2  10-Dec-2006  yamt sync with head.
 1.57.4.1  22-Oct-2006  yamt sync with head
 1.57.2.2  12-Jan-2007  ad Sync with head.
 1.57.2.1  18-Nov-2006  ad Sync with head.
 1.61.2.2  25-May-2008  bouyer Apply patch (requested by ad in ticket #1146):
sys/dev/i2o/iop.c: patch
Fix crash during boot on systems with an I2O controller
 1.61.2.1  04-Dec-2006  tron branches: 1.61.2.1.2;
Pull up following revision(s) (requested by elad in ticket #247):
sys/dev/ic/dpt.c: revision 1.55
sys/dev/pci/amr.c: revision 1.43
sys/secmodel/bsd44/secmodel_bsd44_securelevel.c: revision 1.19
sys/dev/pci/mly.c: revision 1.33
share/man/man9/kauth.9: revision 1.37
sys/dev/ic/mlx.c: revision 1.49
sys/dev/ic/icp_ioctl.c: revision 1.14
sys/dev/i2o/iop.c: revision 1.62
sys/dev/pci/twe.c: revision 1.82
sys/sys/kauth.h: revision 1.25
sys/dev/i2o/dpti.c: revision 1.31
sys/kern/kern_auth.c: revision 1.33
sys/dev/tc/stic.c: revision 1.37
Change kauth(9) KPI for kauth_authorize_device_passthru() to add another
argument, u_long, serving as a bit-mask of generic requests for the
passthru request.
Discussed on tech-security@ and tech-kern@. Okay tls@.
 1.61.2.1.2.1  03-Jun-2008  skrll Sync with netbsd-4.
 1.63.2.1  12-Mar-2007  rmind Sync with HEAD.
 1.64.4.1  11-Jul-2007  mjf Sync with head.
 1.64.2.9  23-Oct-2007  ad Sync with head.
 1.64.2.8  15-Jul-2007  ad Sync with head.
 1.64.2.7  15-Jul-2007  ad Sync with head.
 1.64.2.6  08-Jun-2007  ad Unbork.
 1.64.2.5  27-May-2007  ad Checkpoint work in progress. Seems to break block I/O but I am not sure
why yet:

- Avoid a NULL pointer dereference in bus_dmamap_sync.
- MP safety changes, incomplete.
 1.64.2.4  13-May-2007  ad - Pass the error number and residual count to biodone(), and let it handle
setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.
 1.64.2.3  10-Apr-2007  ad Nuke the deferred kthread creation stuff, as it's no longer needed.
Pointed out by thorpej@.
 1.64.2.2  09-Apr-2007  ad - Add two new arguments to kthread_create1: pri_t pri, bool mpsafe.
- Fork kthreads off proc0 as new LWPs, not new processes.
 1.64.2.1  05-Apr-2007  ad Compile fixes.
 1.66.12.1  25-Oct-2007  bouyer Sync with HEAD.
 1.66.8.2  09-Jan-2008  matt sync with HEAD
 1.66.8.1  06-Nov-2007  matt sync with HEAD
 1.66.6.2  09-Dec-2007  jmcneill Sync with HEAD.
 1.66.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.67.4.1  08-Dec-2007  ad Sync with head.
 1.67.2.1  08-Dec-2007  mjf Sync with HEAD.
 1.68.12.4  28-Sep-2008  mjf Sync with HEAD.
 1.68.12.3  29-Jun-2008  mjf Sync with HEAD.
 1.68.12.2  02-Jun-2008  mjf Sync with HEAD.
 1.68.12.1  05-Apr-2008  mjf - add "file-system DEVFS" and "pseudo-device devfsctl" to conf/std seeing
as these are always needed.

- convert many, many drivers over to the New Devfs World Order. For a
list of device drivers yet to be converted see,
http://www.netbsd.org/~mjf/devfs-todo.html.

- add a new device_unregister_all(device_t) function to remove all device
names associated with a device_t, which saves us having to construct
device names when the driver is detached.

- add a DEV_AUDIO type for devices.
 1.69.4.4  11-Mar-2010  yamt sync with head
 1.69.4.3  16-May-2009  yamt sync with head
 1.69.4.2  04-May-2009  yamt sync with head.
 1.69.4.1  16-May-2008  yamt sync with head.
 1.69.2.2  17-Jun-2008  yamt sync with head.
 1.69.2.1  18-May-2008  yamt sync with head.
 1.71.2.2  24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.71.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.73.4.1  19-Oct-2008  haad Sync with HEAD.
 1.75.8.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.77.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.80.2.1  05-Mar-2011  rmind sync with head
 1.81.18.3  03-Dec-2017  jdolecek update from HEAD
 1.81.18.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.81.18.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.81.8.2  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.81.8.1  30-Oct-2012  yamt sync with head
 1.82.2.1  18-May-2014  rmind sync with head
 1.85.2.1  10-Aug-2014  tls Rebase.
 1.86.4.1  22-Sep-2015  skrll Sync with HEAD
 1.88.4.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.88.4.1  10-Jun-2019  christos Sync with HEAD
 1.88.2.1  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.90.10.2  22-Mar-2021  thorpej Audit CFARG_IATTR in config_found() calls, and remove it in situations
where the interface attribute is not ambiguous.
 1.90.10.1  22-Mar-2021  thorpej Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.
 1.91.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed