The NetBSD Project

CVS log for src/sys/dev/raidframe/rf_map.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.51.16.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:22:32 2026 UTC (11 days, 5 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +63 -31 lines
Sync with HEAD

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Oct 24 00:20:24 2026 UTC (3 weeks, 2 days ago) by tls
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, HEAD
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +63 -31 lines
Be more conservative with pool and freelist sizes and address potential deadlocks discovered while working on PR kern/60396.

Note that with this change we track the total amount of memory allocated to
both reserved buffers and pools on a per-array basis, and constrain
"openings" to keep it under control on small-memory machines.

1) Per suggestion from oster@, rename the "emergency" freelists that are now
   used before dynamic allocation to "reserved" freelists.

2) Eliminate static pool sizes and compute dynamically instead.  For now,
   most are larger to avoid potential deadlocks discussed below.  With
   some restructuring of the I/O dispatch model they can probably get smaller.

3) Address an M_WAITOK allocation with PSS_MUTEX held in "forced"
   reconstruction.  It appears this could deadlock rf_RaidIOThread
   and the recon thread.  Added another small set of emergency
   buffers to cover this case.

4) Reorganize rf_Configure to initialize pools _after_ disk,
   queue, and openings are determined, so each array's pools can
   be sized according to the actual array geometry.  Made all
   sizes dynamic; but see below as to the actual constraint on
   minimum pool sizes.

5) Address a potential deadlock between dispatch
   and completion for the I/O and Engine threads per array if any
   pool has less than "openings" minimum elements.  This is because
   am outbound dispatch can block in pool_get(..., PR_WAITOK) while
   completed I/Os accumulate in raidPtr->iodone or term_nq.

   The options are to either restructure these as two threads per
   (dispatch, completion) or to grit our teeth and accept that we
   must have "openings" minimum elements in each pool and on small
   memory machines "openings" will thus be constrained.  Elsewise,
   some pools would need as little as a single page of memory.

   Went for the "grit our teeth" option; a shame, but tearing the
   threads apart feels like too much for now.

6) Compute bytes per opening (which can be quite large due to
   emergency buffers, remembering array geometries are possible
   where a stripe is much smaller than MAXPHYS) and use that to
   constrain "openings" so no array allocates more than 1% of
   physical memory.  Comments in the reorganized rf_Configure
   explain how it's done and there are some verbose and debug
   printfs to let the user know what happened.  With a wide array
   on a low-memory machine, the bottom line is that you may be
   all the way back down to openings = 6; but on big machines with
   narrow arrays we can do much better.

7) Each time we configure an array, grow the global
   rf_alloclist_pool to ensure it has enough space according
   to array geometry and openings, so we do not block on this
   pool either.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Oct 18 01:39:05 2026 UTC (4 weeks, 1 day ago) by tls
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +6 -6 lines
Eliminate very low concurrency limit in RAIDframe, improving write throughput as much as 25%.

RAIDframe maintains a per-set freelist of "emergency buffers" to ensure it can perform I/O
under heavy memory pressure.  The freelist size was 10, and each I/O request can require
up to 2 buffers in some recovery conditions, so raidPtr->openings was limited to RAIDOUTSTANDING,
which was set to 6 (this was a bug; it should have been 5).

There is no need at all for this limit for RAID 0 or RAID 1 sets; they do not buffer I/O in
the relevant way.  Eliminate the allocation entirely in this case; openings is set as the
configured queue length for the RAID set.

For parity RAID sets, we dynamically size two freelists of pre-allocated buffers and the
openings value so that we consume no more than 1% of system RAM per set:
	openings = MIN(maxQueueDepth, MAX(RAIDOUTSTANDING, (1% of physmem), bytes_per_opening))
	stripe buffers: 2 * openings
	I/O buffers: openings * max_stripes_per_bp * numCol

	RAIDOUTSTANDING (now used as a floor) remains 6.

Now we use the pre-allocated buffers first, resorting to malloc() only if we run out.

This can use about 2.8MB of additional memory on very small systems with parity RAID.  It saves
about 1.6MB if they are using mirroring or striping, which is more likely, e.g. a router with
mirrored root flash.  It can use a great deal more memory on systems that happen to already have
a great deal more memory - up to 1% of system RAM per parity RAID set, of course.

Double the RAID metadata pool high-water marks to accomodate additional concurrency; widen
the pending write counter in the in-core parity map (consuming a whopping 4KB) to accommodate
queue lengths > 127.  Fix a couple of buglets.

The punchline: sequential 128K write performance goes from 750MB/sec to 950MB/sec on a RAID1
set of NVMe SSDs (a 25% improvement!); random write performance on a RAID5 set of 4 virtio
disks (backed by a single SSD; host is a Mac Studio M3 Ultra) on an aarch64 QEMU VM goes from
2800tps to 3300tps and throughput increases from 25MB/sec to 31MB/sec (workload is untarring
src.tar.gz from tmpfs to FFS on the RAID1 set).

Revision 1.50.14.1: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:31 2021 UTC (5 years, 3 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +78 -72 lines
Sync with HEAD.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Jul 23 00:54:45 2021 UTC (5 years, 3 months ago) by oster
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: perseant-exfatfs
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +78 -72 lines

Extensive mechanical changes to the pools used in RAIDframe.

Alloclist remains not per-RAID, so initialize that pool
separately/differently than the rest.

The remainder of pools in RF_Pools_s are now per-RAID pools.  Mostly
mechanical changes to functions to allocate/destroy per-RAID pools.
Needed to make raidPtr available in certain cases to be able to find
the per-RAID pools.

Extend rf_pool_init() to now populate a per-RAID wchan value that is
unique to each pool for a given RAID device.

TODO: Complete the analysis of the minimum number of items that are
required for each pool to allow IO to progress (i.e. so that a request
for pool resources can always be satisfied), and dynamically scale
minimum pool sizes based on RAID configuration.

Revision 1.47.16.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:31 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +16 -46 lines
Sync with HEAD

Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue May 28 08:59:35 2019 UTC (7 years, 5 months ago) by msaitoh
Branches: 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, phil-wifi-20190609, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, 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
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
s/recieve/receive/

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Feb 10 17:13:33 2019 UTC (7 years, 9 months ago) by christos
Branches: MAIN
CVS tags: isaki-audio2-base, isaki-audio2
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +8 -38 lines
Introduce PR_ZERO to avoid open-coding memset()s everywhere. OK riastradh@.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Feb 9 03:34:00 2019 UTC (7 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +15 -15 lines
- Change the allocation macros to be more like function calls
- Change sizeof(type) -> sizeof(*variable)
- Use macros for the long buffer length allocations
- Remove "bit polishing" memsets() -- do them only once
- Remove unnecessary casts

Thanks to oster@ for finding bugs and testing.

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

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:55:17 2016 UTC (9 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +3 -5 lines
Sync with HEAD

Revision 1.46.4.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:15 2016 UTC (10 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +3 -5 lines
Sync with HEAD

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Oct 15 20:31:15 2016 UTC (10 years, 1 month ago) by oster
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, 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, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncqfixes-base, jdolecek-ncqfixes, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -5 lines

Cleanup/remove unused asm_count.  Reported by David Binderman in PR#51552.
Thanks!

Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Nov 14 14:45:34 2014 UTC (12 years ago) by oster
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, 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, localcount-20160914
Branch point for: pgoyette-localcount, nick-nhusb
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3 lines


Adjust comment to reflect reality.  (5th arg, not 4th)

Revision 1.44.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:08:32 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +6 -6 lines
Sync with HEAD.

Revision 1.44.4.1: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:53 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +6 -6 lines
sync with head

Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed May 11 18:13:12 2011 UTC (15 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-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, netbsd-6-base, 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, 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, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +6 -6 lines
convert the main raidPtr mutex to a kmutex, and add a couple of cv's to
cover the old sleep/wakeup points for adding_hot_spare and waitForReconCond.
convert all remaining simple_lock's to kmutexes (they're not used or compiled
right now... even with all options enabled) and remove the support for them.

this leaves just a pair of tsleep()/wakeup() calls using old scheduling APIs.

Revision 1.43.56.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:16 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43: +8 -8 lines
Sync with HEAD.

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

Revision 1.43.40.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:16 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43: +8 -8 lines
sync with head.

Revision 1.43.50.1: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:36:27 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43: +8 -8 lines
Sync with HEAD.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Mar 15 17:17:23 2009 UTC (17 years, 8 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, 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-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +8 -8 lines
ansify function definitions

Revision 1.38.4.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:38:19 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.38.4.1: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.4.1: +4 -4 lines
sync with head.

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

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:02:38 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base2, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-ufs-trans-base, mjf-ufs-trans, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, mjf-devfs, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, 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-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap, jym-xensuspend
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -4 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

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

Revision 1.40.8.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:46 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +2 -2 lines
Sync with head.

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

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

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

Revision 1.39.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:54:05 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +3 -3 lines
sync with head

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

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

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

Revision 1.39.8.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:14 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +3 -3 lines
sync with head.

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

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Apr 26 17:08:48 2006 UTC (20 years, 6 months ago) by oster
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3 lines
un-bitrot some of this code (which is not included by default in kernels),
and make it build again.  XXX: Paritylogging bits still won't build.

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

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

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

Revision 1.21.6.4: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:50:07 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.21.6.3: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.6.3: +34 -34 lines
Sync with HEAD.

Hi Perry!

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:45 2005 UTC (21 years, 8 months ago) by perry
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +34 -34 lines
nuke trailing whitespace

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

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

Revision 1.21.6.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:50:44 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +317 -239 lines
Sync with HEAD

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Mar 20 04:22:05 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +30 -2 lines
For each RAID set, pre-allocate a number of "emergency buffers" to be
used in the event that we can't malloc a buffer of the appropriate
size in the traditional way.  rf_AllocIOBuffer() and rf_FreeIOBuffer()
deal with allocating/freeing these structures.  These buffers are
stored in a list on the 'iobuf' list.  iobuf_count keeps track of how
many buffers are available, and numEmergencyBuffers is the effective
"high-water" mark for the freelist.  The buffers allocated by
rf_AllocIOBuffer() are stripe-unit sized, which is the maximum
size requested by any of the callers.

Add an iobufs entry to RF_DagHeader_s.  Use it for keeping track of
buffers that get allocated from the free-list.

Add a "generic list" pool (VoidPointerListElement Pool) for elements
used to maintain a list of allocated memory.  [It is somewhat less
than ideal to add another little pool to handle this...]

Teach rf_AllocBuffer() to use the new rf_AllocIOBuffer().  Modify
other Mallocs to use rf_AllocIOBuffer(), and to update dag_h->iobufs as
appropriate.

Update rf_FreeDAG() to handle cleanup of dag_h->iobufs.

While here, add some missing pool_destroy() calls for a number of pools.

With these changes, it should (in theory) be possible to swap on
RAID 5 sets again.  That said, I've not had any success there yet --
but the last issue I saw at least wasn't in RAIDframe. :-}

[There is room for this code to become a bit more consise, but I
wanted to do a checkpoint here with something known to work :) ]

Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Mar 19 15:16:18 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -4 lines
Take care of six more mallocs:

- Pull rf_FreePhysDiskAddr() out from under a #ifdef, since we're now
going to use it.

- Add a pda_cleanup_list into the DAG header.  Use it in rf_FreeDAG() to
cleanup any PDA's that get allocated but have no "easy" way of being
located and freed when the DAG completes.

- numStripeUnitsAccessed is a per-stripe value, and has a maximum
value equal to the number of colums (thus limited by RF_MAXCOL).
Use this knowledge to set a high-bound on overlappingPDAs, and stuff
it on the stack instead of malloc'ing it all the time!  This costs us
a whopping 40 bytes on the stack, but saves a malloc() and a free().

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Mar 19 02:57:34 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -2 lines
Add a comment.  Will hopefully save time next time someone tries
to figure out where the allocated memory is freed.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Mar 19 02:27:44 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +76 -2 lines
Introduce 3 more pools and 6 functions to handle allocating/freeing
elements from the pools.

Re-work rf_SelectAlgorithm() to get rid of all the 8 malloc's, and to
use the new functions to get/put these 'support structures'.  I'm not
overly happy with some of the variable names, but them's the breaks.

In the process of changing things, fix a bug:
 - in the case where we can't create a dag, free asmh_b and blockFuncs
too!!

[if you were able to look at the source code related to these changes,
and comprehend what was going on without having your eyes bleed or
getting dizzy, please contact me...  I'm sure I'll have more code
which would benefit by you having a look at it before I commit it :) ]

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Mar 7 22:15:19 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +0 -0 lines
- Introduce rf_pools which contains all of the various global pools used
by RAIDframe.  Convert all other RAIDframe global pools to use pools
defined within this new structure.
- Introduce rf_pool_init(), used for initializing a single pool in
RAIDframe.  Teach each of the configuration routines to use
rf_pool_init().
- Cleanup a few pool-related comments.
- Cleanup revent initialization and #defines.
- Add a missing pool_destroy() for the reconbuffer pool.

(Saves another 1K off of an i386 GENERIC kernel, and makes
stuff a lot more readable)

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Mar 7 21:57:44 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +19 -37 lines
- Introduce rf_pools which contains all of the various global pools used
by RAIDframe.  Convert all other RAIDframe global pools to use pools
defined within this new structure.
- Introduce rf_pool_init(), used for initializing a single pool in
RAIDframe.  Teach each of the configuration routines to use
rf_pool_init().
- Cleanup a few pool-related comments.
- Cleanup revent initialization and #defines.
- Add a missing pool_destroy() for the reconbuffer pool.

(Saves another 1K off of an i386 GENERIC kernel, and makes
stuff a lot more readable)

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Mar 7 02:59:25 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +8 -4 lines
We don't need 2-fault tollerant stuff here in the default case.
Use #if's to conditionalize the code compilation.
(Saves another 1K on i386 GENERIC kernels)

Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Mar 5 02:53:56 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +11 -11 lines
- remove the RF_*_INC's, as necessary.  They are not needed any more.
- introduce RF_MIN_*'s, as necessary.  These will indicate the
low-water mark for pools as well as the pool_prime() value.
- add pool_setlowat() for the critical pools.
- pool_prime() and pool_setlowat() the raidframe_cbufpool.
- re-order some pool_prime()'s and pool_sethiwat()'s for clarity.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Feb 29 04:03:50 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -9 lines
Adjust _rf_ShutdownCreate() so that it is willing to wait for more
memory.  Since we only now ever "return(0)", just return (void)
instead.

Cleanup all uses of rf_ShutdownCreate() to not worry about
it ever failing.  Shaves another 600 bytes off of an i386 GENERIC kernel.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Dec 30 22:12:10 2003 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -4 lines
No point keeping 'pt' around.  It's only ever assigned to.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Dec 30 22:11:14 2003 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +10 -16 lines
rf_FreePDAList() and rf_FreeASMList() wern't using their l_end or
count arguments.  Nuke the unused args, and fix up callers and fn
prototypes.  Rename l_start arguments.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Dec 30 21:59:03 2003 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +38 -61 lines
Some days you wonder if some of the function declaration consistency
was just an accident in the first place.  Cleanup function decls and
a few comments.  [ok.. so I wasn't going to fix this many.. but once
you're on a roll....]

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Dec 29 17:13:36 2003 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +92 -79 lines
Clean up comments, and generally make more readable.  No functional changes.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Dec 29 03:33:48 2003 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +65 -45 lines
- first kick at a major reworking of RAIDframe's memory allocation code:
  - all freelists converted to pools
  - initialization of structure members in certain cases where
	code was relying on specific allocation and usage properties
	to keep structures in a "known state" (that doesn't work with
	pools!).
  - make most pool_get() be "PR_WAITOK" until they can be analyzed
	further, and/or have proper error handling added.
  - all RF_Mallocs zero the space returned, so there is no difference
	between RF_Calloc and RF_Malloc.  In fact, all the RF_Calloc()'s
	do is tend to do is get things horribly confused.
	Make RF_Malloc() the "general memory allocator", with
	RF_MallocAndAdd() the "general memory allocator with
	allocation list".
  - some of these RF_Malloc's et al. are destined to disappear.
  - remove rf_rdp_freelist entirely (it's not used anywhere!)
  - remove: #include "rf_freelist.h"
  - to the files that were relying on the above, add: #include "rf_general.h"
  - add: #include "rf_debugMem.h" to rf_shutdown.h to make it happy
	about the loss of: #include "rf_freelist.h".

This shrinks an i386 GENERIC kernel by approx 5K.  RAIDframe now
weighs in at about 162K on i386.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Dec 29 02:38:18 2003 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +35 -43 lines
[Having received a definite lack of strenuous objection, a small amount
of strenuous agreement, and some general agreement, this commit is
going ahead because it's now starting to block some other changes I
wish to make.]

Remove most of the support for the concept of "rows" from RAIDframe.
While the "row" interface has been exported to the world, RAIDframe
internals have really only supported a single row, even though they
have feigned support of multiple rows.

Nothing changes in configuration land -- config files still need to
specify a single row, etc.  All auto-config structures remain fully
forward/backwards compatible.

The only visible difference to the average user should be a
reduction in the size of a GENERIC kernel (i386) by 4.5K.  For those
of us trolling through RAIDframe kernel code, a lot of the driver
configuration code has become a LOT easier to read.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Dec 21 19:36:31 2003 UTC (22 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3 lines
(Although I want this code to Go Away, I might as well fix this bug for completeness)

If we don't have enough memory to allocate the pda freelist, make sure to
cleanup the asm freelist.

Revision 1.5.2.9: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:43:50 2002 UTC (24 years, 1 month ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.5.2.8: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.8: +62 -66 lines
Catch up to -current.

Revision 1.5.4.5: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:41:52 2002 UTC (24 years, 1 month ago) by jdolecek
Branches: kqueue
Diff to: previous 1.5.4.4: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.4.4: +65 -70 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Sep 24 00:12:55 2002 UTC (24 years, 1 month ago) by oster
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Branch point for: ktrace-lwp
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +46 -44 lines
Cleanup the comment formatting a bit.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Sep 23 02:55:03 2002 UTC (24 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -4 lines
Ooops.. should have included this 'row' with the last change.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Sep 23 02:53:58 2002 UTC (24 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -4 lines
'row' was defined and set, but never used. *poof*  Thanks to Simon B.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Sep 21 01:18:45 2002 UTC (24 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +8 -4 lines
rf_FreePhysDiskAddr is only needed by paritylogging.
rf_NumFailedDataUnitsInStripe is only needed by PQ, RAID6 and EVENODD.
rf_PrintAccessStripeMap is only needed for RF_DEBUG_MAP.

Thanks Krister!

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Sep 21 01:14:22 2002 UTC (24 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -9 lines
rf_FreeAccessStripeMapComponent() goes too.  Thanks Krister!

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Sep 21 01:12:50 2002 UTC (24 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -12 lines
Nuke rf_AllocAccessStripeMapComponent().  Thanks Krister!

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Sep 19 23:23:19 2002 UTC (24 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +12 -3 lines
Introduce RF_DEBUG_MAP, and use it to ignore more rarely used code.

Revision 1.5.2.8: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:20:51 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.7: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.7: +1 -2 lines
Catch up to -current.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Sep 14 17:53:59 2002 UTC (24 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -4 lines
Everyone and their dog was using RF_ERRORMSG3 to print out the same
sort of error message, over and over again, in different files.
Rather than having the same text repeated in multiple .o files,
create a couple of little functions to do the printing, and save a
bundle of space.  Also improves readability of code.

Revision 1.5.4.4: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:46:03 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.5.4.3: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.4.3: +2 -69 lines
sync kqueue branch with HEAD

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

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

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Aug 3 01:06:48 2002 UTC (24 years, 3 months ago) by oster
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -69 lines
Nuke two more functions that arn't used anywhere and are only contributing
to kernel bloat.

Revision 1.5.4.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:48:34 2002 UTC (24 years, 4 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.5.4.2: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.4.2: +6 -6 lines
catch up with -current on kqueue branch

Revision 1.5.2.6: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:46:27 2002 UTC (24 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.5: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.5: +6 -6 lines
Catch up to -current.

Revision 1.11.8.1: download - view: text, markup, annotated - select for diffs
Thu May 30 14:47:02 2002 UTC (24 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -6 lines
Catch up with -current.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed May 22 15:40:49 2002 UTC (24 years, 6 months ago) by wiz
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -6 lines
bcopy -> memcpy. Reviewed by Greg Oster.

Revision 1.5.2.5: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:14:17 2002 UTC (24 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.4: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.4: +2 -2 lines
Catch up to -current.

Revision 1.5.2.4: download - view: text, markup, annotated - select for diffs
Fri Jan 11 23:39:30 2002 UTC (24 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.3: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.3: +3 -2 lines
More catchup.

Revision 1.5.4.2: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:57:49 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.5.4.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.4.1: +7 -7 lines
Sync kqueue branch with -current.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Jan 7 05:30:53 2002 UTC (24 years, 10 months ago) by oster
Branches: MAIN
CVS tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -6 lines
Revert previous.  Need to be more careful with what gets chopped out.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Jan 7 02:27:42 2002 UTC (24 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -2 lines
Some of this stuff is really just for debugging, so compile it only if
DEBUG is defined.

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

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Nov 13 07:11:14 2001 UTC (25 years ago) by lukem
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -1 lines
add RCSIDs

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Mon Oct 22 20:41:37 2001 UTC (25 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.1: +3 -7 lines
Catch up to -current.

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 11 00:02:20 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +3 -7 lines
Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Oct 5 15:41:23 2001 UTC (25 years, 1 month ago) by oster
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -6 lines
More #if 0's bite the dust.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Oct 4 15:58:54 2001 UTC (25 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -2 lines
Step 2 of the disentanglement.  We now look to <dev/raidframe/*> for
the stuff that used to live in rf_types.h, rf_raidframe.h, rf_layout.h,
rf_netbsd.h, rf_raid.h, rf_decluster,h, and a few other places.
Believe it or not, when this is all done, things will be cleaner.

No functional changes to RAIDframe.

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

Revision 1.5.4.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:13:26 2001 UTC (25 years, 3 months ago) by lukem
Branches: kqueue
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +10 -10 lines
update to -current

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jul 18 06:45:33 2001 UTC (25 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +10 -10 lines
bzero -> memset

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

Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 29 16:12:08 2000 UTC (26 years, 4 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +1 -2 lines
Pull up revision 1.5 (requested by oster):
  Remove an incorrect printf.

Revision 1.4.12.1: download - view: text, markup, annotated - select for diffs
Thu Jun 29 01:43:15 2000 UTC (26 years, 4 months ago) by oster
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +1 -2 lines
Pullup rev 1.5 (requested by oster)
Nuke a printf that was added at least as early as Nov, 1998, and which is
as bogus now as it was then.
Approved by: thorpej

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Jun 29 00:22:27 2000 UTC (26 years, 4 months ago) by oster
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa, kqueue
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -2 lines
Nuke a printf that *I* added at least as early as Nov, 1998, and which is
as bogus now as it was then.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Aug 13 03:41:56 1999 UTC (27 years, 3 months ago) by oster
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Branch point for: thorpej_scsipi, netbsd-1-5
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -2 lines
rf_sys.h does not need to be #included in any of these files, and, actually,
is no longer needed at all.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Feb 5 00:06:12 1999 UTC (27 years, 9 months ago) by oster
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2
Branch point for: netbsd-1-4
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +674 -599 lines
Phase 2 of the RAIDframe cleanup.  The source is now closer to KNF
and is much easier to read.  No functionality changes.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jan 26 02:33:58 1999 UTC (27 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -143 lines
RAIDframe cleanup, phase 1.  Nuke simulator support, user-land driver,
out-dated comments, and other unneeded stuff.  This helps prepare
for cleaning up the rest of the code, and adding new functionality.

No functional changes to the kernel code in this commit.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Nov 13 04:20:31 1998 UTC (28 years ago) by oster
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach
RAIDframe, version 1.1, from the Parallel Data Laboratory at
Carnegie Mellon University.  Full RAID implementation, including
levels 0, 1, 4, 5, 6, parity logging, and a few other goodies.
Ported to NetBSD by Greg Oster.

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>