aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h
diff options
context:
space:
mode:
authorGravatar Guchun Chen <guchun.chen@amd.com> 2019-08-16 15:06:52 +0800
committerGravatar Alex Deucher <alexander.deucher@amd.com> 2019-08-23 11:30:32 -0500
commit64cc5414fbf673cf676e257f9d6c999357947488 (patch)
tree24a9b1742343028bf36131c851ccaac216f4cc5d /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h
parentdrm/amd/display: fix calc_pll_max_vco_construct (diff)
downloadlinux-64cc5414fbf673cf676e257f9d6c999357947488.tar.gz
linux-64cc5414fbf673cf676e257f9d6c999357947488.tar.bz2
linux-64cc5414fbf673cf676e257f9d6c999357947488.zip
drm/amdgpu: correct ras error count type
Use unsigned long type for the same ras count variable. This will avoid overflow on 64 bit system. Signed-off-by: Guchun Chen <guchun.chen@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h
index 5f1b54c9bcdb..da808633732b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h
@@ -49,8 +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;
+ unsigned long ras_counter_ce;
+ unsigned long ras_counter_ue;
};
struct amdgpu_ctx_mgr {