€•®(Œ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”Œ%/translations/zh_CN/gpu/amdgpu/gc/mes”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/zh_TW/gpu/amdgpu/gc/mes”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/it_IT/gpu/amdgpu/gc/mes”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/ja_JP/gpu/amdgpu/gc/mes”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/ko_KR/gpu/amdgpu/gc/mes”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ%/translations/sp_SP/gpu/amdgpu/gc/mes”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒtarget”“”)”}”(hŒ.. _amdgpu-mes:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œ amdgpu-mes”uh1h¡h KhhhžhhŸŒ?/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/gc/mes.rst”ubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒMicroEngine Scheduler (MES)”h]”hŒMicroEngine Scheduler (MES)”…””}”(hh·hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hµhh²hžhhŸh¯h KubhŒnote”“”)”}”(hŒ/Queue and ring buffer are used as a synonymous.”h]”hŒ paragraph”“”)”}”(hhÉh]”hŒ/Queue and ring buffer are used as a synonymous.”…””}”(hhÍhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËhŸh¯h KhhÇubah}”(h]”h ]”h"]”h$]”h&]”uh1hÅhh²hžhhŸh¯h NubhÆ)”}”(hŒïThis section assumes that you are familiar with the concept of Pipes, Queues, and GC. If not, check :ref:`GFX, Compute, and SDMA Overall Behavior` and :ref:`drm/amdgpu - Graphics and Compute (GC) `.”h]”hÌ)”}”(hŒïThis section assumes that you are familiar with the concept of Pipes, Queues, and GC. If not, check :ref:`GFX, Compute, and SDMA Overall Behavior` and :ref:`drm/amdgpu - Graphics and Compute (GC) `.”h]”(hŒdThis section assumes that you are familiar with the concept of Pipes, Queues, and GC. If not, check ”…””}”(hhähžhhŸNh Nubh)”}”(hŒL:ref:`GFX, Compute, and SDMA Overall Behavior`”h]”hŒinline”“”)”}”(hhîh]”hŒ'GFX, Compute, and SDMA Overall Behavior”…””}”(hhòhžhhŸNh Nubah}”(h]”h ]”(Œxref”Œstd”Œstd-ref”eh"]”h$]”h&]”uh1hðhhìubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œgpu/amdgpu/gc/mes”Œ refdomain”hýŒreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆŒ reftarget”Œpipes-and-queues-description”uh1hhŸh¯h K hhäubhŒ and ”…””}”(hhähžhhŸNh Nubh)”}”(hŒ9:ref:`drm/amdgpu - Graphics and Compute (GC) `”h]”hñ)”}”(hjh]”hŒ&drm/amdgpu - Graphics and Compute (GC)”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”(hüŒstd”Œstd-ref”eh"]”h$]”h&]”uh1hðhjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”j Œ refdomain”j#Œreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆjŒ amdgpu-gc”uh1hhŸh¯h K hhäubhŒ.”…””}”(hhähžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËhŸh¯h K hhàubah}”(h]”h ]”h"]”h$]”h&]”uh1hÅhh²hžhhŸh¯h NubhÌ)”}”(hXuEvery GFX has a pipe component with one or more hardware queues. Pipes can switch between queues depending on certain conditions, and one of the components that can request a queue switch to a pipe is the MicroEngine Scheduler (MES). Whenever the driver is initialized, it creates one MQD per hardware queue, and then the MQDs are handed to the MES firmware for mapping to:”h]”hXuEvery GFX has a pipe component with one or more hardware queues. Pipes can switch between queues depending on certain conditions, and one of the components that can request a queue switch to a pipe is the MicroEngine Scheduler (MES). Whenever the driver is initialized, it creates one MQD per hardware queue, and then the MQDs are handed to the MES firmware for mapping to:”…””}”(hjEhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËhŸh¯h Khh²hžhubhŒenumerated_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hX¡Kernel Queues (legacy): This queue is statically mapped to HQDs and never preempted. Even though this is a legacy feature, it is the current default, and most existing hardware supports it. When an application submits work to the kernel driver, it submits all of the application command buffers to the kernel queues. The CS IOCTL takes the command buffer from the applications and schedules them on the kernel queue. ”h]”hÌ)”}”(hX Kernel Queues (legacy): This queue is statically mapped to HQDs and never preempted. Even though this is a legacy feature, it is the current default, and most existing hardware supports it. When an application submits work to the kernel driver, it submits all of the application command buffers to the kernel queues. The CS IOCTL takes the command buffer from the applications and schedules them on the kernel queue.”h]”hX Kernel Queues (legacy): This queue is statically mapped to HQDs and never preempted. Even though this is a legacy feature, it is the current default, and most existing hardware supports it. When an application submits work to the kernel driver, it submits all of the application command buffers to the kernel queues. The CS IOCTL takes the command buffer from the applications and schedules them on the kernel queue.”…””}”(hj^hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËhŸh¯h KhjZubah}”(h]”h ]”h"]”h$]”h&]”uh1jXhjUhžhhŸh¯h NubjY)”}”(hX User Queues: These queues are dynamically mapped to the HQDs. Regarding the utilization of User Queues, the userspace application will create its user queues and submit work directly to its user queues with no need to IOCTL for each submission and no need to share a single kernel queue. ”h]”hÌ)”}”(hXUser Queues: These queues are dynamically mapped to the HQDs. Regarding the utilization of User Queues, the userspace application will create its user queues and submit work directly to its user queues with no need to IOCTL for each submission and no need to share a single kernel queue.”h]”hXUser Queues: These queues are dynamically mapped to the HQDs. Regarding the utilization of User Queues, the userspace application will create its user queues and submit work directly to its user queues with no need to IOCTL for each submission and no need to share a single kernel queue.”…””}”(hjvhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËhŸh¯h Khjrubah}”(h]”h ]”h"]”h$]”h&]”uh1jXhjUhžhhŸh¯h Nubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ.”uh1jShh²hžhhŸh¯h KubhÌ)”}”(hXYIn terms of User Queues, MES can dynamically map them to the HQD. If there are more MQDs than HQDs, the MES firmware will preempt other user queues to make sure each queues get a time slice; in other words, MES is a microcontroller that handles the mapping and unmapping of MQDs into HQDs, as well as the priorities and oversubscription of MQDs.”h]”hXYIn terms of User Queues, MES can dynamically map them to the HQD. If there are more MQDs than HQDs, the MES firmware will preempt other user queues to make sure each queues get a time slice; in other words, MES is a microcontroller that handles the mapping and unmapping of MQDs into HQDs, as well as the priorities and oversubscription of MQDs.”…””}”(hj•hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËhŸh¯h K"hh²hžhubeh}”(h]”(Œmicroengine-scheduler-mes”h®eh ]”h"]”(Œmicroengine scheduler (mes)”Œ amdgpu-mes”eh$]”h&]”uh1h°hhhžhhŸh¯h KŒexpect_referenced_by_name”}”j©h£sŒexpect_referenced_by_id”}”h®h£subeh}”(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”}”h®]”h£asŒnameids”}”(j©h®j¨j¥uŒ nametypes”}”(j©ˆj¨‰uh}”(h®h²j¥h²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”]”hŒsystem_message”“”)”}”(hhh]”hÌ)”}”(hhh]”hŒ0Hyperlink target "amdgpu-mes" is not referenced.”…””}”hj=sbah}”(h]”h ]”h"]”h$]”h&]”uh1hËhj:ubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”h¯Œline”Kuh1j8ubaŒ transformer”NŒ include_log”]”Œ decoration”Nhžhub.