€•ë$Œ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/misc-devices/mrvl_cn10k_dpi”Œ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/misc-devices/mrvl_cn10k_dpi”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ//translations/it_IT/misc-devices/mrvl_cn10k_dpi”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ//translations/ja_JP/misc-devices/mrvl_cn10k_dpi”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ//translations/ko_KR/misc-devices/mrvl_cn10k_dpi”Œ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/misc-devices/mrvl_cn10k_dpi”Œ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ŸŒI/var/lib/git/docbuild/linux/Documentation/misc-devices/mrvl_cn10k_dpi.rst”h KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ/Marvell CN10K DMA packet interface (DPI) driver”h]”hŒ/Marvell CN10K DMA packet interface (DPI) driver”…””}”(hh»hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hh¶hžhhŸh³h Kubhµ)”}”(hhh]”(hº)”}”(hŒOverview”h]”hŒOverview”…””}”(hhÌhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hhÉhžhhŸh³h KubhŒ paragraph”“”)”}”(hŒÎDPI is a DMA packet interface hardware block in Marvell's CN10K silicon. DPI hardware comprises a physical function (PF), its virtual functions, mailbox logic, and a set of DMA engines & DMA command queues.”h]”hŒÐDPI is a DMA packet interface hardware block in Marvell’s CN10K silicon. DPI hardware comprises a physical function (PF), its virtual functions, mailbox logic, and a set of DMA engines & DMA command queues.”…””}”(hhÜhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h K hhÉhžhubhÛ)”}”(hŒ¡DPI PF function is an administrative function which services the mailbox requests from its VF functions and provisions DMA engine resources to it's VF functions.”h]”hŒ£DPI PF function is an administrative function which services the mailbox requests from its VF functions and provisions DMA engine resources to it’s VF functions.”…””}”(hhêhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h KhhÉhžhubhÛ)”}”(hXOmrvl_cn10k_dpi.ko misc driver loads on DPI PF device and services the mailbox commands submitted by the VF devices and accordingly initializes the DMA engines and VF device's DMA command queues. Also, driver creates /dev/mrvl-cn10k-dpi node to set DMA engine and PEM (PCIe interface) port attributes like fifo length, molr, mps & mrrs.”h]”hXQmrvl_cn10k_dpi.ko misc driver loads on DPI PF device and services the mailbox commands submitted by the VF devices and accordingly initializes the DMA engines and VF device’s DMA command queues. Also, driver creates /dev/mrvl-cn10k-dpi node to set DMA engine and PEM (PCIe interface) port attributes like fifo length, molr, mps & mrrs.”…””}”(hhøhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h KhhÉhžhubhÛ)”}”(hŒÓDPI PF driver is just an administrative driver to setup its VF device's queues and provisions the hardware resources, it cannot initiate any DMA operations. Only VF devices are provisioned with DMA capabilities.”h]”hŒÕDPI PF driver is just an administrative driver to setup its VF device’s queues and provisions the hardware resources, it cannot initiate any DMA operations. Only VF devices are provisioned with DMA capabilities.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h KhhÉhžhubeh}”(h]”Œoverview”ah ]”h"]”Œoverview”ah$]”h&]”uh1h´hh¶hžhhŸh³h Kubhµ)”}”(hhh]”(hº)”}”(hŒDriver location”h]”hŒDriver location”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hjhžhhŸh³h KubhÛ)”}”(hŒdrivers/misc/mrvl_cn10k_dpi.c”h]”hŒdrivers/misc/mrvl_cn10k_dpi.c”…””}”(hj-hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h Khjhžhubeh}”(h]”Œdriver-location”ah ]”h"]”Œdriver location”ah$]”h&]”uh1h´hh¶hžhhŸh³h Kubhµ)”}”(hhh]”(hº)”}”(hŒ Driver IOCTLs”h]”hŒ Driver IOCTLs”…””}”(hjFhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hjChžhhŸh³h K"ubhÛ)”}”(hŒŽ:c:macro::`DPI_MPS_MRRS_CFG` ioctl that sets max payload size & max read request size parameters of a pem port to which DMA engines are wired.”h]”(hŒ :c:macro::”…””}”(hjThžhhŸNh NubhŒtitle_reference”“”)”}”(hŒ`DPI_MPS_MRRS_CFG`”h]”hŒDPI_MPS_MRRS_CFG”…””}”(hj^hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j\hjTubhŒr ioctl that sets max payload size & max read request size parameters of a pem port to which DMA engines are wired.”…””}”(hjThžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h K$hjChžhubhÛ)”}”(hŒm:c:macro::`DPI_ENGINE_CFG` ioctl that sets DMA engine's fifo sizes & max outstanding load request thresholds.”h]”(hŒ :c:macro::”…””}”(hjvhžhhŸNh Nubj])”}”(hŒ`DPI_ENGINE_CFG`”h]”hŒDPI_ENGINE_CFG”…””}”(hj~hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j\hjvubhŒU ioctl that sets DMA engine’s fifo sizes & max outstanding load request thresholds.”…””}”(hjvhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h K)hjChžhubeh}”(h]”Œ driver-ioctls”ah ]”h"]”Œ driver ioctls”ah$]”h&]”uh1h´hh¶hžhhŸh³h K"ubhµ)”}”(hhh]”(hº)”}”(hŒUser space code example”h]”hŒUser space code example”…””}”(hj¡hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hjžhžhhŸh³h K.ubhÛ)”}”(hŒÝDPI VF devices are probed and accessed from user space applications using vfio-pci driver. Below is a sample dpi dma application to demonstrate on how applications use mailbox and ioctl services from DPI PF kernel driver.”h]”hŒÝDPI VF devices are probed and accessed from user space applications using vfio-pci driver. Below is a sample dpi dma application to demonstrate on how applications use mailbox and ioctl services from DPI PF kernel driver.”…””}”(hj¯hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h K0hjžhžhubhÛ)”}”(hŒ;https://github.com/MarvellEmbeddedProcessors/dpi-sample-app”h]”hŒ reference”“”)”}”(hj¿h]”hŒ;https://github.com/MarvellEmbeddedProcessors/dpi-sample-app”…””}”(hjÃhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j¿uh1jÁhj½ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h K4hjžhžhubeh}”(h]”Œuser-space-code-example”ah ]”h"]”Œuser space code example”ah$]”h&]”uh1h´hh¶hžhhŸh³h K.ubeh}”(h]”Œ-marvell-cn10k-dma-packet-interface-dpi-driver”ah ]”h"]”Œ/marvell cn10k dma packet interface (dpi) 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ájjj@j=j›j˜jÜjÙuŒ nametypes”}”(jä‰j‰j@‰j›‰j܉uh}”(jáh¶jhÉj=jj˜jCjÙ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.