diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-06-14 11:46:54 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-06-14 11:55:22 -0400 |
commit | e14c5873d2a311e1fb78572b3aefa3880100bc9c (patch) | |
tree | 4f1d692619293b653046e06bdb17e7fa36c71720 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | |
parent | 744ed8cb8a4707f04a79904a45cf8f951a28abd6 (diff) | |
parent | f3a5231c8f14acd42845e9e60f506b4e948f0e68 (diff) |
Merge branch 'drm-fixes-5.2' of git://people.freedesktop.org/~agd5f/linux into drm-fixes
Fixes for 5.2:
- Extend previous vce fix for resume to uvd and vcn
- Fix bounds checking in ras debugfs interface
- Fix a regression on SI using amdgpu
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
From: Alex Deucher <alexdeucher@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190613021856.3307-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h index eaef5edefc34..24c6e5fcda86 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | |||
@@ -172,6 +172,8 @@ static inline int amdgpu_ras_is_supported(struct amdgpu_device *adev, | |||
172 | { | 172 | { |
173 | struct amdgpu_ras *ras = amdgpu_ras_get_context(adev); | 173 | struct amdgpu_ras *ras = amdgpu_ras_get_context(adev); |
174 | 174 | ||
175 | if (block >= AMDGPU_RAS_BLOCK_COUNT) | ||
176 | return 0; | ||
175 | return ras && (ras->supported & (1 << block)); | 177 | return ras && (ras->supported & (1 << block)); |
176 | } | 178 | } |
177 | 179 | ||