The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.80: download - view: text, markup, annotated - select for diffs
Fri Feb 2 22:26:58 2024 UTC (14 months, 2 weeks ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3 lines
s/mangement/management/ in comments.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Tue May 24 20:50:19 2022 UTC (2 years, 11 months ago) by andvar
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, 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.78: preferred, colored
Changes since revision 1.78: +3 -3 lines
fix various typos in comment, documentation and log messages.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sun May 22 08:59:34 2022 UTC (2 years, 11 months ago) by hannken
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +4 -4 lines
Use PRIxBUSADDR for bus_addr_t in debug printf.

Kernel i386/ALL compiles again.

Revision 1.57.10.2: download - view: text, markup, annotated - select for diffs
Tue May 17 10:33:46 2022 UTC (2 years, 11 months ago) by bouyer
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.57.10.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.10.1: +130 -113 lines
Pull up following revision(s) via patch (requested by msaitoh in ticket #1454):
	sys/dev/ic/mfi.c: revisions 1.63, 1.66-77
	sys/dev/ic/mfireg.h: revisions 1.11-1.20 via patch
	sys/dev/pci/mfi_pci.c: revision 1.21
	sys/dev/pci/mfii.c: revisions 1.6-1.7, 1.10-1.15
	share/man/man4/mfi.4: revision 1.13

Improve mfi(4) and mfii(4):
- Set 'ld_sync' to NULL as part of 'again', to prevent use-after-free.
- Add some code for the SKINNY variant to make Dell PERC H310 work.
- Print the percentage correctly when the background initialization is
  running.
- Clear mailbox to not to pass garbage data.
- Use union mbox instead of unit8_t xxx[] to avoid unaligned access.
- Set stripe size for BIOCVOL to show the size correctly in bioctl.
- Add support for iBBU-09 to show BBU voltage, current and temperature
  correctly.
- Fix typos in comments.
- Sprinkle static.
- Improve debug printf()s.
- KNF. Remove extra semicolon. Whitespace fixes.

Revision 1.61.2.1: download - view: text, markup, annotated - select for diffs
Tue May 17 10:29:47 2022 UTC (2 years, 11 months ago) by bouyer
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +129 -113 lines
Pull up following revision(s) via patch (requested by msaitoh in ticket #1454):
	sys/dev/ic/mfi.c: revisions 1.63, 1.66-77
	sys/dev/ic/mfireg.h: revisions 1.11-1.20 via patch
	sys/dev/pci/mfi_pci.c: revision 1.21
	sys/dev/pci/mfii.c: revisions 1.6-1.7, 1.10-1.15
	share/man/man4/mfi.4: revision 1.13

Improve mfi(4) and mfii(4):
- Set 'ld_sync' to NULL as part of 'again', to prevent use-after-free.
- Add some code for the SKINNY variant to make Dell PERC H310 work.
- Print the percentage correctly when the background initialization is
  running.
- Clear mailbox to not to pass garbage data.
- Use union mbox instead of unit8_t xxx[] to avoid unaligned access.
- Set stripe size for BIOCVOL to show the size correctly in bioctl.
- Add support for iBBU-09 to show BBU voltage, current and temperature
  correctly.
- Fix typos in comments.
- Sprinkle static.
- Improve debug printf()s.
- KNF. Remove extra semicolon. Whitespace fixes.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Fri May 13 10:41:42 2022 UTC (2 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +19 -20 lines
Improve DNPRINTF. No functional change.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Thu May 12 11:56:29 2022 UTC (2 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +6 -6 lines
Don't use MFI_PD_LIST_SIZE. Same as OpenBSD. No functional change.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue May 10 14:13:37 2022 UTC (2 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +5 -2 lines
mfi(4): Set stripe size correctly for BIOCVOL.

Before:
Volume Status       Size         Device/Label    Level Stripe
=============================================================
     0 Online       5.5T                 mfi0   RAID 5    N/A  65535 seconds

After:
Volume Status       Size         Device/Label    Level Stripe
=============================================================
     0 Online       5.5T                 mfi0   RAID 5    64K  65535 seconds

Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon May 9 17:13:30 2022 UTC (2 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +48 -48 lines
Use union mbox instead of unit8_t[] to avoid unaligned access.

 - Same as other OSes.
 - mfii.c already use this.
 - Found by kUBSan.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon May 9 15:56:36 2022 UTC (2 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +39 -41 lines
KNF. Whitespace. No functional change.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Sat May 7 14:25:12 2022 UTC (2 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +7 -2 lines
Clear mailbox to not to pass garbage data.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sat May 7 14:14:34 2022 UTC (2 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +10 -3 lines
Use mlp_bgi for MFI_LD_PROG_BGI. Same as OpenBSD.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sat May 7 04:40:02 2022 UTC (2 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3 lines
s/contrller/controller/ in comment.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Thu May 5 07:18:02 2022 UTC (2 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +7 -4 lines
Add some code for the SKINNY variant to make Dell PERC H310 work.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Sat Apr 16 18:15:21 2022 UTC (3 years ago) by andvar
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -3 lines
fix various typos in comments and log messages.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Dec 5 02:47:01 2021 UTC (3 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3 lines
s/decriptor/descriptor/ in comment.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Nov 6 06:52:48 2021 UTC (3 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -3 lines
s/allign/align/

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:12 2021 UTC (3 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3 lines
Merge thorpej-cfargs2.

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

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:55 2021 UTC (3 years, 11 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.63: preferred, colored
Changes since revision 1.63: +4 -5 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.63.10.3: download - view: text, markup, annotated - select for diffs
Sun Mar 28 20:31:05 2021 UTC (4 years ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.63.10.2: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.10.2: +3 -6 lines
No need to pass interface or locators to config_found() in mfi_rescan().

Revision 1.63.10.2: download - view: text, markup, annotated - select for diffs
Mon Mar 22 16:23:45 2021 UTC (4 years, 1 month ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.63.10.1: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.10.1: +3 -3 lines
Audit CFARG_IATTR in config_found() calls, and remove it in situations
where the interface attribute is not ambiguous.

Revision 1.63.10.1: download - view: text, markup, annotated - select for diffs
Mon Mar 22 02:01:00 2021 UTC (4 years, 1 month ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +6 -4 lines
Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.

Revision 1.58.4.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:21 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.58.4.2: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.4.2: +3 -9 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.58.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:06 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.58.4.1: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.4.1: +4 -3 lines
Merge changes from current as of 20200406

Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Jan 7 06:12:09 2020 UTC (5 years, 3 months ago) by maxv
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, 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-cfargs
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -3 lines
Set 'ld_sync' to NULL as part of 'again', to prevent use-after-free.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sun Nov 10 21:16:35 2019 UTC (5 years, 5 months ago) by chs
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +4 -11 lines
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Mon Jul 29 12:07:57 2019 UTC (5 years, 8 months ago) by gdt
Branches: MAIN
CVS tags: netbsd-9-base, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Branch point for: netbsd-9
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -2 lines
sys/dev/ic/mfi.c: Add missing break in switch

(The entire switch is guarded by MFI_DEBUG and is known not to build.)
Reported by Oskar.

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

Revision 1.57.10.1: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:11:37 2018 UTC (6 years, 4 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +10 -10 lines
Pull up following revision(s) (requested by bouyer in ticket #1129):

	sys/arch/amd64/conf/XEN3_DOM0: revision 1.159
	sys/arch/amd64/conf/GENERIC: revision 1.508
	sys/arch/i386/conf/ALL: revision 1.458
	sys/dev/ic/mfi.c: revision 1.60
	sys/dev/pci/mpiireg.h: revision 1.1
	distrib/sets/lists/man/mi: revision 1.1628
	sys/dev/pci/mfii.c: revision 1.1,1.2 (adapted)
	sys/arch/i386/conf/GENERIC: revision 1.1194
	sys/dev/pci/mpii.c: revision 1.13
	sys/dev/ic/mfireg.h: revision 1.9
	share/man/man4/mfii.4: revision 1.1
	share/man/man4/Makefile: revision 1.673 (patch)
	sys/dev/pci/files.pci: revision 1.410
	share/man/man4/mfii.4: revision 1.2
	sys/arch/amd64/conf/ALL: revision 1.108
	sys/arch/i386/conf/XEN3PAE_DOM0: revision 1.8 (patch, in XEN3_DOM0)

Add some definitions from OpenBSD, needed by the upcoming mfii driver.
No functionnal change.

 -

Move registers definitions to a separate file, needed for the upcomning mpii
driver. No functionnal change.

 -

Add mpii(4), a driver for LSI Megaraid Fusion controllers.
Ported from OpenBSD. This driver is MP-safe.

Note that the earlier fusion controllers (Megaraid 2208, codenamed Thunderbold)
are also supported by mfi(4). mpii will take precedence if both drivers
are enabled.

Tested on a
mfii0 at pci6 dev 0 function 0: "PERC H740P Adapter ", firmware 50.3.0-1512, 819
2MB cache
mfii0: interrupting at ioapic2 pin 2
scsibus0 at mfii0: 64 targets, 8 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <DELL, PERC H740P Adp, 5.03> disk fixed
sd0: fabricating a geometry
sd0: 99 GB, 102399 cyl, 64 head, 32 sec, 512 bytes/sect x 209714688 sectors
sd0: tagged queueing
sd1 at scsibus0 target 1 lun 0: <DELL, PERC H740P Adp, 5.03> disk fixed
sd1: fabricating a geometry
sd1: 22254 GB, 22788608 cyl, 64 head, 32 sec, 512 bytes/sect x 46671069696 sectors
sd1: fabricating a geometry

It supports bioctl(8) ioctls, as well as sensors for the BBU and logical
drives.

Sponsored by LIP6.

 -

Add my name in copyright list

 -

add a man page for the new mpii, mostly from OpenBSD.

 -

Sort SEE ALSO. Fix date. Whitespace fixes.

Revision 1.58.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:31 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.58.2.1: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.2.1: +10 -10 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sat Nov 24 18:10:29 2018 UTC (6 years, 4 months ago) by bouyer
Branches: MAIN
CVS tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, isaki-audio2-base, isaki-audio2
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +10 -10 lines
Add some definitions from OpenBSD, needed by the upcoming mfii driver.
No functionnal change.

Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:49 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -4 lines
Sync with HEAD

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

Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:31 2018 UTC (6 years, 7 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +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.46.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:03 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.46.2.2: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46.2.2: +12 -33 lines
update from HEAD

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sat Oct 28 04:53:55 2017 UTC (7 years, 5 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, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +4 -4 lines
Kill some more extern struct cfdriver declarations.

Down with externs in .c!

Revision 1.53.2.2: download - view: text, markup, annotated - select for diffs
Sat May 16 04:06:04 2015 UTC (9 years, 11 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, 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, netbsd-7-0
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: +3 -5 lines
Pull up following revision(s) (requested by maxv in ticket #761):
	sys/arch/sgimips/dev/scn.c: revision 1.8
	sys/arch/sgimips/mace/macekbc.c: revision 1.8
	sys/dev/hpc/hpcfb.c: revision 1.59
	sys/dev/i2c/i2c.c: revision 1.47
	sys/dev/ic/mfi.c: revision 1.57
	sys/dev/if_ndis/if_ndis_pci.c: revision 1.21
	sys/dev/sysmon/sysmon_power.c: revisions 1.50-1.52
	sys/dev/usb/umass_isdata.c: revision 1.31
fix double free, found by Brainy.
--
Free cmd on error if we allocated it.
Found by Brainy, reported by maxv@.
--
don't leak rl (but there are other leaks), found by Brainy.
--
Free ped if we can't hand it to the power daemon.
Found by Brainy, reported by maxv@.
--
don't forget to free the dictionary.
--
another missing free dict.
--
fix leak, found by Brainy.
--
don't malloc a tiny, fixed size buffer to scribble into, then not use it
and never free it either
found by Brainy
--
malloc() -> kmem_alloc() for private data, also kmem_free() them if we
don't finish attaching for whatever reason
found by Brainy

Revision 1.55.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:09 2015 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +5 -29 lines
Sync with HEAD

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Apr 4 15:10:47 2015 UTC (10 years 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-20170825, 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, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +3 -5 lines
fix double free, found by Brainy.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Mar 12 15:33:10 2015 UTC (10 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -26 lines
Dedup the conversion of bioc_disk and bioc_vol to envsys_data_t

Revision 1.53.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 22 10:41:18 2014 UTC (10 years, 8 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +9 -6 lines
Pull up following revision(s) (requested by msaitoh in ticket #48):
	sys/dev/ic/mfi.c: revision 1.54-1.55
Fix mfi(4) panic on boot on some mfi(4) chips.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Aug 21 15:43:35 2014 UTC (10 years, 8 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +5 -2 lines
over-initialize for the benefit of gcc

Revision 1.54: download - view: text, markup, annotated - select for diffs
Thu Aug 21 12:25:01 2014 UTC (10 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +6 -6 lines
revert previous; code checking tool is incorrect. Variables are not being
used in the non tbolt case.

Revision 1.46.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:38 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.46.2.1: preferred, colored
Changes since revision 1.46.2.1: +19 -17 lines
Rebase to HEAD as of a few days ago.

Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:52 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +3 -2 lines
Rebase.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:37 2014 UTC (10 years, 9 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -2 lines
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.36.2.4: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:22 2014 UTC (10 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.36.2.3: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.2.3: +18 -17 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:37 2014 UTC (10 years, 11 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +14 -13 lines
sync with head

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:27 2014 UTC (11 years, 1 month ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +13 -4 lines
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Jan 25 10:14:29 2014 UTC (11 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3 lines
More alignment spellos

Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Oct 17 21:24:24 2013 UTC (11 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -10 lines
- remove unused variables
- move variables inside ifdef sections
- ifdef notdef unused code
- use __USE for debugging variables

Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri Jun 28 14:46:44 2013 UTC (11 years, 9 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +6 -6 lines
Fix the non-thunderbolt case. XXX: Is that right even?
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html

Revision 1.36.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:33:15 2013 UTC (12 years, 3 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.36.2.2: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.2.2: +8 -6 lines
sync with (a bit old) head

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:06 2012 UTC (12 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +169 -6 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.36.8.5: download - view: text, markup, annotated - select for diffs
Sun Nov 18 19:01:44 2012 UTC (12 years, 5 months ago) by msaitoh
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-1
Diff to: previous 1.36.8.4: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.8.4: +8 -6 lines
Pull up following revision(s) (requested by bouyer in ticket #674):
	sys/dev/ic/mfi.c: revision 1.48
MFI_STATE_BOOT_MESSAGE_PENDING also needs to be handed for non-TBOLT
controllers, from FreeBSD. tested by Hugo Silva against a GEN2 controller.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Nov 9 18:46:54 2012 UTC (12 years, 5 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, khorben-n900, agc-symver-base, agc-symver
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +8 -6 lines
MFI_STATE_BOOT_MESSAGE_PENDING also needs to be handed for non-TBOLT
controllers, from FreeBSD. tested by Hugo Silva against a GEN2 controller.

Revision 1.36.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:21:05 2012 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.36.2.1: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.2.1: +1479 -143 lines
sync with head

Revision 1.36.8.4: download - view: text, markup, annotated - select for diffs
Wed Oct 24 03:23:44 2012 UTC (12 years, 6 months ago) by riz
Branches: netbsd-6
Diff to: previous 1.36.8.3: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.8.3: +163 -2 lines
Pull up following revision(s) (requested by bouyer in ticket #629):
	sys/compat/linux/common/linux_ioctl.c: revision 1.57
	sys/dev/ic/mfi.c: revision 1.47
	sys/conf/majors: revision 1.62
	etc/etc.i386/MAKEDEV.conf: revision 1.24
	sys/dev/ic/mfivar.h: revision 1.20
	etc/MAKEDEV.tmpl: revision 1.159
	sys/dev/ic/mfiio.h: revision 1.1
	etc/etc.amd64/MAKEDEV.conf: revision 1.19
	sys/dev/ic/mfireg.h: revision 1.8
Add a pass-through ioctl for mfi(4), allowing userland to send raw commands
to the controller. This is compatible with the linux and FreeBSD
implementations.
Add the needed conversion for mfi ioctls in COMPAT_LINUX
Allocate a character major number, and create /dev/mfi0 by default
on amd64 and i386.
This allows (along with a hand-created /emul/linux/proc/devices file)
to run the MegaCLI linux binary provided by LSI.

Revision 1.36.8.3: download - view: text, markup, annotated - select for diffs
Wed Oct 24 03:19:19 2012 UTC (12 years, 6 months ago) by riz
Branches: netbsd-6
Diff to: previous 1.36.8.2: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.8.2: +1318 -143 lines
Pull up following revision(s) (requested by bouyer in ticket #628):
	sys/dev/ic/mfi.c: revision 1.40
	sys/dev/ic/mfi.c: revision 1.41
	sys/dev/ic/mfi.c: revision 1.42
	sys/dev/ic/mfi.c: revision 1.43
	sys/dev/ic/mfi.c: revision 1.44
	sys/dev/ic/mfi.c: revision 1.45
	sys/dev/ic/mfi.c: revision 1.46
	sys/dev/pci/pcidevs: revision 1.1128
	sys/dev/pci/mfi_pci.c: revision 1.15
	sys/dev/pci/mfi_pci.c: revision 1.16
	sys/dev/ic/mfi.c: revision 1.39
	sys/dev/ic/mfivar.h: revision 1.16
	sys/dev/ic/mfireg.h: revision 1.6
	sys/dev/ic/mfivar.h: revision 1.17
	sys/dev/ic/mfireg.h: revision 1.7
	sys/dev/ic/mfivar.h: revision 1.18
	sys/dev/ic/mfivar.h: revision 1.19
Add some support for 64bit DMA but stick to 32bit DMA for now.
From OpenBSD mfi.c rev 1.119.
Add LSI MegaRAID SAS2208
MFI_IOP_SKINNY is an enum not a single bit value, so it can't be used as
a bit flag. As sc_flags is really used to hold an enum mfi_iop value,
change it to enum mfi_iop and rename to sc_ioptype. While there init it
in mfi_attach() instead of mfi_pci_attach().
sg64.len is 32bits, so use htole32()
Really init sc_ioptype in mfi_attach()
Add support newer LSI RAID controllers based on the SAS2208 chip,
codenamed "ThunderBolt". Add tagged queuing support for all adapters
supported by mfi(4).
Tested with a MegaRAID SAS 9265-8i adapter, and an older Dell PERC 5/i.
Avoid "unused variable" warning for non-DIAGNOSTIC kernels.
Pointed out by Havard Eidnes
After discussion on tech-kern@, fix performance issue related to
cache flush commands from WAPBL, by skipping the cache flush if the
BBU is present and considered good. Users which still want the write back
cache with a non-working BBU can set vfs.wapbl.flush_disk_cache to 0.
- add commands to monitor the BBU state. Add a boolean BBU sensor
  to monitor the BBU state via sysmon_envsys(9).
- if the BBU is considered good, turn SCSI_SYNCHRONIZE_CACHE_10 and
  SCSI_SYNCHRONIZE_CACHE_16 commands from upper layer into NOOPs.
  While there, handle SCSI_SYNCHRONIZE_CACHE_16 in addition to
  SCSI_SYNCHRONIZE_CACHE_10.
- Add a shutdown pmf(9) handler, which flushes the cache and shutdown the
  firmware
- on detach, also flush cache and shutdown firmware.
- on attach, print the firmware-provided name, and the BBU state
Tested on a LSI MegaRAID SAS 9265-8i and a PERC 5/i Integrated
Make MFI_DEBUG build on i386.
Report BBU state changes with aprint_normal(), it seems that sysmon_envsys()
doens't report changes for ENVSYS_INDICATOR as it does for ENVSYS_DRIVE.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Sep 19 21:24:29 2012 UTC (12 years, 7 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-pagecache-base6
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +163 -2 lines
Add a pass-through ioctl for mfi(4), allowing userland to send raw commands
to the controller. This is compatible with the linux and FreeBSD
implementations.
Add the needed conversion for mfi ioctls in COMPAT_LINUX
Allocate a character major number, and create /dev/mfi0 by default
on amd64 and i386.
This allows (along with a hand-created /emul/linux/proc/devices file)
to run the MegaCLI linux binary provided by LSI.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Aug 26 16:22:32 2012 UTC (12 years, 7 months ago) by bouyer
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +13 -5 lines
Make MFI_DEBUG build on i386.
Report BBU state changes with aprint_normal(), it seems that sysmon_envsys()
doens't report changes for ENVSYS_INDICATOR as it does for ENVSYS_DRIVE.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Aug 26 16:05:29 2012 UTC (12 years, 7 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +243 -35 lines
After discussion on tech-kern@, fix performance issue related to
cache flush commands from WAPBL, by skipping the cache flush if the
BBU is present and considered good. Users which still want the write back
cache with a non-working BBU can set vfs.wapbl.flush_disk_cache to 0.
- add commands to monitor the BBU state. Add a boolean BBU sensor
  to monitor the BBU state via sysmon_envsys(9).
- if the BBU is considered good, turn SCSI_SYNCHRONIZE_CACHE_10 and
  SCSI_SYNCHRONIZE_CACHE_16 commands from upper layer into NOOPs.
  While there, handle SCSI_SYNCHRONIZE_CACHE_16 in addition to
  SCSI_SYNCHRONIZE_CACHE_10.
- Add a shutdown pmf(9) handler, which flushes the cache and shutdown the
  firmware
- on detach, also flush cache and shutdown firmware.
- on attach, print the firmware-provided name, and the BBU state
Tested on a LSI MegaRAID SAS 9265-8i and a PERC 5/i Integrated

Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Aug 23 12:24:33 2012 UTC (12 years, 8 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -4 lines
Avoid "unused variable" warning for non-DIAGNOSTIC kernels.
Pointed out by Havard Eidnes

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Aug 23 09:59:13 2012 UTC (12 years, 8 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +1051 -108 lines
Add support newer LSI RAID controllers based on the SAS2208 chip,
codenamed "ThunderBolt". Add tagged queuing support for all adapters
supported by mfi(4).
Tested with a MegaRAID SAS 9265-8i adapter, and an older Dell PERC 5/i.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Aug 5 22:47:36 2012 UTC (12 years, 8 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -2 lines
Really init sc_ioptype in mfi_attach()

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Aug 5 17:23:25 2012 UTC (12 years, 8 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3 lines
sg64.len is 32bits, so use htole32()

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Aug 5 15:50:49 2012 UTC (12 years, 8 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -4 lines
MFI_IOP_SKINNY is an enum not a single bit value, so it can't be used as
a bit flag. As sc_flags is really used to hold an enum mfi_iop value,
change it to enum mfi_iop and rename to sc_ioptype. While there init it
in mfi_attach() instead of mfi_pci_attach().

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Aug 5 14:54:01 2012 UTC (12 years, 8 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +29 -14 lines
Add some support for 64bit DMA but stick to 32bit DMA for now.
From OpenBSD mfi.c rev 1.119.

Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:34 2012 UTC (13 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +73 -5 lines
sync with head

Revision 1.36.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:26 2012 UTC (13 years ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +73 -5 lines
sync to latest -current.

Revision 1.36.8.2: download - view: text, markup, annotated - select for diffs
Thu Mar 22 23:04:27 2012 UTC (13 years, 1 month ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, 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, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Diff to: previous 1.36.8.1: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.8.1: +68 -4 lines
Pull up following revision(s) (requested by sborrill in ticket #138):
	sys/dev/pci/mfi_pci.c: revision 1.13
	sys/dev/ic/mfi.c: revision 1.38
	sys/dev/ic/mfivar.h: revision 1.15
	sys/dev/ic/mfireg.h: revision 1.5
Add support for skinny variants (e.g. IBM ServeRAID M1015). Based on OpenBSD
changes with some improvements. Tested on IBM x3550M3 with RAID0 and RAID1
volumes including bioctl(8) operation.

Revision 1.36.8.1: download - view: text, markup, annotated - select for diffs
Thu Mar 22 22:58:23 2012 UTC (13 years, 1 month ago) by riz
Branches: netbsd-6
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +7 -3 lines
Pull up following revision(s) (requested by sborrill in ticket #136):
	sys/dev/ic/mfi.c: revision 1.37
From OpenBSD. Fixes a deadlock during autoconf.
scrub more fields in the ccb when returning them to the free list after
theyve been used, in particular the mfi header flags which has a bit
that specifies if a command should be completed via the interrupt path.
if we use a ccb during boot we set that bit, but it isnt necessarily
cleared by things that use it later on. this means a ccb we expected to
complete via an interrupt never actually generates an interrupt or appears
in the reply queue. this obviously stalls the io.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Mar 21 14:22:36 2012 UTC (13 years, 1 month ago) by sborrill
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +68 -4 lines
Add support for skinny variants (e.g. IBM ServeRAID M1015). Based on OpenBSD
changes with some improvements. Tested on IBM x3550M3 with RAID0 and RAID1
volumes including bioctl(8) operation.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Mar 21 13:19:11 2012 UTC (13 years, 1 month ago) by sborrill
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +7 -3 lines
From OpenBSD. Fixes a deadlock during autoconf.

scrub more fields in the ccb when returning them to the free list after
theyve been used, in particular the mfi header flags which has a bit
that specifies if a command should be completed via the interrupt path.

if we use a ccb during boot we set that bit, but it isnt necessarily
cleared by things that use it later on. this means a ccb we expected to
complete via an interrupt never actually generates an interrupt or appears
in the reply queue. this obviously stalls the io.

Revision 1.34.8.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:19:59 2011 UTC (13 years, 10 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +4 -2 lines
Catchup with rmind-uvmplock merge.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Jun 20 22:02:55 2011 UTC (13 years, 10 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -2 lines
Initialize current value for ENVSYS_DRIVE sensors

Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Jun 20 17:48:46 2011 UTC (13 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -2 lines
Initializes sensors states before registering.

Revision 1.17.2.6: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:28 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.17.2.5: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.2.5: +2 -3 lines
sync with head.

Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:19 2010 UTC (14 years, 11 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +69 -7 lines
Sync with HEAD.

Revision 1.19.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:27:36 2010 UTC (15 years ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +91 -35 lines
sync to netbsd-5

Revision 1.19.4.4: download - view: text, markup, annotated - select for diffs
Sun Mar 28 15:03:22 2010 UTC (15 years ago) by snj
Branches: netbsd-5
CVS tags: 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, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.19.4.3: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.4.3: +80 -29 lines
Apply patch (requested by msaitoh in ticket #1326):
Add support for MFI gen2 devices.  Mention newer devices, RAID 6 and
RAID60 in mfi.4.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Mar 14 18:06:28 2010 UTC (15 years, 1 month ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -3 lines
Remove setting of edata->monitor since that member no longer exists.

Revision 1.17.2.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:32 2010 UTC (15 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.17.2.4: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.4: +74 -7 lines
sync with head

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Feb 9 00:05:18 2010 UTC (15 years, 2 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +63 -3 lines
Add newer cars supports. Tested on MegaRAID SAS 9260-8i.
 - Add MFI gen2 support from OpenBSD.
 - Add entry for MegaRAID SAS 9260-8i

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Feb 8 23:54:33 2010 UTC (15 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +8 -5 lines
 Fix a bug that the system which has no logical volume panics in shutdown
hook. Without any logical volume, sysmon_envsys_register() fails. On such
case, sc->sc_sme must be NULL for the detach. Reviewed by dyoung and bouyer.

Revision 1.19.8.2: download - view: text, markup, annotated - select for diffs
Wed Jan 27 21:43:48 2010 UTC (15 years, 2 months ago) by sborrill
Branches: netbsd-5-0
CVS tags: netbsd-5-0-2-RELEASE
Diff to: previous 1.19.8.1: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.8.1: +7 -3 lines
Pull up the following revisions(s) (requested by bouyer in ticket #1257):
	sys/dev/ic/mfi.c:	revision 1.31

bio(4) is MP-safe but mfi(4) is not. So get the kernel_lock at
mfi_ioctl() entry and release it on exit.

Revision 1.19.4.3: download - view: text, markup, annotated - select for diffs
Wed Jan 27 21:40:25 2010 UTC (15 years, 2 months ago) by sborrill
Branches: netbsd-5
Diff to: previous 1.19.4.2: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.4.2: +7 -3 lines
Pull up the following revisions(s) (requested by bouyer in ticket #1257):
	sys/dev/ic/mfi.c:	revision 1.31

bio(4) is MP-safe but mfi(4) is not. So get the kernel_lock at
mfi_ioctl() entry and release it on exit.

Revision 1.19.4.2: download - view: text, markup, annotated - select for diffs
Wed Jan 27 21:33:36 2010 UTC (15 years, 2 months ago) by sborrill
Branches: netbsd-5
Diff to: previous 1.19.4.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.4.1: +2 -3 lines
Pull up the following revisions(s) (requested by bouyer in ticket #1256):
	sys/dev/ic/mfi.c:	revision 1.21

Don't release CCB twice. Found by code inspection.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Jan 19 20:54:32 2010 UTC (15 years, 3 months ago) by bouyer
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +7 -3 lines
bio(4) is MP-safe but mfi(4) is not. So get the kernel_lock at
mfi_ioctl() entry and release it on exit.

Revision 1.17.2.4: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:37:48 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.17.2.3: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.3: +24 -22 lines
sync with head

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Sep 13 21:24:58 2009 UTC (15 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, matt-premerge-20091211, jym-xensuspend-nbase
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +18 -18 lines
Delete whitespace at ends of lines.  No functional change intended.

Revision 1.19.8.1: download - view: text, markup, annotated - select for diffs
Thu Sep 10 07:09:43 2009 UTC (15 years, 7 months ago) by snj
Branches: netbsd-5-0
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +8 -6 lines
Pull up following revision(s) (requested by bouyer in ticket #931):
	sys/dev/ic/mfi.c: revision 1.28 via patch
mfi.c still uses the spl() synchronisation scheme and so needs the kernel lock.
The sysmon subsystem is marked MPSAFE and so runs without the kernel lock.
So get the kernel lock in mfi_sensor_refresh()  before calling mfi_ioctl_vol().
This fixes command list corruption seen on heavy I/O load on the mfi driver(4).

Revision 1.19.4.1: download - view: text, markup, annotated - select for diffs
Thu Sep 10 07:06:34 2009 UTC (15 years, 7 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +8 -6 lines
Pull up following revision(s) (requested by bouyer in ticket #931):
	sys/dev/ic/mfi.c: revision 1.28 via patch
mfi.c still uses the spl() synchronisation scheme and so needs the kernel lock.
The sysmon subsystem is marked MPSAFE and so runs without the kernel lock.
So get the kernel lock in mfi_sensor_refresh() before calling mfi_ioctl_vol().
This fixes command list corruption seen on heavy I/O load on the mfi driver(4).

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Aug 27 09:40:39 2009 UTC (15 years, 7 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -3 lines
Oups, remove extra }

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Aug 26 21:41:05 2009 UTC (15 years, 8 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +8 -5 lines
mfi.c still uses the spl() synchronisation scheme and so needs the kernel lock.
The sysmon subsystem is marked MPSAFE and so runs without the kernel lock.
So get the kernel lock in mfi_sensor_refresh()  before calling
mfi_ioctl_vol().
This fixes command list corruption seen on heavy I/O load on the mfi
driver(4).

Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:31:48 2009 UTC (15 years, 9 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.1: +130 -13 lines
Sync with HEAD.

Revision 1.17.2.3: download - view: text, markup, annotated - select for diffs
Sat Jul 18 14:53:02 2009 UTC (15 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.17.2.2: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.2: +130 -13 lines
sync with head.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Jul 16 18:58:38 2009 UTC (15 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, jymxensuspend-base
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +47 -11 lines
Let us detach & re-attach children of mfi0.  Detach mfi0 at shutdown.

Detachment may fail after freeing some but not all resources, so
take care not to re-release any resource during detachment.

Tested on a Dell PowerEdge 1950.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Jul 16 18:10:00 2009 UTC (15 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +10 -10 lines
device_t/softc split.  Tested and shown to work on a Dell PowerEdge
1950.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Jul 16 01:30:10 2009 UTC (15 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +5 -5 lines
Try to detach ancestors (sd0 at scsibus0, scsibus0 at mfi0), first,
to avoid dangling references to envsys(4) sensors and such if
detaching the ancestors should fail.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Jul 16 01:01:47 2009 UTC (15 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +83 -2 lines
Add a rudimentary detachment hook for mfi(4).

Revision 1.17.2.2: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:23 2009 UTC (15 years, 11 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.17.2.1: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.1: +4 -4 lines
sync with head

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

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

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

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

Revision 1.19.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:26 2009 UTC (15 years, 11 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.19.2.2: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.2: +4 -4 lines
Sync with HEAD.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Mar 18 16:00:18 2009 UTC (16 years, 1 month ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4 lines
bzero -> memset

Revision 1.19.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:30:45 2009 UTC (16 years, 1 month ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.19.2.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.2.1: +2 -3 lines
Sync with HEAD.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Feb 16 18:05:19 2009 UTC (16 years, 2 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-hppapmap-base2
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -3 lines
Don't release CCB twice. Found by code inspection.

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:55 2009 UTC (16 years, 3 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -4 lines
Sync with HEAD.

Revision 1.11.14.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:55 2009 UTC (16 years, 3 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.11.14.3: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.14.3: +82 -59 lines
Sync with HEAD.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Jan 3 03:43:22 2009 UTC (16 years, 3 months ago) by yamt
Branches: MAIN
CVS tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -4 lines
remove extra semicolons.

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:14 2008 UTC (16 years, 4 months ago) by haad
Branches: haad-dm
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +82 -59 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Oct 23 21:00:06 2008 UTC (16 years, 6 months ago) by bouyer
Branches: MAIN
CVS tags: netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5-0, netbsd-5, matt-nb5-mips64
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +82 -59 lines
Change mfi_mgmt() to take a mfi_ccb and scsipi_xfer as argument, as
mfi_scsi_io does. Do not tsleep in mfi_mgmt waiting for completion;
let the caller handle it. If mfi_mgmt() is called with a non-NULL scsipi_xfer
have mfi_mgmt_done() wake it up, else wake up the mfi_ccb.
mfi_poll()/mfi_post() is up to the caller.

mfi_scsipi_request(): handle SCSI_SYNCHRONIZE_CACHE_10 as we do for other
commmands: have mfi_mgmt() fill in the ccb, queue of poll the ccb and
return.

Introduce mfi_mgmt_internal() which behaves like mfi_mgmt() did (tsleep
waiting for completion). Use it for internal and ioctl management
requests.

Fix kern/39297 from Greg Oster (mfi calls tsleep() from mfi_intr()),
tested by Mark Davies.

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

Revision 1.11.14.3: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:07 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.11.14.2: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.14.2: +1 -1 lines
Sync with HEAD.

Revision 1.17.6.1: download - view: text, markup, annotated - select for diffs
Fri Jun 27 15:11:21 2008 UTC (16 years, 9 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +3 -3 lines
Sync with head.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Jun 24 10:08:43 2008 UTC (16 years, 10 months ago) by gmcgarry
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, haad-dm-base1
Branch point for: haad-dm
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
status is unsigned.

Revision 1.11.14.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:24 2008 UTC (16 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.11.14.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.14.1: +4 -4 lines
Sync with HEAD.

Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:44 2008 UTC (16 years, 11 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +3 -3 lines
sync with head.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Apr 22 22:49:49 2008 UTC (17 years ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, 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
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -7 lines
revert rev. 1.16 and redo the fix as proposed by oster per private mail

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Apr 22 09:29:08 2008 UTC (17 years ago) by cegger
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +9 -4 lines
Fix error path:
Don't try to free non-allocated memory. Only free allocated memory.
This fixes a crash reported by Brian A. Seklecki on port-xen:
http://mail-index.netbsd.org/port-xen/2008/04/10/msg003555.html

Fix tested by Brian A. Seklecki:
http://mail-index.netbsd.org/port-xen/2008/04/21/msg003604.html

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Apr 8 12:07:26 2008 UTC (17 years ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +5 -5 lines
use aprint_*_dev and device_xname

Revision 1.11.14.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:41 2008 UTC (17 years ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +256 -176 lines
Sync with HEAD.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Mar 27 21:15:29 2008 UTC (17 years, 1 month ago) by xtraeme
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +15 -8 lines
Add back the bus_dmamap_sync() calls that were in the old
mfi_despatch_cmd() func after merging changes in rev 1.12.

Merge rev 1.69 and 1.64 from openbsd, fixing two bugs:

Fix subtle x ? y : z bug when calling mfi_create_sgl. This worked because
during runtime the bug condition does not happen.

When determining the size of the volumes and disks we want how many
bytes each of them has, not the number of kilobytes. this solves the
"why am i dividing by 2" question. the answer is "you dont, you multiply
by 512".

The first item fixes a panic with Dell Perc 5/i reported by oster@.
Changes tested on Dell Perc 5/i by oster@.

Revision 1.11.10.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:17 2008 UTC (17 years, 1 month ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +243 -170 lines
sync with head.

Revision 1.8.8.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:38 2008 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
Diff to: previous 1.8.8.2: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.8.2: +243 -170 lines
sync with HEAD

Revision 1.2.6.6: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:34 2008 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.2.6.5: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.6.5: +243 -170 lines
sync with head.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Feb 25 21:22:32 2008 UTC (17 years, 2 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-base, ad-socklock-base1
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +141 -152 lines
Apply some KNF to this driver and do some random changes as well:

- Change malloc + memset(blah, 0, ...)  to malloc with M_ZERO.
- The adapt_ioctl assigned was returning ENOTTY, so there's no point
  on having it.
- Static'ify.

I believe there are some paths on this driver where the splbio()s
are not needed, but can't test to verify...

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Feb 25 10:46:02 2008 UTC (17 years, 2 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +120 -36 lines
Added support for the mfi(4) controllers with powerpc IOPs such as
LSI SAS1078 or Dell PERC 6, from OpenBSD.

Tested by Akira Kato on current-users@.

Revision 1.8.8.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:52:55 2008 UTC (17 years, 3 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.8.8.1: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.8.1: +30 -27 lines
sync with HEAD

Revision 1.2.6.5: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:29:55 2007 UTC (17 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.2.6.4: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.6.4: +30 -27 lines
sync with head

Revision 1.8.6.3: download - view: text, markup, annotated - select for diffs
Wed Nov 21 21:54:53 2007 UTC (17 years, 5 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.8.6.2: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.6.2: +30 -27 lines
Sync with HEAD.

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:47:53 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +30 -27 lines
Sync with HEAD.

Revision 1.9.4.2: download - view: text, markup, annotated - select for diffs
Sun Nov 18 19:35:25 2007 UTC (17 years, 5 months ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.9.4.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.4.1: +28 -25 lines
Sync with HEAD

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Nov 16 08:00:14 2007 UTC (17 years, 5 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs2, keiichi-mipv6
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +30 -27 lines
Extend the envsys2 API (one more time, sorry) as defined in:

http://mail-index.netbsd.org/tech-kern/2007/11/09/0001.html

sysmon_envsys_create() and sysmon_envsys_destroy() were added to
create/destroy sysmon_envsys objects (and its TAILQ/LIST for sensors/events).

sysmon_envsys_sensor_attach() and sysmon_envsys_sensor_detach() were
added to attach/detach sensors to a specified sysmon_envsys device.

The events framework is now per device and configurable via the
ENVSYS_SETDICTIONARY ioctl or /etc/envsys.conf and envstat(8).

Update all users and documentation to reflect these changes.

Revision 1.8.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:26:53 2007 UTC (17 years, 5 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4 lines
sync with HEAD

Revision 1.2.6.4: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:30:52 2007 UTC (17 years, 6 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.2.6.3: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.6.3: +4 -4 lines
sync with head.

Revision 1.8.6.2: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:44:53 2007 UTC (17 years, 6 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.8.6.1: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.6.1: +3 -3 lines
Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Thu Oct 25 22:37:49 2007 UTC (17 years, 6 months ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
Sync with HEAD.

Revision 1.3.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:07:35 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.3.2.3: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.3: +3 -3 lines
Sync with head.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Oct 19 11:59:56 2007 UTC (17 years, 6 months ago) by ad
Branches: MAIN
CVS tags: jmcneill-base
Branch point for: mjf-devfs
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.2.4.3: download - view: text, markup, annotated - select for diffs
Mon Oct 15 05:09:59 2007 UTC (17 years, 6 months ago) by riz
Branches: netbsd-3
Diff to: previous 1.2.4.2: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.4.2: +136 -120 lines
Pull up following revisions via patch (requested by bouyer in ticket #1838):
	distrib/sets/lists/man/mi: revision 1.997
	sbin/bioctl/strtonum.c: revision 1.1
	sys/dev/Makefile: revision 1.25
	sys/arch/amd64/conf/GENERIC: revision 1.139
	sbin/bioctl/strtonum.h: revision 1.1
	sys/dev/bio.c: revision 1.1
	sbin/bioctl/bioctl.c: revision 1.1
	share/man/man4/bio.4: revision 1.1
	sbin/bioctl/bioctl.8: revision 1.1
	sys/sys/envsys.h: revision 1.11
	sbin/bioctl/bioctl.8: revision 1.3
	sbin/bioctl/bioctl.8: revision 1.4
	sys/arch/i386/conf/XEN2_DOM0: revision 1.25
	distrib/sets/lists/base/mi: revision 1.704
	sys/conf/majors: revision 1.34
	share/man/man4/Makefile: revision 1.426
	etc/MAKEDEV.tmpl: revision 1.86
	sys/arch/i386/conf/GENERIC: revision 1.825
	distrib/sets/lists/comp/mi: revision 1.1022
	sys/conf/files: revision 1.839
	usr.sbin/envstat/envstat.c: revision 1.24
	sbin/Makefile: revision 1.105
	sys/dev/ic/mfi.c: revision 1.4
	sys/dev/biovar.h: revision 1.1
	sys/dev/ic/mfivar.h: revision 1.4
	sbin/bioctl/Makefile: revision 1.1
Fix typo.
Add bio(4) and associated bioctl(8) from OpenBSD, a driver control block
device controllers, and more specifically raid controllers.
Add a new sensor type, ENVSYS_DRIVE, to report drive status. From OpenBSD.
Add bio and sysmon support to mfi(4). This allow userland to query
status for drives and logical volumes attached to a mfi(4) controller. While
there fix some debug printfs in mfi so they compile.
Add bio(4) to amd64 and i386 GENERIC.
Add bio(4) and associated bioctl(8) from OpenBSD, a driver control block
device controllers, and more specifically raid controllers.
Add a new sensor type, ENVSYS_DRIVE, to report drive status. From OpenBSD.
Add bio and sysmon support to mfi(4). This allow userland to query
status for drives and logical volumes attached to a mfi(4) controller. While
there fix some debug printfs in mfi so they compile.
Add bio(4) to amd64 and i386 GENERIC.
Fix Dd argument (use full month names).
Use more markup.
Comment out references to safte(4) and softraid(4), which don't exist in
NetBSD.
Remove trailing whitespace.
Use macros instead of characters for HTML output (replace ">", "<"
with \*[Gt], \*[Lt]).
Sort sections.
Create /dev/bio

Revision 1.3.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:41:28 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.3.2.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.2: +3 -3 lines
Sync with head.

Revision 1.8.6.1: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:28:24 2007 UTC (17 years, 6 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
Sync with HEAD.

Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 10 10:54:51 2007 UTC (17 years, 7 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +3 -3 lines
Sync with HEAD.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Sep 4 20:46:00 2007 UTC (17 years, 7 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5
Branch point for: bouyer-xenamd64
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
s/ENVSYS_FMONDRVSTATE/ENVSYS_FMONSTCHANGED/. Noticed by Manuel Bouyer@.

Revision 1.2.6.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:34:55 2007 UTC (17 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.2.6.2: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.6.2: +112 -123 lines
sync with head.

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:21:16 2007 UTC (17 years, 9 months ago) by ad
Branches: vmlocking
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.1: +25 -52 lines
Sync with head.

Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:06:00 2007 UTC (17 years, 9 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +108 -119 lines
Sync with head.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jul 4 17:07:04 2007 UTC (17 years, 9 months ago) by xtraeme
Branches: MAIN
CVS tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, matt-armv6, jmcneill-pm
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -4 lines
mfi_sensor_gtredata:

- There's no need to set edata->units again, it was set already before.
- Remove the last ENVSYS_SVALID assignment that overrides previous
  assignments (found by mhitch@).

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jul 1 11:35:31 2007 UTC (17 years, 9 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -4 lines
There's no need to set ENVSYS_FMONNOTSUPP in sensor's flags anymore,
userland limits for this type of sensor is disabled by sysmon_envsys(9).

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jul 1 07:37:14 2007 UTC (17 years, 9 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +29 -52 lines
Imported envsys 2, a brief description of the new features:
(Part 2: drivers)

* Support for detachable sensors.
* Cleaned up the API for simplicity and efficiency.
* Ability to send capacity/critical/warning events to powerd(8).
* Adapted all the code to the new locking order.
* Compatibility with the old envsys API: the ENVSYS_GTREINFO
  and ENVSYS_GTREDATA ioctl(2)s are supported.
* Added support for a 'dictionary based communication channel' between
  sysmon_power(9) and powerd(8), that means there is no 32 bytes event
  size restriction anymore.
* Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40.
* All drivers with the n^2 gtredata bug were fixed, PR kern/36226.

Tested by:

blymn: smsc(4).
bouyer: ipmi(4), mfi(4).
kefren: ug(4).
njoly: viaenv(4), adt7463.c.
riz: owtemp(4).
xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).

Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Sun May 27 14:30:05 2007 UTC (17 years, 11 months ago) by ad
Branches: vmlocking
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +136 -120 lines
Sync with head.

Revision 1.2.2.4: download - view: text, markup, annotated - select for diffs
Tue May 8 10:45:18 2007 UTC (17 years, 11 months ago) by pavel
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.2.2.3: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.3: +136 -120 lines
Pull up following revision(s) (requested by bouyer in ticket #603):
	distrib/sets/lists/base/mi: revision 1.704
	distrib/sets/lists/comp/mi: revision 1.1022
	distrib/sets/lists/man/mi: revision 1.997
	doc/CHANGES: revision 1.839
	sbin/Makefile: patch
	sbin/bioctl/Makefile: revision 1.1
	sbin/bioctl/bioctl.8: revision 1.1
	sbin/bioctl/bioctl.c: revision 1.1
	sbin/bioctl/strtonum.c: revision 1.1
	sbin/bioctl/strtonum.h: revision 1.1
	share/man/man4/Makefile: revision 1.426
	share/man/man4/bio.4: revision 1.1
	sys/arch/amd64/conf/GENERIC: revision 1.139
	sys/arch/i386/conf/GENERIC: revision 1.825
	sys/arch/i386/conf/XEN2_DOM0: revision 1.25
	sys/conf/files: revision 1.839
	sys/conf/majors: patch
	sys/dev/Makefile: revision 1.25
	sys/dev/bio.c: patch
	sys/dev/biovar.h: patch
	sys/dev/ic/mfi.c: revision 1.4-1.5
	sys/dev/ic/mfivar.h: revision 1.4
	sys/sys/envsys.h: revision 1.11
	usr.sbin/envstat/envstat.c: revision 1.24
Add bio(4) and associated bioctl(8) from OpenBSD, a driver control block
device controllers, and more specifically raid controllers.
Add a new sensor type, ENVSYS_DRIVE, to report drive status. From OpenBSD.
Add bio and sysmon support to mfi(4). This allow userland to query
status for drives and logical volumes attached to a mfi(4) controller. While
there fix some debug printfs in mfi so they compile.
Add bio(4) to amd64 and i386 GENERIC.

note bio(4), envsys(4) DRIVE, and mfi(4) support for both.

tred->sensor is a u_int.

Revision 1.2.10.2: download - view: text, markup, annotated - select for diffs
Mon May 7 10:55:26 2007 UTC (17 years, 11 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.2.10.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.10.1: +136 -120 lines
sync with head.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue May 1 19:39:22 2007 UTC (17 years, 11 months ago) by dogcow
Branches: MAIN
CVS tags: yamt-idlelwp-base8
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
tred->sensor is a u_int.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue May 1 17:18:55 2007 UTC (17 years, 11 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +136 -120 lines
Add bio(4) and associated bioctl(8) from OpenBSD, a driver control block
device controllers, and more specifically raid controllers.
Add a new sensor type, ENVSYS_DRIVE, to report drive status. From OpenBSD.
Add bio and sysmon support to mfi(4). This allow userland to query
status for drives and logical volumes attached to a mfi(4) controller. While
there fix some debug printfs in mfi so they compile.
Add bio(4) to amd64 and i386 GENERIC.

Revision 1.2.10.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:38 2007 UTC (18 years, 1 month ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -6 lines
Sync with HEAD.

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

Revision 1.2.8.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 00:57:36 2007 UTC (18 years, 3 months ago) by ad
Branches: newlock2
Diff to: previous 1.2.8.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.8.1: +1950 -0 lines
Sync with head.

Revision 1.2.6.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:03 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.2.6.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.6.1: +1950 -0 lines
sync with head.

Revision 1.2.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 23 16:43:19 2006 UTC (18 years, 4 months ago) by ghen
Branches: netbsd-3
Diff to: previous 1.2.4.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.4.1: +1950 -0 lines
Pull up following revision(s) (requested by bouyer in ticket #1609):
	sys/arch/i386/conf/INSTALL: revision 1.298
	sys/arch/i386/conf/GENERIC: revision 1.802
	sys/dev/pci/files.pci: revision 1.274
	sys/arch/amd64/conf/GENERIC: revision 1.122
	sys/dev/pci/mfi_pci.c: revision 1.1 via patch
	distrib/sets/lists/man/mi: revision 1.958
	sys/arch/amd64/conf/INSTALL: revision 1.61
	sys/dev/ic/mfireg.h: revision 1.1
	share/man/man4/Makefile: revision 1.416 via patch
	sys/dev/ic/mfi.c: revision 1.1
	sys/arch/i386/conf/XEN2_DOM0: revision 1.19
	sys/dev/ic/mfivar.h: revision 1.1
	sys/conf/files: revision 1.821
	share/man/man4/mfi.4: revision 1.1
	share/man/man4/mfi.4: revision 1.2
	sys/dev/pci/pcidevs via patch
Add mfi(4), a driver for LSI Logic & Dell MegaRAID SAS RAID controller.
Ported from OpenBSD, tested on i386 and amd64.
Punctuation issues.

Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Thu Dec 21 15:07:58 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.1.2.2: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.2: +4 -0 lines
sync with head.

Revision 1.2.2.3: download - view: text, markup, annotated - select for diffs
Thu Dec 21 14:21:24 2006 UTC (18 years, 4 months ago) by tron
Branches: netbsd-4
Diff to: previous 1.2.2.2: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.2: +4 -0 lines
Pull up following revision(s) (requested by bouyer in ticket #286):
	sys/dev/pci/mfi_pci.c: revision 1.2
	sys/dev/ic/mfireg.h: revision 1.2
	sys/dev/ic/mfi.c: revision 1.2
	sys/dev/ic/mfivar.h: revision 1.2
Add missing $NetBSD: $

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Thu Dec 21 12:46:21 2006 UTC (18 years, 4 months ago) by tron
Branches: netbsd-4
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.1: +1946 -0 lines
Pull up following revision(s) (requested by bouyer in ticket #286):
	sys/arch/i386/conf/INSTALL: revision 1.298
	sys/arch/i386/conf/GENERIC: revision 1.802
	sys/dev/pci/files.pci: revision 1.274
	sys/arch/amd64/conf/GENERIC: revision 1.122
	sys/dev/pci/mfi_pci.c: revision 1.1
	distrib/sets/lists/man/mi: revision 1.958
	sys/arch/amd64/conf/INSTALL: revision 1.61
	sys/arch/i386/conf/ALL: revision 1.75
	sys/dev/ic/mfireg.h: revision 1.1
	share/man/man4/Makefile: revision 1.416
	sys/dev/ic/mfi.c: revision 1.1
	sys/arch/i386/conf/XEN2_DOM0: revision 1.19
	sys/dev/ic/mfivar.h: revision 1.1
	sys/conf/files: revision 1.821
	share/man/man4/mfi.4: revision 1.1
Add mfi(4), a driver for LSI Logic & Dell MegaRAID SAS RAID controller.
Ported from OpenBSD, tested on i386 and amd64.

Revision 1.2.8.1
Wed Dec 20 21:44:06 2006 UTC (18 years, 4 months ago) by ad
Branches: newlock2
FILE REMOVED
Changes since revision 1.2: +0 -1950 lines
file mfi.c was added on branch newlock2 on 2007-01-12 00:57:36 +0000

Revision 1.2.6.1
Wed Dec 20 21:44:06 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.2: +0 -1950 lines
file mfi.c was added on branch yamt-lazymbuf on 2006-12-30 20:48:03 +0000

Revision 1.2.4.1
Wed Dec 20 21:44:06 2006 UTC (18 years, 4 months ago) by ghen
Branches: netbsd-3
FILE REMOVED
Changes since revision 1.2: +0 -1950 lines
file mfi.c was added on branch netbsd-3 on 2006-12-23 16:43:19 +0000

Revision 1.2.2.1
Wed Dec 20 21:44:06 2006 UTC (18 years, 4 months ago) by tron
Branches: netbsd-4
FILE REMOVED
Changes since revision 1.2: +0 -1950 lines
file mfi.c was added on branch netbsd-4 on 2006-12-21 12:46:21 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Dec 20 21:44:06 2006 UTC (18 years, 4 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-lazymbuf, yamt-idlelwp, newlock2, netbsd-4, netbsd-3
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -0 lines
Add missing $NetBSD: $

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Mon Dec 18 11:42:13 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +1946 -0 lines
sync with head.

Revision 1.1.2.1
Sun Dec 17 22:57:15 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-splraiseipl
FILE REMOVED
Changes since revision 1.1: +0 -1946 lines
file mfi.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:13 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Dec 17 22:57:15 2006 UTC (18 years, 4 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-splraiseipl-base4
Branch point for: yamt-splraiseipl
Add mfi(4), a driver for LSI Logic & Dell MegaRAID SAS RAID controller.
Ported from OpenBSD, tested on i386 and amd64.

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>