]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amdgpu: Correct info field of bad page threshold exceed CPER
authorXiang Liu <xiang.liu@amd.com>
Tue, 2 Sep 2025 14:13:44 +0000 (22:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Nov 2025 20:37:14 +0000 (15:37 -0500)
[ Upstream commit f320ed01cf5f2259e2035a56900952cb3cc77e7a ]

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

Signed-off-by: Xiang Liu <xiang.liu@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c

index ee937d617c82666b26a33c38c25ba0ea611a1256..54de38dbaf2d5e7bd760e0e882bfa107d4f52a4a 100644 (file)
@@ -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);
@@ -220,7 +219,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);