aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/tpm/tpm_tis.c
Commit message (Collapse)AuthorAgeFilesLines
* tpm: clean up empty lines in .c and .h filesMateusz Guzik2020-09-011-1/+0
| | | | Notes: svn path=/head/; revision=365144
* tpm(4): Fix 'go ready' in TPM 2.0 TIS driverConrad Meyer2020-02-011-2/+1
| | | | | | | | | | | | | | | | | | | | | tpmtis_go_ready() read the value of the TPM_STS register, ORed TPM_STS_CMD_READY with it, and wrote it back. However, the TPM Profile (PTP) specification states that only one bit in the write request value may be set to 1, or else the entire write request is ignored. Fix by just writing TPM_STS_CMD_READY. Similarly, remove the call which clears the TPM_STS_CMD_READY flag in the same function. It was being ignored for the same reason. Submitted by: Darrick Lew <darrick.freebsd AT gmail.com> Reviewed by: vangyzen, myself MFC after: if you care about stable, you might want to do so Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D23081 Notes: svn path=/head/; revision=357386
* Improve tpm20 styleMarcin Wojtas2019-04-161-34/+35
| | | | | | | | | | | No functional changes to the code are applied. Submitted by: Kornel Duleba <mindal@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield Notes: svn path=/head/; revision=346261
* Allow using TPM as entropy source.Marcin Wojtas2019-03-231-1/+1
| | | | | | | | | | | | | | | | | TPM has a built-in RNG, with its own entropy source. The driver was extended to harvest 16 random bytes from TPM every 10 seconds. A new build option "TPM_HARVEST" was introduced - for now, however, it is not enabled by default in the GENERIC config. Submitted by: Kornel Duleba <mindal@semihalf.com> Reviewed by: markm, delphij Approved by: secteam Obtained from: Semihalf Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D19620 Notes: svn path=/head/; revision=345438
* Use ACPI TPM2 table to probe tpmtis and tpmcrb device.Takanori Watanabe2019-01-251-14/+9
| | | | | | | Differential Revision: https://reviews.freebsd.org/D18937 Notes: svn path=/head/; revision=343438
* Fix error check for ACPI_ID_PROBE in the TPM2.0 driverMarcin Wojtas2018-12-141-3/+4
| | | | | | | | | | | | Updated API does not return pointer, so adjust the TPM2.0 driver accordingly. Reported by: jhb Obtained from: Semihalf Sponsored by: Stormshield Notes: svn path=/head/; revision=342104
* Fix TPM driver compilation from r342084Marcin Wojtas2018-12-141-1/+1
| | | | | | | Include recent ACPI_ID_PROBE API change. Notes: svn path=/head/; revision=342085
* Introduce driver for TPM 2.0 in CRB and FIFO (TIS) modesMarcin Wojtas2018-12-141-0/+510
It was written basing on: TCG PC Client Platform TPM Profile (PTP) Specification Version 22, Revision 1.03. It only supports Locality 0. Interrupts are only supported in FIFO mode. The driver in FIFO mode was tested on x86 with Infineon SLB9665 discrete TPM chip. Driver in both modes was also tested on qemu with swtpm running on host. Submitted by: Kornel Duleba <mindal@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D18048 Notes: svn path=/head/; revision=342084