€•ù=Œ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/nouveau”Œ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/nouveau”Œ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/nouveau”Œ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/nouveau”Œ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/nouveau”Œ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/nouveau”Œ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+ OR MIT)”h]”hŒ*SPDX-License-Identifier: (GPL-2.0+ OR MIT)”…””}”hh£sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1h¡hhhžhhŸŒ9/var/lib/git/docbuild/linux/Documentation/gpu/nouveau.rst”h KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒdrm/nouveau NVIDIA GPU Driver”h]”hŒdrm/nouveau NVIDIA GPU Driver”…””}”(hh»hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hh¶hžhhŸh³h KubhŒ paragraph”“”)”}”(hŒ¾The drm/nouveau driver provides support for a wide range of NVIDIA GPUs, covering GeForce, Quadro, and Tesla series, from the NV04 architecture up to the latest Turing, Ampere, Ada families.”h]”hŒ¾The drm/nouveau driver provides support for a wide range of NVIDIA GPUs, covering GeForce, Quadro, and Tesla series, from the NV04 architecture up to the latest Turing, Ampere, Ada families.”…””}”(hhËhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h Khh¶hžhubhµ)”}”(hhh]”(hº)”}”(hŒNVKM: NVIDIA Kernel Manager”h]”hŒNVKM: NVIDIA Kernel Manager”…””}”(hhÜhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hhÙhžhhŸh³h K ubhÊ)”}”(hŒßThe NVKM component serves as the core abstraction layer within the nouveau driver, responsible for managing NVIDIA GPU hardware at the kernel level. NVKM provides a unified interface for handling various GPU architectures.”h]”hŒßThe NVKM component serves as the core abstraction layer within the nouveau driver, responsible for managing NVIDIA GPU hardware at the kernel level. NVKM provides a unified interface for handling various GPU architectures.”…””}”(hhêhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h KhhÙhžhubhÊ)”}”(hŒ£It enables resource management, power control, memory handling, and command submission required for the proper functioning of NVIDIA GPUs under the nouveau driver.”h]”hŒ£It enables resource management, power control, memory handling, and command submission required for the proper functioning of NVIDIA GPUs under the nouveau driver.”…””}”(hhøhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h KhhÙhžhubhÊ)”}”(hŒƒNVKM plays a critical role in abstracting hardware complexities and providing a consistent API to upper layers of the driver stack.”h]”hŒƒNVKM plays a critical role in abstracting hardware complexities and providing a consistent API to upper layers of the driver stack.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸh³h KhhÙhžhubhµ)”}”(hhh]”(hº)”}”(hŒ GSP Support”h]”hŒ GSP Support”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hjhžhhŸh³h KubhÊ)”}”(hŒmhttps://github.com/NVIDIA/open-gpu-kernel-modules/blob/535/src/nvidia/inc/kernel/gpu/gsp/message_queue_priv.h”h]”hŒ reference”“”)”}”(hj'h]”hŒmhttps://github.com/NVIDIA/open-gpu-kernel-modules/blob/535/src/nvidia/inc/kernel/gpu/gsp/message_queue_priv.h”…””}”(hj+hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j'uh1j)hj%ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h KChjhžhubhÊ)”}”(hŒåThe GSP command queue and status queue are message queues for the communication between software and GSP. The software submits the GSP RPC via the GSP command queue, GSP writes the status of the submitted RPC in the status queue.”h]”hŒåThe GSP command queue and status queue are message queues for the communication between software and GSP. The software submits the GSP RPC via the GSP command queue, GSP writes the status of the submitted RPC in the status queue.”…””}”(hj@hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h KEhjhžhubhÊ)”}”(hŒ4A GSP message queue element consists of three parts:”h]”hŒ4A GSP message queue element consists of three parts:”…””}”(hjOhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h KJhjhžhubhŒ bullet_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒkmessage element header (struct r535_gsp_msg), which mostly maintains the metadata for queuing the element. ”h]”hÊ)”}”(hŒjmessage element header (struct r535_gsp_msg), which mostly maintains the metadata for queuing the element.”h]”hŒjmessage element header (struct r535_gsp_msg), which mostly maintains the metadata for queuing the element.”…””}”(hjihžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h KLhjeubah}”(h]”h ]”h"]”h$]”h&]”uh1jchj`ubjd)”}”(hŒnRPC message header (struct nvfw_gsp_rpc), which maintains the info of the RPC. E.g., the RPC function number. ”h]”hÊ)”}”(hŒmRPC message header (struct nvfw_gsp_rpc), which maintains the info of the RPC. E.g., the RPC function number.”h]”hŒmRPC message header (struct nvfw_gsp_rpc), which maintains the info of the RPC. E.g., the RPC function number.”…””}”(hj‚hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h KOhj~ubah}”(h]”h ]”h"]”h$]”h&]”uh1jchj`ubjd)”}”(hŒ¬The payload, where the RPC message stays. E.g. the params of a specific RPC function. Some RPC functions also have their headers in the payload. E.g. rm_alloc, rm_control. ”h]”hÊ)”}”(hŒ«The payload, where the RPC message stays. E.g. the params of a specific RPC function. Some RPC functions also have their headers in the payload. E.g. rm_alloc, rm_control.”h]”hŒ«The payload, where the RPC message stays. E.g. the params of a specific RPC function. Some RPC functions also have their headers in the payload. E.g. rm_alloc, rm_control.”…””}”(hj›hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h KRhj—ubah}”(h]”h ]”h"]”h$]”h&]”uh1jchj`ubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1j^hŸjwh KLhjhžhubhÊ)”}”(hŒEThe memory layout of a GSP message element can be illustrated below::”h]”hŒDThe memory layout of a GSP message element can be illustrated below:”…””}”(hj¸hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h KVhjhžhubhŒ literal_block”“”)”}”(hXå+------------------------+ | Message Element Header | | (r535_gsp_msg) | | | | (r535_gsp_msg.data) | | | | |----------V-------------| | GSP RPC Header | | (nvfw_gsp_rpc) | | | | (nvfw_gsp_rpc.data) | | | | |----------V-------------| | Payload | | | | header(optional) | | params | +------------------------+”h]”hXå+------------------------+ | Message Element Header | | (r535_gsp_msg) | | | | (r535_gsp_msg.data) | | | | |----------V-------------| | GSP RPC Header | | (nvfw_gsp_rpc) | | | | (nvfw_gsp_rpc.data) | | | | |----------V-------------| | Payload | | | | header(optional) | | params | +------------------------+”…””}”hjÉsbah}”(h]”h ]”h"]”h$]”h&]”h±h²uh1jÇhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h KXhjhžhubhÊ)”}”(hŒÌThe max size of a message queue element is 16 pages (including the headers). When a GSP message to be sent is larger than 16 pages, the message should be split into multiple elements and sent accordingly.”h]”hŒÌThe max size of a message queue element is 16 pages (including the headers). When a GSP message to be sent is larger than 16 pages, the message should be split into multiple elements and sent accordingly.”…””}”(hjØhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h KkhjhžhubhÊ)”}”(hŒÂIn the bunch of the split elements, the first element has the expected function number, while the rest of the elements are sent with the function number NV_VGPU_MSG_FUNCTION_CONTINUATION_RECORD.”h]”hŒÂIn the bunch of the split elements, the first element has the expected function number, while the rest of the elements are sent with the function number NV_VGPU_MSG_FUNCTION_CONTINUATION_RECORD.”…””}”(hjçhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h KohjhžhubhÊ)”}”(hŒƒGSP consumes the elements from the cmdq and always writes the result back to the msgq. The result is also formed as split elements.”h]”hŒƒGSP consumes the elements from the cmdq and always writes the result back to the msgq. The result is also formed as split elements.”…””}”(hjöhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h KshjhžhubhÊ)”}”(hŒ Terminology:”h]”hŒ Terminology:”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h Kvhjhžhubj_)”}”(hhh]”(jd)”}”(hŒMgsp_msg(msg): GSP message element (element header + GSP RPC header + payload)”h]”hÊ)”}”(hŒMgsp_msg(msg): GSP message element (element header + GSP RPC header + payload)”h]”hŒMgsp_msg(msg): GSP message element (element header + GSP RPC header + payload)”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h Kxhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jchjubjd)”}”(hŒ,gsp_rpc(rpc): GSP RPC (RPC header + payload)”h]”hÊ)”}”(hj2h]”hŒ,gsp_rpc(rpc): GSP RPC (RPC header + payload)”…””}”(hj4hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h Kzhj0ubah}”(h]”h ]”h"]”h$]”h&]”uh1jchjubjd)”}”(hŒ2gsp_rpc_buf: buffer for (GSP RPC header + payload)”h]”hÊ)”}”(hjJh]”hŒ2gsp_rpc_buf: buffer for (GSP RPC header + payload)”…””}”(hjLhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h K{hjHubah}”(h]”h ]”h"]”h$]”h&]”uh1jchjubjd)”}”(hŒ/gsp_rpc_len: size of (GSP RPC header + payload)”h]”hÊ)”}”(hjbh]”hŒ/gsp_rpc_len: size of (GSP RPC header + payload)”…””}”(hjdhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h K|hj`ubah}”(h]”h ]”h"]”h$]”h&]”uh1jchjubjd)”}”(hŒ*params_size: size of params in the payload”h]”hÊ)”}”(hjzh]”hŒ*params_size: size of params in the payload”…””}”(hj|hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h K}hjxubah}”(h]”h ]”h"]”h$]”h&]”uh1jchjubjd)”}”(hŒApayload_size: size of (header if exists + params) in the payload ”h]”hÊ)”}”(hŒ@payload_size: size of (header if exists + params) in the payload”h]”hŒ@payload_size: size of (header if exists + params) in the payload”…””}”(hj”hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhŸŒj/var/lib/git/docbuild/linux/Documentation/gpu/nouveau:28: ./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c”h K~hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jchjubeh}”(h]”h ]”h"]”h$]”h&]”j¶j·uh1j^hŸj)h Kxhjhžhubeh}”(h]”Œ gsp-support”ah ]”h"]”Œ gsp support”ah$]”h&]”uh1h´hhÙhžhhŸh³h Kubeh}”(h]”Œnvkm-nvidia-kernel-manager”ah ]”h"]”Œnvkm: nvidia kernel manager”ah$]”h&]”uh1h´hh¶hžhhŸh³h K ubeh}”(h]”Œdrm-nouveau-nvidia-gpu-driver”ah ]”h"]”Œdrm/nouveau nvidia gpu driver”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Áj¼j¹j´j±uŒ nametypes”}”(jĉj¼‰j´‰uh}”(jÁh¶j¹hÙj±juŒ 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.