···17841784 WREG32(mmBIOS_SCRATCH_0 + i, adev->bios_scratch[i]);17851785}1786178617871787+void amdgpu_atombios_scratch_regs_engine_hung(struct amdgpu_device *adev,17881788+ bool hung)17891789+{17901790+ u32 tmp = RREG32(mmBIOS_SCRATCH_3);17911791+17921792+ if (hung)17931793+ tmp |= ATOM_S3_ASIC_GUI_ENGINE_HUNG;17941794+ else17951795+ tmp &= ~ATOM_S3_ASIC_GUI_ENGINE_HUNG;17961796+17971797+ WREG32(mmBIOS_SCRATCH_3, tmp);17981798+}17991799+17871800/* Atom needs data in little endian format17881801 * so swap as appropriate when copying data to17891802 * or from atom. Note that atom operates on