Reviewed-by: Rex Zhu <[email protected]>

Best Regards
Rex
From: Deucher, Alexander
Sent: Thursday, January 18, 2018 7:11 AM
To: Grodzovsky, Andrey; [email protected]
Cc: Lipski, Mikita; Zhu, Rex
Subject: Re: [PATCH] drm/amd/powerplay: Fix smu_table_entry.handle type


Reviewed-by: Alex Deucher 
<[email protected]<mailto:[email protected]>>

________________________________
From: Andrey Grodzovsky 
<[email protected]<mailto:[email protected]>>
Sent: Wednesday, January 17, 2018 5:35 PM
To: [email protected]<mailto:[email protected]>
Cc: Lipski, Mikita; Zhu, Rex; Deucher, Alexander; Grodzovsky, Andrey
Subject: [PATCH] drm/amd/powerplay: Fix smu_table_entry.handle type

Handle describes kernel logical address, should be unsigned long and not 
uint32_t.
Fixes KASAN error and GFP on driver unload.

Signed-off-by: Andrey Grodzovsky 
<[email protected]<mailto:[email protected]>>
---
 drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h 
b/drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h
index 5888840..caebdbe 100644
--- a/drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h
+++ b/drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h
@@ -40,7 +40,7 @@ struct smu_table_entry {
         uint32_t table_addr_high;
         uint32_t table_addr_low;
         uint8_t *table;
-       uint32_t handle;
+       unsigned long handle;
 };

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

Reply via email to