The NetBSD Project

CVS log for src/sys/dev/ld.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.112.18.2: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:21:46 2026 UTC (11 days, 4 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.112.18.1: preferred, colored; branchpoint 1.112: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112.18.1: +3 -3 lines
Sync with HEAD

Revision 1.118: download - view: text, markup, annotated - select for diffs
Sat Oct 4 09:38:06 2025 UTC (13 months, 1 week ago) by skrll
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, HEAD
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +3 -3 lines
Only report sc_physsecsize when it's non-zero.

Revision 1.112.18.1: download - view: text, markup, annotated - select for diffs
Sat Aug 2 05:56:30 2025 UTC (15 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +20 -3 lines
Sync with HEAD

Revision 1.117: download - view: text, markup, annotated - select for diffs
Sun Apr 13 14:00:59 2025 UTC (19 months ago) by jakllsch
Branches: MAIN
CVS tags: perseant-exfatfs-base-20250801, 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
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +5 -24 lines
Add physical sector and alignment info to struct disk_geom and the
geometry plist, and handle in partutil.

Bump version for disk_geom addition.

Collect DIOCGSECTORALIGN handling into one place.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Sun Apr 13 02:34:02 2025 UTC (19 months ago) by rin
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +5 -4 lines
ld(4): Convert blkno argument for sc_dump() to daddr_t

PR kern/59153

(1) For backends that accept 64-bit block address, i.e.,
nvme(4), virtio(4), aac(4), iop(4), and mainbus(usermode/4),
this should enable to dump beyond 2Gi blocks.

(2) sdmmc(4) backend allows to dump up to the last block.

(3) For other backends, block address is handled as `int`.
Some of them may support blocks up to 4Gi, but I do not have
enough time to examine datasheets. So, continue to reject >2Gi
blocks as before.

XXX
This is KABI change, and cannot be pulled up into netbsd-{10,9}.

XXX
Compile-test only (for amd64/ALL) due to lack of large SSDs ;)

Thanks mlelstv@ for discussion and careful review!!

Revision 1.115: download - view: text, markup, annotated - select for diffs
Sat Apr 12 07:30:01 2025 UTC (19 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +8 -2 lines
ld sc_dump backend takes an 'int' as disk address, fail when the
disk address is outside the possible range of an int.

Revision 1.114: download - view: text, markup, annotated - select for diffs
Wed Mar 5 00:41:17 2025 UTC (20 months, 1 week ago) by jakllsch
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +11 -3 lines
ld(4): print physical sector information

Revision 1.113: download - view: text, markup, annotated - select for diffs
Thu Feb 27 16:20:26 2025 UTC (20 months, 2 weeks ago) by jakllsch
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +24 -3 lines
Implement DIOCGSECTORALIGN for ld(4)

Revision 1.106.4.3: download - view: text, markup, annotated - select for diffs
Mon Jun 21 17:23:13 2021 UTC (5 years, 4 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE
Diff to: previous 1.106.4.2: preferred, colored; branchpoint 1.106: preferred, colored; next MAIN 1.107: preferred, colored
Changes since revision 1.106.4.2: +64 -7 lines
Pull up following revision(s) (requested by riastradh in ticket #1304):

	sys/dev/ldvar.h: revision 1.35
	sys/dev/ld.c: revision 1.112

ld(4): Block requests while suspended until resumed.

Otherwise nothing stops us from continuing to feed I/O to the disk
controller when it expects that the queues are quiesced as it pokes
registers to change its power states.  Fixes resume during disk
activity on my T480 with nvme.

Revision 1.111.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:27 2021 UTC (5 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111: +64 -7 lines
Sync w/ HEAD.

Revision 1.111.8.1: download - view: text, markup, annotated - select for diffs
Mon May 31 22:15:17 2021 UTC (5 years, 5 months ago) by cjep
Branches: cjep_staticlib_x
Diff to: previous 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111: +64 -7 lines
sync with head

Revision 1.112: download - view: text, markup, annotated - select for diffs
Sun May 30 11:24:02 2021 UTC (5 years, 5 months ago) by riastradh
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-20240630, perseant-exfatfs-base, 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, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: perseant-exfatfs
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +64 -7 lines
ld(4): Block requests while suspended until resumed.

Otherwise nothing stops us from continuing to feed I/O to the disk
controller when it expects that the queues are quiesced as it pokes
registers to change its power states.  Fixes resume during disk
activity on my T480 with nvme.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Sun Aug 2 01:17:56 2020 UTC (6 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +26 -25 lines
Remove unnecessary wait in ldbegindetach.

Like disk_begindetach, ldbegindetach only commits to detaching but
doesn't wait for existing xfers to drain; it is up to the driver to
abort them, once we are committed, and then ldenddetach to wait for
them to drain.

Revision 1.104.4.4: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:14 2020 UTC (6 years, 6 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.104.4.3: preferred, colored; branchpoint 1.104: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104.4.3: +1 -1 lines
Sync with HEAD

Revision 1.109.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:02 2020 UTC (6 years, 6 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109: +3 -3 lines
Sync with HEAD

Revision 1.110: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:02 2020 UTC (6 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +3 -3 lines
constify

Revision 1.104.4.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:18 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.104.4.2: preferred, colored; branchpoint 1.104: preferred, colored
Changes since revision 1.104.4.2: +6 -0 lines
Mostly merge changes from HEAD upto 20200411

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

Revision 1.106.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 21 15:52:09 2020 UTC (6 years, 7 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.106.4.1: preferred, colored; branchpoint 1.106: preferred, colored
Changes since revision 1.106.4.1: +3 -3 lines
Pull up following revision(s) (requested by riastradh in ticket #795):

	sys/dev/dksubr.c: revision 1.112
	sys/arch/xen/xen/xbd_xenbus.c: revision 1.95
	sys/dev/scsipi/sd.c: revision 1.328
	sys/dev/dkvar.h: revision 1.32
	sys/dev/ld.c: revision 1.109
	sys/dev/cgd.c: revision 1.120
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.380
	sys/dev/ata/wd.c: revision 1.458

Add a flag to dk_dump for virtual disk devices.

If a disk is backed by a physical medium other than itself, such as
cgd(4), then it passes DK_DUMP_RECURSIVE to disable the recursion
detection for dk_dump.

If, however, a device represents a physical medium on its own, such
as wd(4), then it passes 0 instead.

With this, I can now dump to dk on cgd on dk on wd.

Revision 1.109: download - view: text, markup, annotated - select for diffs
Sun Mar 1 03:21:54 2020 UTC (6 years, 8 months ago) by riastradh
Branches: MAIN
CVS tags: phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +3 -3 lines
Add a flag to dk_dump for virtual disk devices.

If a disk is backed by a physical medium other than itself, such as
cgd(4), then it passes DK_DUMP_RECURSIVE to disable the recursion
detection for dk_dump.

If, however, a device represents a physical medium on its own, such
as wd(4), then it passes 0 instead.

With this, I can now dump to dk on cgd on dk on wd.

Revision 1.107.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:06 2020 UTC (6 years, 8 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.107: preferred, colored; next MAIN 1.108: preferred, colored
Changes since revision 1.107: +6 -2 lines
Sync with head.

Revision 1.101.2.3: download - view: text, markup, annotated - select for diffs
Tue Feb 11 08:39:01 2020 UTC (6 years, 9 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE
Diff to: previous 1.101.2.2: preferred, colored; branchpoint 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101.2.2: +6 -2 lines
Pull up following revision(s) (requested by mlelstv in ticket #1500):

	sys/dev/ld.c: revision 1.108

Reject open when attach didn't complete successfully.

Revision 1.106.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 11 08:37:34 2020 UTC (6 years, 9 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-0-RELEASE
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +6 -2 lines
Pull up following revision(s) (requested by mlelstv in ticket #694):

	sys/dev/ld.c: revision 1.108

Reject open when attach didn't complete successfully.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Mon Feb 10 10:05:55 2020 UTC (6 years, 9 months ago) by mlelstv
Branches: MAIN
CVS tags: ad-namecache-base3
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +6 -2 lines
Reject open when attach didn't complete successfully.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Sun Oct 6 06:10:44 2019 UTC (7 years, 1 month ago) by mlelstv
Branches: MAIN
CVS tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +8 -2 lines
Don't attach disks with sector sizes we cannot handle.

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

Revision 1.106: download - view: text, markup, annotated - select for diffs
Tue Mar 19 07:01:14 2019 UTC (7 years, 8 months ago) by mlelstv
Branches: MAIN
CVS tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -3 lines
Let backend provide a disk type. The information can be queried through
drvctl(4).

Revision 1.101.2.2: download - view: text, markup, annotated - select for diffs
Tue Dec 4 12:00:41 2018 UTC (7 years, 11 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.101.2.1: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.2.1: +10 -2 lines
Pull up following revision(s) (requested by mlelstv in ticket #1122):

	sys/dev/ld.c: revision 1.105

take kernel lock for ioctl calls when backend isn't tagged MPSAFE.

Revision 1.104.2.1: download - view: text, markup, annotated - select for diffs
Sat Oct 20 06:58:30 2018 UTC (8 years ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.104: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104: +10 -2 lines
Sync with head

Revision 1.105: download - view: text, markup, annotated - select for diffs
Sat Oct 13 14:24:35 2018 UTC (8 years, 1 month ago) by mlelstv
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +10 -2 lines
take kernel lock for ioctl calls when backend isn't tagged MPSAFE.

Revision 1.69.6.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:58 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.69.6.3: preferred, colored; branchpoint 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69.6.3: +325 -564 lines
update from HEAD

Revision 1.104: download - view: text, markup, annotated - select for diffs
Sat Oct 28 03:47:24 2017 UTC (9 years ago) by riastradh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, 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, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +4 -4 lines
Kill some more extern cfdriver xyz_cd in favour of #include "ioconf.h".

Revision 1.101.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 1 09:59:10 2017 UTC (9 years, 2 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +43 -3 lines
Pull up following revision(s) (requested by mlelstv in ticket #261):
	sys/dev/sdmmc/ld_sdmmc.c: revision 1.32
	sys/dev/sdmmc/ld_sdmmc.c: revision 1.33
	sys/dev/sdmmc/ld_sdmmc.c: revision 1.34
	sys/dev/sdmmc/sdmmc_mem.c: revision 1.62
	sys/dev/i2o/ld_iop.c: revision 1.39
	sys/dev/ld.c: revision 1.102
	sys/dev/ld.c: revision 1.103
	sys/dev/dksubr.c: revision 1.98
	sys/dev/dksubr.c: revision 1.99
	sys/dev/sdmmc/sdmmcvar.h: revision 1.29
	sys/dev/ic/ld_nvme.c: revision 1.17
	sys/dev/ldvar.h: revision 1.31
	sys/dev/ldvar.h: revision 1.32
	sys/dev/ic/ld_cac.c: revision 1.31
	sys/dev/pci/ld_virtio.c: revision 1.16
While ld(4) is MP safe, many backends are not.
Add a flag for backends that are MP safe. Take KERNEL_LOCK when calling
into a backend that doesn't have the flag set. Do the same for the
discard routine.
Fixes PR 52462.
Defer sdmmc discard operations to the sdmmc task queue. Fixes a panic
introduced by ld.c r1.102.
validate length for discard operation and split operation when byte length
doesn't fit into 'int'.
make the sc_discard interface for the ld backend asynchronous and
signal completion through new callback lddiscardend. Use a standard
struct buf to pass disk address and range instead of two off_t values.
make lddiscard synchronous again. This is a requirement of the current
ffs discard code.
Initialize error also in the case where len=0, which just succeeds.
while here, assert that the len is indeed non-negative. this is already
confirmed by sys_fdiscard, but let's be sure.
reported by: GCC, but with different compile flags

Revision 1.78.2.7: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:00 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.78.2.6: preferred, colored; branchpoint 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.2.6: +84 -26 lines
Sync with HEAD

Revision 1.103: download - view: text, markup, annotated - select for diffs
Sun Aug 20 15:58:43 2017 UTC (9 years, 2 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20170825
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +30 -7 lines
make the sc_discard interface for the ld backend asynchronous and
signal completion through new callback lddiscardend. Use a standard
struct buf to pass disk address and range instead of two off_t values.

make lddiscard synchronous again. This is a requirement of the current
ffs discard code.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Wed Aug 9 16:44:39 2017 UTC (9 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +20 -3 lines
While ld(4) is MP safe, many backends are not.

Add a flag for backends that are MP safe. Take KERNEL_LOCK when calling
into a backend that doesn't have the flag set. Do the same for the
discard routine.

Fixes PR 52462.

Revision 1.100.4.3: download - view: text, markup, annotated - select for diffs
Tue May 2 03:19:18 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.100.4.2: preferred, colored; branchpoint 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100.4.2: +5 -2 lines
Sync with HEAD - tag prg-localcount2-base1

Revision 1.100.4.2: download - view: text, markup, annotated - select for diffs
Sat Apr 29 11:12:14 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.100.4.1: preferred, colored; branchpoint 1.100: preferred, colored
Changes since revision 1.100.4.1: +2 -3 lines
Remove more unnecessary #include for sys/localcount.h

Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu Apr 27 17:07:22 2017 UTC (9 years, 6 months ago) by jdolecek
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base
Branch point for: netbsd-8
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +5 -2 lines
do not attach nvme ld as randomness source - device is too fast, it overwhelms
the rndq handling code, and causes system crashes; gathering rnd there is
also bad idea from performance perspective

Revision 1.100.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 27 05:36:35 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +111 -29 lines
Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita.  There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.

Revision 1.99.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:44 2017 UTC (9 years, 6 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99: +40 -25 lines
Sync with HEAD

Revision 1.94.2.8: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:27 2017 UTC (9 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.94.2.7: preferred, colored; branchpoint 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94.2.7: +40 -26 lines
Sync with HEAD

Revision 1.100: download - view: text, markup, annotated - select for diffs
Mon Feb 27 21:32:33 2017 UTC (9 years, 8 months ago) by jdolecek
Branches: MAIN
CVS tags: prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: prg-localcount2
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +40 -25 lines
refactor the ld(4) DIOCCACHESYNC hook into general ioctl hook, so that attachments
would be able to implement arbitrary other ioctls

Revision 1.94.2.7: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:31 2017 UTC (9 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.94.2.6: preferred, colored; branchpoint 1.94: preferred, colored
Changes since revision 1.94.2.6: +6 -6 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.78.2.6: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:55:01 2016 UTC (9 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.78.2.5: preferred, colored; branchpoint 1.78: preferred, colored
Changes since revision 1.78.2.5: +7 -5 lines
Sync with HEAD

Revision 1.99: download - view: text, markup, annotated - select for diffs
Sat Nov 26 12:32:03 2016 UTC (9 years, 11 months ago) by mlelstv
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +4 -4 lines
size routine returns -1 on error, not an error code.

Revision 1.94.2.6: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:08 2016 UTC (10 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.94.2.5: preferred, colored; branchpoint 1.94: preferred, colored
Changes since revision 1.94.2.5: +49 -8 lines
Sync with HEAD

Revision 1.98: download - view: text, markup, annotated - select for diffs
Tue Oct 11 18:31:11 2016 UTC (10 years, 1 month ago) by jdolecek
Branches: MAIN
CVS tags: pgoyette-localcount-20161104
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +5 -3 lines
do not try to flush device when rebooting with RB_NOSYNC, so that machine
would still reboot if the device is wedged

Revision 1.78.2.5: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:40 2016 UTC (10 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.78.2.4: preferred, colored; branchpoint 1.78: preferred, colored
Changes since revision 1.78.2.4: +46 -11 lines
Sync with HEAD

Revision 1.97: download - view: text, markup, annotated - select for diffs
Tue Sep 27 03:33:32 2016 UTC (10 years, 1 month ago) by pgoyette
Branches: MAIN
CVS tags: nick-nhusb-base-20161004
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +42 -4 lines
Modularize the ld driver and all of its attachments.  Ensure that all
parents are capable of rescan (or otherwise provide a means of attaching
children post-initialization).

Revision 1.96: download - view: text, markup, annotated - select for diffs
Mon Sep 19 23:32:30 2016 UTC (10 years, 1 month ago) by jdolecek
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +4 -7 lines
fix DIOCCACHESYNC ioctl on ld(4) and raid(4) to work again; it got broken
when the code was switched over to dk_ioctl() - countrary to disk_ioctl(),
dk_ioctl() returns ENOTTY for ioctls it doesn't support, so must be called
as last resort, not first

bug was introduced in rev 1.83 (2015-05-02) for ld(4), and 1.335 (2016-01-03)
for raid(4)

Revision 1.95: download - view: text, markup, annotated - select for diffs
Fri Sep 16 15:20:50 2016 UTC (10 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +4 -4 lines
modify ldattach() to have default strategy as a parameter

Revision 1.94.2.5: download - view: text, markup, annotated - select for diffs
Sun Jul 31 01:32:00 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.94.2.4: preferred, colored; branchpoint 1.94: preferred, colored
Changes since revision 1.94.2.4: +5 -3 lines
Use after initialization, not before

Revision 1.94.2.4: download - view: text, markup, annotated - select for diffs
Wed Jul 27 01:13:50 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.94.2.3: preferred, colored; branchpoint 1.94: preferred, colored
Changes since revision 1.94.2.3: +106 -32 lines
Update a few more drivers for localcount(9)

Revision 1.94.2.3: download - view: text, markup, annotated - select for diffs
Tue Jul 26 05:54:39 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.94.2.2: preferred, colored; branchpoint 1.94: preferred, colored
Changes since revision 1.94.2.2: +4 -4 lines
Rename LOCALCOUNT_INITIALIZER to DEVSW_MODULE_INIT.  This better describes
what we're doing, and why.

Revision 1.94.2.2: download - view: text, markup, annotated - select for diffs
Tue Jul 19 06:26:58 2016 UTC (10 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.94.2.1: preferred, colored; branchpoint 1.94: preferred, colored
Changes since revision 1.94.2.1: +4 -12 lines
Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it.  This also removes the need for defining new symbols
for each 'struct localcount'.

As suggested by riastradh@

Revision 1.94.2.1: download - view: text, markup, annotated - select for diffs
Mon Jul 18 03:49:59 2016 UTC (10 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +13 -2 lines
Rump drivers are always installed via devsw_attach() so we need to
always allocate a 'struct localcount' for these drivers whenever they
are built as modules.

Revision 1.78.2.4: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:08 2016 UTC (10 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.78.2.3: preferred, colored; branchpoint 1.78: preferred, colored
Changes since revision 1.78.2.3: +3 -7 lines
Sync with HEAD

Revision 1.94: download - view: text, markup, annotated - select for diffs
Sat Feb 27 08:54:49 2016 UTC (10 years, 8 months ago) by mlelstv
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -7 lines
dk_ioctl already calls disk_ioctl.
Remove redundant return statement for a void function.

Revision 1.78.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:56 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.78.2.2: preferred, colored; branchpoint 1.78: preferred, colored
Changes since revision 1.78.2.2: +76 -83 lines
Sync with HEAD

Revision 1.93: download - view: text, markup, annotated - select for diffs
Fri Aug 28 17:41:49 2015 UTC (11 years, 2 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +2 -10 lines
move entropy gathering into dksubr.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Thu Aug 27 05:51:50 2015 UTC (11 years, 2 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +6 -7 lines
Make dksubr use a spin-mutex again, since some drivers still call dk_done
from hardware interrupt. Instead, release mutex while calling start routine.

The buffer peek/use/get sequence which can no longer be atomic. So consume
the buffer directly and on error privately save and retry the buffer later.
The dk_drain function is used to flush such a deferred buffer together with
the buffer queue.
Adjust drivers to use dk_drain.

Fix an error path where dk_done was called while the lock was already held.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Tue Aug 18 04:20:25 2015 UTC (11 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +4 -4 lines
Use ENODEV to show that an operation is not supported.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Mon Aug 17 19:47:21 2015 UTC (11 years, 3 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +33 -5 lines
Add support for implementing discard functionality with ld(4)

Revision 1.89: download - view: text, markup, annotated - select for diffs
Sun Aug 16 18:00:03 2015 UTC (11 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +20 -47 lines
Two changes to the dksubr interface.

- d_diskstart callback now processes a single buffer only.
  The new wrapper function dk_start processes the queue,
  performs other buffer handling and also provides locking
  for the the data structures.

- add d_discard callback to handle device specific function inside
  the new dk_discard helper function.

Replace splbio with mutex to protect queue and disk structure.
Refactor common code in dk_strategy and dk_discard into dk_translate.

Adjust and simplify ld(4), cgd(4) and xbd(4) drivers accordingly.

ld(4) now becomes MP_SAFE.

Bump kernel version.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Sun Aug 16 17:32:31 2015 UTC (11 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -3 lines
missed wakeup -> cv_broadcast conversion.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Sun Aug 16 17:22:00 2015 UTC (11 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +5 -5 lines
use device_printf

Revision 1.86: download - view: text, markup, annotated - select for diffs
Sun Aug 16 14:07:19 2015 UTC (11 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +5 -4 lines
replace tsleep with condvar

Revision 1.85: download - view: text, markup, annotated - select for diffs
Sun Aug 16 14:02:52 2015 UTC (11 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +18 -18 lines
replace spl and tsleep with mutex and condvar.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Wed Jul 22 10:32:16 2015 UTC (11 years, 3 months ago) by skrll
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +6 -6 lines
Trailing whitespace.

Revision 1.78.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:06 2015 UTC (11 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.78.2.1: preferred, colored; branchpoint 1.78: preferred, colored
Changes since revision 1.78.2.1: +164 -437 lines
Sync with HEAD

Revision 1.83: download - view: text, markup, annotated - select for diffs
Sat May 2 08:00:08 2015 UTC (11 years, 6 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +166 -439 lines
Merge dk_intf and dkdriver interfaces.
Merge common disk driver functionality in ld.c with dksubr.c.
Adjust the two previous users of dk_intf (cgd and xbd) to
the changes.

bump kernel version to 7.99.14

Revision 1.82: download - view: text, markup, annotated - select for diffs
Mon Apr 13 16:33:23 2015 UTC (11 years, 7 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -3 lines
Convert sys/dev to use <sys/rndsource.h>.

Revision 1.78.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:08 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +5 -67 lines
Sync with HEAD

Revision 1.81: download - view: text, markup, annotated - select for diffs
Fri Jan 2 19:42:06 2015 UTC (11 years, 10 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -3 lines
We have three sets of DTYPE_ constants in the kernel:
	altq		Drop 		Type
	disklabel	Disk 		Type
	file		Descriptor	Type
(not to mention constants that contain the string DTYPE).
Let's make them two, by changing the disklabel one to be DisK TYPE since the
other disklabel constants seem to do that. Not many userland programs use
these constants (and the ones that they do are mostly in ifdefs). They will
be fixed shortly.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Wed Dec 31 19:52:05 2014 UTC (11 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +4 -24 lines
make more drivers use disk_ioctl, and add a dev parameter to it so that
we can merge the "easy" disklabel ioctls to it. Ultimately all this will
go do dk_ioctl once all the drivers have been converted.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Wed Dec 31 17:06:48 2014 UTC (11 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +2 -44 lines
Centralize wedge ioctls in disk_ioctl.

Revision 1.75.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 11 10:42:22 2014 UTC (12 years ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Diff to: previous 1.75.2.1: preferred, colored; branchpoint 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.2.1: +7 -5 lines
Pull up following revision(s) (requested by mlelstv in ticket #202):
	sys/dev/ccd.c: revision 1.153
	sys/dev/ccd.c: revision 1.154
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.313
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.314
	sys/dev/ld.c: revision 1.77
	sys/dev/vnd.c: revision 1.233
	sys/dev/dksubr.c: revision 1.52
	sys/dev/dksubr.c: revision 1.53
clamp total number of sectors to UINT32_MAX instead of providing the
lower 32bit of the 64bit number.
No longer warn about differences bewteen disk size and total sector count
in disklabel when the latter is just clamped to the maximum.

Revision 1.75.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 11 10:36:41 2014 UTC (12 years ago) by martin
Branches: netbsd-7
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +12 -2 lines
Pull up following revision(s) (requested by mlelstv in ticket #201):
	sbin/dkctl/dkctl.8: revision 1.24
	sbin/dkctl/dkctl.8: revision 1.25
	sys/dev/scsipi/sd.c: revision 1.310
	sys/dev/ata/wd.c: revision 1.415
	sbin/dkctl/dkctl.c: revision 1.21
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.315
	sys/dev/ld.c: revision 1.78
	sys/dev/vnd.c: revision 1.234
	sys/dev/dksubr.c: revision 1.54
	sys/sys/dkio.h: revision 1.20
	sys/dev/dkwedge/dk.c: revision 1.74
Add ioctl to autodiscover wedges.
Implement DIOCMWEDGES ioctl that triggers wedge autodiscovery.
Also fix a reference counting bug and clean up some code.
support DIOCMWEDGES ioctl.
Add 'makewedges' option to autodiscover wedges from a changed label.
New sentence, new line. Bump date for previous.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Tue Nov 4 07:51:54 2014 UTC (12 years ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +12 -2 lines
support DIOCMWEDGES ioctl.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Sat Oct 11 12:01:27 2014 UTC (12 years, 1 month ago) by mlelstv
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +7 -5 lines
clamp total number of sectors to UINT32_MAX instead of providing the
lower 32bit of the 64bit number.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Sep 5 05:27:23 2014 UTC (12 years, 2 months ago) by matt
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +8 -8 lines
Don't use new as a variable name.

Revision 1.69.6.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:35 2014 UTC (12 years, 2 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.69.6.2: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.6.2: +21 -4 lines
Rebase to HEAD as of a few days ago.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Sun Aug 10 16:44:35 2014 UTC (12 years, 3 months ago) by tls
Branches: MAIN
CVS tags: tls-maxphys-base, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -3 lines
Merge tls-earlyentropy branch into HEAD.

Revision 1.72.2.2: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:50 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.72.2.1: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.2.1: +4 -2 lines
Rebase.

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

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

Revision 1.73: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:02:19 2014 UTC (12 years, 3 months ago) by dholland
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -2 lines
Add d_discard to all struct bdevsw instances I could find.

I've set them all to nodiscard. Some of them (wd, dk, vnd, ld,
raidframe, maybe cgd) should be implemented for real.

Revision 1.68.8.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:19 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.68.8.2: preferred, colored; branchpoint 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68.8.2: +31 -41 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.71.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:35 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +20 -5 lines
sync with head

Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 7 03:37:31 2014 UTC (12 years, 7 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +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.72: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:26 2014 UTC (12 years, 8 months ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +20 -5 lines
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

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

Revision 1.69.6.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:16 2013 UTC (13 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.69.6.1: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.6.1: +13 -38 lines
resync from head

Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed May 29 00:47:48 2013 UTC (13 years, 5 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +13 -38 lines
phase 1 of disk geometry cleanup:
	- centralize the geometry -> plist code so that we don't have
	  n useless copies of it.

Revision 1.69.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:01:58 2012 UTC (13 years, 11 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.68.8.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:20:49 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.68.8.1: preferred, colored; branchpoint 1.68: preferred, colored
Changes since revision 1.68.8.1: +3 -3 lines
sync with head

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sat Oct 27 17:18:14 2012 UTC (14 years 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.69: preferred, colored
Changes since revision 1.69: +3 -3 lines
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.

Revision 1.68.8.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:25 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +2 -12 lines
sync with head

Revision 1.68.12.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:34:05 2012 UTC (14 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +2 -12 lines
merge to -current.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Thu Feb 2 19:43:01 2012 UTC (14 years, 9 months ago) by tls
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.68: preferred, colored
Changes since revision 1.68: +2 -12 lines
Entropy-pool implementation move and cleanup.

1) Move core entropy-pool code and source/sink/sample management code
   to sys/kern from sys/dev.

2) Remove use of NRND as test for presence of entropy-pool code throughout
   source tree.

3) Remove use of RND_ENABLED in device drivers as microoptimization to
   avoid expensive operations on disabled entropy sources; make the
   rnd_add calls do this directly so all callers benefit.

4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
   have lead to slight entropy overestimation for some sources.

5) Add new source types for environmental sensors, power sensors, VM
   system events, and skew between clocks, with a sample implementation
   for each.

ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files).  Tested with release
builds on amd64 and evbarm and live testing on amd64.

Revision 1.66.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:00 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +20 -7 lines
sync with head

Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Fri Oct 22 07:21:50 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +20 -7 lines
Sync with HEAD (-D20101022).

Revision 1.57.4.5: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:03 2010 UTC (16 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.57.4.4: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.4.4: +20 -7 lines
sync with head

Revision 1.68: download - view: text, markup, annotated - select for diffs
Mon Sep 20 06:54:06 2010 UTC (16 years, 2 months ago) by kiyohara
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-usbmp
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +11 -6 lines
Check disk bounds, in RAW_PART.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Thu Aug 19 17:59:10 2010 UTC (16 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +11 -3 lines
flush cache on suspend

Revision 1.57.4.4: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:47:02 2009 UTC (17 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.57.4.3: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.4.3: +22 -10 lines
sync with head.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Thu Jul 23 21:38:33 2009 UTC (17 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +22 -10 lines
Extract ldlastclose() and use it in ldclose().  At the top of
ldbegindetach(), call disk_begindetach(..., ldlastclose, ...).

Compiles.  Not tested.

Revision 1.57.4.3: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:18 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.57.4.2: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.4.2: +4 -4 lines
sync with head

Revision 1.64.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:05 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +4 -4 lines
Sync with HEAD.

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

Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu May 7 09:11:42 2009 UTC (17 years, 6 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-base
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +4 -4 lines
struct device * -> device_t, no functional changes intended.

Revision 1.57.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:33 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.57.4.1: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.4.1: +36 -34 lines
sync with head.

Revision 1.63.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:51 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +6 -6 lines
Sync with HEAD.

Revision 1.54.6.8: download - view: text, markup, annotated - select for diffs
Sat Jan 17 20:17:09 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.54.6.7: preferred, colored; branchpoint 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54.6.7: +7 -7 lines
- Fix a CVS merge breakage
- Catch up with some driver changes

Revision 1.54.6.7: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:52 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.54.6.6: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.6.6: +4 -4 lines
Sync with HEAD.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Tue Jan 13 13:35:52 2009 UTC (17 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +6 -6 lines
g/c BUFQ_FOO() macros and use bufq_foo() directly.

Revision 1.60.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:18 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +24 -22 lines
Sync with HEAD.

Revision 1.54.6.6: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:18 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.54.6.5: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.6.5: +22 -20 lines
Sync with HEAD.

Revision 1.58.2.3: download - view: text, markup, annotated - select for diffs
Wed Sep 24 16:38:51 2008 UTC (18 years, 1 month ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.58.2.2: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.2.2: +19 -18 lines
Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.58.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:35:01 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.58.2.1: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.1: +8 -7 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Sep 9 12:45:39 2008 UTC (18 years, 2 months ago) by tron
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, 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, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +19 -18 lines
Complete device_t/softc split for the ld(4) attachments. This should
prevent crashes while attaching a drive.

Patch supplied by Juan RP in PR kern/39468.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Aug 11 06:43:37 2008 UTC (18 years, 3 months ago) by simonb
Branches: MAIN
CVS tags: wrstuden-revivesa-base-2
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +6 -6 lines
Add a flags argument to the ld(4) flush handlers, and call these with a
"poll" flag when called from ld_shutdown().

This is the infrastructure part of kern/38655 - in itself it doesn't
fix the panic referenced in that PR.

XXX: At least ld_twa.c and perhaps ld_iop.c and ld_icp.c need to
check for this new poll flag and do something useful.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Aug 1 16:09:45 2008 UTC (18 years, 3 months ago) by ws
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -2 lines
Destroy our mutex on detach in order to avoid
an "allocation contains active lock" panic
when halting a LOCKDEBUG kernel.

Revision 1.58.4.4: download - view: text, markup, annotated - select for diffs
Fri Jul 18 16:37:31 2008 UTC (18 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.58.4.3: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.4.3: +3 -3 lines
Sync with head.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Jul 6 14:07:44 2008 UTC (18 years, 4 months ago) by cube
Branches: MAIN
CVS tags: simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3 lines
Use device_private() where appropriate.

Noted by Paul Goyette in PR#39110.

Revision 1.54.6.5: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:04 2008 UTC (18 years, 4 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.54.6.4: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.6.4: +7 -7 lines
Sync with HEAD.

Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:30:58 2008 UTC (18 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +9 -9 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.58.4.3: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:03 2008 UTC (18 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.58.4.2: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.4.2: +9 -9 lines
Sync with head.

Revision 1.57.2.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:14:24 2008 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.57.2.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.2.1: +9 -9 lines
sync with head.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed Jun 11 12:41:22 2008 UTC (18 years, 5 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +9 -9 lines
Use device_lookup_private() to get softc.

Revision 1.58.4.2: download - view: text, markup, annotated - select for diffs
Wed Jun 11 05:38:36 2008 UTC (18 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.58.4.1: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.4.1: +6 -6 lines
Revert my suggested fix for kern/38655 - that shouldn't have snuck in
to this branch.

Revision 1.58.4.1: download - view: text, markup, annotated - select for diffs
Tue Jun 10 14:51:22 2008 UTC (18 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +6 -6 lines
Initial commit of Wasabi System's WAPBL (Write Ahead Physical Block
Logging) journaling code.  Originally written by Darrin B. Jewell
while at Wasabi and updated to -current by Antti Kantee, Andy Doran,
Greg Oster and Simon Burge.

Still a number of issues - look in doc/BRANCHES for "simonb-wapbl"
for more info.

Revision 1.54.6.4: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:11 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.54.6.3: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.6.3: +15 -22 lines
Sync with HEAD.

Revision 1.57.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:30 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -9 lines
sync with head.

Revision 1.57.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:23:49 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -9 lines
sync with head.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:46 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Apr 9 05:47:19 2008 UTC (18 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +15 -15 lines
use aprint_*_dev and device_xname

Revision 1.54.6.3: download - view: text, markup, annotated - select for diffs
Sun Apr 6 09:58:49 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.54.6.2: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.6.2: +3 -3 lines
- after some discussion with agc@ i agreed it would be a good idea to move
  device_unregister_* to device_deregister_* to be more like the pmf(9)
  functions, especially since a lot of the time the function calls are next
  to each other.

- add device_register_name() support for dk(4).

Revision 1.54.6.2: download - view: text, markup, annotated - select for diffs
Sat Apr 5 23:33:20 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.54.6.1: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.6.1: +17 -2 lines
- add "file-system DEVFS" and "pseudo-device devfsctl" to conf/std seeing
  as these are always needed.

- convert many, many drivers over to the New Devfs World Order. For a
  list of device drivers yet to be converted see,
  http://www.netbsd.org/~mjf/devfs-todo.html.

- add a new device_unregister_all(device_t) function to remove all device
  names associated with a device_t, which saves us having to construct
  device names when the driver is detached.

- add a DEV_AUDIO type for devices.

Revision 1.54.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:36 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +19 -17 lines
Sync with HEAD.

Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:11 2008 UTC (18 years, 7 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +19 -17 lines
sync with head.

Revision 1.49.6.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:35 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.49.6.2: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.6.2: +19 -17 lines
sync with HEAD

Revision 1.37.2.8: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:14:37 2008 UTC (18 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.37.2.7: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.2.7: +19 -17 lines
sync with head.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Mar 9 19:18:25 2008 UTC (18 years, 8 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +5 -2 lines
Don't forget to deregister with PMF on detach.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Mar 9 19:15:01 2008 UTC (18 years, 8 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +16 -17 lines
Replace shutdownhook with PMF power handler.

Revision 1.50.4.3: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:32 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.50.4.2: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.4.2: +2 -3 lines
Sync with HEAD.

Revision 1.37.2.7: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:42:26 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.37.2.6: preferred, colored
Changes since revision 1.37.2.6: +2 -3 lines
sync with head

Revision 1.49.6.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:52:13 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.49.6.1: preferred, colored; branchpoint 1.49: preferred, colored
Changes since revision 1.49.6.1: +40 -4 lines
sync with HEAD

Revision 1.53.4.1: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:10:54 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +2 -3 lines
Sync with HEAD

Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Jan 4 21:17:48 2008 UTC (18 years, 10 months ago) by ad
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -3 lines
Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.

Revision 1.49.4.3: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:37:41 2007 UTC (18 years, 11 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.49.4.2: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.4.2: +3 -3 lines
Sync with HEAD.

Revision 1.50.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:19 2007 UTC (18 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.50.4.1: preferred, colored; branchpoint 1.50: preferred, colored
Changes since revision 1.50.4.1: +3 -3 lines
Sync with HEAD.

Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 17:57:16 2007 UTC (18 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +3 -3 lines
Sync with head.

Revision 1.37.2.6: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:29:17 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.37.2.5: preferred, colored
Changes since revision 1.37.2.5: +3 -3 lines
sync with head

Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed Dec 5 07:06:50 2007 UTC (18 years, 11 months ago) by ad
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.

Revision 1.50.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:47:40 2007 UTC (19 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +39 -2 lines
Sync with HEAD.

Revision 1.37.2.5: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:44:01 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.37.2.4: preferred, colored
Changes since revision 1.37.2.4: +39 -2 lines
sync with head.

Revision 1.49.4.2: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:04:23 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.49.4.1: preferred, colored; branchpoint 1.49: preferred, colored
Changes since revision 1.49.4.1: +39 -2 lines
Sync with HEAD.

Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:00:50 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +39 -2 lines
Sync with HEAD

Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Nov 12 19:01:07 2007 UTC (19 years ago) by xtraeme
Branches: MAIN
CVS tags: vmlocking2-base1, vmlocking-nbase, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +7 -7 lines
Use sc_mutex (which runs at IPL_BIO) to protect the DIOC[GS]STRATEGY
ioctl ops, sorry didn't see it before.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Nov 12 14:45:23 2007 UTC (19 years ago) by xtraeme
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +40 -3 lines
Implement DIOCGSTRATEGY and DIOCSSTRATEGY for dkctl <foo0> strategy.

Revision 1.49.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:25:28 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -4 lines
sync with HEAD

Revision 1.37.2.4: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:29:58 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.37.2.3: preferred, colored
Changes since revision 1.37.2.3: +4 -4 lines
sync with head.

Revision 1.49.4.1: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:44:10 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -4 lines
Sync with HEAD.

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

Revision 1.49.8.1: download - view: text, markup, annotated - select for diffs
Sun Oct 14 11:48:00 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +4 -4 lines
sync with head.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Oct 8 16:41:10 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base
Branch point for: mjf-devfs, bouyer-xenamd64
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -4 lines
Merge disk init changes from the vmlocking branch. These seperate init /
destroy of 'struct disk' from attach / detach.

Revision 1.37.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:33:13 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.37.2.2: preferred, colored
Changes since revision 1.37.2.2: +17 -25 lines
sync with head.

Revision 1.46.2.4: download - view: text, markup, annotated - select for diffs
Mon Aug 20 18:16:10 2007 UTC (19 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.46.2.3: preferred, colored; branchpoint 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46.2.3: +12 -18 lines
- Alter disk attach/detach to fix a panic when closing a vnd device.
- Sync with HEAD.

Revision 1.46.2.3: download - view: text, markup, annotated - select for diffs
Sun Aug 19 19:24:21 2007 UTC (19 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.46.2.2: preferred, colored; branchpoint 1.46: preferred, colored
Changes since revision 1.46.2.2: +15 -12 lines
- Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).

Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:48:12 2007 UTC (19 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +13 -22 lines
Sync with HEAD.

Revision 1.49.10.2: download - view: text, markup, annotated - select for diffs
Sun Jul 29 12:50:19 2007 UTC (19 years, 3 months ago) by ad
Branches: matt-mips64
Diff to: previous 1.49.10.1: preferred, colored; branchpoint 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49.10.1: +889 -0 lines
It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.

Revision 1.49.10.1
Sun Jul 29 12:50:18 2007 UTC (19 years, 3 months ago) by ad
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.49: +0 -889 lines
file ld.c was added on branch matt-mips64 on 2007-07-29 12:50:19 +0000

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Jul 29 12:50:18 2007 UTC (19 years, 3 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +5 -8 lines
It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Jul 21 19:51:47 2007 UTC (19 years, 4 months ago) by ad
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +10 -16 lines
Replace some uses of lockmgr().

Revision 1.46.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:05:01 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +3 -3 lines
Sync with head.

Revision 1.46.2.2: download - view: text, markup, annotated - select for diffs
Sun May 27 14:29:57 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.46.2.1: preferred, colored; branchpoint 1.46: preferred, colored
Changes since revision 1.46.2.1: +3 -3 lines
Sync with head.

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Sun May 13 17:36:21 2007 UTC (19 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +14 -20 lines
- Pass the error number and residual count to biodone(), and let it handle
  setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
  of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
  create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.

Revision 1.44.2.3: download - view: text, markup, annotated - select for diffs
Mon May 7 10:55:23 2007 UTC (19 years, 6 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.44.2.2: preferred, colored; branchpoint 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44.2.2: +3 -3 lines
sync with head.

Revision 1.42.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 30 19:01:15 2007 UTC (19 years, 6 months ago) by bouyer
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.42.2.2: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.2: +1 -1 lines
Pull up following revision(s) (requested by tron in ticket #601):
	sys/dev/ld.c: revision 1.47
Reset error code if an ioctl() request is not handled by the generic
disk framework. This stops ld(4) from returning an error for various
ioctl() requests which actually *did* work. As a result fdisk(8) and
therefore also sysinst(8) work with ld(4) devices once again.
Based on a patch supplied by Todd Kover in PR kern/36244, successfully
tested with ld(4)@icp(4).

Revision 1.47: download - view: text, markup, annotated - select for diffs
Mon Apr 30 17:23:09 2007 UTC (19 years, 6 months ago) by tron
Branches: MAIN
CVS tags: yamt-idlelwp-base8, nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3 lines
Reset error code if an ioctl() request is not handled by the generic
disk framework. This stops ld(4) from returning an error for various
ioctl() requests which actually *did* work. As a result fdisk(8) and
therefore also sysinst(8) work with ld(4) devices once again.

Based on a patch supplied by Todd Kover in PR kern/36244, successfully
tested with ld(4)@icp(4).

Revision 1.44.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:04 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.44.2.1: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.1: +5 -4 lines
Sync with HEAD.

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

Revision 1.44.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:53:48 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +11 -3 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.37.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:09:54 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.37.2.1: preferred, colored
Changes since revision 1.37.2.1: +81 -10 lines
sync with head.

Revision 1.42.2.2: download - view: text, markup, annotated - select for diffs
Sat Feb 24 13:14:33 2007 UTC (19 years, 8 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.42.2.1: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.1: +9 -1 lines
Pull up following revision(s) (requested by riz in ticket #458):
	sys/dev/ld.c: revision 1.45
Defer dkwedge_discover() until after interrupts are enabled.  This
allows a kernel with options DKWEDGE_AUTODISCOVER to boot
on a machine with a twa(4) card.
ok matt@

Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Feb 22 22:28:32 2007 UTC (19 years, 8 months ago) by riz
Branches: MAIN
CVS tags: ad-audiomp-base, ad-audiomp
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +11 -3 lines
Defer dkwedge_discover() until after interrupts are enabled.  This
allows a kernel with options DKWEDGE_AUTODISCOVER to boot
on a machine with a twa(4) card.

ok matt@

Revision 1.42.2.1: download - view: text, markup, annotated - select for diffs
Fri Feb 16 19:22:58 2007 UTC (19 years, 9 months ago) by tron
Branches: netbsd-4
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +52 -2 lines
Pull up following revision(s) (requested by riz in ticket #444):
	sys/dev/ld.c: revision 1.43
Add disk-info properties to ld(4), based on Jason Thorpe's similar
code in wd(4).
OK ad, cube

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:26 2007 UTC (19 years, 9 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +22 -9 lines
Merge newlock2 to head.

Revision 1.40.8.3: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:03:51 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.40.8.2: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.8.2: +52 -2 lines
Sync with HEAD.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Feb 8 03:19:42 2007 UTC (19 years, 9 months ago) by riz
Branches: MAIN
CVS tags: newlock2-nbase, newlock2-base
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +52 -2 lines
Add disk-info properties to ld(4), based on Jason Thorpe's similar
code in wd(4).

OK ad, cube

Revision 1.40.8.2: download - view: text, markup, annotated - select for diffs
Mon Jan 15 17:58:57 2007 UTC (19 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.40.8.1: preferred, colored; branchpoint 1.40: preferred, colored
Changes since revision 1.40.8.1: +22 -9 lines
Add just enough locking to make this useful for tests.

Revision 1.40.10.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:16:53 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: +7 -7 lines
sync with head.

Revision 1.40.8.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:03 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.40: 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:32:45 2006 UTC (20 years ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, netbsd-4-base
Branch point for: netbsd-4
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +7 -7 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:05:28 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -7 lines
sync with head

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:30: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: +7 -7 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:49:09 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: +5 -5 lines
sync with head

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

Revision 1.39.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:38:45 2006 UTC (20 years, 6 months ago) by simonb
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: +5 -5 lines
Sync with head.

Revision 1.39.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:24:24 2006 UTC (20 years, 7 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: +5 -5 lines
sync with head.

Revision 1.39.8.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:06:43 2006 UTC (20 years, 7 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: +5 -5 lines
sync with head.

Revision 1.39.12.1: download - view: text, markup, annotated - select for diffs
Fri Mar 31 09:45:17 2006 UTC (20 years, 7 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: +5 -5 lines
Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Mar 28 17:38:29 2006 UTC (20 years, 7 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.39: preferred, colored
Changes since revision 1.39: +5 -5 lines
Use device_unit().

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:20:53 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, 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: +6 -6 lines
merge ktrace-lwp.

Revision 1.26.2.11: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:03:00 2005 UTC (21 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.10: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.2.10: +14 -14 lines
Sync with HEAD. Here we go again...

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Oct 15 17:29:11 2005 UTC (21 years, 1 month ago) by yamt
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, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +9 -9 lines
- change the way to specify a bufq strategy.  (by string rather than by number)
- rather than embedding bufq_state in driver softc,
  have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
  from sys/bufq.h to sys/bufq_impl.h.
  (is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c.  (not tested)

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon May 30 04:44:52 2005 UTC (21 years, 5 months ago) by christos
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +7 -7 lines
avoid variable shadowing.

Revision 1.33.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:44 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +12 -17 lines
sync with -current

Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 6 11:56:55 2005 UTC (21 years, 7 months ago) by tron
Branches: netbsd-3
CVS tags: 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
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +5 -10 lines
Pull up revision 1.36 (requested by yamt in ticket #112):
introduce a function to drain bufq and use it where appropriate.

Revision 1.26.2.10: download - view: text, markup, annotated - select for diffs
Fri Apr 1 14:29:37 2005 UTC (21 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.9: preferred, colored
Changes since revision 1.26.2.9: +5 -10 lines
Sync with HEAD.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Mar 31 11:28:53 2005 UTC (21 years, 7 months ago) by yamt
Branches: MAIN
CVS tags: kent-audio2-base
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -10 lines
introduce a function to drain bufq and use it where appropriate.

Revision 1.33.6.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:33:53 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.33.6.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.6.1: +7 -7 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.26.2.9: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:40:53 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.8: preferred, colored
Changes since revision 1.26.2.8: +7 -7 lines
Sync with HEAD.

Hi Perry!

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:26:58 2005 UTC (21 years, 8 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +7 -7 lines
nuke trailing whitespace

Revision 1.33.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 12 18:17:42 2005 UTC (21 years, 9 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -4 lines
sync with head.

Revision 1.26.2.8: download - view: text, markup, annotated - select for diffs
Wed Feb 9 08:26:13 2005 UTC (21 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.7: preferred, colored
Changes since revision 1.26.2.7: +4 -4 lines
Sync with HEAD.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Feb 8 05:16:17 2005 UTC (21 years, 9 months ago) by briggs
Branches: MAIN
CVS tags: yamt-km-base2
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -4 lines
Use aprint_*() instead of printf() at attach time.

Revision 1.26.2.7: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:51:19 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.6: preferred, colored
Changes since revision 1.26.2.6: +16 -2 lines
Sync with HEAD.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Oct 28 07:07:39 2004 UTC (22 years ago) by yamt
Branches: MAIN
CVS tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -2 lines
move buffer queue related stuffs from buf.h to their own header, bufq.h.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Oct 26 22:46:13 2004 UTC (22 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +15 -2 lines
Implement the DIOCCACHESYNC ioctl.

Revision 1.26.2.6: download - view: text, markup, annotated - select for diffs
Tue Oct 19 15:56:44 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.5: preferred, colored
Changes since revision 1.26.2.5: +60 -49 lines
Sync with HEAD

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Oct 17 17:02:48 2004 UTC (22 years, 1 month ago) by jdolecek
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
ldioctl(): fix typo in check for lockmgr() return value introduced
with the wedge support, which caused premature return and left dk_openlock
locked, leading to lockmgr() panic on close; newfs of ld disk now works again

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Sep 25 04:28:08 2004 UTC (22 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +60 -49 lines
Add support for wedges to the logical disk driver.

Revision 1.26.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:26:25 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.4: preferred, colored
Changes since revision 1.26.2.4: +3 -3 lines
Fix the sync with head I botched.

Revision 1.26.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:44:28 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.3: preferred, colored
Changes since revision 1.26.2.3: +5 -5 lines
Sync with HEAD.

Revision 1.26.2.3: download - view: text, markup, annotated - select for diffs
Fri Sep 3 12:45:17 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.2: preferred, colored
Changes since revision 1.26.2.2: +18 -18 lines
Sync with HEAD

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Aug 30 00:34:41 2004 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +18 -18 lines
Use ANSI function decls, sprinkle static.

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

Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 28 11:27:00 2004 UTC (22 years, 3 months ago) by tron
Branches: netbsd-2-0
CVS tags: 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-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
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +10 -5 lines
Pull up revision 1.28 (requested by dbj in ticket #722):
use uint64 instead of int for sc_secperunit

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Jul 20 15:44:20 2004 UTC (22 years, 4 months ago) by dbj
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +10 -5 lines
use uint64 instead of int for sc_secperunit

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Mar 22 17:30:33 2004 UTC (22 years, 8 months ago) by tls
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3 lines
Don't use BUFQ_FCFS.  It degrades performance both for "smart" (Mylex
ExtremeRAID with NV cache) and "dumb" (3ware 6410) ld providers.

Instead, use the default buffer queue policy.

With the 3ware adapter, using the read priority strategy instead of FCFS,
for three extractions of pkgsrc, took 329 seconds instead of 331 -- but
with a dramatic improvement in perceived system response (latency for
I/O outside the main stream).

With the Mylex adapter, the improvement was dramatic: using read priority
instead of FCFS yielded an improvement from 381 seconds to 135 seconds!
There was a less-noticeable improvement in perceived latency as well.

The other disk drivers currently hard-wired to FCFS or another policy
should probably be changed as well.

Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:00 2003 UTC (23 years, 4 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -5 lines
Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:29:59 2003 UTC (23 years, 4 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -3 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:31 2003 UTC (23 years, 4 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +5 -5 lines
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Jun 13 02:32:27 2003 UTC (23 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +22 -13 lines
* Don't wait for commands to drain when adjusting the queue length.
  Instead, wait when it's really needed, when detaching.  Project
  draining from spruious wakeups.
* Don't flush the controller's cache when detaching; we can't do it
  reliably, as the controller probably things the array drive no
  longer exists.  The cache is already flushed in ldclose() so this
  should be no problem.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Jun 7 23:37:24 2003 UTC (23 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +76 -60 lines
Always queue transfers in the ld driver to prevent transient resource
shortages in the back-ends from aborting transfers.

Reviewed by ad@.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat May 17 16:11:52 2003 UTC (23 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +24 -6 lines
Add DIOCKLABEL support.  Fixes PR kern/21605 (Luke Mewburn).

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri May 16 15:34:25 2003 UTC (23 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -4 lines
use strlcpy

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat May 10 23:12:43 2003 UTC (23 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
Change bounds_check_with_label() to take a pointer to the disk structure,
rather than the label itself.  This paves the way for some future changes.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jan 27 02:43:30 2003 UTC (23 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +20 -17 lines
If the upper-layer provides a geometry, use it.

Revision 1.7.2.8: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:08:46 2002 UTC (24 years ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.7.2.7: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.7: +3 -2 lines
Catch up to -current

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Nov 1 11:31:56 2002 UTC (24 years ago) by mrg
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -3 lines
implement separate read/write disk statistics:
	- disk_unbusy() gets a new parameter to tell the IO direction.
	- struct disk_sysctl gets 4 new members for read/write bytes/transfers.
	when processing hw.diskstats, add the read&write bytes/transfers for
	the old combined stats to attempt to keep backwards compatibility.

unfortunately, due to multiple bugs, this will cause new kernels and old
vmstat/iostat/systat programs to fail.  however, the next time this is
change it will not fail again.

this is just the kernel portion.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Oct 23 09:13:02 2002 UTC (24 years ago) by jdolecek
Branches: MAIN
CVS tags: kqueue-aftermerge
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.9.2.6: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:38:20 2002 UTC (24 years, 1 month ago) by jdolecek
Branches: kqueue
Diff to: previous 1.9.2.5: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.5: +22 -8 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.7.2.7: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:19:20 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.7.2.6: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.6: +20 -6 lines
Catch up to -current.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Sep 6 13:18:43 2002 UTC (24 years, 2 months ago) by gehenna
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +22 -8 lines
Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.9.2.5: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:43:46 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.9.2.4: preferred, colored
Changes since revision 1.9.2.4: +7 -8 lines
sync kqueue branch with HEAD

Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:22:19 2002 UTC (24 years, 2 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.1: +7 -8 lines
catch up with -current.

Revision 1.7.2.6: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:44:33 2002 UTC (24 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.7.2.5: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.5: +7 -8 lines
Catch up to -current.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Jul 21 15:32:18 2002 UTC (24 years, 4 months ago) by hannken
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -2 lines
Rename bufq_init() to bufq_alloc().
Add bufq_free() to remove a buffer queue.
Avoid MALLOC while holding a spinlock.

From Chuck Silvers.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Jul 20 11:28:07 2002 UTC (24 years, 4 months ago) by hannken
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -8 lines
Convert to new device buffer queue interface.

Revision 1.9.2.4: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:45:00 2002 UTC (24 years, 4 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.9.2.3: preferred, colored
Changes since revision 1.9.2.3: +9 -7 lines
catch up with -current on kqueue branch

Revision 1.7.2.5: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:43:24 2002 UTC (24 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.7.2.4: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.4: +9 -7 lines
Catch up to -current.

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Thu May 16 04:53:05 2002 UTC (24 years, 6 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +22 -8 lines
Add the block/character device switches.
Replace the direct-access to devsw table with calling devsw API.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed May 8 15:49:07 2002 UTC (24 years, 6 months ago) by drochner
Branches: MAIN
CVS tags: 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
Branch point for: gehenna-devsw
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +9 -7 lines
Since the minor numbers belonging to the partitions of a disk are not
contigous anymore, we can't call vdevgone() for the whole range at once.
(we should probably change the vdevgone() interface)
This also fixes some wrong use of DISKUNIT().

Revision 1.9.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:52:47 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.9.2.2: preferred, colored
Changes since revision 1.9.2.2: +4 -1 lines
Sync kqueue branch with -current.

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

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Nov 13 05:32:50 2001 UTC (25 years ago) by lukem
Branches: MAIN
CVS tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -1 lines
add RCSIDs

Revision 1.11.6.2: download - view: text, markup, annotated - select for diffs
Thu Oct 25 17:53:41 2001 UTC (25 years ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003
Diff to: previous 1.11.6.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.6.1: +736 -0 lines
Pull up revisions 1.1-1.11 (requested by ad):
  Add Mylex DACC960, CAC-EISA, and I2O block/SCSI drivers.

Revision 1.11.2.3: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:44:11 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.11.2.2: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.2: +2 -2 lines
Catch up with -current.

Revision 1.11.2.2: download - view: text, markup, annotated - select for diffs
Wed Sep 26 15:28:09 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.11.2.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.1: +27 -12 lines
* add a VCLONED vnode flag that indicates a vnode representing a cloned
  device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
  to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
  clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
  to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
  clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
  to the specinfo of a cloned vnode. could possibly redirect getattr to
  the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
  original device, and reassociates it with the specified dev_t. to be
  used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
  to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
  when debugging race conditions that still exist wrt. locking and
  revoking vnodes.
* make the locking state of a vnode consistent when passed to
  d_open and d_close (unlocked). locked would be better, but has
  some deadlock issues

Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Fri Sep 21 22:35:27 2001 UTC (25 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.7.2.2: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.2: +2 -2 lines
Catch up to -current.

Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 13 01:15:34 2001 UTC (25 years, 2 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.9.2.1: preferred, colored
Changes since revision 1.9.2.1: +2 -2 lines
Update the kqueue branch to HEAD.

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 7 04:45:23 2001 UTC (25 years, 2 months ago) by thorpej
Branches: thorpej-devvp
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +51 -39 lines
Commit my "devvp" changes to the thorpej-devvp branch.  This
replaces the use of dev_t in most places with a struct vnode *.

This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).

Revision 1.11.6.1
Thu Sep 6 00:47:56 2001 UTC (25 years, 2 months ago) by he
Branches: netbsd-1-5
FILE REMOVED
Changes since revision 1.11: +0 -736 lines
file ld.c was added on branch netbsd-1-5 on 2001-10-25 17:53:41 +0000

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Sep 6 00:47:56 2001 UTC (25 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp, netbsd-1-5
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
Don't compare bp->b_dev against RAW_PART; use the `part' local variable
instead.

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:09:03 2001 UTC (25 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.1: +3 -3 lines
Catch up with -current.

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

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Jul 24 21:55:35 2001 UTC (25 years, 3 months ago) by ad
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
Pasto; found by tls.

Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:01:15 2001 UTC (25 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +23 -1 lines
Catch up to -current.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jun 10 10:48:42 2001 UTC (25 years, 5 months ago) by ad
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +17 -1 lines
Centralise the geometry fudge.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Apr 30 02:46:06 2001 UTC (25 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +7 -1 lines
minor lint

Revision 1.2.2.5: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:15:15 2001 UTC (25 years, 9 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.2.4: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.4: +49 -19 lines
Sync with HEAD.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Feb 4 17:15:37 2001 UTC (25 years, 9 months ago) by ad
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +49 -19 lines
Allow for draining/adjusting the queue.

Revision 1.2.2.4: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:15 2001 UTC (25 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.2.3: preferred, colored
Changes since revision 1.2.2.3: +41 -3 lines
Sync with head (for UBC+NFS fixes, mostly).

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Jan 8 06:57:21 2001 UTC (25 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -2 lines
"lp" must be defined reagardless from __HAVE_OLD_DISKLABEL

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Jan 8 02:03:46 2001 UTC (25 years, 10 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
Return error in the case of using ODIOCGDINFO or ODIOCGDEFLABEL when
the number of partitions is > OLDMAXPARTITIONS. This is better
than silently truncating the label (don't want to silently throw
away partitions when using an old disklabel binary on a label with
> 8 partitions). From Enami Tsugutomo.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jan 7 18:09:01 2001 UTC (25 years, 10 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +40 -3 lines
Adapt all disk devices in MI directories to handle ODIOC* calls
for ports that have bumped MAXPARTITIONS (and thus define
__HAVE_OLD_DISKLABEL).

Revision 1.2.2.3: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:35:31 2001 UTC (25 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.2.2: preferred, colored
Changes since revision 1.2.2.2: +26 -12 lines
Sync with HEAD

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Jan 3 21:01:28 2001 UTC (25 years, 10 months ago) by ad
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +26 -12 lines
Make dumps work, and put the first part of detach into ld.c.

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Fri Dec 8 09:12:15 2000 UTC (25 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.2.2.1: preferred, colored
Changes since revision 1.2.2.1: +632 -0 lines
Sync with HEAD.

Revision 1.2.2.1
Sun Dec 3 13:03:30 2000 UTC (25 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
FILE REMOVED
Changes since revision 1.2: +0 -632 lines
file ld.c was added on branch thorpej_scsipi on 2000-12-08 09:12:15 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 13:03:30 2000 UTC (25 years, 11 months ago) by ad
Branches: MAIN
Branch point for: thorpej_scsipi
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +61 -2 lines
Make it possible to detach ld devices.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Nov 26 17:44:04 2000 UTC (25 years, 11 months ago) by ad
Branches: MAIN
lsu -> ld, by popular request.

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>