€•Œ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/drm-kms”Œ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/drm-kms”Œ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/drm-kms”Œ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/drm-kms”Œ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/drm-kms”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ/translations/pt_BR/gpu/drm-kms”Œ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/drm-kms”Œ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Œ .. _drm-kms:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œdrm-kms”uh1hµh´Khhh²hh³Œ9/var/lib/git/docbuild/linux/Documentation/gpu/drm-kms.rst”ubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒKernel Mode Setting (KMS)”h]”hŒKernel Mode Setting (KMS)”…”�”}”(hhËh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”hÁŒid8”uh1hÉhhÆh²hh³hÃh´KubhŒ paragraph”“”)�”}”(hXDrivers must initialize the mode setting core by calling drmm_mode_config_init() on the DRM device. The function initializes the :c:type:`struct drm_device ` mode_config field and never fails. Once done, mode configuration must be setup by initializing the following fields.”h]”(hŒ�Drivers must initialize the mode setting core by calling drmm_mode_config_init() on the DRM device. The function initializes the ”…”�”}”(hhÜh²hh³Nh´Nubh)�”}”(hŒ(:c:type:`struct drm_device `”h]”hŒliteral”“”)�”}”(hhæh]”hŒstruct drm_device”…”�”}”(hhêh²hh³Nh´Nubah}”(h]”h ]”(Œxref”Œc”Œc-type”eh"]”h$]”h&]”uh1hèhhäubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ gpu/drm-kms”Œ refdomain”hõŒreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰Œ reftarget”Œ drm_device”uh1hh³hÃh´KhhÜubhŒu mode_config field and never fails. Once done, mode configuration must be setup by initializing the following fields.”…”�”}”(hhÜh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³hÃh´KhhÆh²hubhŒ bullet_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hŒ€int min_width, min_height; int max_width, max_height; Minimum and maximum width and height of the frame buffers in pixel units. ”h]”hÛ)�”}”(hŒint min_width, min_height; int max_width, max_height; Minimum and maximum width and height of the frame buffers in pixel units.”h]”hŒint min_width, min_height; int max_width, max_height; Minimum and maximum width and height of the frame buffers in pixel units.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³hÃh´Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjh²hh³hÃh´Nubj)�”}”(hŒ>struct drm_mode_config_funcs \*funcs; Mode setting functions. ”h]”hÛ)�”}”(hŒ=struct drm_mode_config_funcs \*funcs; Mode setting functions.”h]”hŒ=struct drm_mode_config_funcs *funcs; Mode setting functions.”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³hÃh´Khj2ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjh²hh³hÃh´Nubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1jh³hÃh´KhhÆh²hubhŒtopic”“”)�”}”(hŒ Contents ”h]”(hÊ)�”}”(hŒContents”h]”hŒContents”…”�”}”(hjXh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhjTh³hÃh´Kubj)�”}”(hhh]”j)�”}”(hhh]”(hÛ)�”}”(hhh]”hŒ reference”“”)�”}”(hhh]”hŒKernel Mode Setting (KMS)”…”�”}”(hjqh²hh³Nh´Nubah}”(h]”hÙah ]”h"]”h$]”h&]”Œrefid”Œkernel-mode-setting-kms”uh1johjlubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjiubj)�”}”(hhh]”(j)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒOverview”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”Œid9”ah ]”h"]”h$]”h&]”Œrefid”Œoverview”uh1johjŒubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj‰ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒ!KMS Core Structures and Functions”…”�”}”(hj±h²hh³Nh´Nubah}”(h]”Œid10”ah ]”h"]”h$]”h&]”Œrefid”Œ!kms-core-structures-and-functions”uh1johj®ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj«ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒModeset Base Object Abstraction”…”�”}”(hjÓh²hh³Nh´Nubah}”(h]”Œid11”ah ]”h"]”h$]”h&]”Œrefid”Œmodeset-base-object-abstraction”uh1johjÐubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjÍubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”(hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒAtomic Mode Setting”…”�”}”(hjõh²hh³Nh´Nubah}”(h]”Œid12”ah ]”h"]”h$]”h&]”Œrefid”Œatomic-mode-setting”uh1johjòubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjïubj)�”}”(hhh]”(j)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒAtomic State Lifetime”…”�”}”(hjh²hh³Nh´Nubah}”(h]”Œid13”ah ]”h"]”h$]”h&]”Œrefid”Œatomic-state-lifetime”uh1johjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj ubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒHandling Driver Private State”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”Œid14”ah ]”h"]”h$]”h&]”Œrefid”Œhandling-driver-private-state”uh1johj3ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj0ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj ubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒ&Atomic Mode Setting Function Reference”…”�”}”(hjXh²hh³Nh´Nubah}”(h]”Œid15”ah ]”h"]”h$]”h&]”Œrefid”Œ&atomic-mode-setting-function-reference”uh1johjUubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjRubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj ubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒ,Atomic Mode Setting IOCTL and UAPI Functions”…”�”}”(hjzh²hh³Nh´Nubah}”(h]”Œid16”ah ]”h"]”h$]”h&]”Œrefid”Œ,atomic-mode-setting-ioctl-and-uapi-functions”uh1johjwubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjtubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjïubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”(hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒCRTC Abstraction”…”�”}”(hj¨h²hh³Nh´Nubah}”(h]”Œid17”ah ]”h"]”h$]”h&]”Œrefid”Œcrtc-abstraction”uh1johj¥ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj¢ubj)�”}”(hhh]”(j)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒCRTC Functions Reference”…”�”}”(hjÇh²hh³Nh´Nubah}”(h]”Œid18”ah ]”h"]”h$]”h&]”Œrefid”Œcrtc-functions-reference”uh1johjÄubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjÁubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj¾ubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒ$Color Management Functions Reference”…”�”}”(hjéh²hh³Nh´Nubah}”(h]”Œid19”ah ]”h"]”h$]”h&]”Œrefid”Œ$color-management-functions-reference”uh1johjæubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjãubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj¾ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj¢ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”(hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒFrame Buffer Abstraction”…”�”}”(hjh²hh³Nh´Nubah}”(h]”Œid20”ah ]”h"]”h$]”h&]”Œrefid”Œframe-buffer-abstraction”uh1johjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjubj)�”}”(hhh]”j)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒ Frame Buffer Functions Reference”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”Œid21”ah ]”h"]”h$]”h&]”Œrefid”Œ frame-buffer-functions-reference”uh1johj3ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj0ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj-ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”(hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒDRM Format Handling”…”�”}”(hjdh²hh³Nh´Nubah}”(h]”Œid22”ah ]”h"]”h$]”h&]”Œrefid”Œdrm-format-handling”uh1johjaubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj^ubj)�”}”(hhh]”(j)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒFormat Modifiers”…”�”}”(hjƒh²hh³Nh´Nubah}”(h]”Œid23”ah ]”h"]”h$]”h&]”Œrefid”Œformat-modifiers”uh1johj€ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj}ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjzubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒOpen Source User Waiver”…”�”}”(hj¥h²hh³Nh´Nubah}”(h]”Œid24”ah ]”h"]”h$]”h&]”Œrefid”Œopen-source-user-waiver”uh1johj¢ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjŸubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjzubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒFormat Functions Reference”…”�”}”(hjÇh²hh³Nh´Nubah}”(h]”Œid25”ah ]”h"]”h$]”h&]”Œrefid”Œformat-functions-reference”uh1johjÄubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjÁubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjzubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj^ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒDumb Buffer Objects”…”�”}”(hjõh²hh³Nh´Nubah}”(h]”Œid26”ah ]”h"]”h$]”h&]”Œrefid”Œdumb-buffer-objects”uh1johjòubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjïubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”(hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒPlane Abstraction”…”�”}”(hjh²hh³Nh´Nubah}”(h]”Œid27”ah ]”h"]”h$]”h&]”Œrefid”Œplane-abstraction”uh1johjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjubj)�”}”(hhh]”(j)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒPlane Functions Reference”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”Œid28”ah ]”h"]”h$]”h&]”Œrefid”Œplane-functions-reference”uh1johj3ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj0ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj-ubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒ%Plane Composition Functions Reference”…”�”}”(hjXh²hh³Nh´Nubah}”(h]”Œid29”ah ]”h"]”h$]”h&]”Œrefid”Œ%plane-composition-functions-reference”uh1johjUubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjRubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj-ubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒ)Plane Damage Tracking Functions Reference”…”�”}”(hjzh²hh³Nh´Nubah}”(h]”Œid30”ah ]”h"]”h$]”h&]”Œrefid”Œ)plane-damage-tracking-functions-reference”uh1johjwubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjtubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj-ubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒPlane Panic Feature”…”�”}”(hjœh²hh³Nh´Nubah}”(h]”Œid31”ah ]”h"]”h$]”h&]”Œrefid”Œplane-panic-feature”uh1johj™ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj–ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj-ubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒPlane Panic Functions Reference”…”�”}”(hj¾h²hh³Nh´Nubah}”(h]”Œid32”ah ]”h"]”h$]”h&]”Œrefid”Œplane-panic-functions-reference”uh1johj»ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj¸ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj-ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”(hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒColorop Abstraction”…”�”}”(hjìh²hh³Nh´Nubah}”(h]”Œid33”ah ]”h"]”h$]”h&]”Œrefid”Œcolorop-abstraction”uh1johjéubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjæubj)�”}”(hhh]”j)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒColorop Functions Reference”…”�”}”(hj h²hh³Nh´Nubah}”(h]”Œid34”ah ]”h"]”h$]”h&]”Œrefid”Œcolorop-functions-reference”uh1johjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjæubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒ Display Modes Function Reference”…”�”}”(hj9h²hh³Nh´Nubah}”(h]”Œid35”ah ]”h"]”h$]”h&]”Œrefid”Œ display-modes-function-reference”uh1johj6ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj3ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”(hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒConnector Abstraction”…”�”}”(hj[h²hh³Nh´Nubah}”(h]”Œid36”ah ]”h"]”h$]”h&]”Œrefid”Œconnector-abstraction”uh1johjXubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjUubj)�”}”(hhh]”(j)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒConnector Functions Reference”…”�”}”(hjzh²hh³Nh´Nubah}”(h]”Œid37”ah ]”h"]”h$]”h&]”Œrefid”Œconnector-functions-reference”uh1johjwubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjtubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjqubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒWriteback Connectors”…”�”}”(hjœh²hh³Nh´Nubah}”(h]”Œid38”ah ]”h"]”h$]”h&]”Œrefid”Œwriteback-connectors”uh1johj™ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj–ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjqubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjUubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”(hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒEncoder Abstraction”…”�”}”(hjÊh²hh³Nh´Nubah}”(h]”Œid39”ah ]”h"]”h$]”h&]”Œrefid”Œencoder-abstraction”uh1johjÇubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjÄubj)�”}”(hhh]”j)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒEncoder Functions Reference”…”�”}”(hjéh²hh³Nh´Nubah}”(h]”Œid40”ah ]”h"]”h$]”h&]”Œrefid”Œencoder-functions-reference”uh1johjæubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjãubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjàubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjÄubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒ KMS Locking”…”�”}”(hjh²hh³Nh´Nubah}”(h]”Œid41”ah ]”h"]”h$]”h&]”Œrefid”Œ kms-locking”uh1johjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”(hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒKMS Properties”…”�”}”(hj9h²hh³Nh´Nubah}”(h]”Œid42”ah ]”h"]”h$]”h&]”Œrefid”Œkms-properties”uh1johj6ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj3ubj)�”}”(hhh]”(j)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒ Requirements”…”�”}”(hjXh²hh³Nh´Nubah}”(h]”Œid43”ah ]”h"]”h$]”h&]”Œrefid”Œ requirements”uh1johjUubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjRubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒ(Property Types and Blob Property Support”…”�”}”(hjzh²hh³Nh´Nubah}”(h]”Œid44”ah ]”h"]”h$]”h&]”Œrefid”Œ(property-types-and-blob-property-support”uh1johjwubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjtubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒStandard Connector Properties”…”�”}”(hjœh²hh³Nh´Nubah}”(h]”Œid45”ah ]”h"]”h$]”h&]”Œrefid”Œstandard-connector-properties”uh1johj™ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj–ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒ"HDMI Specific Connector Properties”…”�”}”(hj¾h²hh³Nh´Nubah}”(h]”Œid46”ah ]”h"]”h$]”h&]”Œrefid”Œ"hdmi-specific-connector-properties”uh1johj»ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj¸ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒ'Analog TV Specific Connector Properties”…”�”}”(hjàh²hh³Nh´Nubah}”(h]”Œid47”ah ]”h"]”h$]”h&]”Œrefid”Œ'analog-tv-specific-connector-properties”uh1johjÝubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjÚubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒStandard CRTC Properties”…”�”}”(hjh²hh³Nh´Nubah}”(h]”Œid48”ah ]”h"]”h$]”h&]”Œrefid”Œstandard-crtc-properties”uh1johjÿubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjüubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒStandard Plane Properties”…”�”}”(hj$h²hh³Nh´Nubah}”(h]”Œid49”ah ]”h"]”h$]”h&]”Œrefid”Œstandard-plane-properties”uh1johj!ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒPlane Composition Properties”…”�”}”(hjFh²hh³Nh´Nubah}”(h]”Œid50”ah ]”h"]”h$]”h&]”Œrefid”Œplane-composition-properties”uh1johjCubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj@ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒDamage Tracking Properties”…”�”}”(hjhh²hh³Nh´Nubah}”(h]”Œid51”ah ]”h"]”h$]”h&]”Œrefid”Œdamage-tracking-properties”uh1johjeubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjbubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒColor Management Properties”…”�”}”(hjŠh²hh³Nh´Nubah}”(h]”Œid52”ah ]”h"]”h$]”h&]”Œrefid”Œcolor-management-properties”uh1johj‡ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj„ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒColor Format Property”…”�”}”(hj¬h²hh³Nh´Nubah}”(h]”Œid53”ah ]”h"]”h$]”h&]”Œrefid”Œcolor-format-property”uh1johj©ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj¦ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒTile Group Property”…”�”}”(hjÎh²hh³Nh´Nubah}”(h]”Œid54”ah ]”h"]”h$]”h&]”Œrefid”Œtile-group-property”uh1johjËubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjÈubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒExplicit Fencing Properties”…”�”}”(hjðh²hh³Nh´Nubah}”(h]”Œid55”ah ]”h"]”h$]”h&]”Œrefid”Œexplicit-fencing-properties”uh1johjíubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjêubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒVariable Refresh Properties”…”�”}”(hjh²hh³Nh´Nubah}”(h]”Œid56”ah ]”h"]”h$]”h&]”Œrefid”Œvariable-refresh-properties”uh1johjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒCursor Hotspot Properties”…”�”}”(hj4h²hh³Nh´Nubah}”(h]”Œid57”ah ]”h"]”h$]”h&]”Œrefid”Œcursor-hotspot-properties”uh1johj1ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj.ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubj)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒExisting KMS Properties”…”�”}”(hjVh²hh³Nh´Nubah}”(h]”Œid58”ah ]”h"]”h$]”h&]”Œrefid”Œexisting-kms-properties”uh1johjSubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhjPubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjOubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj3ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhj†ubj)�”}”(hhh]”(hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒVertical Blanking”…”�”}”(hj„h²hh³Nh´Nubah}”(h]”Œid59”ah ]”h"]”h$]”h&]”Œrefid”Œvertical-blanking”uh1johj�ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhj~ubj)�”}”(hhh]”j)�”}”(hhh]”hÛ)�”}”(hhh]”jp)�”}”(hhh]”hŒ "drm_crtc" "drm_plane B" -> "drm_crtc" "drm_crtc" -> "drm_encoder A" "drm_crtc" -> "drm_encoder B" } subgraph cluster_user_created { style=dashed label="Userspace-Created" node [shape=oval] "drm_framebuffer 1" -> "drm_plane A" "drm_framebuffer 2" -> "drm_plane B" } subgraph cluster_connector { style=dashed label="Hotpluggable" "drm_encoder A" -> "drm_connector A" "drm_encoder B" -> "drm_connector B" } }”h]”hX²digraph "KMS" { node [shape=box] subgraph cluster_static { style=dashed label="Static Objects" node [bgcolor=grey style=filled] "drm_plane A" -> "drm_crtc" "drm_plane B" -> "drm_crtc" "drm_crtc" -> "drm_encoder A" "drm_crtc" -> "drm_encoder B" } subgraph cluster_user_created { style=dashed label="Userspace-Created" node [shape=oval] "drm_framebuffer 1" -> "drm_plane A" "drm_framebuffer 2" -> "drm_plane B" } subgraph cluster_connector { style=dashed label="Hotpluggable" "drm_encoder A" -> "drm_connector A" "drm_encoder B" -> "drm_connector B" } }”…”�”}”hjQ sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1jO hjL h³hÃubah}”(h]”h ]”h"]”h$]”h&]”Œalt”ŒKMS Display Pipeline”Œsrclang”ŒDOT”uh1jJ hjF ubhŒcaption”“”)�”}”(hŒKMS Display Pipeline Overview”h]”hŒKMS Display Pipeline Overview”…”�”}”(hjm h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jk h³hh´KhjF ubeh}”(h]”Œid4”ah ]”h"]”h$]”h&]”Œalt”jh Œcaption”jo uh1jD hj3 h²hh³hh´NubhÛ)�”}”(hXEThe basic object structure KMS presents to userspace is fairly simple. Framebuffers (represented by :c:type:`struct drm_framebuffer `, see `Frame Buffer Abstraction`_) feed into planes. Planes are represented by :c:type:`struct drm_plane `, see `Plane Abstraction`_ for more details. One or more (or even no) planes feed their pixel data into a CRTC (represented by :c:type:`struct drm_crtc `, see `CRTC Abstraction`_) for blending. The precise blending step is explained in more detail in `Plane Composition Properties`_ and related chapters.”h]”(hŒdThe basic object structure KMS presents to userspace is fairly simple. Framebuffers (represented by ”…”�”}”(hj„ h²hh³Nh´Nubh)�”}”(hŒ2:c:type:`struct drm_framebuffer `”h]”hé)�”}”(hjŽ h]”hŒstruct drm_framebuffer”…”�”}”(hj� h²hh³Nh´Nubah}”(h]”h ]”(hôhõŒc-type”eh"]”h$]”h&]”uh1hèhjŒ ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”hõŒreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰jŒdrm_framebuffer”uh1hh³hÃh´K>hj„ ubhŒ, see ”…”�”}”(hj„ h²hh³Nh´Nubjp)�”}”(hŒ`Frame Buffer Abstraction`_”h]”hŒFrame Buffer Abstraction”…”�”}”(hj¯ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”ŒFrame Buffer Abstraction”hÁj&uh1johj„ Œresolved”KubhŒ.) feed into planes. Planes are represented by ”…”�”}”(hj„ h²hh³Nh´Nubh)�”}”(hŒ&:c:type:`struct drm_plane `”h]”hé)�”}”(hjÆ h]”hŒstruct drm_plane”…”�”}”(hjÈ h²hh³Nh´Nubah}”(h]”h ]”(hôhõŒc-type”eh"]”h$]”h&]”uh1hèhjÄ ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”hõŒreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰jŒ drm_plane”uh1hh³hÃh´K>hj„ ubhŒ, see ”…”�”}”(hj„ h²hh³Nh´Nubjp)�”}”(hŒ`Plane Abstraction`_”h]”hŒPlane Abstraction”…”�”}”(hjç h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”ŒPlane Abstraction”hÁj&uh1johj„ j¿ KubhŒe for more details. One or more (or even no) planes feed their pixel data into a CRTC (represented by ”…”�”}”(hj„ h²hh³Nh´Nubh)�”}”(hŒ$:c:type:`struct drm_crtc `”h]”hé)�”}”(hjý h]”hŒstruct drm_crtc”…”�”}”(hjÿ h²hh³Nh´Nubah}”(h]”h ]”(hôhõŒc-type”eh"]”h$]”h&]”uh1hèhjû ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”hõŒreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰jŒdrm_crtc”uh1hh³hÃh´K>hj„ ubhŒ, see ”…”�”}”hj„ sbjp)�”}”(hŒ`CRTC Abstraction`_”h]”hŒCRTC Abstraction”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”ŒCRTC Abstraction”hÁj·uh1johj„ j¿ KubhŒI) for blending. The precise blending step is explained in more detail in ”…”�”}”(hj„ h²hh³Nh´Nubjp)�”}”(hŒ`Plane Composition Properties`_”h]”hŒPlane Composition Properties”…”�”}”(hj2 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”ŒPlane Composition Properties”hÁŒid2”uh1johj„ j¿ KubhŒ and related chapters.”…”�”}”(hj„ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³hÃh´K>hj3 h²hubhÛ)�”}”(hX(For the output routing the first step is encoders (represented by :c:type:`struct drm_encoder `, see `Encoder Abstraction`_). Those are really just internal artifacts of the helper libraries used to implement KMS drivers. Besides that they make it unnecessarily more complicated for userspace to figure out which connections between a CRTC and a connector are possible, and what kind of cloning is supported, they serve no purpose in the userspace API. Unfortunately encoders have been exposed to userspace, hence can't remove them at this point. Furthermore the exposed restrictions are often wrongly set by drivers, and in many cases not powerful enough to express the real restrictions. A CRTC can be connected to multiple encoders, and for an active CRTC there must be at least one encoder.”h]”(hŒBFor the output routing the first step is encoders (represented by ”…”�”}”(hjM h²hh³Nh´Nubh)�”}”(hŒ*:c:type:`struct drm_encoder `”h]”hé)�”}”(hjW h]”hŒstruct drm_encoder”…”�”}”(hjY h²hh³Nh´Nubah}”(h]”h ]”(hôhõŒc-type”eh"]”h$]”h&]”uh1hèhjU ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”hõŒreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰jŒ drm_encoder”uh1hh³hÃh´KGhjM ubhŒ, see ”…”�”}”(hjM h²hh³Nh´Nubjp)�”}”(hŒ`Encoder Abstraction`_”h]”hŒEncoder Abstraction”…”�”}”(hjx h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”ŒEncoder Abstraction”hÁjÙuh1johjM j¿ KubhX¢). Those are really just internal artifacts of the helper libraries used to implement KMS drivers. Besides that they make it unnecessarily more complicated for userspace to figure out which connections between a CRTC and a connector are possible, and what kind of cloning is supported, they serve no purpose in the userspace API. Unfortunately encoders have been exposed to userspace, hence can’t remove them at this point. Furthermore the exposed restrictions are often wrongly set by drivers, and in many cases not powerful enough to express the real restrictions. A CRTC can be connected to multiple encoders, and for an active CRTC there must be at least one encoder.”…”�”}”(hjM h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³hÃh´KGhj3 h²hubhÛ)�”}”(hXâThe final, and real, endpoint in the display chain is the connector (represented by :c:type:`struct drm_connector `, see `Connector Abstraction`_). Connectors can have different possible encoders, but the kernel driver selects which encoder to use for each connector. The use case is DVI, which could switch between an analog and a digital encoder. Encoders can also drive multiple different connectors. There is exactly one active connector for every active encoder.”h]”(hŒTThe final, and real, endpoint in the display chain is the connector (represented by ”…”�”}”(hj’ h²hh³Nh´Nubh)�”}”(hŒ.:c:type:`struct drm_connector `”h]”hé)�”}”(hjœ h]”hŒstruct drm_connector”…”�”}”(hjž h²hh³Nh´Nubah}”(h]”h ]”(hôhõŒc-type”eh"]”h$]”h&]”uh1hèhjš ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”hõŒreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰jŒ drm_connector”uh1hh³hÃh´KShj’ ubhŒ, see ”…”�”}”(hj’ h²hh³Nh´Nubjp)�”}”(hŒ`Connector Abstraction`_”h]”hŒConnector Abstraction”…”�”}”(hj½ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”ŒConnector Abstraction”hÁjjuh1johj’ j¿ KubhXB). Connectors can have different possible encoders, but the kernel driver selects which encoder to use for each connector. The use case is DVI, which could switch between an analog and a digital encoder. Encoders can also drive multiple different connectors. There is exactly one active connector for every active encoder.”…”�”}”(hj’ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³hÃh´KShj3 h²hubhÛ)�”}”(hŒ_Internally the output pipeline is a bit more complex and matches today's hardware more closely:”h]”hŒaInternally the output pipeline is a bit more complex and matches today’s hardware more closely:”…”�”}”(hj× h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³hÃh´K[hj3 h²hubjE )�”}”(hhh]”(jK )�”}”(hhh]”jP )�”}”(hXvdigraph "Output Pipeline" { node [shape=box] subgraph { "drm_crtc" [bgcolor=grey style=filled] } subgraph cluster_internal { style=dashed label="Internal Pipeline" { node [bgcolor=grey style=filled] "drm_encoder A"; "drm_encoder B"; "drm_encoder C"; } { node [bgcolor=grey style=filled] "drm_encoder B" -> "drm_bridge B" "drm_encoder C" -> "drm_bridge C1" "drm_bridge C1" -> "drm_bridge C2"; } } "drm_crtc" -> "drm_encoder A" "drm_crtc" -> "drm_encoder B" "drm_crtc" -> "drm_encoder C" subgraph cluster_output { style=dashed label="Outputs" "drm_encoder A" -> "drm_connector A"; "drm_bridge B" -> "drm_connector B"; "drm_bridge C2" -> "drm_connector C"; "drm_panel" } }”h]”hXvdigraph "Output Pipeline" { node [shape=box] subgraph { "drm_crtc" [bgcolor=grey style=filled] } subgraph cluster_internal { style=dashed label="Internal Pipeline" { node [bgcolor=grey style=filled] "drm_encoder A"; "drm_encoder B"; "drm_encoder C"; } { node [bgcolor=grey style=filled] "drm_encoder B" -> "drm_bridge B" "drm_encoder C" -> "drm_bridge C1" "drm_bridge C1" -> "drm_bridge C2"; } } "drm_crtc" -> "drm_encoder A" "drm_crtc" -> "drm_encoder B" "drm_crtc" -> "drm_encoder C" subgraph cluster_output { style=dashed label="Outputs" "drm_encoder A" -> "drm_connector A"; "drm_bridge B" -> "drm_connector B"; "drm_bridge C2" -> "drm_connector C"; "drm_panel" } }”…”�”}”hjë sbah}”(h]”h ]”h"]”h$]”h&]”j_ j` uh1jO hjè h³hÃubah}”(h]”h ]”h"]”h$]”h&]”jg ŒKMS Output Pipeline”ji ŒDOT”uh1jJ hjå ubjl )�”}”(hŒKMS Output Pipeline”h]”hŒKMS Output Pipeline”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jk h³hh´Khjå ubeh}”(h]”Œid5”ah ]”h"]”h$]”h&]”Œalt”jÿ Œcaption”j uh1jD hj3 h²hh³hh´NubhÛ)�”}”(hX§Internally two additional helper objects come into play. First, to be able to share code for encoders (sometimes on the same SoC, sometimes off-chip) one or more :ref:`drm_bridges` (represented by :c:type:`struct drm_bridge `) can be linked to an encoder. This link is static and cannot be changed, which means the cross-bar (if there is any) needs to be mapped between the CRTC and any encoders. Often for drivers with bridges there's no code left at the encoder level. Atomic drivers can leave out all the encoder callbacks to essentially only leave a dummy routing object behind, which is needed for backwards compatibility since encoders are exposed to userspace.”h]”(hŒ¢Internally two additional helper objects come into play. First, to be able to share code for encoders (sometimes on the same SoC, sometimes off-chip) one or more ”…”�”}”(hj h²hh³Nh´Nubh)�”}”(hŒ:ref:`drm_bridges`”h]”hŒinline”“”)�”}”(hj" h]”hŒ drm_bridges”…”�”}”(hj& h²hh³Nh´Nubah}”(h]”h ]”(hôŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j$ hj ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”j0 Œreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆjŒ drm_bridges”uh1hh³hÃh´KŒhj ubhŒ (represented by ”…”�”}”(hj h²hh³Nh´Nubh)�”}”(hŒ(:c:type:`struct drm_bridge `”h]”hé)�”}”(hjH h]”hŒstruct drm_bridge”…”�”}”(hjJ h²hh³Nh´Nubah}”(h]”h ]”(hôhõŒc-type”eh"]”h$]”h&]”uh1hèhjF ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”hõŒreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰jŒ drm_bridge”uh1hh³hÃh´KŒhj ubhX¼) can be linked to an encoder. This link is static and cannot be changed, which means the cross-bar (if there is any) needs to be mapped between the CRTC and any encoders. Often for drivers with bridges there’s no code left at the encoder level. Atomic drivers can leave out all the encoder callbacks to essentially only leave a dummy routing object behind, which is needed for backwards compatibility since encoders are exposed to userspace.”…”�”}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³hÃh´KŒhj3 h²hubhÛ)�”}”(hXThe second object is for panels, represented by :c:type:`struct drm_panel `, see :ref:`drm_panel_helper`. Panels do not have a fixed binding point, but are generally linked to the driver private structure that embeds :c:type:`struct drm_connector `.”h]”(hŒ0The second object is for panels, represented by ”…”�”}”(hjo h²hh³Nh´Nubh)�”}”(hŒ&:c:type:`struct drm_panel `”h]”hé)�”}”(hjy h]”hŒstruct drm_panel”…”�”}”(hj{ h²hh³Nh´Nubah}”(h]”h ]”(hôhõŒc-type”eh"]”h$]”h&]”uh1hèhjw ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”hõŒreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰jŒ drm_panel”uh1hh³hÃh´K–hjo ubhŒ, see ”…”�”}”(hjo h²hh³Nh´Nubh)�”}”(hŒ:ref:`drm_panel_helper`”h]”j% )�”}”(hjœ h]”hŒdrm_panel_helper”…”�”}”(hjž h²hh³Nh´Nubah}”(h]”h ]”(hôŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j$ hjš ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”j¨ Œreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆjŒdrm_panel_helper”uh1hh³hÃh´K–hjo ubhŒq. Panels do not have a fixed binding point, but are generally linked to the driver private structure that embeds ”…”�”}”(hjo h²hh³Nh´Nubh)�”}”(hŒ.:c:type:`struct drm_connector `”h]”hé)�”}”(hjÀ h]”hŒstruct drm_connector”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”(hôhõŒc-type”eh"]”h$]”h&]”uh1hèhj¾ ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”hõŒreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰jŒ drm_connector”uh1hh³hÃh´K–hjo ubhŒ.”…”�”}”(hjo h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³hÃh´K–hj3 h²hubhÛ)�”}”(hŒŠNote that currently the bridge chaining and interactions with connectors and panels are still in-flux and not really fully sorted out yet.”h]”hŒŠNote that currently the bridge chaining and interactions with connectors and panels are still in-flux and not really fully sorted out yet.”…”�”}”(hjç h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³hÃh´K›hj3 h²hubeh}”(h]”jžah ]”h"]”Œoverview”ah$]”h&]”uh1hÄhhÆh²hh³hÃh´KubhÅ)�”}”(hhh]”(hÊ)�”}”(hŒ!KMS Core Structures and Functions”h]”hŒ!KMS Core Structures and Functions”…”�”}”(hjÿ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”hÁjºuh1hÉhjü h²hh³hÃh´KŸubhŒindex”“”)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(Œsingle”Œ drm_mode_config_funcs (C struct)”Œc.drm_mode_config_funcs”hNt”auh1j hjü h²hh³Nh´NubhŒdesc”“”)�”}”(hhh]”(hŒdesc_signature”“”)�”}”(hŒdrm_mode_config_funcs”h]”hŒdesc_signature_line”“”)�”}”(hŒstruct drm_mode_config_funcs”h]”(hŒdesc_sig_keyword”“”)�”}”(hŒstruct”h]”hŒstruct”…”�”}”(hj1 h²hh³Nh´Nubah}”(h]”h ]”Œk”ah"]”h$]”h&]”uh1j/ hj+ h²hh³ŒZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-kms:161: ./include/drm/drm_mode_config.h”h´KubhŒdesc_sig_space”“”)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjC h²hh³Nh´Nubah}”(h]”h ]”Œw”ah"]”h$]”h&]”uh1jA hj+ h²hh³j@ h´KubhŒ desc_name”“”)�”}”(hŒdrm_mode_config_funcs”h]”hŒ desc_sig_name”“”)�”}”(hj' h]”hŒdrm_mode_config_funcs”…”�”}”(hjZ h²hh³Nh´Nubah}”(h]”h ]”Œn”ah"]”h$]”h&]”uh1jX hjT ubah}”(h]”h ]”(Œsig-name”Œdescname”eh"]”h$]”h&]”j_ j` uh1jR hj+ h²hh³j@ h´Kubeh}”(h]”h ]”h"]”h$]”h&]”j_ j` Œ add_permalink”ˆuh1j) Œsphinx_line_type”Œ declarator”hj% h²hh³j@ h´Kubah}”(h]”j ah ]”(Œsig”Œ sig-object”eh"]”h$]”h&]”Œ is_multiline”ˆŒ _toc_parts”)Œ _toc_name”huh1j# h³j@ h´Khj h²hubhŒ desc_content”“”)�”}”(hhh]”hÛ)�”}”(hŒ,basic driver provided mode setting functions”h]”hŒ,basic driver provided mode setting functions”…”�”}”(hj‰ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³ŒZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-kms:161: ./include/drm/drm_mode_config.h”h´K*hj† h²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j„ hj h²hh³j@ h´Kubeh}”(h]”h ]”(hõŒstruct”eh"]”h$]”h&]”Œdomain”hõŒobjtype”j¡ Œdesctype”j¡ Œnoindex”‰Œ noindexentry”‰Œnocontentsentry”‰uh1j h²hhjü h³Nh´NubhŒ container”“”)�”}”(hX!-**Definition**:: struct drm_mode_config_funcs { struct drm_framebuffer *(*fb_create)(struct drm_device *dev, struct drm_file *file_priv, const struct drm_format_info *info, const struct drm_mode_fb_cmd2 *mode_cmd); const struct drm_format_info *(*get_format_info)(u32 pixel_format, u64 modifier); enum drm_mode_status (*mode_valid)(struct drm_device *dev, const struct drm_display_mode *mode); int (*atomic_check)(struct drm_device *dev, struct drm_atomic_commit *state); int (*atomic_commit)(struct drm_device *dev, struct drm_atomic_commit *state, bool nonblock); struct drm_atomic_commit *(*atomic_state_alloc)(struct drm_device *dev); void (*atomic_state_clear)(struct drm_atomic_commit *state); void (*atomic_state_free)(struct drm_atomic_commit *state); }; **Members** ``fb_create`` Create a new framebuffer object. The core does basic checks on the requested metadata, but most of that is left to the driver. See :c:type:`struct drm_mode_fb_cmd2 ` for details. To validate the pixel format and modifier drivers can use drm_any_plane_has_format() to make sure at least one plane supports the requested values. Note that the driver must first determine the actual modifier used if the request doesn't have it specified, ie. when (**mode_cmd->flags** & DRM_MODE_FB_MODIFIERS) == 0. IMPORTANT: These implied modifiers for legacy userspace must be stored in struct :c:type:`drm_framebuffer`, including all relevant metadata like :c:type:`drm_framebuffer.pitches ` and :c:type:`drm_framebuffer.offsets ` if the modifier enables additional planes beyond the fourcc pixel format code. This is required by the GETFB2 ioctl. If the parameters are deemed valid and the backing storage objects in the underlying memory manager all exist, then the driver allocates a new :c:type:`drm_framebuffer` structure, subclassed to contain driver-specific information (like the internal native buffer object references). It also needs to fill out all relevant metadata, which should be done by calling drm_helper_mode_fill_fb_struct(). The initialization is finalized by calling drm_framebuffer_init(), which registers the framebuffer and makes it accessible to other threads. RETURNS: A new framebuffer with an initial reference count of 1 or a negative error code encoded with ERR_PTR(). ``get_format_info`` Allows a driver to return custom format information for special fb layouts (eg. ones with auxiliary compression control planes). RETURNS: The format information specific to the given fb metadata, or NULL if none is found. ``mode_valid`` Device specific validation of display modes. Can be used to reject modes that can never be supported. Only device wide constraints can be checked here. crtc/encoder/bridge/connector specific constraints should be checked in the .mode_valid() hook for each specific object. ``atomic_check`` This is the only hook to validate an atomic modeset update. This function must reject any modeset and state changes which the hardware or driver doesn't support. This includes but is of course not limited to: - Checking that the modes, framebuffers, scaling and placement requirements and so on are within the limits of the hardware. - Checking that any hidden shared resources are not oversubscribed. This can be shared PLLs, shared lanes, overall memory bandwidth, display fifo space (where shared between planes or maybe even CRTCs). - Checking that virtualized resources exported to userspace are not oversubscribed. For various reasons it can make sense to expose more planes, crtcs or encoders than which are physically there. One example is dual-pipe operations (which generally should be hidden from userspace if when lockstepped in hardware, exposed otherwise), where a plane might need 1 hardware plane (if it's just on one pipe), 2 hardware planes (when it spans both pipes) or maybe even shared a hardware plane with a 2nd plane (if there's a compatible plane requested on the area handled by the other pipe). - Check that any transitional state is possible and that if requested, the update can indeed be done in the vblank period without temporarily disabling some functions. - Check any other constraints the driver or hardware might have. - This callback also needs to correctly fill out the :c:type:`drm_crtc_state` in this update to make sure that drm_atomic_crtc_needs_modeset() reflects the nature of the possible update and returns true if and only if the update cannot be applied without tearing within one vblank on that CRTC. The core uses that information to reject updates which require a full modeset (i.e. blanking the screen, or at least pausing updates for a substantial amount of time) if userspace has disallowed that in its request. - The driver also does not need to repeat basic input validation like done for the corresponding legacy entry points. The core does that before calling this hook. See the documentation of **atomic_commit** for an exhaustive list of error conditions which don't have to be checked at the in this callback. See the documentation for :c:type:`struct drm_atomic_commit ` for how exactly an atomic modeset update is described. Drivers using the atomic helpers can implement this hook using drm_atomic_helper_check(), or one of the exported sub-functions of it. RETURNS: 0 on success or one of the below negative error codes: - -EINVAL, if any of the above constraints are violated. - -EDEADLK, when returned from an attempt to acquire an additional :c:type:`drm_modeset_lock` through drm_modeset_lock(). - -ENOMEM, if allocating additional state sub-structures failed due to lack of memory. - -EINTR, -EAGAIN or -ERESTARTSYS, if the IOCTL should be restarted. This can either be due to a pending signal, or because the driver needs to completely bail out to recover from an exceptional situation like a GPU hang. From a userspace point all errors are treated equally. ``atomic_commit`` This is the only hook to commit an atomic modeset update. The core guarantees that **atomic_check** has been called successfully before calling this function, and that nothing has been changed in the interim. See the documentation for :c:type:`struct drm_atomic_commit ` for how exactly an atomic modeset update is described. Drivers using the atomic helpers can implement this hook using drm_atomic_helper_commit(), or one of the exported sub-functions of it. Nonblocking commits (as indicated with the nonblock parameter) must do any preparatory work which might result in an unsuccessful commit in the context of this callback. The only exceptions are hardware errors resulting in -EIO. But even in that case the driver must ensure that the display pipe is at least running, to avoid compositors crashing when pageflips don't work. Anything else, specifically committing the update to the hardware, should be done without blocking the caller. For updates which do not require a modeset this must be guaranteed. The driver must wait for any pending rendering to the new framebuffers to complete before executing the flip. It should also wait for any pending rendering from other drivers if the underlying buffer is a shared dma-buf. Nonblocking commits must not wait for rendering in the context of this callback. An application can request to be notified when the atomic commit has completed. These events are per-CRTC and can be distinguished by the CRTC index supplied in :c:type:`drm_event` to userspace. The drm core will supply a :c:type:`struct drm_event ` in each CRTC's :c:type:`drm_crtc_state.event `. See the documentation for :c:type:`drm_crtc_state.event ` for more details about the precise semantics of this event. NOTE: Drivers are not allowed to shut down any display pipe successfully enabled through an atomic commit on their own. Doing so can result in compositors crashing if a page flip is suddenly rejected because the pipe is off. RETURNS: 0 on success or one of the below negative error codes: - -EBUSY, if a nonblocking updated is requested and there is an earlier updated pending. Drivers are allowed to support a queue of outstanding updates, but currently no driver supports that. Note that drivers must wait for preceding updates to complete if a synchronous update is requested, they are not allowed to fail the commit in that case. - -ENOMEM, if the driver failed to allocate memory. Specifically this can happen when trying to pin framebuffers, which must only be done when committing the state. - -ENOSPC, as a refinement of the more generic -ENOMEM to indicate that the driver has run out of vram, iommu space or similar GPU address space needed for framebuffer. - -EIO, if the hardware completely died. - -EINTR, -EAGAIN or -ERESTARTSYS, if the IOCTL should be restarted. This can either be due to a pending signal, or because the driver needs to completely bail out to recover from an exceptional situation like a GPU hang. From a userspace point of view all errors are treated equally. This list is exhaustive. Specifically this hook is not allowed to return -EINVAL (any invalid requests should be caught in **atomic_check**) or -EDEADLK (this function must not acquire additional modeset locks). ``atomic_state_alloc`` This optional hook can be used by drivers that want to subclass struct :c:type:`drm_atomic_commit` to be able to track their own driver-private global state easily. If this hook is implemented, drivers must also implement **atomic_state_clear** and **atomic_state_free**. Subclassing of :c:type:`drm_atomic_commit` is deprecated in favour of using :c:type:`drm_private_state` and :c:type:`drm_private_obj`. RETURNS: A new :c:type:`drm_atomic_commit` on success or NULL on failure. ``atomic_state_clear`` This hook must clear any driver private state duplicated into the passed-in :c:type:`drm_atomic_commit`. This hook is called when the caller encountered a :c:type:`drm_modeset_lock` deadlock and needs to drop all already acquired locks as part of the deadlock avoidance dance implemented in drm_modeset_backoff(). Any duplicated state must be invalidated since a concurrent atomic update might change it, and the drm atomic interfaces always apply updates as relative changes to the current state. Drivers that implement this must call drm_atomic_commit_default_clear() to clear common state. Subclassing of :c:type:`drm_atomic_commit` is deprecated in favour of using :c:type:`drm_private_state` and :c:type:`drm_private_obj`. ``atomic_state_free`` This hook needs driver private resources and the :c:type:`drm_atomic_commit` itself. Note that the core first calls drm_atomic_commit_clear() to avoid code duplicate between the clear and free hooks. Drivers that implement this must call drm_atomic_commit_default_release() to release common resources. Subclassing of :c:type:`drm_atomic_commit` is deprecated in favour of using :c:type:`drm_private_state` and :c:type:`drm_private_obj`.”h]”(hÛ)�”}”(hŒ**Definition**::”h]”(hŒstrong”“”)�”}”(hŒ**Definition**”h]”hŒ Definition”…”�”}”(hj· h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jµ hj± ubhŒ:”…”�”}”(hj± h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³ŒZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-kms:161: ./include/drm/drm_mode_config.h”h´K.hj­ ubjP )�”}”(hX struct drm_mode_config_funcs { struct drm_framebuffer *(*fb_create)(struct drm_device *dev, struct drm_file *file_priv, const struct drm_format_info *info, const struct drm_mode_fb_cmd2 *mode_cmd); const struct drm_format_info *(*get_format_info)(u32 pixel_format, u64 modifier); enum drm_mode_status (*mode_valid)(struct drm_device *dev, const struct drm_display_mode *mode); int (*atomic_check)(struct drm_device *dev, struct drm_atomic_commit *state); int (*atomic_commit)(struct drm_device *dev, struct drm_atomic_commit *state, bool nonblock); struct drm_atomic_commit *(*atomic_state_alloc)(struct drm_device *dev); void (*atomic_state_clear)(struct drm_atomic_commit *state); void (*atomic_state_free)(struct drm_atomic_commit *state); };”h]”hX struct drm_mode_config_funcs { struct drm_framebuffer *(*fb_create)(struct drm_device *dev, struct drm_file *file_priv, const struct drm_format_info *info, const struct drm_mode_fb_cmd2 *mode_cmd); const struct drm_format_info *(*get_format_info)(u32 pixel_format, u64 modifier); enum drm_mode_status (*mode_valid)(struct drm_device *dev, const struct drm_display_mode *mode); int (*atomic_check)(struct drm_device *dev, struct drm_atomic_commit *state); int (*atomic_commit)(struct drm_device *dev, struct drm_atomic_commit *state, bool nonblock); struct drm_atomic_commit *(*atomic_state_alloc)(struct drm_device *dev); void (*atomic_state_clear)(struct drm_atomic_commit *state); void (*atomic_state_free)(struct drm_atomic_commit *state); };”…”�”}”hjÐ sbah}”(h]”h ]”h"]”h$]”h&]”j_ j` uh1jO h³ŒZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-kms:161: ./include/drm/drm_mode_config.h”h´K0hj­ ubhÛ)�”}”(hŒ **Members**”h]”j¶ )�”}”(hjá h]”hŒMembers”…”�”}”(hjã h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jµ hjß ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³ŒZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-kms:161: ./include/drm/drm_mode_config.h”h´K;hj­ ubhŒdefinition_list”“”)�”}”(hhh]”(hŒdefinition_list_item”“”)�”}”(hX``fb_create`` Create a new framebuffer object. The core does basic checks on the requested metadata, but most of that is left to the driver. See :c:type:`struct drm_mode_fb_cmd2 ` for details. To validate the pixel format and modifier drivers can use drm_any_plane_has_format() to make sure at least one plane supports the requested values. Note that the driver must first determine the actual modifier used if the request doesn't have it specified, ie. when (**mode_cmd->flags** & DRM_MODE_FB_MODIFIERS) == 0. IMPORTANT: These implied modifiers for legacy userspace must be stored in struct :c:type:`drm_framebuffer`, including all relevant metadata like :c:type:`drm_framebuffer.pitches ` and :c:type:`drm_framebuffer.offsets ` if the modifier enables additional planes beyond the fourcc pixel format code. This is required by the GETFB2 ioctl. If the parameters are deemed valid and the backing storage objects in the underlying memory manager all exist, then the driver allocates a new :c:type:`drm_framebuffer` structure, subclassed to contain driver-specific information (like the internal native buffer object references). It also needs to fill out all relevant metadata, which should be done by calling drm_helper_mode_fill_fb_struct(). The initialization is finalized by calling drm_framebuffer_init(), which registers the framebuffer and makes it accessible to other threads. RETURNS: A new framebuffer with an initial reference count of 1 or a negative error code encoded with ERR_PTR(). ”h]”(hŒterm”“”)�”}”(hŒ ``fb_create``”h]”hé)�”}”(hj h]”hŒ fb_create”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hèhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1j h³ŒZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-kms:161: ./include/drm/drm_mode_config.h”h´KPhjþ ubhŒ definition”“”)�”}”(hhh]”(hÛ)�”}”(hŒÄCreate a new framebuffer object. The core does basic checks on the requested metadata, but most of that is left to the driver. See :c:type:`struct drm_mode_fb_cmd2 ` for details.”h]”(hŒƒCreate a new framebuffer object. The core does basic checks on the requested metadata, but most of that is left to the driver. See ”…”�”}”(hj! h²hh³Nh´Nubh)�”}”(hŒ4:c:type:`struct drm_mode_fb_cmd2 `”h]”hé)�”}”(hj+ h]”hŒstruct drm_mode_fb_cmd2”…”�”}”(hj- h²hh³Nh´Nubah}”(h]”h ]”(hôhõŒc-type”eh"]”h$]”h&]”uh1hèhj) ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”hõŒreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰Œ c:parent_key”Œsphinx.domains.c”Œ LookupKey”“”)�”}”Œdata”]”sbjŒdrm_mode_fb_cmd2”uh1hh³ŒZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-kms:161: ./include/drm/drm_mode_config.h”h´K2hj! ubhŒ for details.”…”�”}”(hj! h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³jP h´K2hj ubhÛ)�”}”(hX=To validate the pixel format and modifier drivers can use drm_any_plane_has_format() to make sure at least one plane supports the requested values. Note that the driver must first determine the actual modifier used if the request doesn't have it specified, ie. when (**mode_cmd->flags** & DRM_MODE_FB_MODIFIERS) == 0.”h]”(hX To validate the pixel format and modifier drivers can use drm_any_plane_has_format() to make sure at least one plane supports the requested values. Note that the driver must first determine the actual modifier used if the request doesn’t have it specified, ie. when (”…”�”}”(hj[ h²hh³Nh´Nubj¶ )�”}”(hŒ**mode_cmd->flags**”h]”hŒmode_cmd->flags”…”�”}”(hjc h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jµ hj[ ubhŒ & DRM_MODE_FB_MODIFIERS) == 0.”…”�”}”(hj[ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÚh³ŒZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-kms:161: ./include/drm/drm_mode_config.h”h´K6hj ubhÛ)�”}”(hXqIMPORTANT: These implied modifiers for legacy userspace must be stored in struct :c:type:`drm_framebuffer`, including all relevant metadata like :c:type:`drm_framebuffer.pitches ` and :c:type:`drm_framebuffer.offsets ` if the modifier enables additional planes beyond the fourcc pixel format code. This is required by the GETFB2 ioctl.”h]”(hŒQIMPORTANT: These implied modifiers for legacy userspace must be stored in struct ”…”�”}”(hj| h²hh³Nh´Nubh)�”}”(hŒ:c:type:`drm_framebuffer`”h]”hé)�”}”(hj† h]”hŒdrm_framebuffer”…”�”}”(hjˆ h²hh³Nh´Nubah}”(h]”h ]”(hôhõŒc-type”eh"]”h$]”h&]”uh1hèhj„ ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”hõŒreftype”Œtype”Œ refexplicit”‰Œrefwarn”‰jG jK jŒdrm_framebuffer”uh1hh³ŒZ/var/lib/git/docbuild/linux/Documentation/gpu/drm-kms:161: ./include/drm/drm_mode_config.h”h´K`”h]”hé)�”}”(hjª h]”hŒdrm_framebuffer.pitches”…”�”}”(hj¬ h²hh³Nh´Nubah}”(h]”h ]”(hôhõŒc-type”eh"]”h$]”h&]”uh1hèhj¨ ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”hõŒreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰jG jK jŒdrm_framebuffer”uh1hh³j£ h´K`”h]”hé)�”}”(hjÍ h]”hŒdrm_framebuffer.offsets”…”�”}”(hjÏ h²hh³Nh´Nubah}”(h]”h ]”(hôhõŒc-type”eh"]”h$]”h&]”uh1hèhjË ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”hõŒreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰jG jK jŒdrm_framebuffer”uh1hh³j£ h´K