The NetBSD Project

CVS log for src/sys/dev/pci/mfii.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Feb 13 14:56:52 2024 UTC (9 months, 2 weeks ago) by msaitoh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +77 -9 lines
mfii(4): Apply two changes from OpenBSD to fix an unknown firmware state.

 My own MegaRAID 946N-8i 2G", firmware 50.5.0-2594 failed to attach.

	mfii0: unknown firmware state 1879048192

1879048192 equals to 0x70000000(== MFI_STATE_FW_INIT_2).
Apply following two OpenBSD commits to resolve this problem.


Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Oct 5 21:41:00 2023 UTC (13 months, 4 weeks ago) by christos
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +11 -11 lines
provide a separate pointer that points to the drive sensors (Edgar Fuss)

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Sep 23 13:01:16 2023 UTC (14 months, 1 week ago) by christos
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +13 -11 lines
When attaching and detaching disks, use the proper index, skipping the
first 4, which are used for the controller itself (Edgar Fuss)

Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Sep 22 14:14:00 2023 UTC (14 months, 1 week ago) by christos
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -2 lines
update present variable when disks are added or removed (Edgar Fuss)

Revision 1.4.4.3: download - view: text, markup, annotated - select for diffs
Thu Sep 29 18:26:42 2022 UTC (2 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.4.4.2: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.4.2: +7 -7 lines
Pull up following revision(s) (requested by bouyer in ticket #1534):

	sys/dev/pci/mfii.c: revision 1.28

Convert from pci_intr_map() to pci_intr_alloc(); makes the driver use
MSI/MSI-x when available. Tested by Edgar Fu?.

Revision 1.3.2.7: download - view: text, markup, annotated - select for diffs
Thu Sep 29 14:41:43 2022 UTC (2 years, 2 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.3.2.6: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.6: +7 -7 lines
Pull up following revision(s) (requested by bouyer in ticket #1768):
	sys/dev/pci/mfii.c: 1.28
Convert from pci_intr_map() to pci_intr_alloc(); makes the driver use
MSI/MSI-x when available. Tested by Edgar Fu?.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Sep 29 10:27:02 2022 UTC (2 years, 2 months ago) by bouyer
Branches: MAIN
CVS tags: netbsd-10-base, 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.27: preferred, colored
Changes since revision 1.27: +7 -7 lines
Convert from pci_intr_map() to pci_intr_alloc(); makes the driver use
MSI/MSI-x when available. Tested by Edgar Fuß.

Revision 1.3.2.6: download - view: text, markup, annotated - select for diffs
Fri Sep 16 18:30:15 2022 UTC (2 years, 2 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.3.2.5: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.5: +65 -32 lines
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.4.4.2: download - view: text, markup, annotated - select for diffs
Fri Sep 16 18:27:38 2022 UTC (2 years, 2 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.4.4.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.1: +65 -32 lines
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.27: download - view: text, markup, annotated - select for diffs
Wed Sep 14 01:05:42 2022 UTC (2 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -2 lines
mfii: Don't panic on detach.

 Call sysmon_envsys_destroy() and clear sc->sc_sme to NULL if
sysmon_envsys_register failed.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Jul 16 07:23:51 2022 UTC (2 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -6 lines
Enable Aero.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Jul 16 07:13:03 2022 UTC (2 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +13 -7 lines
 It seems that a logical volume number and the target ID is different
on newer systems. It's observed on an Aero. Add sc->sc_ld[X].ld_target_id
to keep the target ID and use it for scsipi layer. Now sdX is attached
on Aero system. Tested by Mark Davies.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Jul 16 06:52:41 2022 UTC (2 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +47 -13 lines
Add max 256 VD support.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Jul 9 11:44:57 2022 UTC (2 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +100 -19 lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 9 11:41:56 2022 UTC (2 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +7 -7 lines
Use bus_space_write_8() if available.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Jul 9 11:41:18 2022 UTC (2 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -6 lines
Modify strange bus_space_barrier().

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Jun 29 13:03:20 2022 UTC (2 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -2 lines
Add CVPM02 BBU support.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jun 27 15:55:11 2022 UTC (2 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +38 -25 lines
KNF a little. No functional change.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Jun 27 15:38:19 2022 UTC (2 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +12 -2 lines
Add some MegaRAID devices (except Aero series). Not tested.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Jun 27 15:32:30 2022 UTC (2 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +13 -6 lines
Add comment. Sort entries. No functional change.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Jun 22 14:29:11 2022 UTC (2 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +6 -2 lines
Fix wrong access in mfii_start(). I hope this fixes kern/55192 and kern/56669.

Revision 1.3.2.5: download - view: text, markup, annotated - select for diffs
Tue May 17 10:33:46 2022 UTC (2 years, 6 months ago) by bouyer
Branches: netbsd-8
Diff to: previous 1.3.2.4: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.4: +171 -164 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.4.4.1: download - view: text, markup, annotated - select for diffs
Tue May 17 10:29:47 2022 UTC (2 years, 6 months ago) by bouyer
Branches: netbsd-9
CVS tags: netbsd-9-3-RELEASE
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +171 -164 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.15: download - view: text, markup, annotated - select for diffs
Fri May 13 10:44:38 2022 UTC (2 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +5 -5 lines
Fix compile error when MFII_DEBUG is set. Whitespace fix.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu May 12 12:04:09 2022 UTC (2 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
Use IBBU's data structure for iBBU-09.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed May 11 15:30:33 2022 UTC (2 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -2 lines
Add support for iBBU-09 to show BBU voltage, current and temp correctly.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed May 11 15:24:45 2022 UTC (2 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -2 lines
mfii(4): Set stripe size correctly for BIOCVOL. Same as mfi.c rev. 1.75.

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

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu May 5 09:14:17 2022 UTC (2 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +23 -23 lines
Whitespace.

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

Revision 1.8.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 21:27:00 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +3 -3 lines
Adapt to CFARGS().

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:57 2021 UTC (3 years, 7 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.7: preferred, colored
Changes since revision 1.7: +5 -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.7.4.3: download - view: text, markup, annotated - select for diffs
Sun Mar 28 20:41:04 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.7.4.2: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.4.2: +4 -6 lines
No need to pass interface attribute or locators to config_found().

Revision 1.7.4.2: download - view: text, markup, annotated - select for diffs
Mon Mar 22 16:23:45 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.7.4.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.4.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.7.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 22 02:01:01 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +6 -4 lines
Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu May 14 08:34:18 2020 UTC (4 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
Remove extra semicolon.

Revision 1.4.2.4: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:27 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.4.2.3: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.3: +2 -9 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.4.2.3: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:09 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.4.2.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.2: +134 -138 lines
Merge changes from current as of 20200406

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Nov 27 19:21:36 2019 UTC (5 years ago) by maxv
Branches: MAIN
CVS tags: 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
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +134 -138 lines
localify

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Nov 10 21:16:36 2019 UTC (5 years ago) by chs
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +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.4.2.2: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:17 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.1: +3866 -0 lines
Sync with HEAD

Revision 1.3.2.4: download - view: text, markup, annotated - select for diffs
Fri Apr 26 19:04:19 2019 UTC (5 years, 7 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.3.2.3: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.3: +12 -22 lines
Pull up following revision(s) (requested by bouyer in ticket #1247):

	sys/dev/pci/mfii.c: revision 1.4

Clean up timeout logic. Now the system survives to a ccb timeout; before
the filesystem would stall because one I/O did never completes.

Revision 1.4.2.1
Wed Apr 24 09:21:01 2019 UTC (5 years, 7 months ago) by christos
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.4: +0 -3866 lines
file mfii.c was added on branch phil-wifi on 2019-06-10 22:07:17 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Apr 24 09:21:01 2019 UTC (5 years, 7 months ago) by bouyer
Branches: MAIN
CVS tags: phil-wifi-20190609, 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: phil-wifi, netbsd-9
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +12 -22 lines
Clean up timeout logic. Now the system survives to a ccb timeout; before
the filesystem would stall because one I/O did never completes.

Revision 1.2.2.3: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:01:50 2018 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.2.2.2: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.2: +11 -7 lines
Sync with HEAD, resolve a few conflicts

Revision 1.3.2.3: download - view: text, markup, annotated - select for diffs
Sat Dec 8 12:17:13 2018 UTC (5 years, 11 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.3.2.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.2: +11 -7 lines
Pull up following revision(s) (requested by bouyer in ticket #1131):

	sys/dev/pci/mpiireg.h: revision 1.2
	sys/dev/pci/mfii.c: revision 1.3
	share/man/man4/mpii.4: revision 1.3
	share/man/man4/mpii.4: revision 1.4
	sys/dev/pci/mpii.c: revision 1.15
	sys/dev/pci/mpii.c: revision 1.16
	sys/dev/pci/mpii.c: revision 1.17
	sys/dev/pci/mpii.c: revision 1.18

Update the mpii(4) driver to the latest OpenBSD version.

This adds support for the SAS3xxx LSI controllers, and this also makes the
driver MP-safe.

adjust mfii.c for changes in mpiireg.h

Tested with a
mpii0: SMC2008-IR, firmware 9.0.0.0 IR, MPI 2.0
Update for the new mpii(4) driver, mostly from OpenBSD.

Also tell the scsi layer that we are MPSAFE

Remove trailing whitespace

NULL-terminate mpii_devices[], this is the end condition of the loop
in mpii_match(). Noticed by Mike Pumford

There's no sensors for physical disks so don't try to detach them.

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:11:37 2018 UTC (5 years, 11 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.1: +3871 -0 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.3.2.1
Mon Dec 3 22:34:36 2018 UTC (6 years ago) by martin
Branches: netbsd-8
FILE REMOVED
Changes since revision 1.3: +0 -3876 lines
file mfii.c was added on branch netbsd-8 on 2018-12-07 17:11:37 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Dec 3 22:34:36 2018 UTC (6 years ago) by bouyer
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-8
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +11 -7 lines
Update the mpii(4) driver to the latest OpenBSD version.
This adds support for the SAS3xxx LSI controllers, and this also makes the
driver MP-safe.
adjust mfii.c for changes in mpiireg.h

Tested with a
mpii0: SMC2008-IR, firmware 9.0.0.0 IR, MPI 2.0

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:32 2018 UTC (6 years ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.2.1: +3872 -0 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.2.2.1
Sat Nov 24 18:37:16 2018 UTC (6 years ago) by pgoyette
Branches: pgoyette-compat
FILE REMOVED
Changes since revision 1.2: +0 -3872 lines
file mfii.c was added on branch pgoyette-compat on 2018-11-26 01:52:32 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Nov 24 18:37:16 2018 UTC (6 years ago) by bouyer
Branches: MAIN
CVS tags: pgoyette-compat-1126
Branch point for: pgoyette-compat
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -2 lines
Add my name in copyright list

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Nov 24 18:23:29 2018 UTC (6 years ago) by bouyer
Branches: MAIN
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.

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>