H-sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextEnglish}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget/security/tpm/tpm_tismodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget(/translations/zh_TW/security/tpm/tpm_tismodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget(/translations/it_IT/security/tpm/tpm_tismodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget(/translations/ja_JP/security/tpm/tpm_tismodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget(/translations/ko_KR/security/tpm/tpm_tismodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget(/translations/sp_SP/security/tpm/tpm_tismodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageChinese (Simplified)uh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhhU/var/lib/git/docbuild/linux/Documentation/translations/zh_CN/security/tpm/tpm_tis.rsthKubhnote)}(hX{此文件的目的是为让中文读者更容易阅读和理解,而不是作为一个分支。 因此, 如果您对此文件有任何意见或更新,请先尝试更新原始英文文件。 如果您发现本文档与原始文件有任何不同或者有翻译问题,请发建议或者补丁给 该文件的译者,或者请求中文文档维护者和审阅者的帮助。h]h paragraph)}(hX{此文件的目的是为让中文读者更容易阅读和理解,而不是作为一个分支。 因此, 如果您对此文件有任何意见或更新,请先尝试更新原始英文文件。 如果您发现本文档与原始文件有任何不同或者有翻译问题,请发建议或者补丁给 该文件的译者,或者请求中文文档维护者和审阅者的帮助。h]hX{此文件的目的是为让中文读者更容易阅读和理解,而不是作为一个分支。 因此, 如果您对此文件有任何意见或更新,请先尝试更新原始英文文件。 如果您发现本文档与原始文件有任何不同或者有翻译问题,请发建议或者补丁给 该文件的译者,或者请求中文文档维护者和审阅者的帮助。}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh5Documentation/translations/zh_CN/disclaimer-zh_CN.rsthKhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh field_list)}(hhh](hfield)}(hhh](h field_name)}(hOriginalh]hOriginal}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhKubh field_body)}(h'Documentation/security/tpm/tpm_tis.rst h]h)}(h&Documentation/security/tpm/tpm_tis.rsth]h&Documentation/security/tpm/tpm_tis.rst}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(h翻译h]h翻译}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhKubh)}(h.赵硕 Shuo Zhao h]h)}(h-赵硕 Shuo Zhao h](h赵硕 Shuo Zhao <}(hj hhhNhNubh reference)}(hzhaoshuo@cqsoftware.com.cnh]hzhaoshuo@cqsoftware.com.cn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]refuri!mailto:zhaoshuo@cqsoftware.com.cnuh1j(hj ubh>}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubeh}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhsection)}(hhh](htitle)}(hTPM FIFO接口驱动h]hTPM FIFO接口驱动}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j[hjXhhhhhK ubh)}(hTCG PTP规范定义了两种接口类型:FIFO和CRB。前者基于顺序的读写操作, 后者基于包含完整命令或响应的缓冲区。h]hTCG PTP规范定义了两种接口类型:FIFO和CRB。前者基于顺序的读写操作, 后者基于包含完整命令或响应的缓冲区。}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjXhhubh)}(hFIFO(先进先出)接口被tpm_tis_core依赖的驱动程序使用。最初,Linux只 有一个名为tpm_tis的驱动,覆盖了内存映射(即 MMIO)接口,但后来它被 扩展以支持TCG标准所支持的其他物理接口。h]hFIFO(先进先出)接口被tpm_tis_core依赖的驱动程序使用。最初,Linux只 有一个名为tpm_tis的驱动,覆盖了内存映射(即 MMIO)接口,但后来它被 扩展以支持TCG标准所支持的其他物理接口。}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjXhhubh)}(h由于历史原因,最初的MMIO驱动被称为tpm_tis,而FIFO驱动的框架被命名为 tpm_tis_core。在tpm_tis中的“tis”后缀来自TPM接口规范,这是针对TPM1.x 芯片的硬件接口规范。h]h由于历史原因,最初的MMIO驱动被称为tpm_tis,而FIFO驱动的框架被命名为 tpm_tis_core。在tpm_tis中的“tis”后缀来自TPM接口规范,这是针对TPM1.x 芯片的硬件接口规范。}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjXhhubh)}(hX'通信基于一个由TPM芯片通过硬件总线或内存映射共享的20KiB 缓冲区,具体 取决于物理接线。该缓冲区进一步分为五个相等大小的4KiB缓冲区,为CPU和 TPM之间的通信提供等效的寄存器集。这些通信端点在TCG术语中称为localities。h]hX'通信基于一个由TPM芯片通过硬件总线或内存映射共享的20KiB 缓冲区,具体 取决于物理接线。该缓冲区进一步分为五个相等大小的4KiB缓冲区,为CPU和 TPM之间的通信提供等效的寄存器集。这些通信端点在TCG术语中称为localities。}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjXhhubh)}(hX当内核想要向TPM芯片发送命令时,它首先通过在TPM_ACCESS寄存器中设置 requestUse位来保留locality0。当访问被授予时,该位由芯片清除。一旦完成 通信,内核会写入TPM_ACCESS.activeLocality位。这告诉芯片该本地性已被 释放。h]hX当内核想要向TPM芯片发送命令时,它首先通过在TPM_ACCESS寄存器中设置 requestUse位来保留locality0。当访问被授予时,该位由芯片清除。一旦完成 通信,内核会写入TPM_ACCESS.activeLocality位。这告诉芯片该本地性已被 释放。}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjXhhubh)}(hN待处理的本地性由芯片按优先级降序逐个服务,一次一个:h]hN待处理的本地性由芯片按优先级降序逐个服务,一次一个:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjXhhubh bullet_list)}(hhh](h list_item)}(hLocality0优先级最低。h]h)}(hjh]hLocality0优先级最低。}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK"hjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hLocality5优先级最高。 h]h)}(hLocality5优先级最高。h]hLocality5优先级最高。}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]bullet-uh1jhhhK"hjXhhubh)}(hn关于localities的更多信息和含义,请参阅TCG PC客户端平台TPM 配置文件规范的第3.2节。h]hn关于localities的更多信息和含义,请参阅TCG PC客户端平台TPM 配置文件规范的第3.2节。}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjXhhubeh}(h]tpm-fifoah ]h"]tpm fifo接口驱动ah$]h&]uh1jVhhhhhhhK ubjW)}(hhh](j\)}(h 参考文献h]h 参考文献}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j[hjhhhhhK(ubh)}(hTCG PC客户端平台TPM配置文件(PTP)规范 https://trustedcomputinggroup.org/resource/pc-client-platform-tpm-profile-ptp-specification/h](h4TCG PC客户端平台TPM配置文件(PTP)规范 }(hj$hhhNhNubj))}(h\https://trustedcomputinggroup.org/resource/pc-client-platform-tpm-profile-ptp-specification/h]h\https://trustedcomputinggroup.org/resource/pc-client-platform-tpm-profile-ptp-specification/}(hj,hhhNhNubah}(h]h ]h"]h$]h&]refurij.uh1j(hj$ubeh}(h]h ]h"]h$]h&]uh1hhhhK*hjhhubeh}(h]id1ah ]h"] 参考文献ah$]h&]uh1jVhhhhhhhK(ubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(j[N generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjlerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jj jFjCu nametypes}(jjFuh}(j jXjCju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jzKsRparse_messages]transform_messages] transformerN include_log]9Documentation/translations/zh_CN/security/tpm/tpm_tis.rst(NNNNta decorationNhhub.