€•êmŒ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Œ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.”…””}”(hhö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.”…””}”(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Œ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.”…””}”(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Œ bullet_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒ50: disable RAS on the block. Take ::head as its data.”h]”h¸)”}”(hj;h]”hŒ50: disable RAS on the block. Take ::head as its data.”…””}”(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¢hj9ubah}”(h]”h ]”h"]”h$]”h&]”uh1j7hj4ubj8)”}”(hŒ41: enable RAS on the block. Take ::head as its data.”h]”h¸)”}”(hjSh]”hŒ41: enable RAS on the block. Take ::head as its data.”…””}”(hjUhž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£hjQubah}”(h]”h ]”h"]”h$]”h&]”uh1j7hj4ubj8)”}”(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.”…””}”(hjmhž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¤hjiubah}”(h]”h ]”h"]”h$]”h&]”uh1j7hj4ubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1j2hŸjJh 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 MªhhÇ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 M­hhÇ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 M¯hhÇ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.”…””}”(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Œ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.”…””}”(hj hž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 M¼hjubhŒ definition”“”)”}”(hhh]”h¸)”}”(hŒ"see ras_block_string[] for details”h]”hŒ"see ras_block_string[] for details”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸjh M¼hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhŸjh M¼hjþubj)”}”(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,”…””}”(hj;hž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 MÁhj7ubj)”}”(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”…””}”(hjMhž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¿hjJubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj7ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhŸjIh MÁhjþubeh}”(h]”h ]”h"]”h$]”h&]”uh1jühhÇ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.”…””}”(hjnhž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Œ 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 MÇhhÇ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?”…””}”(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Œ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”…””}”(hjðhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hjíhž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.”…””}”(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 M‘hjíhž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 M–hjíhžhubh¸)”}”(hŒUsage:”h]”hŒUsage:”…””}”(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 M™hjíhž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 M›hjíhž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”…””}”(hjGhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hjDhž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”…””}”(hjUhž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[hjDhž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.”…””}”(hjdhž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^hjDhžhubh¸)”}”(hŒ The format of one line is below,”h]”hŒ The format of one line is below,”…””}”(hjshž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 MahjDhž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 MchjDhž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 MehjDhž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 MghjDhž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 M2hj¹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”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hjhž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”…””}”(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«hjhž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.”…””}”(hj0hž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®hjhž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”…””}”(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°hjhž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,”…””}”(hjNhž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³hjhž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.”…””}”(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¶hjhž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.”…””}”(hjlhž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¸hjhž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.”…””}”(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»hjhž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 M½hjhž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 M¿hjhž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”…””}”(hjðhž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.”…””}”(hjþhž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.”…””}”(hjhž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.”…””}”(hj6hž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”…””}”(hjDhž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”}”(jmjjjêjçjAj>j¶j³j j j¯j¬jejbuŒ nametypes”}”(jm‰jê‰jA‰j¶‰j ‰j¯‰je‰uh}”(jjh£jçhÇj>jíj³jDj j¹j¬jjbj²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.