File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,7 @@ int amdgpu_cper_generate_ue_record(struct amdgpu_device *adev,
280
280
{
281
281
struct cper_hdr * fatal = NULL ;
282
282
struct cper_sec_crashdump_reg_data reg_data = { 0 };
283
+ struct amdgpu_ring * ring = & adev -> cper .ring_buf ;
283
284
int ret ;
284
285
285
286
fatal = amdgpu_cper_alloc_entry (adev , AMDGPU_CPER_TYPE_FATAL , 1 );
@@ -302,7 +303,7 @@ int amdgpu_cper_generate_ue_record(struct amdgpu_device *adev,
302
303
if (ret )
303
304
return ret ;
304
305
305
- /*TODO: commit the cper entry to cper ring */
306
+ amdgpu_cper_ring_write ( ring , fatal , fatal -> record_length );
306
307
307
308
return 0 ;
308
309
}
@@ -329,6 +330,7 @@ int amdgpu_cper_generate_ce_records(struct amdgpu_device *adev,
329
330
{
330
331
struct cper_hdr * corrected = NULL ;
331
332
enum cper_error_severity sev = CPER_SEV_NON_FATAL_CORRECTED ;
333
+ struct amdgpu_ring * ring = & adev -> cper .ring_buf ;
332
334
uint32_t reg_data [CPER_ACA_REG_COUNT ] = { 0 };
333
335
struct aca_bank_node * node ;
334
336
struct aca_bank * bank ;
@@ -377,7 +379,7 @@ int amdgpu_cper_generate_ce_records(struct amdgpu_device *adev,
377
379
return ret ;
378
380
}
379
381
380
- /*TODO: commit the cper entry to cper ring */
382
+ amdgpu_cper_ring_write ( ring , corrected , corrected -> record_length );
381
383
382
384
return 0 ;
383
385
}
You can’t perform that action at this time.
0 commit comments