diff options
| author | Guchun Chen <[email protected]> | 2020-07-22 02:00:27 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-08-04 21:25:58 +0000 |
| commit | c84d46707ebbfc303268e27d5aeb8bb4e6d5b1ff (patch) | |
| tree | a81b4752c33d2278e1cf86f1b6e8587eacbfbacb /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | |
| parent | drm/amdgpu: add bad page count threshold in module parameter(v3) (diff) | |
| download | kernel-c84d46707ebbfc303268e27d5aeb8bb4e6d5b1ff.tar.gz kernel-c84d46707ebbfc303268e27d5aeb8bb4e6d5b1ff.zip | |
drm/amdgpu: validate bad page threshold in ras(v3)
Bad page threshold value should be valid in the range between
-1 and max records length of eeprom. It could determine when
saved bad pages exceed threshold value, and proceed corresponding
actions.
v2: When using the default typical value, it should be min
value between typical value and eeprom max records length.
v3: drop the case of setting bad_page_cnt_threshold to be
0xFFFFFFFF, as it confuses user.
Signed-off-by: Guchun Chen <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h index b2667342cf67..4672649a9293 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h @@ -336,6 +336,9 @@ struct amdgpu_ras { struct amdgpu_ras_eeprom_control eeprom_control; bool error_query_ready; + + /* bad page count threshold */ + uint32_t bad_page_cnt_threshold; }; struct ras_fs_data { |
