diff options
| author | Luben Tuikov <[email protected]> | 2021-04-30 00:15:42 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-07-01 04:25:33 +0000 |
| commit | 1d9d2ca85b32605ac9c74c8fa42d0c1cfbe019d4 (patch) | |
| tree | a8c19dff506f3d0434b3ac9b18c4653e40d483b5 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | |
| parent | drm/amdgpu: fix 64 bit divide in eeprom code (diff) | |
| download | kernel-1d9d2ca85b32605ac9c74c8fa42d0c1cfbe019d4.tar.gz kernel-1d9d2ca85b32605ac9c74c8fa42d0c1cfbe019d4.zip | |
drm/amdgpu: Fix koops when accessing RAS EEPROM
Debugfs RAS EEPROM files are available when
the ASIC supports RAS, and when the debugfs is
enabled, an also when "ras_enable" module
parameter is set to 0. However in this case,
we get a kernel oops when accessing some of
the "ras_..." controls in debugfs. The reason
for this is that struct amdgpu_ras::adev is
unset. This commit sets it, thus enabling access
to those facilities. Note that this facilitates
EEPROM access and not necessarily RAS features or
functionality.
Cc: Alexander Deucher <[email protected]>
Cc: John Clements <[email protected]>
Cc: Hawking Zhang <[email protected]>
Signed-off-by: Luben Tuikov <[email protected]>
Acked-by: Alexander Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h')
0 files changed, 0 insertions, 0 deletions
