Documentation: tpm_tis
Subsystems (3)
Jarkko Sakkinen
maintainerPATCH 1/1 Documentation: tpm_tis
Based recent discussions on LKML, provide preliminary bits of tpm_tis_core dependent drivers. Includes only bare essentials but can be extended later on case by case. This way some people may even want to read it later on.
--- Documentation/security/tpm/index.rst | 1 + Documentation/security/tpm/tpm_tis.rst | 30 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 Documentation/security/tpm/tpm_tis.rst
Documentation/security/tpm/index.rst +1 -0
@@ -5,6 +5,7 @@ Trusted Platform Module documentation .. toctree:: tpm_event_log + tpm_tis tpm_vtpm_proxy xen-tpmfront tpm_ftpm_tee
Documentation/security/tpm/tpm_tis.rst new file +30 -0
@@ -0,0 +1,30 @@ +.. SPDX-License-Identifier: GPL-2.0 + +========================= +TPM FIFO interface Driver +========================= + +FIFO (First-In-First-Out) is the name of the hardware interface used by the +`tpm_tis_core` dependent drivers. The prefix "tis" is named after TPM +Interface Specification, which is the hardware interface specification for +TPM 1.x chips. + +Communication is based on a 5 KiB buffer shared by the TPM chip through a +hardware bus or memory map. The buffer is further split to five equal size +buffers, which provide equivalent sets of registers for communication +between CPU and TPM. The communication end points are called *localities* +in the TCG terminology. + +When a kernel wants to send a commands to the TPM chip, it first reserves +locality 0 by setting `requestUse` bit in `TPM_ACCESS` register. The bit is +cleared by the chip when the access is granted. Once completed its +communication, it sets `activeLocity` bit in the same register. + +Pending localities are served in order by the chip descending orderm and +one at a time: + +- Locality 0 has the lowest priority. +- Locality 5 has the highest priotiy. + +Further information on purpose and meaning of the localities can be found +from section 3.2 of TCG PC Client Platform TPM Profile Specification.
Signature · 1 line
2.40.1
Jarkko Sakkinen
maintainerSome remarks below that I noticed after sending this.
Quoted 1 line · Jarkko Sakkinen
Based recent discussions on LKML, provide preliminary bits of
tpm_tis_core
s/Based/ Based on/
Quoted 42 lines
dependent drivers. Includes only bare essentials but can be extended later on case by case. This way some people may even want to read it later on.
Cc Jonathan Corbet <[email protected]>CC Daniel P. Smith <[email protected]>Cc Lino Sanfilippo <[email protected]>Cc Jason Gunthorpe <[email protected]>Cc Peter Huewe <[email protected]>Cc James Bottomley <[email protected]>Cc Alexander Steffen <[email protected]>Signed-off-by Jarkko Sakkinen <[email protected]>--- Documentation/security/tpm/index.rst | 1 + Documentation/security/tpm/tpm_tis.rst | 30 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 Documentation/security/tpm/tpm_tis.rstDocumentation/security/tpm/index.rst +1
-0@@ -5,6 +5,7 @@ Trusted Platform Module documentation .. toctree:: tpm_event_log + tpm_tis tpm_vtpm_proxy xen-tpmfront tpm_ftpm_teeDocumentation/security/tpm/tpm_tis.rst new file +3
-0@@ -0,0 +1,30 @@ +.. SPDX-License-Identifier: GPL-2.0 + +=========================
Documentation/security/tpm/tpm_tis.rst line 13
Quoted 10 lines
Documentation/security/tpm/tpm_tis.rst new file +10
-0+TPM FIFO interface Driver +========================= + +FIFO (First-In-First-Out) is the name of the hardware interface used by the +`tpm_tis_core` dependent drivers. The prefix "tis" is named after TPM +Interface Specification, which is the hardware interface specification for +TPM 1.x chips. + +Communication is based on a 5 KiB buffer shared by the TPM chip through a +hardware bus or memory map. The buffer is further split to five equal size
s/to/into/
Documentation/security/tpm/tpm_tis.rst line 18
Quoted 5 lines
Documentation/security/tpm/tpm_tis.rst new file +5
-0+buffers, which provide equivalent sets of registers for communication +between CPU and TPM. The communication end points are called *localities* +in the TCG terminology. + +When a kernel wants to send a commands to the TPM chip, it first reserves
s/a kernel/kernel/
s/a commands/commands/
Documentation/security/tpm/tpm_tis.rst line 21
Quoted 3 lines
Documentation/security/tpm/tpm_tis.rst new file +3
-0+locality 0 by setting `requestUse` bit in `TPM_ACCESS` register. The bit is +cleared by the chip when the access is granted. Once completed its +communication, it sets `activeLocity` bit in the same register.
s/it sets/kernel relinquishes reservation by setting/
Documentation/security/tpm/tpm_tis.rst line 24
Quoted 3 lines
Documentation/security/tpm/tpm_tis.rst new file +3
-0+ +Pending localities are served in order by the chip descending orderm and +one at a time:
"Pending localities are served in descending order and one at a time:"
Documentation/security/tpm/tpm_tis.rst line 30
Quoted 6 lines
Documentation/security/tpm/tpm_tis.rst new file +6
-0+ +- Locality 0 has the lowest priority. +- Locality 5 has the highest priotiy. + +Further information on purpose and meaning of the localities can be found +from section 3.2 of TCG PC Client Platform TPM Profile Specification.
s/on purpose/on the purpose/
BR, Jarkko
Randy Dunlap
reviewerQuoted 40 lines · Jarkko Sakkinen
Based recent discussions on LKML, provide preliminary bits of
tpm_tis_coredependent drivers. Includes only bare essentials but can be extended later on case by case. This way some people may even want to read it later on.Cc Jonathan Corbet <[email protected]>CC Daniel P. Smith <[email protected]>Cc Lino Sanfilippo <[email protected]>Cc Jason Gunthorpe <[email protected]>Cc Peter Huewe <[email protected]>Cc James Bottomley <[email protected]>Cc Alexander Steffen <[email protected]>Signed-off-by Jarkko Sakkinen <[email protected]>--- Documentation/security/tpm/index.rst | 1 + Documentation/security/tpm/tpm_tis.rst | 30 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 Documentation/security/tpm/tpm_tis.rstDocumentation/security/tpm/tpm_tis.rst new file +11
-0@@ -0,0 +1,30 @@ +.. SPDX-License-Identifier: GPL-2.0 + +========================= +TPM FIFO interface Driver +========================= + +FIFO (First-In-First-Out) is the name of the hardware interface used by the +`tpm_tis_core` dependent drivers. The prefix "tis" is named after TPM +Interface Specification, which is the hardware interface specification for +TPM 1.x chips. +
Documentation/security/tpm/tpm_tis.rst line 21
Quoted 10 lines
Documentation/security/tpm/tpm_tis.rst new file +10
-0+Communication is based on a 5 KiB buffer shared by the TPM chip through a +hardware bus or memory map. The buffer is further split to five equal size +buffers, which provide equivalent sets of registers for communication +between CPU and TPM. The communication end points are called *localities* +in the TCG terminology. + +When a kernel wants to send a commands to the TPM chip, it first reserves +locality 0 by setting `requestUse` bit in `TPM_ACCESS` register. The bit is +cleared by the chip when the access is granted. Once completed its +communication, it sets `activeLocity` bit in the same register.
Is that activeLocality ?
Documentation/security/tpm/tpm_tis.rst line 27
Quoted 6 lines
Documentation/security/tpm/tpm_tis.rst new file +6
-0+ +Pending localities are served in order by the chip descending orderm and +one at a time: + +- Locality 0 has the lowest priority. +- Locality 5 has the highest priotiy.
priority.
Quoted 3 lines
Documentation/security/tpm/tpm_tis.rst new file +3
-0+ +Further information on purpose and meaning of the localities can be found +from section 3.2 of TCG PC Client Platform TPM Profile Specification.
Signature · 1 line
#Randy
Jarkko Sakkinen
maintainerQuoted 47 lines · Randy Dunlap
Quoted 44 lines · Jarkko Sakkinen
Based recent discussions on LKML, provide preliminary bits of
tpm_tis_coredependent drivers. Includes only bare essentials but can be extended later on case by case. This way some people may even want to read it later on.Cc Jonathan Corbet <[email protected]>CC Daniel P. Smith <[email protected]>Cc Lino Sanfilippo <[email protected]>Cc Jason Gunthorpe <[email protected]>Cc Peter Huewe <[email protected]>Cc James Bottomley <[email protected]>Cc Alexander Steffen <[email protected]>Signed-off-by Jarkko Sakkinen <[email protected]>--- Documentation/security/tpm/index.rst | 1 + Documentation/security/tpm/tpm_tis.rst | 30 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 Documentation/security/tpm/tpm_tis.rstDocumentation/security/tpm/tpm_tis.rst new file +15
-0@@ -0,0 +1,30 @@ +.. SPDX-License-Identifier: GPL-2.0 + +========================= +TPM FIFO interface Driver +========================= + +FIFO (First-In-First-Out) is the name of the hardware interface used by the +`tpm_tis_core` dependent drivers. The prefix "tis" is named after TPM +Interface Specification, which is the hardware interface specification for +TPM 1.x chips. + +Communication is based on a 5 KiB buffer shared by the TPM chip through a +hardware bus or memory map. The buffer is further split to five equal size +buffers, which provide equivalent sets of registers for communication +between CPU and TPM. The communication end points are called *localities*
Quoted 8 lines
Documentation/security/tpm/tpm_tis.rst line 21
Quoted 6 lines
Documentation/security/tpm/tpm_tis.rst new file +6
-0+in the TCG terminology. + +When a kernel wants to send a commands to the TPM chip, it first reserves +locality 0 by setting `requestUse` bit in `TPM_ACCESS` register. The bit is +cleared by the chip when the access is granted. Once completed its +communication, it sets `activeLocity` bit in the same register.Is that activeLocality ?
Yes.
Quoted 10 lines
Documentation/security/tpm/tpm_tis.rst line 27
Quoted 7 lines
Documentation/security/tpm/tpm_tis.rst new file +6
-0+ +Pending localities are served in order by the chip descending orderm and +one at a time: + +- Locality 0 has the lowest priority. +- Locality 5 has the highest priotiy.priority.
Quoted 3 lines
Documentation/security/tpm/tpm_tis.rst line 30
Quoted 3 lines
Documentation/security/tpm/tpm_tis.rst new file +3
-0+ +Further information on purpose and meaning of the localities can be found +from section 3.2 of TCG PC Client Platform TPM Profile Specification.
Thanks for the remarks. Too many typos but at least I think the story is is understandable and describes pretty well key elements of tpm_tis_core.
BR, Jarkko