Skip to contentSkip to conversation

drm/amdgpu: use GPU PAGE SHIFT for umc retired page

PATCH In review Zhou1, Tao 3 participants 3 messages Sep 17, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Zhou1, Tao

author
#0 lore raw

PATCH 1/1 drm/amdgpu: use GPU PAGE SHIFT for umc retired page

umc retired page belongs to vram and it should be aligned to gpu page size

---
 drivers/gpu/drm/amd/amdgpu/umc_v6_1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/umc_v6_1.c +1 -1
index 1c0da32c1561..47c4b96b14d1 100644
@@ -213,7 +213,7 @@ static void umc_v6_1_query_error_address(struct amdgpu_device *adev,
 				== 1) {
 			err_rec->address = err_addr;
 			/* page frame address is saved */
-			err_rec->retired_page = retired_page >> PAGE_SHIFT;
+			err_rec->retired_page = retired_page >> AMDGPU_GPU_PAGE_SHIFT;
 			err_rec->ts = (uint64_t)ktime_get_real_seconds();
 			err_rec->err_type = AMDGPU_RAS_EEPROM_ERR_NON_RECOVERABLE;
 			err_rec->cu = 0;
Signature · 6 lines
2.17.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

Reviewed-by Guchun Chen
#2 lore raw

Regards,
Guchun

-----Original Message-----
From: Zhou1, Tao <[email protected]>
Sent: Tuesday, September 17, 2019 2:22 PM
To: [email protected]; Chen, Guchun <[email protected]>; Zhang, Hawking <[email protected]>; Deucher, Alexander <[email protected]>
Cc: Zhou1, Tao <[email protected]>
Subject: [PATCH] drm/amdgpu: use GPU PAGE SHIFT for umc retired page

umc retired page belongs to vram and it should be aligned to gpu page size

---
 drivers/gpu/drm/amd/amdgpu/umc_v6_1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/umc_v6_1.c +1 -1
index 1c0da32c1561..47c4b96b14d1 100644
@@ -213,7 +213,7 @@ static void umc_v6_1_query_error_address(struct amdgpu_device *adev,
 				== 1) {
 			err_rec->address = err_addr;
 			/* page frame address is saved */
-			err_rec->retired_page = retired_page >> PAGE_SHIFT;
+			err_rec->retired_page = retired_page >> AMDGPU_GPU_PAGE_SHIFT;
 			err_rec->ts = (uint64_t)ktime_get_real_seconds();
 			err_rec->err_type = AMDGPU_RAS_EEPROM_ERR_NON_RECOVERABLE;
 			err_rec->cu = 0;

--
2.17.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reviewed-by
#3 lore raw
In reply to a message not in the archive

Am 17.09.19 um 08:22 schrieb Zhou1, Tao:

Quoted 4 lines

umc retired page belongs to vram and it should be aligned to gpu page size

Quoted 9 lines
---
  drivers/gpu/drm/amd/amdgpu/umc_v6_1.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/umc_v6_1.c +0 -0
index 1c0da32c1561..47c4b96b14d1 100644

drivers/gpu/drm/amd/amdgpu/umc_v6_1.c static void umc_v6_1_query_error_address(struct amdgpu_device *adev, · line 219

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/umc_v6_1.c +1 -1
@@ -213,7 +213,7 @@ static void umc_v6_1_query_error_address(struct amdgpu_device *adev,
  				== 1) {
  			err_rec->address = err_addr;
  			/* page frame address is saved */
-			err_rec->retired_page = retired_page >> PAGE_SHIFT;
+			err_rec->retired_page = retired_page >> AMDGPU_GPU_PAGE_SHIFT;
  			err_rec->ts = (uint64_t)ktime_get_real_seconds();
  			err_rec->err_type = AMDGPU_RAS_EEPROM_ERR_NON_RECOVERABLE;
  			err_rec->cu = 0;

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx