The NetBSD Project

CVS log for src/sys/dev/ic/tpm.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue May 14 13:41:15 2024 UTC (2 years, 6 months ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, 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, HEAD
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +22 -21 lines
tpm(4): device_printf needs \n.

Observed in PR 58255.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Jul 4 01:02:26 2023 UTC (3 years, 4 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +7 -5 lines
tpm(4): Switch tsleep to kpause.

Nothing is interrupt-driven here, so no need for condvars to allow
more prompt wakeups.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Sep 25 18:43:32 2022 UTC (4 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -3 lines
Remove unnecessary include of <sys/malloc.h>.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Sep 7 00:34:19 2022 UTC (4 years, 2 months ago) by khorben
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -3 lines
tpm(4): add missing newline character in device_printf()

Observed with on a Sun Ultra 24, NetBSD/amd64:

tpm0 at acpi0 (TPM, IFX0102-1): io 0x4e-0x4f,0x4700-0x470b mem 0xfed40000-0xfed44fff
tpm0: device 0x000b15d1 rev 0x10
tpm0: read 8 bytes, expected 10tpm0: deactivating entropy source

Revision 1.13.2.3: download - view: text, markup, annotated - select for diffs
Mon Aug 29 15:48:31 2022 UTC (4 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE, netbsd-9-4-RELEASE
Diff to: previous 1.13.2.2: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.2: +2 -5 lines
Pull up following revision(s) (requested by riastradh in ticket #1505):

	sys/dev/isa/tpm_isa.c: revision 1.8
	sys/dev/ic/tpm.c: revision 1.20

Add missing printing-of-newlines in the attach routine.

Remove extra newline from boot messages (isa and acpi front-ends
already provide the newline).

Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 3 16:00:47 2022 UTC (4 years, 3 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-3-RELEASE
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.1: +571 -44 lines
Pull up following revision(s) (requested by riastradh in ticket #1495):

	share/man/man4/tpm.4: revision 1.7
	sys/dev/ic/tpm.c: revision 1.17
	sys/dev/ic/tpmvar.h: revision 1.10
	sys/dev/ic/tpm.c: revision 1.18
	sys/dev/ic/tpm.c: revision 1.19
	sys/dev/acpi/tpm_acpi.c: revision 1.14
	sys/dev/ic/tpmreg.h: revision 1.10
	sys/dev/ic/tpmreg.h: revision 1.11
	sys/dev/ic/tpm.c: revision 1.21
	sys/dev/ic/tpm.c: revision 1.22
	sys/dev/ic/tpm.c: revision 1.23
	sys/dev/ic/tpm.c: revision 1.24
	sys/dev/ic/tpm.c: revision 1.25
	sys/dev/ic/tpmreg.h: revision 1.7
	sys/dev/ic/tpmreg.h: revision 1.8
	sys/dev/ic/tpmreg.h: revision 1.9
	sys/dev/ic/tpmvar.h: revision 1.8
	sys/dev/ic/tpmvar.h: revision 1.9

dev/ic/tpm: Tidy up headers.
- Add include guards.
- Add necessary includes.
- Sort includes.
- Use _BYTE_ORDER, not BYTE_ORDER, for public header.

dev/ic/tpm: Add missing line break in attach output.

dev/ic/tpm: Take advantage of entropy source if available.

If the tpm is deactivated, though, detach the entropy source so we
don't continue to try polling it -- it can't be activated without a
reboot anyway.

Add note about enabling TPM and rnd(4) source.

tpm(4): Handle TPM 2.0 random source too, and loop on short reads.
Tested on ThinkPad T480.

tpm(4): Preserve error if any on ending commands.
This way we don't spuriously suppress an error, such as
TPM_DEACTIVATED, in a loop where we rely on it.

tpm@acpi: Require only one locality's worth of register space.
We don't actually use the registers for the other localities, and
some older TPMs only have the first locality exposed via ACPI.


tpm(4): Fix disabling of rnd source if tpm is deactivated.

Nothing prevents a second worker from being queued when the first one
is about to do rnd_detach_source.  Instead, just set a flag so future
requests don't bother running a new thread; if there's a concurrent
one that's already been scheduled on another CPU, well, too bad, we
get a couple extra log messages but that's fine.

A better way to do this would probably be to detect whether the tpm
is deactivated at attach time, but that requires reading more of the
tpm spec than I care to do when there are alternative ways to
procrastinate like scrubbing the toilet.


tpm(4): Fix suspend and rework I/O transaction lock.

Use sc->sc_lock over individual I/O transactions, not open/close of
the whole device.  This way there is a bounded time before the tpm is
unbusied even if userland is getting at it, so userland can't hold up
suspend indefinitely.  Of course, the tpm might be suspended and
resumed in the middle of the user's session this way -- tough.

This limits the response buffer to 1024 bytes -- which is already a
bit hefty to have on the stack (but it's probably not very deep on
the stack from userland so maybe not a big deal).  If it turns out we
need more, we can use kmem to allocate a buffer on the heap, with the
caveat that it might fail.  This is necessary so that suspend doesn't
block indefinitely on uiomove in tpmread.


tpm(4): Nix TPM_BE16/TPM_BE32.  Just use sys/endian.h.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Jan 29 12:27:30 2022 UTC (4 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +15 -15 lines
tpm(4): Nix TPM_BE16/TPM_BE32.  Just use sys/endian.h.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Jan 16 20:24:34 2022 UTC (4 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +214 -49 lines
tpm(4): Fix suspend and rework I/O transaction lock.

Use sc->sc_lock over individual I/O transactions, not open/close of
the whole device.  This way there is a bounded time before the tpm is
unbusied even if userland is getting at it, so userland can't hold up
suspend indefinitely.  Of course, the tpm might be suspended and
resumed in the middle of the user's session this way -- tough.

This limits the response buffer to 1024 bytes -- which is already a
bit hefty to have on the stack (but it's probably not very deep on
the stack from userland so maybe not a big deal).  If it turns out we
need more, we can use kmem to allocate a buffer on the heap, with the
caveat that it might fail.  This is necessary so that suspend doesn't
block indefinitely on uiomove in tpmread.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Dec 20 23:05:55 2021 UTC (4 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -3 lines
tpm(4): Fix disabling of rnd source if tpm is deactivated.

Nothing prevents a second worker from being queued when the first one
is about to do rnd_detach_source.  Instead, just set a flag so future
requests don't bother running a new thread; if there's a concurrent
one that's already been scheduled on another CPU, well, too bad, we
get a couple extra log messages but that's fine.

A better way to do this would probably be to detect whether the tpm
is deactivated at attach time, but that requires reading more of the
tpm spec than I care to do when there are alternative ways to
procrastinate like scrubbing the toilet.

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

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 6 20:30:51 2021 UTC (5 years, 5 months ago) by cjep
Branches: cjep_sun2x
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +4 -4 lines
sync with head

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Jun 2 21:35:17 2021 UTC (5 years, 5 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4 lines
tpm(4): Preserve error if any on ending commands.

This way we don't spuriously suppress an error, such as
TPM_DEACTIVATED, in a loop where we rely on it.

Revision 1.19.6.1: download - view: text, markup, annotated - select for diffs
Mon May 31 22:15:18 2021 UTC (5 years, 5 months ago) by cjep
Branches: cjep_staticlib_x
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +203 -35 lines
sync with head

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat May 29 08:45:29 2021 UTC (5 years, 5 months ago) by riastradh
Branches: MAIN
CVS tags: cjep_sun2x-base, cjep_staticlib_x-base1
Branch point for: cjep_sun2x
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +203 -32 lines
tpm(4): Handle TPM 2.0 random source too, and loop on short reads.

Tested on ThinkPad T480.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat May 22 01:24:27 2021 UTC (5 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -5 lines
Remove extra newline from boot messages (isa and acpi front-ends
already provide the newline).

Revision 1.16.8.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:45 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +196 -7 lines
Sync with HEAD.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jan 4 18:26:59 2021 UTC (5 years, 10 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs, cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +186 -2 lines
dev/ic/tpm: Take advantage of entropy source if available.

If the tpm is deactivated, though, detach the entropy source so we
don't continue to try polling it -- it can't be activated without a
reboot anyway.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Jan 4 18:26:08 2021 UTC (5 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +5 -2 lines
dev/ic/tpm: Add missing line break in attach output.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Jan 4 18:22:19 2021 UTC (5 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +9 -7 lines
dev/ic/tpm: Tidy up headers.

- Add include guards.
- Add necessary includes.
- Sort includes.
- Use _BYTE_ORDER, not BYTE_ORDER, for public header.

Revision 1.12.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:22 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +364 -865 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 16 09:52:38 2019 UTC (7 years, 1 month ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +198 -354 lines
Pull up following revision(s) (requested by maxv in ticket #336):

	sys/dev/isa/tpm_isa.c: revision 1.6
	sys/dev/ic/tpm.c: revision 1.16
	sys/dev/isa/tpm_isa.c: revision 1.7
	sys/dev/acpi/tpm_acpi.c: revision 1.10
	sys/dev/acpi/tpm_acpi.c: revision 1.11
	sys/dev/ic/tpmreg.h: revision 1.5
	sys/dev/ic/tpmreg.h: revision 1.6
	sys/dev/acpi/tpm_acpi.c: revision 1.9
	sys/dev/ic/tpmvar.h: revision 1.5
	sys/dev/ic/tpmvar.h: revision 1.6
	sys/dev/ic/tpmvar.h: revision 1.7
	sys/dev/ic/tpm.c: revision 1.14
	share/man/man4/tpm.4: revision 1.5
	sys/dev/isa/tpm_isa.c: revision 1.5
	sys/dev/ic/tpm.c: revision 1.15

Improvements in tpm(4):
  - Remove interrupt support, do polling only, avoids unnecessary trouble.
  - Simplify a few things.
  - Fix the suspend function, the SaveState command is 0x98, not 0x9C.
  - Make the driver MP-safe.
  - Sync the man page with reality.

 -

Add suspend support for TPM 2.0 chips. Check the TPM response also for 1.2
chips. Unfortunately I cannot really test this change since ACPI suspend
does not work on any of my laptops.

 -

Provide a better abstraction for the TPM interface. Report it in the ioctl.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Oct 9 14:03:58 2019 UTC (7 years, 1 month ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +81 -73 lines
Provide a better abstraction for the TPM interface. Report it in the ioctl.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Oct 9 07:30:58 2019 UTC (7 years, 1 month ago) by maxv
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +61 -21 lines
Add suspend support for TPM 2.0 chips. Check the TPM response also for 1.2
chips. Unfortunately I cannot really test this change since ACPI suspend
does not work on any of my laptops.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Oct 8 18:43:02 2019 UTC (7 years, 1 month ago) by maxv
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +73 -277 lines
Improvements in tpm(4):
 - Remove interrupt support, do polling only, avoids unnecessary trouble.
 - Simplify a few things.
 - Fix the suspend function, the SaveState command is 0x98, not 0x9C.
 - Make the driver MP-safe.
 - Sync the man page with reality.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Jun 22 12:57:41 2019 UTC (7 years, 4 months ago) by maxv
Branches: MAIN
CVS tags: netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +363 -708 lines
Revamp the TPM driver

 * Fix several bugs, and clean up.
 * Drop the "legacy" interface, it relied on an undocumented global
   variable that was never initialized. It likely had never been tested
   either, so good riddance.
 * Add support for TPM 2.0 chips via ACPI. For these we use the TIS1.2
   interface, same as TPM 1.2.
 * Provide an ioctl to fetch TPM information from the driver.

Tested on a Lenovo desktop with ACPI-TPM2.0, an HP laptop ACPI-TPM2.0, a
Dell laptop with ISA-TPM1.2.

Revision 1.7.10.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:04 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.7.10.1: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.10.1: +2 -1 lines
update from HEAD

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Oct 28 04:53:55 2017 UTC (9 years ago) by riastradh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, jdolecek-ncqfixes-base, jdolecek-ncqfixes, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -3 lines
Kill some more extern struct cfdriver declarations.

Down with externs in .c!

Revision 1.7.10.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:38 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +14 -15 lines
Rebase to HEAD as of a few days ago.

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

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:37 2014 UTC (12 years, 3 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +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.7.6.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:22 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.7.6.2: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.6.2: +13 -15 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.7.14.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:38 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +13 -15 lines
sync with head

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:27 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.9: preferred, colored
Changes since revision 1.9: +13 -4 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.9: download - view: text, markup, annotated - select for diffs
Thu Oct 17 21:24:24 2013 UTC (13 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -5 lines
- remove unused variables
- move variables inside ifdef sections
- ifdef notdef unused code
- use __USE for debugging variables

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Sep 14 13:09:55 2013 UTC (13 years, 2 months ago) by joerg
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -10 lines
GC unused functions and variables.

Revision 1.7.6.2: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:37 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.7.6.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.1: +1157 -0 lines
sync with head

Revision 1.7.4.2: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:34:24 2012 UTC (14 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.7.4.1: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.4.1: +1157 -0 lines
merge to -current.

Revision 1.7.6.1
Mon Feb 6 02:03:32 2012 UTC (14 years, 9 months ago) by yamt
Branches: yamt-pagecache
FILE REMOVED
Changes since revision 1.7: +0 -1157 lines
file tpm.c was added on branch yamt-pagecache on 2012-04-17 00:07:37 +0000

Revision 1.7.4.1
Mon Feb 6 02:03:32 2012 UTC (14 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
FILE REMOVED
Changes since revision 1.7: +0 -1157 lines
file tpm.c was added on branch jmcneill-usbmp on 2012-02-18 07:34:24 +0000

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Feb 6 02:03:32 2012 UTC (14 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-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, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet, jmcneill-usbmp
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -4 lines
PR/45932: Pierre Pronchery: Fix the return values of the suspend and resume
functions.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Feb 3 15:42:46 2012 UTC (14 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
shutup debug.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Feb 3 04:03:11 2012 UTC (14 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -4 lines
don't try to write in a const buffer.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Jan 23 04:12:26 2012 UTC (14 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +23 -7 lines
reduce the polling interval to 2 seconds, and try harder to get interrupts
working.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Jan 22 20:41:25 2012 UTC (14 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +92 -88 lines
cosmetic fixes

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jan 22 16:35:39 2012 UTC (14 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -3 lines
as jared noted, this is not mpsafe.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Jan 22 06:44:28 2012 UTC (14 years, 9 months ago) by christos
Branches: MAIN
add a tpm driver from bsssd.sourceforge.net

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>