The NetBSD Project

CVS log for src/sys/dev/ic/isp_netbsd.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / ic

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.99: download - view: text, markup, annotated - select for diffs
Fri Feb 9 22:08:34 2024 UTC (2 years, 9 months ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, HEAD
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +3 -3 lines
fix spelling mistakes, mainly in comments and log messages.

Revision 1.98: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:12 2021 UTC (5 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -3 lines
Merge thorpej-cfargs2.

Revision 1.97.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 20:14:42 2021 UTC (5 years, 3 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97: +3 -3 lines
Adapt to CFARGS().

Revision 1.97: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:55 2021 UTC (5 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +4 -3 lines
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?).

Revision 1.96.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 21:09:12 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.96: preferred, colored; next MAIN 1.97: preferred, colored
Changes since revision 1.96: +4 -3 lines
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.

Revision 1.95.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:38:06 2020 UTC (5 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95: +2 -4 lines
Sync w/ HEAD.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Sat Dec 5 17:33:53 2020 UTC (5 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +2 -4 lines
Remove unnecessary inclusion of <sys/timevar.h>.

Revision 1.89.4.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:21 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.89.4.1: preferred, colored; branchpoint 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89.4.1: +19 -20 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.95: download - view: text, markup, annotated - select for diffs
Wed Sep 25 15:51:37 2019 UTC (7 years, 1 month ago) by maya
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +4 -4 lines
Make clang -Wformat-security happier by not passing a (constant) variable
as the format string,
    const string msg; printf(msg)
      -> printf("%s", msg);

the strings are all known and don't currently contain format variables.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Sat Sep 21 07:31:56 2019 UTC (7 years, 1 month ago) by maxv
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +2 -3 lines
Remove unused function prototype. Reported by the lgtm bot.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Fri Sep 20 14:20:45 2019 UTC (7 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +16 -16 lines
declare printflike functions and fix another printf format.
also change 0x%x -> %#x.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Fri Sep 20 09:07:35 2019 UTC (7 years, 1 month ago) by maxv
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -3 lines
Fix argument.

Found by the lgtm bot.

Revision 1.89.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:10 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +5 -4 lines
Sync with HEAD

Revision 1.91: download - view: text, markup, annotated - select for diffs
Sun Feb 3 03:19:27 2019 UTC (7 years, 9 months ago) by mrg
Branches: MAIN
CVS tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +3 -2 lines
- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
  this case, and thus can't be marked __dead easily

Revision 1.89.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:49 2018 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89: +4 -4 lines
Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.90: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:31 2018 UTC (8 years, 2 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -4 lines
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!)

Revision 1.86.2.1: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:03 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +16 -11 lines
update from HEAD

Revision 1.87.2.2: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:03 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.87.2.1: preferred, colored; branchpoint 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87.2.1: +6 -2 lines
Sync with HEAD

Revision 1.85.2.2: download - view: text, markup, annotated - select for diffs
Sat Aug 19 04:27:38 2017 UTC (9 years, 2 months ago) by snj
Branches: netbsd-6
Diff to: previous 1.85.2.1: preferred, colored; branchpoint 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85.2.1: +6 -2 lines
Pull up following revision(s) (requested by mrg in ticket #1485):
	sys/dev/ic/isp_netbsd.c: revision 1.89
Reject out-of-bounds channel index.
From Ilja Van Sprundel.

Revision 1.85.2.1.4.1: download - view: text, markup, annotated - select for diffs
Sat Aug 19 04:27:37 2017 UTC (9 years, 2 months ago) by snj
Branches: netbsd-6-1
Diff to: previous 1.85.2.1: preferred, colored; next MAIN 1.85.2.2: preferred, colored
Changes since revision 1.85.2.1: +6 -2 lines
Pull up following revision(s) (requested by mrg in ticket #1485):
	sys/dev/ic/isp_netbsd.c: revision 1.89
Reject out-of-bounds channel index.
From Ilja Van Sprundel.

Revision 1.85.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 19 04:27:35 2017 UTC (9 years, 2 months ago) by snj
Branches: netbsd-6-0
Diff to: previous 1.85.2.1: preferred, colored; next MAIN 1.85.2.2: preferred, colored
Changes since revision 1.85.2.1: +6 -2 lines
Pull up following revision(s) (requested by mrg in ticket #1485):
	sys/dev/ic/isp_netbsd.c: revision 1.89
Reject out-of-bounds channel index.
From Ilja Van Sprundel.

Revision 1.86.14.1: download - view: text, markup, annotated - select for diffs
Sat Aug 12 04:23:41 2017 UTC (9 years, 3 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +6 -2 lines
Pull up following revision(s) (requested by mrg in ticket #1482):
	sys/dev/ic/isp_netbsd.c: revision 1.89
Reject out-of-bounds channel index.
From Ilja Van Sprundel.

Revision 1.86.20.1: download - view: text, markup, annotated - select for diffs
Sat Aug 12 04:23:19 2017 UTC (9 years, 3 months ago) by snj
Branches: netbsd-7-1
CVS tags: netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +6 -2 lines
Pull up following revision(s) (requested by mrg in ticket #1482):
	sys/dev/ic/isp_netbsd.c: revision 1.89
Reject out-of-bounds channel index.
From Ilja Van Sprundel.

Revision 1.86.16.1: download - view: text, markup, annotated - select for diffs
Sat Aug 12 04:22:26 2017 UTC (9 years, 3 months ago) by snj
Branches: netbsd-7-0
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +6 -2 lines
Pull up following revision(s) (requested by mrg in ticket #1482):
	sys/dev/ic/isp_netbsd.c: revision 1.89
Reject out-of-bounds channel index.
From Ilja Van Sprundel.

Revision 1.88.10.1: download - view: text, markup, annotated - select for diffs
Wed Aug 9 05:17:03 2017 UTC (9 years, 3 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88: +6 -2 lines
Pull up following revision(s) (requested by spz in ticket #195):
	sys/dev/ic/isp_netbsd.c: revision 1.89
Reject out-of-bounds channel index.
From Ilja Van Sprundel.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Fri Jul 28 15:02:52 2017 UTC (9 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, nick-nhusb-base-20170825, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +6 -2 lines
Reject out-of-bounds channel index.

From Ilja Van Sprundel.

Revision 1.87.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:09 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +11 -10 lines
Sync with HEAD

Revision 1.88: download - view: text, markup, annotated - select for diffs
Wed Dec 31 17:10:45 2014 UTC (11 years, 10 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, netbsd-8-base, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +11 -10 lines
We can't sleep if we are called from the watchdog timeout.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Sat Oct 18 08:33:27 2014 UTC (12 years, 1 month ago) by snj
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -3 lines
src is too big these days to tolerate superfluous apostrophes.  It's
"its", people!

Revision 1.85.4.1: download - view: text, markup, annotated - select for diffs
Thu Nov 1 16:45:01 2012 UTC (14 years ago) by matt
Branches: matt-nb6-plus
Diff to: previous 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85: +6 -6 lines
sync with netbsd-6-0-RELEASE.

Revision 1.84.8.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:21:04 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.84.8.1: preferred, colored; branchpoint 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84.8.1: +6 -6 lines
sync with head

Revision 1.85.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 18:38:34 2012 UTC (14 years, 2 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, matt-nb6-plus-nbase, matt-nb6-plus-base
Branch point for: netbsd-6-1, netbsd-6-0
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +6 -6 lines
Pull up following revision(s) (requested by bouyer in ticket #524):
	sys/dev/ic/isp_netbsd.c: revision 1.86
Properly fill the struct timeval before using it: a timeout in microseconds has
to be converted to seconds and microseconds.
Fix KASSERT("usec >= 0 && usec < 1000000") in tvtohz().
While there, simplify computation of to (avoids a timersub() in tvhzto()
and directly call tvtohz() with the interval).

Revision 1.86: download - view: text, markup, annotated - select for diffs
Tue Aug 21 15:53:07 2012 UTC (14 years, 2 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, netbsd-7-1, netbsd-7-0, netbsd-7
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +6 -6 lines
Properly fill the struct timeval before using it: a timeout in microseconds has
to be converted to seconds and microseconds.
Fix KASSERT("usec >= 0 && usec < 1000000") in tvtohz().
While there, simplify computation of to (avoids a timersub() in tvhzto()
and directly call tvtohz() with the interval).

Revision 1.84.8.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:34 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +6 -9 lines
sync with head

Revision 1.84.12.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:34:20 2012 UTC (14 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84: +6 -9 lines
merge to -current.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Mon Dec 12 18:28:34 2011 UTC (14 years, 11 months ago) by jdc
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-0-RC1, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: netbsd-6, matt-nb6-plus
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +6 -9 lines
Fix:
  panic: kernel diagnostic assertion "usec >= 0 && usec < 1000000" failed: file "/usr/src/sys/kern/subr_time.c", line 92
by using timeradd(), rather than our own code, in the timeout calculating
loop.  Idea from joerg@.

Revision 1.82.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:17 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.82.4.1: preferred, colored; branchpoint 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82.4.1: +2 -4 lines
sync with head

Revision 1.82.2.2: download - view: text, markup, annotated - select for diffs
Fri Oct 22 07:21:57 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.82.2.1: preferred, colored; branchpoint 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82.2.1: +0 -2 lines
Sync with HEAD (-D20101022).

Revision 1.77.4.7: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:06 2010 UTC (16 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.77.4.6: preferred, colored; branchpoint 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77.4.6: +2 -4 lines
sync with head

Revision 1.84: download - view: text, markup, annotated - select for diffs
Mon Sep 20 03:52:45 2010 UTC (16 years, 2 months ago) by mjacob
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-usbmp
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +2 -4 lines
Multiple channel devices *should* be working. Remove the debug code
that was avoiding finding out.

Revision 1.77.4.6: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:27 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.77.4.5: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.4.5: +18 -2 lines
sync with head.

Revision 1.82.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:23 2010 UTC (16 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +18 -2 lines
sync with head

Revision 1.82.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:17 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +18 -2 lines
Sync with HEAD.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Fri Mar 26 20:52:00 2010 UTC (16 years, 7 months ago) by mjacob
Branches: MAIN
CVS tags: yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +18 -2 lines
Synchronize with other platforms:

	Strongly architect handles so we can more easily detect bogus
	handles. This switches us to a full 32 bits for all handles.

	Handle the case of FC disks disappearing and then reappearing-
	at least at the FC transport level.

	Some better and finer control of debug and non-debug printouts.

Revision 1.77.4.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:32 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.77.4.4: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.4.4: +14 -2 lines
sync with head

Revision 1.82: download - view: text, markup, annotated - select for diffs
Mon Jan 11 01:33:22 2010 UTC (16 years, 10 months ago) by mjacob
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +14 -2 lines
Keep track of what appear to be live Fibre Channel disks and store up the
Port WWNs for them as well as attaching them as a "port-wwn" property to
the device node in question. This allows MD code to find the boot device
on some platforms.

This is less clean than it should be. A better solution would be to make
some changes to the scsi infrastructure so that periphs can query and
use and store their own "native" transport addresses. However, that's
a much more invasive change and it is not clear how many ports or devices
really want or need that information (yet).

Revision 1.77.4.4: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:37:48 2009 UTC (17 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.77.4.3: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.4.3: +13 -10 lines
sync with head

Revision 1.81: download - view: text, markup, annotated - select for diffs
Mon Sep 7 13:39:19 2009 UTC (17 years, 2 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, matt-premerge-20091211, jym-xensuspend-nbase
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +13 -10 lines
Split device_t/softc.
Tested QLogic 1020 Fast Wide SCSI HBA at PCI.
Sbus attachment is untested, but not so much quirks in it.

Revision 1.78.8.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:31:48 2009 UTC (17 years, 3 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.78.8.1: preferred, colored; branchpoint 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.8.1: +37 -37 lines
Sync with HEAD.

Revision 1.77.4.3: download - view: text, markup, annotated - select for diffs
Sat Jul 18 14:53:01 2009 UTC (17 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.77.4.2: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.4.2: +37 -37 lines
sync with head.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Thu Jun 25 23:44:02 2009 UTC (17 years, 4 months ago) by mjacob
Branches: MAIN
CVS tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, jymxensuspend-base
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +37 -37 lines
Update ISP driver to latest and greatest. Includes support for the 8Gb part.

Revision 1.77.4.2: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:23 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.77.4.1: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.4.1: +5 -5 lines
sync with head

Revision 1.78.8.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:23 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +5 -5 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Tue May 12 14:25:17 2009 UTC (17 years, 6 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, jym-xensuspend-base
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +5 -5 lines
struct device * -> device_t, no functional changes intended.

Revision 1.77.4.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:42 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -3 lines
sync with head.

Revision 1.77.10.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:26 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77: +3 -3 lines
Sync with HEAD.

Revision 1.75.28.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:23 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.75.28.2: preferred, colored; branchpoint 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.28.2: +1 -1 lines
Sync with HEAD.

Revision 1.77.6.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:35:04 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77: +3 -3 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.77.8.1: download - view: text, markup, annotated - select for diffs
Fri Jul 18 16:37:33 2008 UTC (18 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77: +3 -3 lines
Sync with head.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Tue Jul 15 16:18:08 2008 UTC (18 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -3 lines
Use more timespecs internally. From Alexander Shishkin and me.
Welcome to 4.99.70, 30 more to go for 100.

Revision 1.75.28.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:23 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.75.28.1: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.28.1: +2 -2 lines
Sync with HEAD.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue Apr 8 12:07:26 2008 UTC (18 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl, haad-dm
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +4 -4 lines
use aprint_*_dev and device_xname

Revision 1.75.28.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:40 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +369 -204 lines
Sync with HEAD.

Revision 1.75.24.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:16 2008 UTC (18 years, 7 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +369 -204 lines
sync with head.

Revision 1.75.8.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:38 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +369 -204 lines
sync with HEAD

Revision 1.66.2.5: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:14:42 2008 UTC (18 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.66.2.4: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.2.4: +369 -204 lines
sync with head.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Tue Mar 11 05:33:30 2008 UTC (18 years, 8 months ago) by mjacob
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +369 -204 lines
Checkpoint of some fairly major isp(4) rototilling.

Reintroduce more of a 'channel' concept in preparation for NP-IV support.
This gets rid of the chanA/chanB concept as the 2400 can have up to 128
virtual channels. Actually, with MID firmware you can also have the 2200
and 2300 support 'channels, but they do it with an FL-Port topology.
Because FC cards can now have 'channels', just about every support
function for fibre channel had to be redone to have a channel index
as well.  Rototill isp_ioctl.h for channel stuff as well.

Pick up a lot of work about fabric management (hopefully better) and keep
work in place that will allow for dynamic attachment/detachment of devices
(if I can figure out how to make the midlayer support it).

Merge the target code with external trees. Eventually it might even
be sorted out on NetBSD.

Update some firmware stuff.

Revision 1.66.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:34:47 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.66.2.3: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.2.3: +665 -335 lines
sync with head.

Revision 1.73.2.7: download - view: text, markup, annotated - select for diffs
Sun Jul 15 15:52:45 2007 UTC (19 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.73.2.6: preferred, colored; branchpoint 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73.2.6: +133 -133 lines
Sync with head.

Revision 1.73.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:05:55 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73: +664 -334 lines
Sync with head.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:00:36 2007 UTC (19 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs2, matt-armv6, keiichi-mipv6
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +13 -23 lines
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.73.2.6: download - view: text, markup, annotated - select for diffs
Sun Jul 1 21:47:51 2007 UTC (19 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.73.2.5: preferred, colored; branchpoint 1.73: preferred, colored
Changes since revision 1.73.2.5: +4 -4 lines
Adapt to callout API change.

Revision 1.73.2.5: download - view: text, markup, annotated - select for diffs
Sat Jun 9 23:57:50 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.73.2.4: preferred, colored; branchpoint 1.73: preferred, colored
Changes since revision 1.73.2.4: +4 -5 lines
Sync with head.

Revision 1.73.2.4: download - view: text, markup, annotated - select for diffs
Sun May 27 14:30:03 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.73.2.3: preferred, colored; branchpoint 1.73: preferred, colored
Changes since revision 1.73.2.3: +672 -326 lines
Sync with head.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu May 24 21:30:43 2007 UTC (19 years, 5 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +668 -328 lines
Major update to isp(4) driver to bring it in line with external sources.

The major changes are:

 + 4Gb (24XX) card support
 + Rewritten fabric and loop evaluation code
 + New f/w sets

The 4Gb changes required major rototilling, which caused a rewrite of
fabric and loop eval code. The latter can now be set up to tune for
dynamic device arrival/departure if the framework is set up for it,
or to be firm about waiting for devices.

Testing has been principally on amd64, i386 and sparc64 and seems to
not have broken things for me.

Revision 1.73.2.3: download - view: text, markup, annotated - select for diffs
Sun May 13 17:36:24 2007 UTC (19 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.73.2.2: preferred, colored; branchpoint 1.73: preferred, colored
Changes since revision 1.73.2.2: +3 -3 lines
- 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.

Revision 1.73.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 10 12:07:09 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.73.2.1: preferred, colored; branchpoint 1.73: preferred, colored
Changes since revision 1.73.2.1: +9 -24 lines
Nuke the deferred kthread creation stuff, as it's no longer needed.
Pointed out by thorpej@.

Revision 1.73.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 22:09:57 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +4 -4 lines
- Add two new arguments to kthread_create1: pri_t pri, bool mpsafe.
- Fork kthreads off proc0 as new LWPs, not new processes.

Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:36 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +4 -4 lines
Sync with HEAD.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:01:57 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +4 -4 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.66.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:10:09 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.66.2.2: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.2.2: +3 -3 lines
sync with head.

Revision 1.69.2.2: download - view: text, markup, annotated - select for diffs
Thu Feb 1 08:48:19 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.69.2.1: preferred, colored; branchpoint 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69.2.1: +3 -3 lines
Sync with head.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Sat Jan 13 19:41:12 2007 UTC (19 years, 10 months ago) by cube
Branches: MAIN
CVS tags: post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -3 lines
Make it compile with all the options.

Revision 1.66.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:03 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.66.2.1: preferred, colored; branchpoint 1.66: preferred, colored
Changes since revision 1.66.2.1: +6 -6 lines
sync with head.

Revision 1.69.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:17:06 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.69.4.1: preferred, colored; branchpoint 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69.4.1: +3 -3 lines
sync with head.

Revision 1.69.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:12 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -4 lines
Sync with head.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:32:51 2006 UTC (20 years ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -3 lines
__unused removal on arguments; approved by core.

Revision 1.69.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:44 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -4 lines
sync with head

Revision 1.70: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:01 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -4 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.67.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:50:02 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +4 -5 lines
sync with head

Revision 1.67.8.2: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:23:56 2006 UTC (20 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.67.8.1: preferred, colored; branchpoint 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.8.1: +4 -4 lines
sync with head.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed Aug 30 19:25:46 2006 UTC (20 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +4 -4 lines
fix initializers.

Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:55 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -3 lines
sync with head.

Revision 1.67.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:36:25 2006 UTC (20 years, 5 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +2 -3 lines
Sync with head.

Revision 1.67.12.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:25 2006 UTC (20 years, 5 months ago) by tron
Branches: peter-altq
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +2 -3 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.67.8.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:57:41 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +2 -3 lines
sync with head.

Revision 1.67.10.1: download - view: text, markup, annotated - select for diffs
Thu May 11 23:28:30 2006 UTC (20 years, 6 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +2 -3 lines
sync with head

Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun May 7 17:31:48 2006 UTC (20 years, 6 months ago) by jdc
Branches: MAIN
CVS tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +2 -3 lines
Remove call that sets XS_STS_DONE before we call scsipi_done().
This makes isp work again following the change in r1.135 of scsipi_base.c.
Also tested by David Hopper.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:21:27 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -2 lines
merge ktrace-lwp.

Revision 1.59.2.5: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:04:15 2005 UTC (21 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.59.2.4: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59.2.4: +6 -6 lines
Sync with HEAD. Here we go again...

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon May 30 04:43:47 2005 UTC (21 years, 5 months ago) by christos
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +6 -6 lines
- add missing const
- fix variable shadowing
- remove unneeded casts

Revision 1.64.8.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:51 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +8 -8 lines
sync with -current

Revision 1.64.10.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:34:03 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +8 -8 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.59.2.4: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:41:30 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.59.2.3: preferred, colored
Changes since revision 1.59.2.3: +8 -8 lines
Sync with HEAD.

Hi Perry!

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:01 2005 UTC (21 years, 8 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +8 -8 lines
nuke trailing whitespace

Revision 1.59.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:27:59 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.59.2.2: preferred, colored
Changes since revision 1.59.2.2: +2 -2 lines
Fix the sync with head I botched.

Revision 1.59.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:45:58 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.59.2.1: preferred, colored
Changes since revision 1.59.2.1: +0 -0 lines
Sync with HEAD.

Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:46:16 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +12 -7 lines
Sync with HEAD

Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Dec 4 13:57:30 2003 UTC (22 years, 11 months ago) by keihan
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3 lines
netbsd.org -> NetBSD.org

This was the last commit of this kind to src/sys, which is now totally
"NetBSD.org clean".  Thanks for the patiance, and sorry for all the commits.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Nov 2 11:07:45 2003 UTC (23 years ago) by wiz
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
Fix some typos. From Tom Cosgrove via jmc@openbsd.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Oct 8 19:51:01 2003 UTC (23 years, 1 month ago) by pk
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -3 lines
In isp_fc_worker() reduce the timeout value used to poll for the link
status from 10 seconds to 250 milli seconds for the second and subsequent
attempts to determine the link status. This prevents unnecessary long
stalls after the device attach routines have completed.

Tested on a dual port QLogic 3212.  Approved by mjacob@feral.com.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sat Sep 27 03:43:08 2003 UTC (23 years, 1 month ago) by tls
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -2 lines
Remove NOSETTLE flag from channel in FibreChannel case.  It makes sense that
it should be there, but in practice, on some systems an ugly race condition
rears its head: SCSI commands are issued before the FC thread ever runs, and
fail from then on forever.  Yuck.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Aug 7 01:10:53 2003 UTC (23 years, 3 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +7 -4 lines
Note both active and nvram WWNN/WWPNs

Fix the bug where the thread worker constantly looped. It was a race as
to whether or not the thread fired up or a polled/probed command happened
first, or maybe it's due to other scsipi changes, but we never set the
value that caused the fc thread worker to actually go to sleep until an
initial loop up.

This was rather ugly as it consumed nearly all CPU time available from thence
on. Bad.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Fri Mar 21 18:05:16 2003 UTC (23 years, 8 months ago) by mjacob
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -2 lines
Fibre Channel doesn't need bus reset settle time.

Revision 1.39.2.13: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:38:00 2002 UTC (23 years, 11 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.39.2.12: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.2.12: +1 -1 lines
Sync with HEAD.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Mon Nov 25 01:44:56 2002 UTC (23 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3 lines
Avoid strict-alias warnings.

Revision 1.39.2.12: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:19:47 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.11: preferred, colored
Changes since revision 1.39.2.11: +5 -3 lines
Catch up to -current.

Revision 1.46.2.5: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:44:23 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.46.2.4: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46.2.4: +23 -5 lines
sync kqueue branch with HEAD

Revision 1.53.4.1: download - view: text, markup, annotated - select for diffs
Sun Sep 1 23:39:46 2002 UTC (24 years, 2 months ago) by lukem
Branches: netbsd-1-6
CVS tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +7 -5 lines
Pull up revision 1.57 (requested by lukem for mjacob in ticket #757):
Do not enable interrupt driven mailbox commands for non-FC scsi.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Sep 1 22:30:09 2002 UTC (24 years, 2 months ago) by mjacob
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +7 -5 lines
Do not enable interrupt driven mailbox commands for non-FC scsi.

Revision 1.53.2.2: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:22:28 2002 UTC (24 years, 2 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.53.2.1: preferred, colored; branchpoint 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.2.1: +18 -2 lines
catch up with -current.

Revision 1.39.2.11: download - view: text, markup, annotated - select for diffs
Tue Aug 13 02:19:26 2002 UTC (24 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.10: preferred, colored
Changes since revision 1.39.2.10: +18 -2 lines
Catch up to -current.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Aug 12 21:33:40 2002 UTC (24 years, 3 months ago) by mjacob
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +18 -2 lines
Various changes to allow for overriding just loopid and/or iid.
Fix a random 23XX ISR reading bug. Be chattier about HBA_BOTCH
errors. More f/w cashdump layering.

Revision 1.46.2.4: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:46:37 2002 UTC (24 years, 4 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.46.2.3: preferred, colored
Changes since revision 1.46.2.3: +102 -90 lines
catch up with -current on kqueue branch

Revision 1.53.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 20 16:33:12 2002 UTC (24 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +52 -38 lines
catch up with -current.

Revision 1.39.2.10: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:44:49 2002 UTC (24 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.9: preferred, colored
Changes since revision 1.39.2.9: +52 -38 lines
Catch up to -current.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Jun 15 00:20:18 2002 UTC (24 years, 5 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +50 -36 lines
Add support for ISP_FC_GETHINFO which can tell you connection topology,
current speed, loopid, etc.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat Jun 8 16:59:27 2002 UTC (24 years, 5 months ago) by yamt
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +4 -4 lines
make auto const variables static.

Revision 1.39.2.9: download - view: text, markup, annotated - select for diffs
Wed Apr 17 00:05:45 2002 UTC (24 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.8: preferred, colored
Changes since revision 1.39.2.8: +52 -54 lines
Catch up to -current.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Apr 4 23:38:46 2002 UTC (24 years, 7 months ago) by mjacob
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RC2, netbsd-1-6-RC1
Branch point for: netbsd-1-6, gehenna-devsw
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +52 -54 lines
Redo fabric evaluation to not use GET ALL NEXT (GA_NXT). Switches seem
to be trying to wriggle out of supporting this well. Instead, use
GID_FT to get a list of Port IDs and then use GPN_ID/GNN_ID to find the
port and node wwn. This should make working on fabrics a bit cleaner and
more stable.

This also caused some cleanup of SNS subcommand canonicalization so that
we can actually check for FS_ACC and FS_RJT, and if we get an FS_RJT,
print out the reason and explanation codes.

We'll keep the old GA_NXT method around if people want to uncomment a
controlling definition in ispvar.h.

This also had us clean up ISPASYNC_FABRICDEV to use a local lportdb argument
and to have the caller explicitly say that a device is at the end of the
fabric list.

Revision 1.46.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 16 16:00:58 2002 UTC (24 years, 8 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.46.2.2: preferred, colored
Changes since revision 1.46.2.2: +93 -8 lines
Catch up with -current.

Revision 1.39.2.8: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:13:25 2002 UTC (24 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.7: preferred, colored
Changes since revision 1.39.2.7: +93 -8 lines
Catch up to -current.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Thu Feb 21 22:32:41 2002 UTC (24 years, 8 months ago) by mjacob
Branches: MAIN
CVS tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +93 -8 lines
Implement F/W crashdumps for 2200 && 2300 cards (kernel compile option).

Distinguish between 2312 and 2300 cards (they *are* different). Enable
RIO (Reduced Interrupt Operation) for the LVD cards (hey- I've seen
batched completions of the 30 commands at a time with this,....)...

If we get a Port Logout on local loop topologies, we have to force the
f/w to log back in. The easiest way (for us) to do this is to force
a LIP. This also will wake up the disk that probably just had a f/w crash.

Implement mailbox 'continuations'- this allows interrupts to re-drive
a mailbox command if it's one that just essentially repeats the previous
mailbox command (e.g., f/w download). This saves a boatload of sleep/wakeup
twitches.

If we're not a 2300 and we're about to return with a 'bogus interrupt'- check
the semaphore register to be non-zero at all and outgoing mailbox 0- this
seems to be where some of the lost ISP1080 commands came from.

Revision 1.46.2.2: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:54:41 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.46.2.1: preferred, colored
Changes since revision 1.46.2.1: +11 -22 lines
Sync kqueue branch with -current.

Revision 1.39.2.7: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:29:52 2002 UTC (24 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.6: preferred, colored
Changes since revision 1.39.2.6: +7 -7 lines
Catch up to -current.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Dec 14 00:13:45 2001 UTC (24 years, 11 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +7 -7 lines
Major restructuring for swizzling to the request queue and unswizzling from
the response queue. Instead of the ad hoc ISP_SWIZZLE_REQUEST, we now have
a complete set of inline functions in isp_inline.h. Each platform is
responsible for providing just one of a set of ISP_IOX_{GET,PUT}{8,16,32}
macros.

The reason this needs to be done is that we need to have a single set of
functions that will work correctly on multiple architectures for both little
and big endian machines. It also needs to work correctly in the case that
we have the request or response queues in memory that has to be treated
specially (e.g., have ddi_dma_sync called on it for Solaris after we update
it or before we read from it).

One thing that falls out of this is that we no longer build requests in the
request queue itself. Instead, we build the request locally (e.g., on the
stack) and then as part of the swizzling operation, copy it to the request
queue entry we've allocated. I thought long and hard about whether this was
too expensive a change to make as it in a lot of cases requires an extra
copy. On balance, the flexbility is worth it. With any luck, the entry that
we build locally stays in a processor writeback cache (after all, it's only
64 bytes) so that the cost of actually flushing it to the memory area that is
the shared queue with the PCI device is not all that expensive. We may examine
this again and try to get clever in the future to try and avoid copies.

Another change that falls out of this is that MEMORYBARRIER should be taken
a lot more seriously. The macro ISP_ADD_REQUEST does a MEMORYBARRIER on the
entry being added. But there had been many other places this had been missing.
It's now very important that it be done.

For NetBSD, it does a ddi_dmamap_sync as appropriate. This gets us out of
the explicit ddi_dmamap_sync on the whole response queue that we did for SBus
cards at each interrupt.

Set things up so that platforms that cannot have an SBus don't get a lot of
the SBus code checks (dead coded out).

Additional changes:

Fix a longstanding buglet of sorts. When we get an entry via isp_getrqentry,
the iptr value that gets returned is the value we intend to eventually plug
into the ISP registers as the entry *one past* the last one we've written-
*not* the current entry we're updating. All along we've been calling sync
functions on the wrong index value. Argh. The 'fix' here is to rename all
'iptr' variables as 'nxti' to remember that this is the 'next' pointer-
not the current pointer.

Devote a single bit to mboxbsy- and set aside bits for output mbox registers
that we need to pick up- we can have at least one command which does not
have any defined output registers (MBOX_EXECUTE_FIRMWARE).

Explicitly decode GetAllNext SNS Response back *as* a GetAllNext response.
Otherwise, we won't unswizzle it correctly.

Nuke some additional __P macros.

Revision 1.39.2.6: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:14:27 2001 UTC (25 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.5: preferred, colored
Changes since revision 1.39.2.5: +4 -1 lines
Catch up to -current.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Nov 13 13:14:39 2001 UTC (25 years ago) by lukem
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -1 lines
add/cleanup RCSID

Revision 1.39.2.5: download - view: text, markup, annotated - select for diffs
Mon Oct 8 20:11:01 2001 UTC (25 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.4: preferred, colored
Changes since revision 1.39.2.4: +3 -17 lines
Catch up to -current.

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:45:37 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +3 -17 lines
Catch up with -current.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri Sep 28 16:23:19 2001 UTC (25 years, 1 month ago) by mjacob
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -17 lines
Now that we have a fixed thaw thingie- we can turn back on sleeping
on mailbox commands.

Revision 1.39.2.4: download - view: text, markup, annotated - select for diffs
Fri Sep 21 22:35:39 2001 UTC (25 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.3: preferred, colored
Changes since revision 1.39.2.3: +46 -26 lines
Catch up to -current.

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 13 01:15:39 2001 UTC (25 years, 2 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +46 -26 lines
Update the kqueue branch to HEAD.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed Sep 5 23:08:23 2001 UTC (25 years, 2 months ago) by mjacob
Branches: MAIN
CVS tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +18 -4 lines
Fix a misspelled error message.

Temp work around problems where if we allow for non-polled mailbox commands
we got nailed by hardclock calling is for a timed thaw. Basically, this
means we only enable non-polled mailbox commands in the FC kthread when it
calls isp_fc_runstate.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Sep 1 07:12:24 2001 UTC (25 years, 2 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +29 -23 lines
Add support for 2 Gigabit cards (2300/2312). This necessitated a change
in how interrupts are down- the 23XX has not only a different place to check
for an interrupt, but unlike all other QLogic cards, you have to read the
status as a 32 bit word- not 16 bit words. Rather than have device specific
functions as called from the core module (in isp_intr), it makes more sense
to have the platform/bus modules do the gruntwork of splitting out the
isr, semaphore register and the first outgoing mailbox register (if needed)
*prior* to calling isp_intr (if calling isp_intr is necessary at all).

Revision 1.39.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:09:27 2001 UTC (25 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.2: preferred, colored
Changes since revision 1.39.2.2: +36 -8 lines
Catch up with -current.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Jul 7 01:44:21 2001 UTC (25 years, 4 months ago) by mjacob
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -1 lines
If I've told myself once, I've told myself 1000 times- *NEVER* commit
w/o test compiling first. Argh. I nuked one extra line that I shouldn't
have.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Jul 6 16:17:17 2001 UTC (25 years, 4 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +36 -9 lines
Defer turning off the no_mbox_ints flag until after the system is ready
for interrupts. Handle FW crashes in outer layer.

Revision 1.39.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:02:42 2001 UTC (25 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.1: preferred, colored
Changes since revision 1.39.2.1: +444 -307 lines
Catch up to -current.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri May 25 21:45:55 2001 UTC (25 years, 5 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +324 -103 lines
Create a kernel thread for Fibre Channel cards. This is the new
way of doing business- modulo some startup spasms and peculiarities
of the way kthreads are started (*after* configuration, weird) and
some strangeness with the freeze/thaw code, what now happens is
that any of Loop Down, LIP, Loop Reset or Port Datbase or Name
Server Database Changed ASYNC events cause the queues to freeze
for this channel.  The arrival of a Loop UP is not relevant.

What *is* relevant is that the Port Datbase or Name Server Changed
async event indicate that it's okay to go and (re)evaluate the
state of the FC link and (re)probe local loop and fabric membership.
We have a kthread do this because it's *sooooo* much nicer to be
able to sleep while doing the 130-250 mailbox commands it'll take
to re-evaluate things.

When the state is well known again, we can unfreeze the channel
queues.  Then, as commands start arriving, we simply can start them
or bounce them with XS_SELTIMEOUT (if the device in question has
gone away).  Previously, we did lazy evaluation, which meant that
if a change occurred, we would wait until the very *next* command
to go rebuild stuff.

The reason this is not sensible is:

 a) Even with sleeping, you can hang up your system because you might be
 making some poor stat(2) call pay the price of re-evaluating the whole
 fabric.

 b) If we ever really want to get to dynamic attachment/detachment, we
 should find out sooner, rather than later, where things get to.

Split off ispminphys_1020 from ispminphys- a 1020 has a 24 bit limit-
not anything newer.

Re-enable LIPs and Loop Resets as async events- this allows the outer
layer to set policy about them.

Roll platform major && minor. Remove bogus waitq (no longer used).
Remove callout entry in softc (no longer used). Define some shorthands
for channels. Clean up a variety of cruft left over from the
thorpej_scsipi changeover.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed May 16 03:52:10 2001 UTC (25 years, 6 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +5 -6 lines
It's 'role None', not 'role No'.

Also, pay attention to the difference in the ISPASYNC_CHANGE_NOTIFY
between loop and fabric changes.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Apr 25 17:53:32 2001 UTC (25 years, 6 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +151 -293 lines
Pull up the thorpej_scsipi branch to main branch.
This is a completely rewritten scsipi_xfer execution engine, and the
associated changes to HBA drivers. Overview of changes & features:
- All xfers are queued in the mid-layer, rather than doing so in an
  ad-hoc fashion in individual adapter drivers.
- Adapter/channel resource management in the mid-layer, avoids even trying
  to start running an xfer if the adapter/channel doesn't have the resources.
- Better communication between the mid-layer and the adapters.
- Asynchronous event notification mechanism from adapter to mid-layer and
  peripherals.
- Better peripheral queue management: freeze/thaw, sorted requeueing during
  recovery, etc.
- Clean separation of peripherals, adapters, and adapter channels (no more
  scsipi_link).
- Kernel thread for each scsipi_channel makes error recovery much easier
  (no more dealing with interrupt context when recovering from an error).
- Mid-layer support for tagged queueing: commands can have the tag type
  set explicitly, tag IDs are allocated in the mid-layer (thus eliminating
  the need to use buggy tag ID allocation schemes in many adapter drivers).
- support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command
  will be requeued, or a REQUEST SENSE will be sent as appropriate.

Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge

Revision 1.18.2.16: download - view: text, markup, annotated - select for diffs
Mon Apr 23 00:57:48 2001 UTC (25 years, 7 months ago) by mjacob
Branches: thorpej_scsipi
Diff to: previous 1.18.2.15: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.15: +38 -58 lines
Do some minor clenaups with respect to adapter and channel openings.
There's no need to set channel openings if you don't set a flag that
says to look at them.

Make sure that the adapt_max_periph value is, for now, less than the
possible SPI-2 tag count. We really need a flag that says "don't do
tags for me as the adatper generates its own". Set channel ID for
FC to MAX_FC_TARG (i.e., get it out of the way entirely).

Revision 1.18.2.15: download - view: text, markup, annotated - select for diffs
Sat Apr 21 17:48:32 2001 UTC (25 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.18.2.14: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.14: +60 -1 lines
Sync with HEAD

Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Apr 10 21:52:00 2001 UTC (25 years, 7 months ago) by mjacob
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +60 -1 lines
Add initial implementation of ISP_SDBLEV, ISP_RESETHBA, ISP_FC_RESCAN,
ISP_FC_LIP and ISP_FC_GETDINFO ioctls.

Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:56:20 2001 UTC (25 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +21 -46 lines
Catch up with -current.

Revision 1.18.2.14: download - view: text, markup, annotated - select for diffs
Fri Apr 6 07:27:58 2001 UTC (25 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.18.2.13: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.13: +3 -2 lines
Hum, don't set max number of request per periph larger than 256.

Revision 1.18.2.13: download - view: text, markup, annotated - select for diffs
Tue Mar 27 15:31:58 2001 UTC (25 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.18.2.12: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.12: +18 -42 lines
Sync with HEAD.

Revision 1.18.2.12: download - view: text, markup, annotated - select for diffs
Tue Mar 27 13:08:12 2001 UTC (25 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.18.2.11: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.11: +148 -272 lines
Convert these drivers to thorpej_scsipi (untested).

Revision 1.25.4.3: download - view: text, markup, annotated - select for diffs
Fri Mar 16 19:14:46 2001 UTC (25 years, 8 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Diff to: previous 1.25.4.2: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.4.2: +116 -78 lines
Pull up revisions 1.36-1.40 (requested by mjacob):
  Do some cleanup based upon adapter role - mainly not enabling
  interrupts if we're ISP_ROLE_NONE.  ISPASYNC_LOGGED_INOUT ->
  ISPASYNC_PROMENADE.  Make sure we note if something is a fabric
  device.  ISPASYNC_PDB_CHANGED -> ISPASYNC_LOGGED_INOUT.  Add
  -Wformat patches.  Handles are 16 bits.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Mar 14 05:44:21 2001 UTC (25 years, 8 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +21 -46 lines
Handles are now 16 bits. ANSIfy.

Revision 1.18.2.11: download - view: text, markup, annotated - select for diffs
Mon Mar 12 13:30:28 2001 UTC (25 years, 8 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.18.2.10: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.10: +84 -25 lines
Sync with HEAD.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Feb 12 23:30:12 2001 UTC (25 years, 9 months ago) by mjacob
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +84 -25 lines
Do some cleanup based upon adapter role- mainly not enabling interrupts
if we're ISP_ROLE_NONE. Change ISPASYNC_LOGGED_INOUT to ISPASYNC_PROMENADE.
Make sure we note if something is a fabric device.

Revision 1.25.4.2: download - view: text, markup, annotated - select for diffs
Thu Jan 25 18:25:52 2001 UTC (25 years, 9 months ago) by jhawk
Branches: netbsd-1-5
Diff to: previous 1.25.4.1: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.4.1: +26 -20 lines
Pull up revisions 1.31-1.35 (requested by mjacob):
  Add in correct SBus bursting; upgrade to 2.01.26 firmware; pull to latest
  initiator mode level; make changes to WWN default handling; quiet
  chatty boot messages; fix endian code so MacPPC works; fix bug in
  lock recursion counter; fix bug which excluded all but NL-ports from
  being logged into on a fabric.

Revision 1.18.2.10: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:19 2001 UTC (25 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.18.2.9: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.9: +8 -4 lines
Sync with head (for UBC+NFS fixes, mostly).

Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Jan 9 18:54:53 2001 UTC (25 years, 10 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +9 -5 lines
ISPASYNC_PDB_CHANGED->ISPASYNC_LOGGED_INOUT. And also, ISPASYNC_CHANGE_NOTIFY
is for both local loop and fabric cases now.

Revision 1.18.2.9: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:35:41 2001 UTC (25 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.18.2.8: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.8: +14 -17 lines
Sync with HEAD

Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Dec 28 22:27:47 2000 UTC (25 years, 10 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -2 lines
Apply nearly all of Bill Sommerfeld's -Wformat patches. The one
change I didn't take is the %llu format- I can't have a common
across multiple platform module assume a %ll argument capability-
which really pointed out that I shouldn't be trying to *print*
something which could long long.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Dec 28 21:37:04 2000 UTC (25 years, 10 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -5 lines
Turn ISP_LOCK/ISP_UNLOCK into ISP_ILOCK/ISP_IUNLOCK macros for routines
that are driven from a timeout (oops, they're on the interrupt stack).

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Dec 28 08:11:52 2000 UTC (25 years, 10 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +1 -3 lines
Restore the change fvdl made. Sorry about not noticing it. The
header (about 'Maintainer') is supposed to help encourage folks
to coordinate with me.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Dec 23 01:37:57 2000 UTC (25 years, 10 months ago) by wiz
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +10 -11 lines
Fix pathnames in comment.

Revision 1.18.2.8: download - view: text, markup, annotated - select for diffs
Wed Dec 13 15:50:03 2000 UTC (25 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.18.2.7: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.7: +7 -5 lines
Sync with HEAD (for UBC fixes).

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Dec 9 08:06:32 2000 UTC (25 years, 11 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +8 -6 lines
Finally fix this driver to be sensible about the ENDIAN dance. It's not
quite simply a question of the Qlogic being little endian and having
to have stuff swapped on big endian machines- it also has to do with the
fact that the SBus and PCI DMA layouts are wierd with respect to this.

At any rate, now finally fixed- works on Mac G4, tested it on a SS10
for sparc, checked on alpha to see if I've broken anything, and as
soon as I get another spare afternoon I'll finally install a sparc64
version which should just work (as it'll be like the Mac).

Revision 1.18.2.7: download - view: text, markup, annotated - select for diffs
Fri Dec 8 09:12:22 2000 UTC (25 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.18.2.6: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.6: +1 -3 lines
Sync with HEAD.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Dec 4 11:05:32 2000 UTC (25 years, 11 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +1 -3 lines
Remove uninitialized variable usage (it was redundant anyway).

Revision 1.18.2.6: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:40:39 2000 UTC (26 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.18.2.5: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.5: +540 -314 lines
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Oct 16 05:15:55 2000 UTC (26 years, 1 month ago) by mjacob
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +12 -3 lines
Add in commented-out hiwater measurement.

Remove egregious older bug which had us refusing to log into
fabric devices unless they were NL ports. Whuff.

Revision 1.25.4.1: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:45:08 2000 UTC (26 years, 2 months ago) by mjacob
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +346 -279 lines
Complete rewrite of internals for isp core version 2.0.
Pullup to netbsd-1-5 approved by thorpej@netbsd.org.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Aug 14 07:08:12 2000 UTC (26 years, 3 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +42 -13 lines
Add a maintenance note. Change all splbio's to use the ISP_LOCK/ISP_UNLOCK
or ISP_ILOCK/ISP_IUNLOCK macros.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Aug 8 22:58:31 2000 UTC (26 years, 3 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +34 -65 lines
Remove ispcmd_slow routine- SCBUSACCEL routine will set/clear tag/wide/sync.
Make some changes about where some things sit in the softc.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Aug 1 23:55:10 2000 UTC (26 years, 3 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +124 -139 lines
Core version 2.0 (platform version 1.0) rewrite of ISP driver. Some
interace cleanups, some new common functions. The major impact that
will be noticeable right away is that if you boot with not Fibre connected
to the FC cards, you no longer hang indefinitely.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Jul 7 03:14:53 2000 UTC (26 years, 4 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +19 -2 lines
Gah. Bad port from FreeBSD code (thanks Robert Elz) for setting
up default timeout for watchdogging commands.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Jul 5 22:23:05 2000 UTC (26 years, 4 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +185 -118 lines
Redo watchdogs to handle cases of false death of commands- time
each command now.. Get rid of SCCLUn stuff. Use an isp_done routine
to handle cases of watchdog and isp_done racing to completion.

Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Sat May 13 17:14:03 2000 UTC (26 years, 6 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003
Diff to: previous 1.12.2.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.1: +4 -1 lines
Apply patch (requested by Matthew Jacob via he):
  Correctly account for F-port vs. F-port (no FLOGI_ACC) topologies.
  Make sure we get a port database entry for the fabric name server.
  Preserve fabric logins if the device didn't change across fabric
  or port database changes, or the device has already logged into
  us (e.g., for target/initiator dual role devices like Veritas
  SANbox). Propagate class 3 service parameter changes where devices
  can change roles.

  Fix all occurrences of setting a sendmarker so that setting it
  for one bus on dual bus cards doesn't wipe a pending sendmarker
  for other busses on the same card.

  Comments added and clarifications made in some of the target mode code.

  Add support for > 12 byte CDBs.  Split out nvram reading into
  per-card functions.  Add proper Ultra2/Ultra3 support.  Upgrade
  firmware.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat May 13 16:53:03 2000 UTC (26 years, 6 months ago) by he
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -3 lines
Update from Matthew Jacob:

  Correctly account for F-port vs. F-port (no FLOGI_ACC) topologies.
  Make sure we get a port database entry for the fabric name server.
  Preserve fabric logins if the device didn't change across fabric
  or port database changes, or the device has already logged into
  us (e.g., for target/initiator dual role devices like Veritas
  SANbox). Propagate class 3 service parameter changes where devices
  can change roles.

  Fix all occurrences of setting a sendmarker so that setting it
  for one bus on dual bus cards doesn't wipe a pending sendmarker
  for other busses on the same card :-;.

  Comments added and clarifications made in some of the target mode code.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Mar 23 07:01:31 2000 UTC (26 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +11 -6 lines
New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Feb 12 02:25:28 2000 UTC (26 years, 9 months ago) by mjacob
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -1 lines
add 80 MHz case

Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 8 22:43:15 2000 UTC (26 years, 10 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH002
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +431 -226 lines
Pull up revisions 1.13-1.15,1.17-1.22 (via patch, requested by mjacob):
  Untangle Qlogic firmware copyright problems and update firmware.
  Untangle some MD support issues for said firmware. Add 1280 (Dual
  LVD), 1240 (Dual Ultra), 2200 (2nd Generation Qlogic FC chipset).
  Fix some synchronous negotiation problems for parallel SCSI.
  Firm up some Fabric Support issues.

Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:34:49 1999 UTC (26 years, 10 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +322 -150 lines
Pull up to last week's -current.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Dec 20 00:38:21 1999 UTC (26 years, 11 months ago) by mjacob
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -14 lines
clean unused fwrev stuff

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Dec 16 05:35:43 1999 UTC (26 years, 11 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +52 -43 lines
Dual LVD (1280) support.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Dec 5 18:20:53 1999 UTC (26 years, 11 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -4 lines
Oops. The compiler didn't catch this 'used before set'. Kudos
to Sean Doran for finding it and being nice in telling me.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Dec 4 03:04:59 1999 UTC (26 years, 11 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +106 -41 lines
(wow- I thought I'd already committed most of this).

Clean up some isp_attach time stuff- if ISP2100_FABRIC is defined try *really*
hard to make sure that we get the firmware state to FW_READY and see the
loop state where the Port Database is ready to be gathered- if we don't do
this it's unlikely we will be able to correctly query the nameserver because
we won't see that we're on a fabric.

Clean up the completely broken and stupid attempts to hot switch the
'slow' start routine out of the way. Sigh.

Turn speed announcements into CFGPRINTF functions (available only if DEBUG
defined).

Revision 1.18.2.5: download - view: text, markup, annotated - select for diffs
Tue Oct 26 23:10:16 1999 UTC (27 years ago) by thorpej
Branches: thorpej_scsipi
Diff to: previous 1.18.2.4: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.4: +32 -43 lines
Update for:

  Deal a little more gracefully with the fact that xfer mode parameters
  are for the I_T Nexus, and make all xfer mode updates `async events'.

Revision 1.18.2.4: download - view: text, markup, annotated - select for diffs
Wed Oct 20 20:41:27 1999 UTC (27 years, 1 month ago) by thorpej
Branches: thorpej_scsipi
Diff to: previous 1.18.2.3: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.3: +11 -56 lines
- Eliminate sleeping from adapter routines.
- On a LOOP DOWN event, freeze the channel queue.
- On a LOOP UP event, do a timed thaw on the channel queue.

Revision 1.18.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 19 21:05:06 1999 UTC (27 years, 1 month ago) by thorpej
Branches: thorpej_scsipi
Diff to: previous 1.18.2.2: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.2: +13 -6 lines
Use the ASYNC_EVENT_XFER_MODE callback.

Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 19 20:02:23 1999 UTC (27 years, 1 month ago) by thorpej
Branches: thorpej_scsipi
Diff to: previous 1.18.2.1: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.1: +2 -1 lines
Ooops, forgot to initialize a variable.

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 19 17:47:37 1999 UTC (27 years, 1 month ago) by thorpej
Branches: thorpej_scsipi
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +235 -266 lines
Adapt to scsipi API changes.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Oct 17 01:23:21 1999 UTC (27 years, 1 month ago) by mjacob
Branches: MAIN
CVS tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +8 -5 lines
some comments added

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Oct 14 02:31:11 1999 UTC (27 years, 1 month ago) by mjacob
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +229 -124 lines
Add in an ioctl entry point so scsictl mediated bus resets will work.
Redo how we start commands- do a 'slow' start function which then
looks to see when we're done the configuration process at which point
it *then* enables sync/wide mode. Set the max openings amount to the
true max openings- not a synthetic. Add a timeout driven command requeue
function so that Loop Down events well freeze things until a later point
in time where they might be restarted.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Sep 30 23:06:18 1999 UTC (27 years, 1 month ago) by thorpej
Branches: MAIN
Branch point for: wrstuden-devbsize
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +8 -5 lines
Update for SCSIPI changes.  Note that capabilities update is disabled
until Matt Jacob has a change to update the driver for the latest
firmware, etc. since update device parameters seems to fail once the
system is really up and running, and eventually causes the controller
to wedge.  This may be due to a firmware bug.

Per discussion with Matt.

Revision 1.12.4.2: download - view: text, markup, annotated - select for diffs
Mon Aug 2 21:59:05 1999 UTC (27 years, 3 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.12.4.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.4.1: +91 -78 lines
Update from trunk.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Jul 5 20:31:36 1999 UTC (27 years, 4 months ago) by mjacob
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +91 -78 lines
Change to approved NASA/Ames copyright. Add Fabric support. Fix SCCLUN support.
Add code that tries to track LoopID shifting.

Revision 1.12.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:17:48 1999 UTC (27 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +37 -20 lines
Sync w/ -current.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed May 12 18:59:24 1999 UTC (27 years, 6 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +36 -19 lines
Do a fairly large internal restructuring to accomodate dual-bus host adapters
(e.g., the 1240). Include the new 1080/1240 NVRAM layout reading code. Some
moderately significant mailbox changes were necessary also to accomodate a
second channel.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Apr 4 02:29:34 1999 UTC (27 years, 7 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
firmware revision now a triple

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Mar 26 22:39:45 1999 UTC (27 years, 7 months ago) by mjacob
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: netbsd-1-4, chs-ubc2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +30 -11 lines
add isp1080 support and some basic PDB change stuff

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Mar 17 06:15:48 1999 UTC (27 years, 8 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +104 -17 lines
Update the driver with some infrastructure for the 1080. Fix an embarrassing
clock botch bug. Additional infrastructure for PDB change stuff.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Feb 9 00:42:22 1999 UTC (27 years, 9 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +85 -13 lines
Do SCSI Bus resets in this layer (now). Don't do it for Fibre Channel yet
(we get LOOP DOWN events, and we'll hang on that at this time).

Add other isp_async cases- ISPASYNC_LOOP_DOWN and ISPASYNC_LOOP_UP. DOWN
will cause internal queuing until UP, whereupon a timeout will fire up
any pending xfers. It doesn't really keep commands from getting destroyed
by loop down events, but at least minimizes the damage. This was much
easier to implement with CAM.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Jan 30 07:31:50 1999 UTC (27 years, 9 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +53 -2 lines
Implement and use Fast Posting for both parallel && fibre. Redo a bit of
the startup code. Implement a call to outer framework function so that
asynchronous events can be handled (e.g., speed negotiation, target mode).

Roll internal release tags.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Dec 28 19:10:43 1998 UTC (27 years, 10 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +87 -1 lines
clean up headers; move uninit/watch to outer layers

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Dec 5 19:48:23 1998 UTC (27 years, 11 months ago) by mjacob
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +25 -2 lines
Update BA for new max_lun parameter for SCSIbusses. Clearify maximum luns
for FC HB based upon a SCCLUN define (15 for normal- 255 out of a possible
65535 for SCCLUN). Propagate loopid as adapter_target.

Roll minor platform version. Roll core version number.

Update mailbox definitions with cleaner target mode structure definitions.
Clean up some ENDIAN stuff. Correct botched ISP2100_NVRAM_HARDLOOPID offset.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Nov 19 21:53:00 1998 UTC (28 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -8 lines
Adapt to the new scsipi_adapter interface.

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Sat Nov 7 05:50:35 1998 UTC (28 years ago) by cgd
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.1: +205 -0 lines
pull up revs 1.1-1.5 from trunk (new file), and patch so that it works
in 1.3.x.  (mjacob)

Revision 1.5.2.1
Sat Oct 10 00:28:34 1998 UTC (28 years, 1 month ago) by cgd
Branches: netbsd-1-3
FILE REMOVED
Changes since revision 1.5: +0 -195 lines
file isp_netbsd.c was added on branch netbsd-1-3 on 1998-11-07 05:50:35 +0000

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Oct 10 00:28:34 1998 UTC (28 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: chs-ubc-base, chs-ubc
Branch point for: netbsd-1-3
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -2 lines
Garbage-collect the open_target_lu and close_target_lu entry points from
struct scsipi_adapter; they were not used.

Add a scsipi_ioctl entry point to struct scsipi_adapter.  This will be
used to issue ioctl commands to the host adapters.

Inspired by PR #6090, from Matt Jacob.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Sep 17 22:51:05 1998 UTC (28 years, 2 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +0 -1 lines
cleanup header to be just NetBSD

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Sep 8 07:19:58 1998 UTC (28 years, 2 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +28 -5 lines
add case for going from probetime to runtime speeds

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Jul 18 21:05:04 1998 UTC (28 years, 4 months ago) by mjacob
Branches: MAIN
CVS tags: eeh-paddr_t-base, eeh-paddr_t
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -17 lines
fix bogus comments

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Jul 15 19:44:04 1998 UTC (28 years, 4 months ago) by mjacob
Branches: MAIN
NetBSD OS specific routines and definitions.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>