The NetBSD Project

CVS log for src/sys/dev/ic/mfireg.h

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.8.30.3 / (download) - annotate - [select for diffs], Fri Sep 16 18:30:15 2022 UTC (4 months, 2 weeks ago) by martin
Branch: netbsd-8
Changes since 1.8.30.2: +2 -1 lines
Diff to previous 1.8.30.2 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Pull up the following, requested by msaitoh in ticket #1764:

	sys/dev/ic/mfireg.h				1.22
	sys/dev/pci/mfii.c				1.16-1.22,1.27 via patch
	share/man/man4/mfii.4				1.3 via patch

- Fix wrong access in mfii_start().
- Add SAS3216,SAS3224,SAS3316 and SAS3324 support.
- Add CVPM02 BBU support.
- Use bus_space_write_8() if available.
- Don't panic on detach if no any sensor device.
- Add comment. Sort entries. KNF.

Revision 1.9.4.2 / (download) - annotate - [select for diffs], Fri Sep 16 18:27:38 2022 UTC (4 months, 2 weeks ago) by martin
Branch: netbsd-9
Changes since 1.9.4.1: +2 -1 lines
Diff to previous 1.9.4.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Pull up the following, requested by msaitoh in ticket #1524:

	sys/dev/ic/mfireg.h				1.22
	sys/dev/pci/mfii.c				1.16-1.22,1.27 via patch
	share/man/man4/mfii.4				1.3 via patch

- Fix wrong access in mfii_start().
- Add SAS3216,SAS3224,SAS3316 and SAS3324 support.
- Add CVPM02 BBU support.
- Use bus_space_write_8() if available.
- Don't panic on detach if no any sensor device.
- Add comment. Sort entries. KNF.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jul 16 06:52:40 2022 UTC (6 months, 2 weeks ago) by msaitoh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.23: +123 -3 lines
Diff to previous 1.23 (colored)

Add max 256 VD support.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jul 9 11:44:57 2022 UTC (6 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.22: +7 -1 lines
Diff to previous 1.22 (colored)

Add preliminary support for Aero.

 - Aero supports 32bit descriptor.
 - Even if the Aero card supports 32bit descriptor, 64bit descriptor
   access is required for MFI_CMD_INIT.
 - Add quirk for Aero to retry register read.
 - The PCI ID table for Aero is disabled. Even if it's enabled, any logical
   volumes are not found. Perhaps the reason is that our mfii driver is
   currently not supports more than 64 logical volumes and MR_DCMD_LD_GET_LIST
   returns incorrect value. Tested by Mark Daies' H750.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jun 29 13:03:20 2022 UTC (7 months ago) by msaitoh
Branch: MAIN
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

Add CVPM02 BBU support.

Revision 1.8.30.2 / (download) - annotate - [select for diffs], Tue May 17 10:33:46 2022 UTC (8 months, 2 weeks ago) by bouyer
Branch: netbsd-8
Changes since 1.8.30.1: +170 -168 lines
Diff to previous 1.8.30.1 (colored) to branchpoint 1.8 (colored)

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.9.4.1 / (download) - annotate - [select for diffs], Tue May 17 10:29:47 2022 UTC (8 months, 2 weeks ago) by bouyer
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.9: +170 -168 lines
Diff to previous 1.9 (colored)

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.21 / (download) - annotate - [select for diffs], Thu May 12 12:05:04 2022 UTC (8 months, 2 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.20: +1 -2 lines
Diff to previous 1.20 (colored)

I think MFI_BBU_STATE_LEARN_CYC_REQ is not an error.

Revision 1.20 / (download) - annotate - [select for diffs], Thu May 12 12:00:58 2022 UTC (8 months, 2 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.19: +42 -42 lines
Diff to previous 1.19 (colored)

No functional change.

 - Reduce diff against OpenBSD
   - Whitespace fix.
   - Sort some defines and structures.
   - Add comment.
 - KNF.

Revision 1.19 / (download) - annotate - [select for diffs], Thu May 12 11:56:29 2022 UTC (8 months, 2 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored)

Don't use MFI_PD_LIST_SIZE. Same as OpenBSD. No functional change.

Revision 1.18 / (download) - annotate - [select for diffs], Wed May 11 15:30:33 2022 UTC (8 months, 2 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

Add support for iBBU-09 to show BBU voltage, current and temp correctly.

Revision 1.17 / (download) - annotate - [select for diffs], Wed May 11 15:20:54 2022 UTC (8 months, 2 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.16: +117 -116 lines
Diff to previous 1.16 (colored)

KNF. s/u_quad_t/uint64_t/. No functional change.

Revision 1.16 / (download) - annotate - [select for diffs], Sat May 7 04:47:25 2022 UTC (8 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.15: +5 -5 lines
Diff to previous 1.15 (colored)

Fix typos.

Revision 1.15 / (download) - annotate - [select for diffs], Thu May 5 07:18:02 2022 UTC (8 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.14: +4 -3 lines
Diff to previous 1.14 (colored)

Add some code for the SKINNY variant to make Dell PERC H310 work.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Mar 23 11:08:27 2022 UTC (10 months, 1 week ago) by andvar
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

fix few typos in comments, mainly s/paramenters/parameters/.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Mar 22 21:45:13 2022 UTC (10 months, 1 week ago) by andvar
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

fix typos in comments.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Nov 6 06:52:48 2021 UTC (14 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

s/allign/align/

Revision 1.10.12.1 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:23 2021 UTC (17 months, 4 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync with HEAD.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jul 24 21:31:37 2021 UTC (18 months, 1 week ago) by andvar
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.

Revision 1.8.38.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:21 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.8.38.1: +21 -22 lines
Diff to previous 1.8.38.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.10 / (download) - annotate - [select for diffs], Sat Oct 5 23:27:20 2019 UTC (3 years, 3 months ago) by mrg
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, 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-i2c-spi-conf
Changes since 1.9: +21 -22 lines
Diff to previous 1.9 (colored)

remove __packed attribute from struct ieee80211_radiotap_header
and all the structures that include it.

this should not change anything while avoiding packed vs alignment
warnings from GCC 8, and potentially pessimised code generation
due to the packed marker (there are no misaligned members, just
that the per-device parts may end unaligned.)

all consumers of these members are done from the properly aligned
packet members directly, or, as a union with a 64 byte member,
also properly aligned.  codegen didn't appear to change, except
for the definition of sizeof(struct driver_[rt]x_radiotap_header)
in debug info, which is not directly used anywhere.

Revision 1.8.38.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:10 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.8: +86 -23 lines
Diff to previous 1.8 (colored)

Sync with HEAD

Revision 1.8.30.1 / (download) - annotate - [select for diffs], Fri Dec 7 17:11:37 2018 UTC (4 years, 1 month ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.8: +86 -23 lines
Diff to previous 1.8 (colored)

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.8.36.1 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:31 2018 UTC (4 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.8: +86 -23 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.9 / (download) - annotate - [select for diffs], Sat Nov 24 18:10:29 2018 UTC (4 years, 2 months ago) by bouyer
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, netbsd-9-base, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.8: +86 -23 lines
Diff to previous 1.8 (colored)

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

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:06 2012 UTC (10 years, 2 months ago) by tls
Branch: tls-maxphys
Changes since 1.7: +6 -1 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.4.10.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:21:05 2012 UTC (10 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.4.10.1: +858 -89 lines
Diff to previous 1.4.10.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head

Revision 1.4.16.3 / (download) - annotate - [select for diffs], Wed Oct 24 03:23:44 2012 UTC (10 years, 3 months ago) by riz
Branch: 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
Changes since 1.4.16.2: +6 -1 lines
Diff to previous 1.4.16.2 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

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.4.16.2 / (download) - annotate - [select for diffs], Wed Oct 24 03:19:19 2012 UTC (10 years, 3 months ago) by riz
Branch: netbsd-6
Changes since 1.4.16.1: +853 -89 lines
Diff to previous 1.4.16.1 (colored) to branchpoint 1.4 (colored)

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.8 / (download) - annotate - [select for diffs], Wed Sep 19 21:24:29 2012 UTC (10 years, 4 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base-20171202, 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, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, 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, 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, nick-nhusb-base, nick-nhusb, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, 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, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, khorben-n900, jdolecek-ncqfixes-base, jdolecek-ncqfixes, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: phil-wifi, pgoyette-compat, netbsd-8
Changes since 1.7: +6 -1 lines
Diff to previous 1.7 (colored)

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.7 / (download) - annotate - [select for diffs], Sun Aug 26 16:05:29 2012 UTC (10 years, 5 months ago) by bouyer
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.6: +86 -1 lines
Diff to previous 1.6 (colored)

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.6 / (download) - annotate - [select for diffs], Thu Aug 23 09:59:13 2012 UTC (10 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.5: +768 -89 lines
Diff to previous 1.5 (colored)

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.4.10.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:35 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.4: +9 -1 lines
Diff to previous 1.4 (colored)

sync with head

Revision 1.4.14.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:26 2012 UTC (10 years, 9 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.4: +9 -1 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

sync to latest -current.

Revision 1.4.16.1 / (download) - annotate - [select for diffs], Thu Mar 22 23:04:27 2012 UTC (10 years, 10 months ago) by riz
Branch: 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
Changes since 1.4: +9 -1 lines
Diff to previous 1.4 (colored)

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.5 / (download) - annotate - [select for diffs], Wed Mar 21 14:22:36 2012 UTC (10 years, 10 months ago) by sborrill
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Changes since 1.4: +9 -1 lines
Diff to previous 1.4 (colored)

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.3.24.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:19 2010 UTC (12 years, 9 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with HEAD.

Revision 1.3.22.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:27:36 2010 UTC (12 years, 9 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

sync to netbsd-5

Revision 1.3.14.1 / (download) - annotate - [select for diffs], Sun Mar 28 15:03:22 2010 UTC (12 years, 10 months ago) by snj
Branch: 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
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

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.3.4.1 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:33 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

sync with head

Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 9 00:05:18 2010 UTC (12 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, 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, netbsd-6-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, 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, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

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.2.48.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:41 2008 UTC (14 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.2: +4 -1 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Sync with HEAD.

Revision 1.2.44.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:17 2008 UTC (14 years, 10 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.2: +4 -1 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

sync with head.

Revision 1.2.28.1 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:38 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.2: +4 -1 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

sync with HEAD

Revision 1.2.6.3 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:34 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.6.2: +4 -1 lines
Diff to previous 1.2.6.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 25 10:46:02 2008 UTC (14 years, 11 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, uebayasi-xip-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, 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-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, matt-premerge-20091211, 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, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, uebayasi-xip, netbsd-5, matt-nb5-mips64
Changes since 1.2: +4 -1 lines
Diff to previous 1.2 (colored)

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.2.8.2 / (download) - annotate - [select for diffs], Fri Jan 12 00:57:36 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.2.8.1: +929 -0 lines
Diff to previous 1.2.8.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with head.

Revision 1.2.6.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:03 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.6.1: +929 -0 lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored)

sync with head.

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Sat Dec 23 16:43:19 2006 UTC (16 years, 1 month ago) by ghen
Branch: netbsd-3
Changes since 1.2.4.1: +928 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

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) - annotate - [select for diffs], Thu Dec 21 15:07:58 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.1.2.2: +1 -0 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head.

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Thu Dec 21 14:21:24 2006 UTC (16 years, 1 month ago) by tron
Branch: 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
Changes since 1.2.2.2: +1 -0 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

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) - annotate - [select for diffs], Thu Dec 21 12:46:21 2006 UTC (16 years, 1 month ago) by tron
Branch: netbsd-4
Changes since 1.2.2.1: +928 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored)

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 (16 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.2: +0 -929 lines
FILE REMOVED

file mfireg.h 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 (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2: +0 -929 lines
FILE REMOVED

file mfireg.h 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 (16 years, 1 month ago) by ghen
Branch: netbsd-3
Changes since 1.2: +0 -929 lines
FILE REMOVED

file mfireg.h 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 (16 years, 1 month ago) by tron
Branch: netbsd-4
Changes since 1.2: +0 -929 lines
FILE REMOVED

file mfireg.h was added on branch netbsd-4 on 2006-12-21 12:46:21 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Wed Dec 20 21:44:06 2006 UTC (16 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-splraiseipl-base5, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, yamt-idlelwp, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, post-newlock2-merge, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, mjf-ufs-trans-base, mjf-ufs-trans, 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, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-audiomp-base, ad-audiomp
Branch point for: yamt-lazymbuf, newlock2, netbsd-4, netbsd-3, mjf-devfs2, matt-armv6, keiichi-mipv6
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

Add missing $NetBSD: $

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Dec 18 11:42:13 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.1.2.1: +928 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.1.2.1, Sun Dec 17 22:57:16 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.1: +0 -928 lines
FILE REMOVED

file mfireg.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:13 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sun Dec 17 22:57:16 2006 UTC (16 years, 1 month ago) by bouyer
Branch: 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.

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>