drm/amdgpu: protect eeprom update from GPU reset
authorDennis Li <Dennis.Li@amd.com>
Wed, 14 Oct 2020 09:11:41 +0000 (17:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Oct 2020 20:13:43 +0000 (16:13 -0400)
commit40e7ed973ad99edad24993540ddb26dd45b9441e
tree48f3bf40d79d3c09ce5dc34acad1279a2cabc300
parenta3bab3258568fa3157b0d657328ea3c6a2d924d7
drm/amdgpu: protect eeprom update from GPU reset

because i2c is unstable in GPU reset, driver need protect
eeprom update from GPU reset, to not miss any bad page record.

Signed-off-by: Dennis Li <Dennis.Li@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c