The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.65: download - view: text, markup, annotated - select for diffs
Fri Feb 23 22:03:45 2024 UTC (9 months, 2 weeks ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3 lines
s/opetions/options/ in hw.ubsec node description.

Revision 1.62.4.1: download - view: text, markup, annotated - select for diffs
Fri Aug 11 14:35:24 2023 UTC (16 months ago) by martin
Branches: netbsd-10
CVS tags: 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
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +3 -3 lines
Pull up following revision(s) (requested by riastradh in ticket #319):

	sys/dev/pci/ubsec.c: revision 1.64
	sys/dev/pci/hifn7751.c: revision 1.82
	lib/libc/gen/getentropy.3: revision 1.5
	lib/libc/gen/getentropy.3: revision 1.6
	share/man/man4/rnd.4: revision 1.41
	lib/libc/sys/getrandom.2: revision 1.2
	lib/libc/sys/getrandom.2: revision 1.3
	share/man/man5/rc.conf.5: revision 1.193
	share/man/man7/entropy.7: revision 1.5
	share/man/man7/entropy.7: revision 1.6
	share/man/man7/entropy.7: revision 1.7
	share/man/man7/entropy.7: revision 1.8
	etc/security: revision 1.130
	share/man/man7/entropy.7: revision 1.9
	etc/security: revision 1.131
	sys/crypto/cprng_fast/cprng_fast.c: revision 1.19
	sys/sys/rndio.h: revision 1.3
	tests/lib/libc/sys/t_getrandom.c: revision 1.5
	etc/defaults/rc.conf: revision 1.164
	etc/defaults/rc.conf: revision 1.165
	sys/sys/rndsource.h: revision 1.10
	sys/kern/kern_entropy.c: revision 1.62
	sys/kern/kern_entropy.c: revision 1.63
	sys/kern/kern_entropy.c: revision 1.64
	sys/kern/subr_cprng.c: revision 1.44
	sys/kern/kern_entropy.c: revision 1.65
	sys/kern/kern_clock.c: revision 1.149
	sys/dev/pci/viornd.c: revision 1.22
	share/man/man9/rnd.9: revision 1.32
	sys/kern/subr_prf.c: revision 1.202
	sys/sys/rndsource.h: revision 1.8
	sys/sys/rndsource.h: revision 1.9
	share/man/man7/entropy.7: revision 1.10

1. Reinstate netbsd<=9 entropy estimator to unblock /dev/random, in
   parallel with assessment of only confident entropy sources (seed,
   HWRNG) for security warnings like sshd keys in motd and daily
   insecurity report.

2. Make multiuser boot wait for first /dev/random output soon after
   loading a seed and configuring rndctl, so that getentropy(3) meets
   its contract starting early at boot without introducing blocking
   paths that could cause hangs in init(8) or single-user mode.
   Operators can choose to disable this wait in rc.conf.

3. Fix some bugs left over from reducing the global entropy lock from
   a spin lock at IPL_VM to an adaptive lock at IPL_SOFTSERIAL.

4. Update man pages.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri Aug 4 07:38:53 2023 UTC (16 months, 1 week ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3 lines
entropy(9): Simplify stages.  Split interrupt vs non-interrupt paths.

- Nix the entropy stage (cold, warm, hot).  Just use the usual kernel
  `cold' (cold: single-core, single-thread; interrupts may happen),
  and don't make any three-way distinction about whether interrupts
  or threads or other CPUs can be running.

  Instead, while cold, use splhigh/splx or forbid paths to come from
  interrupt context, and while warm, use mutex or the per-CPU hard
  and soft interrupt paths for low latency.  This comes at a small
  cost to some interrupt latency, since we may stir the pool in
  interrupt context -- but only for a very short window early at boot
  between configure and configure2, so it's hard to imagine it
  matters much.

- Allow rnd_add_uint32 to run in hard interrupt context or with spin
  locks held, but defer processing to softint and drop samples on the
  floor if buffer is full.  This is mainly used for cheaply tossing
  samples from drivers for non-HWRNG devices into the entropy pool,
  so it is often used from interrupt context and/or under spin locks.

- New rnd_add_data_intr provides the interrupt-like data entry path
  for arbitrary buffers and driver-specified entropy estimates: defer
  processing to softint and drop samples on the floor if buffer is
  full.

- Document that rnd_add_data is forbidden under spin locks outside
  interrupt context (will crash in LOCKDEBUG), and inadvisable in
  interrupt context (but technically permitted just in case there are
  compatibility issues for now); later we can forbid it altogether in
  interrupt context or under spin locks.

- Audit all uses of rnd_add_data to use rnd_add_data_intr where it
  might be used in interrupt context or under a spin lock.

This fixes a regression from last year when the global entropy lock
was changed from IPL_VM (spin) to IPL_SOFTSERIAL (adaptive).  Thought
I'd caught all the problems from that, but another one bit three
different people this week, presumably because of recent changes that
led to more non-HWRNG drivers entering the entropy consolidation
path from rnd_add_uint32.

In my attempt to preserve the rnd(9) API for the (now long-since
abandoned) prospect of pullup to netbsd-9 in my rewrite of the
entropy subsystem in 2020, I didn't introduce a separate entry point
for entering entropy from interrupt context or equivalent, i.e., spin
locks held, and instead made rnd_add_data rely on cpu_intr_p() to
decide whether to process the whole sample under a lock or only take
as much as there's buffer space for before scheduling a softint.  In
retrospect, that was a mistake (though perhaps not as much of a
mistake as other entropy API decisions...), a mistake which is
finally getting rectified now by rnd_add_data_intr.

XXX pullup-10

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sat May 6 21:53:26 2023 UTC (19 months, 1 week ago) by andvar
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
s/Regiser/Register/ and s/regester/register/ in comments.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Aug 27 05:35:17 2022 UTC (2 years, 3 months ago) by skrll
Branches: MAIN
CVS tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -3 lines
Correct the abbreviation of approximately to 'approx.'

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sat Aug 27 05:33:53 2022 UTC (2 years, 3 months ago) by skrll
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +7 -7 lines
Trailing whitespace

Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon May 23 13:53:37 2022 UTC (2 years, 6 months ago) by rin
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +5 -5 lines
Audit unload/unmap v.s. free against DMA buffer for sys/dev/pci;
make sure that bus_dmamap_unload(9) [or bus_dmamap_destroy(9)] or
bus_dmamem_unmap(9) are preceding to freeing DMA buffer, if it is
loaded or mapped, respectively.

This is mandatory for some archs. See, e.g.:

http://www.nerv.org/netbsd/?q=id:20210511T013030Z.013443cc790088147e4beed43f53dedabeaf9312
http://www.nerv.org/netbsd/?q=id:20220511T172220Z.561179f0b6fcc5b9cd73e274f69d74e2ce9e4c93

XXX XXX XXX
Compile test only (for amd64/ALL).

Thanks riastradh@ for double check.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun May 22 11:39:27 2022 UTC (2 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -5 lines
opencrypto: Make freesession callback return void.

No functional change intended: all drivers already return zero
unconditionally.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun May 22 11:38:43 2022 UTC (2 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +7 -15 lines
ubsec(4): Prune dead branches.  Assert session id validity.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun May 22 11:35:13 2022 UTC (2 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +12 -18 lines
ubsec(4): Tidy up error branches of ubsec_process.

Make sure to return zero, not error, when we've already done
crypto_done and set crp_etype.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun May 22 11:35:05 2022 UTC (2 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +5 -6 lines
ubsec(4): Assert crp_sid is valid.

If opencrypto passes a bad sid in, that's a bug in opencrypto that
needs to be fixed, not a user-triggered invalid input that we need to
fail gracefully on.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun May 22 11:30:58 2022 UTC (2 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +15 -20 lines
ubsec(4): ubsec_kprocess always returns zero.  Prune dead branches.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun May 22 11:30:49 2022 UTC (2 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +6 -4 lines
ubsec(4): Fix error branch: call crypto_kdone, don't return error.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed May 18 12:48:49 2022 UTC (2 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +4 -16 lines
ubsec(4): Nix dead code.

No functional change intended.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Jun 14 23:22:09 2020 UTC (4 years, 6 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +4 -31 lines
ubsec(4): Don't use prev msg's last block as IV for next msg in CBC.

This violates the security contract of the CBC construction, which
requires that the IV be unpredictable in advance; an adaptive adversary
can exploit this to verify plaintext guesses.

XXX Compile-tested only.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon May 25 19:13:28 2020 UTC (4 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +9 -73 lines
unifdef everything-but-NetBSD.  Gets rid of a naked cfattach decl.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Apr 30 03:40:53 2020 UTC (4 years, 7 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -7 lines
rnd_attach_source calls the callback itself now.

No need for every driver to explicitly call it to prime the pool.

Eliminate now-unused <sys/rndpool.h>.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Apr 30 03:24:15 2020 UTC (4 years, 7 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +9 -7 lines
Don't attach rndsource until it's actually ready to run.

Revision 1.43.18.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:45 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.43.18.2: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.18.2: +1 -7 lines
Mostly merge changes from HEAD upto 20200411

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

Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon Mar 16 21:20:09 2020 UTC (4 years, 8 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +7 -17 lines
Use the module subsystem's ability to process SYSCTL_SETUP() entries to
automate installation of sysctl nodes.

Note that there are still a number of device and pseudo-device modules
that create entries tied to individual device units, rather than to the
module itself.  These are not changed.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Nov 10 21:16:36 2019 UTC (5 years, 1 month ago) by chs
Branches: MAIN
CVS tags: phil-wifi-20191119, is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -9 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.43.18.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:27 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +7 -6 lines
Sync with HEAD

Revision 1.43.16.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:02:00 2018 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.43.16.1: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.16.1: +5 -4 lines
Sync with HEAD, resolve a few conflicts

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Dec 22 14:07:53 2018 UTC (5 years, 11 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3 lines
Replace: M_COPY_PKTHDR -> m_copy_pkthdr. No functional change, since the
former is a macro to the latter.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Dec 9 11:14:02 2018 UTC (6 years ago) by jdolecek
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -3 lines
use pci_intr_establish_xname() everywhere

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

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

Revision 1.44: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:32 2018 UTC (6 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -4 lines
Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.27.6.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:29 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.27.6.3: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.6.3: +56 -33 lines
update from HEAD

Revision 1.41.4.2: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:14 2016 UTC (8 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.41.4.1: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.4.1: +56 -35 lines
Sync with HEAD

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Jul 7 06:55:41 2016 UTC (8 years, 5 months ago) by msaitoh
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-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-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, 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, localcount-20160914, jdolecek-ncqfixes-base, jdolecek-ncqfixes, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +56 -35 lines
KNF. Remove extra spaces. No functional change.

Revision 1.41.4.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:12 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -2 lines
Sync with HEAD

Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Apr 13 15:43:43 2015 UTC (9 years, 8 months ago) by riastradh
Branches: MAIN
CVS tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -2 lines
Add header guards and necessary includes.

Revision 1.27.6.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:48 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.27.6.2: preferred, colored; branchpoint 1.27: preferred, colored
Changes since revision 1.27.6.2: +538 -141 lines
Rebase to HEAD as of a few days ago.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Aug 10 16:44:36 2014 UTC (10 years, 4 months ago) by tls
Branches: MAIN
CVS tags: tls-maxphys-base, nick-nhusb-base-20150406, nick-nhusb-base, 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
Branch point for: nick-nhusb
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3 lines
Merge tls-earlyentropy branch into HEAD.

Revision 1.38.2.2: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:56 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.38.2.1: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.2.1: +225 -104 lines
Rebase.

Revision 1.25.8.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:33 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.25.8.2: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.8.2: +603 -161 lines
sync with head.

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

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

Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:44 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +539 -142 lines
sync with head

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat Apr 19 12:29:24 2014 UTC (10 years, 7 months ago) by bad
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-earlyentropy-base, rmind-smpnet-nbase, rmind-smpnet-base
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +187 -70 lines
Add support for accelerated AES_CBC in ubsec(4) for BCM5823 and newer.
Update man-page and bump date.
Adjust OpenBSD RCS IDs to reflect roughly the version we are in sync with.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Apr 18 22:25:58 2014 UTC (10 years, 7 months ago) by bad
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +40 -36 lines
Rewrite the dmamap handling to allocate and cache the dmamaps beforehand.
Calling bus_dmamap_create/destroy is no longer possible in interrupt context.
Move the dmamaps to the end of struct ubsec_q so the rest of the struct
can be cleared with one call to memset().

As a bonus we get a 25% increase in throughput encrypting 8K blocks.

Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 7 03:37:33 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3 lines
Be a little more clear and consistent about harvesting entropy from devices:

1) deprecate RND_FLAG_NO_ESTIMATE

2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE

3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE

4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
   RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME

5) Make entropy harvesting from environmental sensors a little more generic
   and remove it from individual sensor drivers.

6) Remove individual open-coded delta-estimators for values from a few
   places in the tree (uvm, environmental drivers).

7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
   that had stubbed out code, other minor cleanups.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Mar 29 19:28:25 2014 UTC (10 years, 8 months ago) by christos
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -3 lines
make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:10 2014 UTC (10 years, 9 months ago) by pooka
Branches: MAIN
CVS tags: riastradh-drm2-base3
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -7 lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Jan 3 16:07:27 2014 UTC (10 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
If you're going to build this driver as a module, make sure that it
depends on opencrypto module.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Dec 26 00:51:23 2013 UTC (10 years, 11 months ago) by bad
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +10 -4 lines
Also disable MCR4INT in ubsec_detach() when appropriate.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Nov 17 23:20:18 2013 UTC (11 years ago) by bad
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +186 -24 lines
Add support for BCM5825, and BCM5860, 5861, 5862 from OpenBSD rev 1.143:
  Add support for the BCM5825 and the next-generation BCM5860, 5861,
  5862 Broadcom CryptoNetX IPSec/SSL Security Processors.  The 5825 is a
  faster version of the already supported 5823, and the even faster 586x
  series is a bit different and needed some more changes.

AES support hasn't been pulled in yet.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Nov 17 22:52:14 2013 UTC (11 years ago) by bad
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +44 -10 lines
Create the sysctl variables on module initialization.
Create them under hw.ubsec as is hip these days.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Nov 17 17:16:25 2013 UTC (11 years ago) by bad
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +84 -4 lines
Make ubsec(4) loadable as kmod.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Nov 17 17:01:44 2013 UTC (11 years ago) by bad
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +5 -7 lines
Fix locking botch. Callers of ubsec_rng_locked() lock and release sc_mtx already.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Nov 17 16:54:02 2013 UTC (11 years ago) by bad
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +6 -6 lines
Use callout_setfunc()/callout_schedule() instead of callout_reset(), it is cheaper.

Revision 1.27.6.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:21 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.27.6.1: preferred, colored; branchpoint 1.27: preferred, colored
Changes since revision 1.27.6.1: +74 -29 lines
resync from head

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Jun 13 00:55:01 2013 UTC (11 years, 6 months ago) by tls
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +74 -29 lines
Convert the entropy pool framework from pseudo-callout-driven to
soft interrupt driven operation.

Add a polling mode of operation -- now we can ask hardware random number
generators to top us up just when we need it (bcm2835_rng and amdpm
converted as examples).

Fix a stall noticed with repeated reads from /dev/random while testing.

Revision 1.27.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:29 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +26 -25 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.25.8.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:21:54 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.25.8.1: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.8.1: +26 -25 lines
sync with head

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Oct 27 17:18:35 2012 UTC (12 years, 1 month ago) by chs
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, khorben-n900, agc-symver-base, agc-symver
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +26 -25 lines
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.

Revision 1.25.8.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:58 2012 UTC (12 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -8 lines
sync with head

Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:34:53 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +3 -5 lines
merge to -current.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Jan 30 19:41:23 2012 UTC (12 years, 10 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, 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, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -5 lines
Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive}
where it looks straightforward, and pci_aprint_devinfo_fancy in a few
others where drivers want to supply their own device names instead
of the pcidevs generated one. More complicated cases, where names
are composed at runtime, are left alone for now. It certainly makes
sense to simplify the drivers here rather than inventing a catch-all API.
This should serve as as example for new drivers, and also ensure
consistent output in the AB_QUIET ("boot -q") case. Also, it avoids
excessive stack usage where drivers attach child devices because the
buffer for the device name is not kept on the local stack anymore.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Nov 19 22:51:24 2011 UTC (13 years ago) by tls
Branches: MAIN
CVS tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -5 lines
First step of random number subsystem rework described in
<20111022023242.BA26F14A158@mail.netbsd.org>.  This change includes
the following:

	An initial cleanup and minor reorganization of the entropy pool
	code in sys/dev/rnd.c and sys/dev/rndpool.c.  Several bugs are
	fixed.  Some effort is made to accumulate entropy more quickly at
	boot time.

	A generic interface, "rndsink", is added, for stream generators to
	request that they be re-keyed with good quality entropy from the pool
	as soon as it is available.

	The arc4random()/arc4randbytes() implementation in libkern is
	adjusted to use the rndsink interface for rekeying, which helps
	address the problem of low-quality keys at boot time.

	An implementation of the FIPS 140-2 statistical tests for random
	number generator quality is provided (libkern/rngtest.c).  This
	is based on Greg Rose's implementation from Qualcomm.

	A new random stream generator, nist_ctr_drbg, is provided.  It is
	based on an implementation of the NIST SP800-90 CTR_DRBG by
	Henric Jungheim.  This generator users AES in a modified counter
	mode to generate a backtracking-resistant random stream.

	An abstraction layer, "cprng", is provided for in-kernel consumers
	of randomness.  The arc4random/arc4randbytes API is deprecated for
	in-kernel use.  It is replaced by "cprng_strong".  The current
	cprng_fast implementation wraps the existing arc4random
	implementation.  The current cprng_strong implementation wraps the
	new CTR_DRBG implementation.  Both interfaces are rekeyed from
	the entropy pool automatically at intervals justifiable from best
	current cryptographic practice.

	In some quick tests, cprng_fast() is about the same speed as
	the old arc4randbytes(), and cprng_strong() is about 20% faster
	than rnd_extract_data().  Performance is expected to improve.

	The AES code in src/crypto/rijndael is no longer an optional
	kernel component, as it is required by cprng_strong, which is
	not an optional kernel component.

	The entropy pool output is subjected to the rngtest tests at
	startup time; if it fails, the system will reboot.  There is
	approximately a 3/10000 chance of a false positive from these
	tests.  Entropy pool _input_ from hardware random numbers is
	subjected to the rngtest tests at attach time, as well as the
	FIPS continuous-output test, to detect bad or stuck hardware
	RNGs; if any are detected, they are detached, but the system
	continues to run.

	A problem with rndctl(8) is fixed -- datastructures with
	pointers in arrays are no longer passed to userspace (this
	was not a security problem, but rather a major issue for
	compat32).  A new kernel will require a new rndctl.

	The sysctl kern.arandom() and kern.urandom() nodes are hooked
	up to the new generators, but the /dev/*random pseudodevices
	are not, yet.

	Manual pages for the new kernel interfaces are forthcoming.

Revision 1.24.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:58 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +2 -4 lines
sync with head

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Nov 13 13:52:09 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -4 lines
Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants.  These are provided by sys/param.h now.

Revision 1.16.4.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:59 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.16.4.2: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.4.2: +4 -4 lines
sync with head

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Nov 26 15:17:10 2009 UTC (15 years ago) by njoly
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, 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, matt-premerge-20091211
Branch point for: rmind-uvmplock
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -4 lines
Cleanup interrupt establish error messages. Do not mix
aprint_error/aprint_normal/printf calls for a single line.

Revision 1.16.4.2: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:40 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.16.4.1: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.4.1: +7 -8 lines
sync with head

Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:20:30 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +56 -57 lines
Sync with HEAD.

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

Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue May 12 08:23:01 2009 UTC (15 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
use device_private().
"looks good" ad@
XXX for the device_t/softc split, please check the driver that no cases have been missed.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed May 6 10:34:33 2009 UTC (15 years, 7 months ago) by cegger
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -7 lines
struct device * -> device_t, no functional changes intended.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed May 6 09:25:17 2009 UTC (15 years, 7 months ago) by cegger
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -4 lines
struct cfdata * -> cfdata_t, no functional changes intended.

Revision 1.16.4.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:02 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +52 -53 lines
sync with head.

Revision 1.16.12.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:59 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.16.12.1: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.12.1: +51 -51 lines
Sync with HEAD.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Apr 18 14:58:03 2009 UTC (15 years, 8 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +16 -16 lines
Remove extra whitespace added by a stupid tool.
XXX: more in src/sys/arch

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Mar 18 17:06:50 2009 UTC (15 years, 9 months ago) by cegger
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +16 -16 lines
bcopy -> memcpy

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Mar 18 16:00:19 2009 UTC (15 years, 9 months ago) by cegger
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +37 -37 lines
bzero -> memset

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

Revision 1.15.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:02 2009 UTC (15 years, 11 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.15.6.1: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.6.1: +1 -2 lines
Sync with HEAD.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Dec 19 18:49:38 2008 UTC (15 years, 11 months ago) by cegger
Branches: MAIN
CVS tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -4 lines
use M_ZERO on malloc() and remove subsequent bzero().

Revision 1.15.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:44 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +24 -31 lines
Sync with HEAD.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Apr 10 19:13:38 2008 UTC (16 years, 8 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, 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, 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, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +24 -31 lines
use aprint_*_dev and device_xname

Revision 1.13.8.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:50 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.13.8.1: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.8.1: +17 -17 lines
sync with HEAD

Revision 1.13.14.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:59 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +19 -16 lines
Sync with HEAD.

Revision 1.7.2.5: download - view: text, markup, annotated - select for diffs
Mon Feb 4 09:23:32 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.7.2.4: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.4: +17 -17 lines
sync with head.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Feb 2 02:39:01 2008 UTC (16 years, 10 months ago) by tls
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: mjf-devfs2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +17 -17 lines
From Darran Hunt at Coyote Point: don't truncate HMAC to 96 bits unless
actually asked to.

Fixed in FreeBSD a while ago, discussed on tech-kern and tech-crypto.

Revision 1.7.2.4: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:44:14 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.7.2.3: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.3: +4 -1 lines
sync with head

Revision 1.13.8.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:54:02 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -1 lines
sync with HEAD

Revision 1.13.16.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:47:07 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +4 -1 lines
Sync with head.

Revision 1.13.20.1: download - view: text, markup, annotated - select for diffs
Thu Dec 13 21:55:53 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +4 -1 lines
Sync with HEAD

Revision 1.13.18.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:32:25 2007 UTC (17 years ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +4 -1 lines
sync with head.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Dec 11 11:25:53 2007 UTC (17 years ago) by lukem
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, matt-armv6-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-base
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -1 lines
use __KERNEL_RCSID()

Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:37:24 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.7.2.2: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.2: +15 -15 lines
sync with head.

Revision 1.12.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:08:02 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +2 -2 lines
Sync with head.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:00:58 2007 UTC (17 years, 5 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: yamt-kmem, vmlocking2, mjf-devfs, matt-armv6, bouyer-xeni386
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Merge some of the less invasive changes from the vmlocking branch:

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

Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Sun Jul 1 21:48:15 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +2 -2 lines
Adapt to callout API change.

Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:55:28 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +14 -14 lines
Sync with HEAD.

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

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:48 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.1: +3 -2 lines
sync with head.

Revision 1.9.10.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:17:47 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.9.10.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.10.1: +6 -6 lines
sync with head.

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

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:10 2006 UTC (18 years, 1 month 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.10: preferred, colored
Changes since revision 1.10: +6 -6 lines
__unused removal on arguments; approved by core.

Revision 1.9.10.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:06:19 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +7 -6 lines
sync with head

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

Revision 1.8.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:52:19 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +2 -2 lines
sync with head

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

Revision 1.8.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:16 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +2 -2 lines
Sync with head.

Revision 1.8.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:25:38 2006 UTC (18 years, 8 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +2 -2 lines
sync with head.

Revision 1.8.8.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:07:18 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +2 -2 lines
sync with head.

Revision 1.8.12.1: download - view: text, markup, annotated - select for diffs
Fri Mar 31 09:45:23 2006 UTC (18 years, 8 months ago) by tron
Branches: peter-altq
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +2 -2 lines
Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Mar 28 17:38:34 2006 UTC (18 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, 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.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
Use device_unit().

Revision 1.4.4.7: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:28:59 2005 UTC (19 years ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.4.4.6: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.4.6: +2 -2 lines
Sync with head.

Revision 1.7.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 29 21:23:15 2005 UTC (19 years ago) by yamt
Branches: yamt-readahead
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +2 -2 lines
sync with head.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Nov 25 16:16:46 2005 UTC (19 years ago) by thorpej
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-readahead-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, ktrace-lwp-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
- De-couple the software crypto implementation from the rest of the
  framework.  There is no need to waste the space if you are only using
  algoritms provided by hardware accelerators.  To get the software
  implementations, add "pseudo-device swcr" to your kernel config.
- Lazily initialize the opencrypto framework when crypto drivers
  (either hardware or swcr) register themselves with the framework.

Revision 1.4.4.6: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:06:03 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.4.4.5: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.5: +16 -27 lines
Sync with HEAD. Here we go again...

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Jun 28 00:28:42 2005 UTC (19 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base2, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead, yamt-lazymbuf
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +13 -24 lines
Use ANSI function decls and static.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon May 30 04:35:23 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4 lines
- const poisoning
- avoid variable shadowing.

Revision 1.4.10.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:12 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +14 -14 lines
sync with -current

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

Revision 1.4.4.5: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:45:26 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.4.4.4: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.4: +14 -14 lines
Sync with HEAD.

Hi Perry!

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

Revision 1.4.4.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:31:08 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.4.4.3: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.3: +1 -1 lines
Fix the sync with head I botched.

Revision 1.4.4.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:49:06 2004 UTC (20 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.4.4.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.2: +1 -1 lines
Sync with HEAD.

Revision 1.4.4.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:49:12 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.4.4.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.1: +2842 -0 lines
Sync with HEAD

Revision 1.4.4.1
Thu Aug 28 19:00:52 2003 UTC (21 years, 3 months ago) by skrll
Branches: ktrace-lwp
FILE REMOVED
Changes since revision 1.4: +0 -2842 lines
file ubsec.c was added on branch ktrace-lwp on 2004-08-03 10:49:12 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Aug 28 19:00:52 2003 UTC (21 years, 3 months ago) by thorpej
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, ktrace-lwp, kent-audio2
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +142 -89 lines
* Make matching and chip info table-driven.
* Print product name and revision at attach time.
* Use aprint_*().

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Aug 27 22:07:57 2003 UTC (21 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +7 -7 lines
Fix some diagnotic printfs.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Aug 21 20:00:15 2003 UTC (21 years, 3 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +7 -40 lines
Remove #ifdef _OpenBSD__ code which sets the softc pointer `sc' by
passing an index into ubsec_cd.cd_devs[]: that causes too much
confusion with the checks that sc is non-null.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Aug 1 00:08:55 2003 UTC (21 years, 4 months ago) by jonathan
Branches: MAIN
Preliminary port of merged OpenBSD/FreeBSD ubsec driver for Bluesteel
Networks/Broadcom line of cryptographic accelerators.

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>