€•‘<Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ0/translations/zh_CN/trace/coresight/ultrasoc-smb”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ0/translations/zh_TW/trace/coresight/ultrasoc-smb”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ0/translations/it_IT/trace/coresight/ultrasoc-smb”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ0/translations/ja_JP/trace/coresight/ultrasoc-smb”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ0/translations/ko_KR/trace/coresight/ultrasoc-smb”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ0/translations/sp_SP/trace/coresight/ultrasoc-smb”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh£sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1h¡hhhžhhŸŒJ/var/lib/git/docbuild/linux/Documentation/trace/coresight/ultrasoc-smb.rst”h KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ%UltraSoc - HW Assisted Tracing on SoC”h]”hŒ%UltraSoc - HW Assisted Tracing on SoC”…””}”(hh»hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hh¶hžhhŸh³h KubhŒ block_quote”“”)”}”(hŒ@:Author: Qi Liu :Date: January 2023 ”h]”hŒ field_list”“”)”}”(hhh]”(hŒfield”“”)”}”(hhh]”(hŒ field_name”“”)”}”(hŒAuthor”h]”hŒAuthor”…””}”(hhÛhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙhhÖhŸh³h KubhŒ field_body”“”)”}”(hŒQi Liu ”h]”hŒ paragraph”“”)”}”(hhíh]”(hŒQi Liu <”…””}”(hhñhžhhŸNh NubhŒ reference”“”)”}”(hŒliuqi115@huawei.com”h]”hŒliuqi115@huawei.com”…””}”(hhúhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:liuqi115@huawei.com”uh1høhhñubhŒ>”…””}”(hhñhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hïhŸh³h Khhëubah}”(h]”h ]”h"]”h$]”h&]”uh1héhhÖubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÔhŸh³h KhhÑubhÕ)”}”(hhh]”(hÚ)”}”(hŒDate”h]”hŒDate”…””}”(hj#hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙhj hŸh³h Kubhê)”}”(hŒ January 2023 ”h]”hð)”}”(hŒ January 2023”h]”hŒ January 2023”…””}”(hj5hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhŸh³h Khj1ubah}”(h]”h ]”h"]”h$]”h&]”uh1héhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÔhŸh³h KhhÑubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÏhhËubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h Khh¶hžhubhµ)”}”(hhh]”(hº)”}”(hŒ Introduction”h]”hŒ Introduction”…””}”(hj^hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hj[hžhhŸh³h K ubhð)”}”(hXUltraSoc SMB is a per SCCL (Super CPU Cluster) hardware. It provides a way to buffer and store CPU trace messages in a region of shared system memory. The device acts as a coresight sink device and the corresponding trace generators (ETM) are attached as source devices.”h]”hXUltraSoc SMB is a per SCCL (Super CPU Cluster) hardware. It provides a way to buffer and store CPU trace messages in a region of shared system memory. The device acts as a coresight sink device and the corresponding trace generators (ETM) are attached as source devices.”…””}”(hjlhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhŸh³h K hj[hžhubeh}”(h]”Œ introduction”ah ]”h"]”Œ introduction”ah$]”h&]”uh1h´hh¶hžhhŸh³h K ubhµ)”}”(hhh]”(hº)”}”(hŒSysfs files and directories”h]”hŒSysfs files and directories”…””}”(hj…hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hj‚hžhhŸh³h Kubhð)”}”(hŒNThe SMB devices appear on the existing coresight bus alongside other devices::”h]”hŒMThe SMB devices appear on the existing coresight bus alongside other devices:”…””}”(hj“hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhŸh³h Khj‚hžhubhŒ literal_block”“”)”}”(hŒS$# ls /sys/bus/coresight/devices/ ultra_smb0 ultra_smb1 ultra_smb2 ultra_smb3”h]”hŒS$# ls /sys/bus/coresight/devices/ ultra_smb0 ultra_smb1 ultra_smb2 ultra_smb3”…””}”hj£sbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1j¡hŸh³h Khj‚hžhubhð)”}”(hŒ=The ``ultra_smb`` names SMB device associated with SCCL.::”h]”(hŒThe ”…””}”(hj±hžhhŸNh NubhŒliteral”“”)”}”(hŒ``ultra_smb``”h]”hŒ ultra_smb”…””}”(hj»hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¹hj±ubhŒ( names SMB device associated with SCCL.:”…””}”(hj±hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hïhŸh³h Khj‚hžhubj¢)”}”(hŒ™$# ls /sys/bus/coresight/devices/ultra_smb0 enable_sink mgmt $# ls /sys/bus/coresight/devices/ultra_smb0/mgmt buf_size buf_status read_pos write_pos”h]”hŒ™$# ls /sys/bus/coresight/devices/ultra_smb0 enable_sink mgmt $# ls /sys/bus/coresight/devices/ultra_smb0/mgmt buf_size buf_status read_pos write_pos”…””}”hjÓsbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1j¡hŸh³h Khj‚hžhubhð)”}”(hŒKey file items are:”h]”hŒKey file items are:”…””}”(hjáhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhŸh³h K!hj‚hžhubhÊ)”}”(hX&* ``read_pos``: Shows the value on the read pointer register. * ``write_pos``: Shows the value on the write pointer register. * ``buf_status``: Shows the value on the status register. BIT(0) is zero value which means the buffer is empty. * ``buf_size``: Shows the buffer size of each device. ”h]”hŒ bullet_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒ;``read_pos``: Shows the value on the read pointer register.”h]”hð)”}”(hjüh]”(jº)”}”(hŒ ``read_pos``”h]”hŒread_pos”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¹hjþubhŒ/: Shows the value on the read pointer register.”…””}”(hjþhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hïhŸh³h K#hjúubah}”(h]”h ]”h"]”h$]”h&]”uh1jøhjõubjù)”}”(hŒ=``write_pos``: Shows the value on the write pointer register.”h]”hð)”}”(hj!h]”(jº)”}”(hŒ ``write_pos``”h]”hŒ write_pos”…””}”(hj&hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¹hj#ubhŒ0: Shows the value on the write pointer register.”…””}”(hj#hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hïhŸh³h K$hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jøhjõubjù)”}”(hŒm``buf_status``: Shows the value on the status register. BIT(0) is zero value which means the buffer is empty.”h]”hð)”}”(hŒm``buf_status``: Shows the value on the status register. BIT(0) is zero value which means the buffer is empty.”h]”(jº)”}”(hŒ``buf_status``”h]”hŒ buf_status”…””}”(hjLhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¹hjHubhŒ_: Shows the value on the status register. BIT(0) is zero value which means the buffer is empty.”…””}”(hjHhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hïhŸh³h K%hjDubah}”(h]”h ]”h"]”h$]”h&]”uh1jøhjõubjù)”}”(hŒ4``buf_size``: Shows the buffer size of each device. ”h]”hð)”}”(hŒ3``buf_size``: Shows the buffer size of each device.”h]”(jº)”}”(hŒ ``buf_size``”h]”hŒbuf_size”…””}”(hjrhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j¹hjnubhŒ': Shows the buffer size of each device.”…””}”(hjnhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hïhŸh³h K'hjjubah}”(h]”h ]”h"]”h$]”h&]”uh1jøhjõubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ*”uh1jóhŸh³h K#hjïubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h K#hj‚hžhubeh}”(h]”Œsysfs-files-and-directories”ah ]”h"]”Œsysfs files and directories”ah$]”h&]”uh1h´hh¶hžhhŸh³h Kubhµ)”}”(hhh]”(hº)”}”(hŒFirmware Bindings”h]”hŒFirmware Bindings”…””}”(hj©hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hj¦hžhhŸh³h K*ubhð)”}”(hŒzThe device is only supported with ACPI. Its binding describes device identifier, resource information and graph structure.”h]”hŒzThe device is only supported with ACPI. Its binding describes device identifier, resource information and graph structure.”…””}”(hj·hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhŸh³h K,hj¦hžhubhð)”}”(hXThe device is identified as ACPI HID "HISI03A1". Device resources are allocated using the _CRS method. Each device must present two base address; the first one is the configuration base address of the device, the second one is the 32-bit base address of shared system memory.”h]”hXThe device is identified as ACPI HID “HISI03A1â€. Device resources are allocated using the _CRS method. Each device must present two base address; the first one is the configuration base address of the device, the second one is the 32-bit base address of shared system memory.”…””}”(hjÅhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhŸh³h K/hj¦hžhubhð)”}”(hŒ Example::”h]”hŒExample:”…””}”(hjÓhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhŸh³h K4hj¦hžhubj¢)”}”(hXjDevice(USMB) { \ Name(_HID, "HISI03A1") \ Name(_CRS, ResourceTemplate() { \ QWordMemory (ResourceConsumer, , MinFixed, MaxFixed, NonCacheable, \ ReadWrite, 0x0, 0x95100000, 0x951FFFFF, 0x0, 0x100000) \ QWordMemory (ResourceConsumer, , MinFixed, MaxFixed, Cacheable, \ ReadWrite, 0x0, 0x50000000, 0x53FFFFFF, 0x0, 0x4000000) \ }) \ Name(_DSD, Package() { \ ToUUID("ab02a46b-74c7-45a2-bd68-f7d344ef2153"), \ /* Use CoreSight Graph ACPI bindings to describe connections topology */ Package() { \ 0, \ 1, \ Package() { \ 1, \ ToUUID("3ecbc8b6-1d0e-4fb3-8107-e627f805c6cd"), \ 8, \ Package() {0x8, 0, \_SB.S00.SL11.CL28.F008, 0}, \ Package() {0x9, 0, \_SB.S00.SL11.CL29.F009, 0}, \ Package() {0xa, 0, \_SB.S00.SL11.CL2A.F010, 0}, \ Package() {0xb, 0, \_SB.S00.SL11.CL2B.F011, 0}, \ Package() {0xc, 0, \_SB.S00.SL11.CL2C.F012, 0}, \ Package() {0xd, 0, \_SB.S00.SL11.CL2D.F013, 0}, \ Package() {0xe, 0, \_SB.S00.SL11.CL2E.F014, 0}, \ Package() {0xf, 0, \_SB.S00.SL11.CL2F.F015, 0}, \ } \ } \ }) \ }”h]”hXjDevice(USMB) { \ Name(_HID, "HISI03A1") \ Name(_CRS, ResourceTemplate() { \ QWordMemory (ResourceConsumer, , MinFixed, MaxFixed, NonCacheable, \ ReadWrite, 0x0, 0x95100000, 0x951FFFFF, 0x0, 0x100000) \ QWordMemory (ResourceConsumer, , MinFixed, MaxFixed, Cacheable, \ ReadWrite, 0x0, 0x50000000, 0x53FFFFFF, 0x0, 0x4000000) \ }) \ Name(_DSD, Package() { \ ToUUID("ab02a46b-74c7-45a2-bd68-f7d344ef2153"), \ /* Use CoreSight Graph ACPI bindings to describe connections topology */ Package() { \ 0, \ 1, \ Package() { \ 1, \ ToUUID("3ecbc8b6-1d0e-4fb3-8107-e627f805c6cd"), \ 8, \ Package() {0x8, 0, \_SB.S00.SL11.CL28.F008, 0}, \ Package() {0x9, 0, \_SB.S00.SL11.CL29.F009, 0}, \ Package() {0xa, 0, \_SB.S00.SL11.CL2A.F010, 0}, \ Package() {0xb, 0, \_SB.S00.SL11.CL2B.F011, 0}, \ Package() {0xc, 0, \_SB.S00.SL11.CL2C.F012, 0}, \ Package() {0xd, 0, \_SB.S00.SL11.CL2D.F013, 0}, \ Package() {0xe, 0, \_SB.S00.SL11.CL2E.F014, 0}, \ Package() {0xf, 0, \_SB.S00.SL11.CL2F.F015, 0}, \ } \ } \ }) \ }”…””}”hjásbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1j¡hŸh³h K6hj¦hžhubeh}”(h]”Œfirmware-bindings”ah ]”h"]”Œfirmware bindings”ah$]”h&]”uh1h´hh¶hžhhŸh³h K*ubeh}”(h]”Œ#ultrasoc-hw-assisted-tracing-on-soc”ah ]”h"]”Œ%ultrasoc - hw assisted tracing on soc”ah$]”h&]”uh1h´hhhžhhŸh³h Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”h³uh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(h¹NŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”j"Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”h³Œ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jüjùjj|j£j jôjñuŒ nametypes”}”(jü‰j‰j£‰jô‰uh}”(jùh¶j|j[j j‚jñj¦uŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nhžhub.