Skip to contentSkip to conversation

drm/amdgpu: Correct info field of bad page threshold exceed CPER

PATCH In review Xiang Liu 2 participants 2 messages Sep 2, 2025 – Sep 3, 2025

Subsystems (2)
lore
Share & tools
lore

Xiang Liu

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Correct info field of bad page threshold exceed CPER

Correct valid_bits and ms_chk_bits of section info field for bad page threshold exceed CPER to match OOB's behavior.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c +3 -1
index 15dde1f50328..287a54086620 100644
@@ -68,7 +68,6 @@ void amdgpu_cper_entry_fill_hdr(struct amdgpu_device *adev,
 	hdr->error_severity		= sev;
 
 	hdr->valid_bits.platform_id	= 1;
-	hdr->valid_bits.partition_id	= 1;
 	hdr->valid_bits.timestamp	= 1;
 
 	amdgpu_cper_get_timestamp(&hdr->timestamp);
@@ -219,7 +218,10 @@ int amdgpu_cper_entry_fill_bad_page_threshold_section(struct amdgpu_device *adev
 	section->hdr.valid_bits.err_context_cnt = 1;
 
 	section->info.error_type = RUNTIME;
+	section->info.valid_bits.ms_chk = 1;
 	section->info.ms_chk_bits.err_type_valid = 1;
+	section->info.ms_chk_bits.err_type = 1;
+	section->info.ms_chk_bits.pcc = 1;
 	section->ctx.reg_ctx_type = CPER_CTX_TYPE_CRASH;
 	section->ctx.reg_arr_size = sizeof(section->ctx.reg_dump);
 
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Regards,
Hawking
-----Original Message-----
From: Liu, Xiang(Dean) <[email protected]>
Sent: Tuesday, September 2, 2025 22:45
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Liu, Xiang(Dean) <[email protected]>
Subject: [PATCH] drm/amdgpu: Correct info field of bad page threshold exceed CPER

Correct valid_bits and ms_chk_bits of section info field for bad page threshold exceed CPER to match OOB's behavior.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c +3 -1
index 15dde1f50328..287a54086620 100644
@@ -68,7 +68,6 @@ void amdgpu_cper_entry_fill_hdr(struct amdgpu_device *adev,
        hdr->error_severity             = sev;
 
        hdr->valid_bits.platform_id     = 1;
-       hdr->valid_bits.partition_id    = 1;
        hdr->valid_bits.timestamp       = 1;
 
        amdgpu_cper_get_timestamp(&hdr->timestamp);
@@ -219,7 +218,10 @@ int amdgpu_cper_entry_fill_bad_page_threshold_section(struct amdgpu_device *adev
        section->hdr.valid_bits.err_context_cnt = 1;
 
        section->info.error_type = RUNTIME;
+       section->info.valid_bits.ms_chk = 1;
        section->info.ms_chk_bits.err_type_valid = 1;
+       section->info.ms_chk_bits.err_type = 1;
+       section->info.ms_chk_bits.pcc = 1;
        section->ctx.reg_ctx_type = CPER_CTX_TYPE_CRASH;
        section->ctx.reg_arr_size = sizeof(section->ctx.reg_dump);
 

--
2.34.1