drm/amdgpu: Fix usage of UMC fill record in RAS
authorjsg <jsg@openbsd.org>
Thu, 20 Jul 2023 08:49:41 +0000 (08:49 +0000)
committerjsg <jsg@openbsd.org>
Thu, 20 Jul 2023 08:49:41 +0000 (08:49 +0000)
From Luben Tuikov
0e2c51a16fcb9e69923906bdaecdbbe1ea4fb8e9 in linux-6.1.y/6.1.39
71344a718a9fda8c551cdc4381d354f9a9907f6f in mainline linux

sys/dev/pci/drm/amd/amdgpu/amdgpu_ras.c

index 85b3e85..fb5be1c 100644 (file)
@@ -170,8 +170,7 @@ static int amdgpu_reserve_page_direct(struct amdgpu_device *adev, uint64_t addre
 
        memset(&err_rec, 0x0, sizeof(struct eeprom_table_record));
        err_data.err_addr = &err_rec;
-       amdgpu_umc_fill_error_record(&err_data, address,
-                       (address >> AMDGPU_GPU_PAGE_SHIFT), 0, 0);
+       amdgpu_umc_fill_error_record(&err_data, address, address, 0, 0);
 
        if (amdgpu_bad_page_threshold != 0) {
                amdgpu_ras_add_bad_pages(adev, err_data.err_addr,