€•»nŒ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/ras”Œ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/ras”Œ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/ras”Œ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/ras”Œ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/ras”Œ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/amdgpu/ras”Œ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/ras”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒAMDGPU RAS Support”h]”hŒAMDGPU RAS Support”…””}”(hh¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhh·h²hh³Œhead is used to indicate which IP block will be under control.”h]”hŒ>head is used to indicate which IP block will be under control.”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MêhhÛh²hubhÌ)”}”(hŒùhead has four members, they are block, type, sub_block_index, name. block: which IP will be under control. type: what kind of error will be enabled/disabled/injected. sub_block_index: some IPs have subcomponets. say, GFX, sDMA. name: the name of IP.”h]”hŒùhead has four members, they are block, type, sub_block_index, name. block: which IP will be under control. type: what kind of error will be enabled/disabled/injected. sub_block_index: some IPs have subcomponets. say, GFX, sDMA. name: the name of IP.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MìhhÛh²hubhÌ)”}”(hŒ™inject has three more members than head, they are address, value and mask. As their names indicate, inject operation will write the value to the address.”h]”hŒ™inject has three more members than head, they are address, value and mask. As their names indicate, inject operation will write the value to the address.”…””}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MòhhÛh²hubhÌ)”}”(hŒMThe second member: struct ras_debug_if::op. It has three kinds of operations.”h]”hŒMThe second member: struct ras_debug_if::op. It has three kinds of operations.”…””}”(hj7h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MöhhÛh²hubhŒ bullet_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒ50: disable RAS on the block. Take ::head as its data.”h]”hÌ)”}”(hjOh]”hŒ50: disable RAS on the block. Take ::head as its data.”…””}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MùhjMubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjHubjL)”}”(hŒ41: enable RAS on the block. Take ::head as its data.”h]”hÌ)”}”(hjgh]”hŒ41: enable RAS on the block. Take ::head as its data.”…””}”(hjih²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´Múhjeubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjHubjL)”}”(hŒ:2: inject errors on the block. Take ::inject as its data. ”h]”hÌ)”}”(hŒ92: inject errors on the block. Take ::inject as its data.”h]”hŒ92: inject errors on the block. Take ::inject as its data.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´Mûhj}ubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjHubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1jFh³j^h´MùhhÛh²hubhÌ)”}”(hŒHow to use the interface?”h]”hŒHow to use the interface?”…””}”(hjžh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MýhhÛh²hubhÌ)”}”(hŒ In a program”h]”hŒ In a program”…””}”(hj­h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MÿhhÛh²hubhÌ)”}”(hŒgCopy the struct ras_debug_if in your code and initialize it. Write the struct to the control interface.”h]”hŒgCopy the struct ras_debug_if in your code and initialize it. Write the struct to the control interface.”…””}”(hj¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MhhÛh²hubhÌ)”}”(hŒ From shell”h]”hŒ From shell”…””}”(hjËh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MhhÛh²hubhŒ literal_block”“”)”}”(hŒôecho "disable " > /sys/kernel/debug/dri//ras/ras_ctrl echo "enable " > /sys/kernel/debug/dri//ras/ras_ctrl echo "inject
" > /sys/kernel/debug/dri//ras/ras_ctrl”h]”hŒôecho "disable " > /sys/kernel/debug/dri//ras/ras_ctrl echo "enable " > /sys/kernel/debug/dri//ras/ras_ctrl echo "inject
" > /sys/kernel/debug/dri//ras/ras_ctrl”…””}”hjÜsbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”Œforce”‰Œlanguage”Œbash”Œhighlight_args”}”uh1jÚh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MhhÛh²hubhÌ)”}”(hŒ.Where N, is the card which you want to affect.”h]”hŒ.Where N, is the card which you want to affect.”…””}”(hjòh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M hhÛh²hubhÌ)”}”(hŒ‹"disable" requires only the block. "enable" requires the block and error type. "inject" requires the block, error type, address, and value.”h]”hŒ—“disable†requires only the block. “enable†requires the block and error type. “inject†requires the block, error type, address, and value.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MhhÛh²hubhŒdefinition_list”“”)”}”(hhh]”(hŒdefinition_list_item”“”)”}”(hŒMThe block is one of: umc, sdma, gfx, etc. see ras_block_string[] for details ”h]”(hŒterm”“”)”}”(hŒ)The block is one of: umc, sdma, gfx, etc.”h]”hŒ)The block is one of: umc, sdma, gfx, etc.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MhjubhŒ definition”“”)”}”(hhh]”hÌ)”}”(hŒ"see ras_block_string[] for details”h]”hŒ"see ras_block_string[] for details”…””}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³j+h´Mhj.ubah}”(h]”h ]”h"]”h$]”h&]”uh1j,hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³j+h´Mhjubj)”}”(hŒwThe error type is one of: ue, ce and poison where, ue is multi-uncorrectable ce is single-correctable poison is poison ”h]”(j)”}”(hŒ2The error type is one of: ue, ce and poison where,”h]”hŒ2The error type is one of: ue, ce and poison where,”…””}”(hjOh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MhjKubj-)”}”(hhh]”hÌ)”}”(hŒCue is multi-uncorrectable ce is single-correctable poison is poison”h]”hŒCue is multi-uncorrectable ce is single-correctable poison is poison”…””}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´Mhj^ubah}”(h]”h ]”h"]”h$]”h&]”uh1j,hjKubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³j]h´Mhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhhÛh²hh³Nh´NubhÌ)”}”(hŒÐThe sub-block is a the sub-block index, pass 0 if there is no sub-block. The address and value are hexadecimal numbers, leading 0x is optional. The mask means instance mask, is optional, default value is 0x1.”h]”hŒÐThe sub-block is a the sub-block index, pass 0 if there is no sub-block. The address and value are hexadecimal numbers, leading 0x is optional. The mask means instance mask, is optional, default value is 0x1.”…””}”(hj‚h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MhhÛh²hubhÌ)”}”(hŒ For instance,”h]”hŒ For instance,”…””}”(hj‘h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MhhÛh²hubjÛ)”}”(hŒ¿echo inject umc ue 0x0 0x0 0x0 > /sys/kernel/debug/dri/0/ras/ras_ctrl echo inject umc ce 0 0 0 3 > /sys/kernel/debug/dri/0/ras/ras_ctrl echo disable umc > /sys/kernel/debug/dri/0/ras/ras_ctrl”h]”hŒ¿echo inject umc ue 0x0 0x0 0x0 > /sys/kernel/debug/dri/0/ras/ras_ctrl echo inject umc ce 0 0 0 3 > /sys/kernel/debug/dri/0/ras/ras_ctrl echo disable umc > /sys/kernel/debug/dri/0/ras/ras_ctrl”…””}”hj sbah}”(h]”h ]”h"]”h$]”h&]”jêjëjì‰jíŒbash”jï}”uh1jÚh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M hhÛh²hubhÌ)”}”(hŒ)How to check the result of the operation?”h]”hŒ)How to check the result of the operation?”…””}”(hj±h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M&hhÛh²hubhÌ)”}”(hŒaTo check disable/enable, see "ras" features at, /sys/class/drm/card[0/1/2...]/device/ras/features”h]”hŒeTo check disable/enable, see “ras†features at, /sys/class/drm/card[0/1/2...]/device/ras/features”…””}”(hjÀh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M(hhÛh²hubhÌ)”}”(hŒ|To check inject, see the corresponding error count at, /sys/class/drm/card[0/1/2...]/device/ras/[gfx|sdma|umc|...]_err_count”h]”hŒ|To check inject, see the corresponding error count at, /sys/class/drm/card[0/1/2...]/device/ras/[gfx|sdma|umc|...]_err_count”…””}”(hjÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M+hhÛh²hubhŒnote”“”)”}”(hŒ¯Operations are only allowed on blocks which are supported. Check the "ras" mask at /sys/module/amdgpu/parameters/ras_mask to see which blocks support RAS on a particular asic.”h]”hÌ)”}”(hŒ¯Operations are only allowed on blocks which are supported. Check the "ras" mask at /sys/module/amdgpu/parameters/ras_mask to see which blocks support RAS on a particular asic.”h]”hŒ³Operations are only allowed on blocks which are supported. Check the “ras†mask at /sys/module/amdgpu/parameters/ras_mask to see which blocks support RAS on a particular asic.”…””}”(hjäh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:11: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M/hjàubah}”(h]”h ]”h"]”h$]”h&]”uh1jÞhhÛh²hh³Nh´Nubeh}”(h]”Œ8ras-debugfs-sysfs-control-and-error-injection-interfaces”ah ]”h"]”Œ8ras debugfs/sysfs control and error injection interfaces”ah$]”h&]”uh1hµhh·h²hh³hÊh´K ubh¶)”}”(hhh]”(h»)”}”(hŒ,RAS Reboot Behavior for Unrecoverable Errors”h]”hŒ,RAS Reboot Behavior for Unrecoverable Errors”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjh²hh³hÊh´KubhÌ)”}”(hŒÝNormally when there is an uncorrectable error, the driver will reset the GPU to recover. However, in the event of an unrecoverable error, the driver provides an interface to reboot the system automatically in that event.”h]”hŒÝNormally when there is an uncorrectable error, the driver will reset the GPU to recover. However, in the event of an unrecoverable error, the driver provides an interface to reboot the system automatically in that event.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:17: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´Muhjh²hubhÌ)”}”(hŒgThe following file in debugfs provides that interface: /sys/kernel/debug/dri/[0/1/2...]/ras/auto_reboot”h]”hŒgThe following file in debugfs provides that interface: /sys/kernel/debug/dri/[0/1/2...]/ras/auto_reboot”…””}”(hj!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:17: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´Mzhjh²hubhÌ)”}”(hŒUsage:”h]”hŒUsage:”…””}”(hj0h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:17: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M}hjh²hubjÛ)”}”(hŒecho true > .../ras/auto_reboot”h]”hŒecho true > .../ras/auto_reboot”…””}”hj?sbah}”(h]”h ]”h"]”h$]”h&]”jêjëjì‰jíŒbash”jï}”uh1jÚh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:17: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´Mhjh²hubeh}”(h]”Œ,ras-reboot-behavior-for-unrecoverable-errors”ah ]”h"]”Œ,ras reboot behavior for unrecoverable errors”ah$]”h&]”uh1hµhh·h²hh³hÊh´Kubh¶)”}”(hhh]”(h»)”}”(hŒRAS Error Count sysfs Interface”h]”hŒRAS Error Count sysfs Interface”…””}”(hj[h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjXh²hh³hÊh´KubhÌ)”}”(hŒ‘It allows the user to read the error count for each IP block on the gpu through /sys/class/drm/card[0/1/2...]/device/ras/[gfx/sdma/...]_err_count”h]”hŒ‘It allows the user to read the error count for each IP block on the gpu through /sys/class/drm/card[0/1/2...]/device/ras/[gfx/sdma/...]_err_count”…””}”(hjih²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:23: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M¶hjXh²hubhÌ)”}”(hŒ`It outputs the multiple lines which report the uncorrected (ue) and corrected (ce) error counts.”h]”hŒ`It outputs the multiple lines which report the uncorrected (ue) and corrected (ce) error counts.”…””}”(hjxh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:23: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M¹hjXh²hubhÌ)”}”(hŒ The format of one line is below,”h]”hŒ The format of one line is below,”…””}”(hj‡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:23: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M¼hjXh²hubhÌ)”}”(hŒ[ce|ue]: count”h]”hŒ[ce|ue]: count”…””}”(hj–h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:23: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M¾hjXh²hubhÌ)”}”(hŒExample:”h]”hŒExample:”…””}”(hj¥h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:23: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MÀhjXh²hubjÛ)”}”(hŒ ue: 0 ce: 1”h]”hŒ ue: 0 ce: 1”…””}”hj´sbah}”(h]”h ]”h"]”h$]”h&]”jêjëjì‰jíŒbash”jï}”uh1jÚh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:23: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MÂhjXh²hubeh}”(h]”Œras-error-count-sysfs-interface”ah ]”h"]”Œras error count sysfs interface”ah$]”h&]”uh1hµhh·h²hh³hÊh´Kubh¶)”}”(hhh]”(h»)”}”(hŒRAS EEPROM debugfs Interface”h]”hŒRAS EEPROM debugfs Interface”…””}”(hjÐh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjÍh²hh³hÊh´KubhÌ)”}”(hŒÔSome boards contain an EEPROM which is used to persistently store a list of bad pages which experiences ECC errors in vram. This interface provides a way to reset the EEPROM, e.g., after testing error injection.”h]”hŒÔSome boards contain an EEPROM which is used to persistently store a list of bad pages which experiences ECC errors in vram. This interface provides a way to reset the EEPROM, e.g., after testing error injection.”…””}”(hjÞh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:29: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M~hjÍh²hubhÌ)”}”(hŒUsage:”h]”hŒUsage:”…””}”(hjíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:29: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M‚hjÍh²hubjÛ)”}”(hŒ echo 1 > ../ras/ras_eeprom_reset”h]”hŒ echo 1 > ../ras/ras_eeprom_reset”…””}”hjüsbah}”(h]”h ]”h"]”h$]”h&]”jêjëjì‰jíŒbash”jï}”uh1jÚh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:29: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M„hjÍh²hubhÌ)”}”(hŒ%will reset EEPROM table to 0 entries.”h]”hŒ%will reset EEPROM table to 0 entries.”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:29: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MˆhjÍh²hubeh}”(h]”Œras-eeprom-debugfs-interface”ah ]”h"]”Œras eeprom debugfs interface”ah$]”h&]”uh1hµhh·h²hh³hÊh´Kubh¶)”}”(hhh]”(h»)”}”(hŒ"RAS VRAM Bad Pages sysfs Interface”h]”hŒ"RAS VRAM Bad Pages sysfs Interface”…””}”(hj'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj$h²hh³hÊh´K!ubhÌ)”}”(hŒ{It allows user to read the bad pages of vram on the gpu through /sys/class/drm/card[0/1/2...]/device/ras/gpu_vram_bad_pages”h]”hŒ{It allows user to read the bad pages of vram on the gpu through /sys/class/drm/card[0/1/2...]/device/ras/gpu_vram_bad_pages”…””}”(hj5h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:35: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MPhj$h²hubhÌ)”}”(hŒAIt outputs multiple lines, and each line stands for one gpu page.”h]”hŒAIt outputs multiple lines, and each line stands for one gpu page.”…””}”(hjDh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:35: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MShj$h²hubhÌ)”}”(hŒ@The format of one line is below, gpu pfn : gpu page size : flags”h]”hŒ@The format of one line is below, gpu pfn : gpu page size : flags”…””}”(hjSh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:35: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MUhj$h²hubhÌ)”}”(hŒYgpu pfn and gpu page size are printed in hex format. flags can be one of below character,”h]”hŒYgpu pfn and gpu page size are printed in hex format. flags can be one of below character,”…””}”(hjbh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:35: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´MXhj$h²hubhÌ)”}”(hŒ;R: reserved, this gpu page is reserved and not able to use.”h]”hŒ;R: reserved, this gpu page is reserved and not able to use.”…””}”(hjqh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:35: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M[hj$h²hubhÌ)”}”(hŒhP: pending for reserve, this gpu page is marked as bad, will be reserved in next window of page_reserve.”h]”hŒhP: pending for reserve, this gpu page is marked as bad, will be reserved in next window of page_reserve.”…””}”(hj€h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:35: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M]hj$h²hubhÌ)”}”(hŒJF: unable to reserve. this gpu page can't be reserved due to some reasons.”h]”hŒLF: unable to reserve. this gpu page can’t be reserved due to some reasons.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:35: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´M`hj$h²hubhÌ)”}”(hŒ Examples:”h]”hŒ Examples:”…””}”(hjžh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:35: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´Mbhj$h²hubjÛ)”}”(hŒ70x00000001 : 0x00001000 : R 0x00000002 : 0x00001000 : P”h]”hŒ70x00000001 : 0x00001000 : R 0x00000002 : 0x00001000 : P”…””}”hj­sbah}”(h]”h ]”h"]”h$]”h&]”jêjëjì‰jíŒbash”jï}”uh1jÚh³Œf/var/lib/git/docbuild/linux/Documentation/gpu/amdgpu/ras:35: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c”h´Mdhj$h²hubeh}”(h]”Œ"ras-vram-bad-pages-sysfs-interface”ah ]”h"]”Œ"ras vram bad pages sysfs interface”ah$]”h&]”uh1hµhh·h²hh³hÊh´K!ubh¶)”}”(hhh]”(h»)”}”(hŒ Sample Code”h]”hŒ Sample Code”…””}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjÆh²hh³hÊh´K'ubhÌ)”}”(hŒ~Sample code for testing error injection can be found here: https://cgit.freedesktop.org/mesa/drm/tree/tests/amdgpu/ras_tests.c”h]”(hŒ;Sample code for testing error injection can be found here: ”…””}”(hj×h²hh³Nh´NubhŒ reference”“”)”}”(hŒChttps://cgit.freedesktop.org/mesa/drm/tree/tests/amdgpu/ras_tests.c”h]”hŒChttps://cgit.freedesktop.org/mesa/drm/tree/tests/amdgpu/ras_tests.c”…””}”(hjáh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jãuh1jßhj×ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K(hjÆh²hubhÌ)”}”(hŒpThis is part of the libdrm amdgpu unit tests which cover several areas of the GPU. There are four sets of tests:”h]”hŒpThis is part of the libdrm amdgpu unit tests which cover several areas of the GPU. There are four sets of tests:”…””}”(hjöh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K+hjÆh²hubhÌ)”}”(hŒRAS Basic Test”h]”hŒRAS Basic Test”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K.hjÆh²hubhÌ)”}”(hŒrThe test verifies the RAS feature enabled status and makes sure the necessary sysfs and debugfs files are present.”h]”hŒrThe test verifies the RAS feature enabled status and makes sure the necessary sysfs and debugfs files are present.”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K0hjÆh²hubhÌ)”}”(hŒRAS Query Test”h]”hŒRAS Query Test”…””}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K3hjÆh²hubhÌ)”}”(hŒtThis test checks the RAS availability and enablement status for each supported IP block as well as the error counts.”h]”hŒtThis test checks the RAS availability and enablement status for each supported IP block as well as the error counts.”…””}”(hj.h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K5hjÆh²hubhÌ)”}”(hŒRAS Inject Test”h]”hŒRAS Inject Test”…””}”(hj<h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K8hjÆh²hubhÌ)”}”(hŒ%This test injects errors for each IP.”h]”hŒ%This test injects errors for each IP.”…””}”(hjJh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K:hjÆh²hubhÌ)”}”(hŒRAS Disable Test”h]”hŒRAS Disable Test”…””}”(hjXh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KhjÆh²hubeh}”(h]”Œ sample-code”ah ]”h"]”Œ sample code”ah$]”h&]”uh1hµhh·h²hh³hÊh´K'ubeh}”(h]”Œamdgpu-ras-support”ah ]”h"]”Œamdgpu ras support”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”}”(jj~jþjûjUjRjÊjÇj!jjÃjÀjyjvuŒ nametypes”}”(j‰jþ‰jU‰jʉj!‰jÉjy‰uh}”(j~h·jûhÛjRjjÇjXjjÍjÀj$jvjÆ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.