Skip to content

Commit 1a00cfa

Browse files
Yang Wangalexdeucher
authored andcommitted
drm/amdgpu: make err_data structure built-in for ras_manager
(No effect outside the ras_mgr data structure) Since a new member was added to the ras_err_data data structure, it becomes unreasonable for the ras_mgr instance to contain this data, because ras mgr only uses the 2 member information of ue_count/ce_count in err_data. This patch changes the code err_data into built-in structure members, making the code directly compatible. Signed-off-by: Yang Wang <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent e341631 commit 1a00cfa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,10 @@ struct ras_manager {
496496
/* IH data */
497497
struct ras_ih_data ih_data;
498498

499-
struct ras_err_data err_data;
499+
struct {
500+
unsigned long ue_count;
501+
unsigned long ce_count;
502+
} err_data;
500503
};
501504

502505
struct ras_badpage {

0 commit comments

Comments
 (0)