diff options
author | 2018-12-17 14:31:12 +0800 | |
---|---|---|
committer | 2019-03-19 15:36:51 -0500 | |
commit | ae363a212b145a0d4e0507e26e6c1b937181ec34 (patch) | |
tree | b09dd859ca174520322d07fc78d27e748db812d6 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | |
parent | drm/amdgpu: enable ras on gmc9 (diff) | |
download | linux-ae363a212b145a0d4e0507e26e6c1b937181ec34.tar.gz linux-ae363a212b145a0d4e0507e26e6c1b937181ec34.tar.bz2 linux-ae363a212b145a0d4e0507e26e6c1b937181ec34.zip |
drm/amdgpu: Add a new flag to AMDGPU_CTX_OP_QUERY_STATE2
Add AMDGPU_CTX_QUERY2_FLAGS_RAS_CE/UE which indicate if any error happened
between previous query and this query.
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h index b3b012c0a7da..8e561daa64cb 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h @@ -49,6 +49,8 @@ struct amdgpu_ctx { enum drm_sched_priority override_priority; struct mutex lock; atomic_t guilty; + uint32_t ras_counter_ce; + uint32_t ras_counter_ue; }; struct amdgpu_ctx_mgr { |