The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: add mb for si
@ 2022-11-18  7:48 Zhenneng Li
  2022-11-18  8:01 ` Christian König
  0 siblings, 1 reply; 11+ messages in thread
From: Zhenneng Li @ 2022-11-18  7:48 UTC (permalink / raw)
  To: Alex Deucher
  Cc: Christian König, Xinhui.Pan, David Airlie, Daniel Vetter,
	amd-gfx, dri-devel, linux-kernel, Zhenneng Li

During reboot test on arm64 platform, it may failure on boot,
so add this mb in smc.

The error message are as follows:
[    6.996395][ 7] [  T295] [drm:amdgpu_device_ip_late_init [amdgpu]] *ERROR*
			    late_init of IP block <si_dpm> failed -22
[    7.006919][ 7] [  T295] amdgpu 0000:04:00.0: amdgpu_device_ip_late_init failed
[    7.014224][ 7] [  T295] amdgpu 0000:04:00.0: Fatal error during GPU init

Signed-off-by: Zhenneng Li <lizhenneng@kylinos.cn>
---
 drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c b/drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c
index 8f994ffa9cd1..c7656f22278d 100644
--- a/drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c
+++ b/drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c
@@ -155,6 +155,8 @@ bool amdgpu_si_is_smc_running(struct amdgpu_device *adev)
 	u32 rst = RREG32_SMC(SMC_SYSCON_RESET_CNTL);
 	u32 clk = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0);
 
+	mb();
+
 	if (!(rst & RST_REG) && !(clk & CK_DISABLE))
 		return true;
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-11-25  6:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-18  7:48 [PATCH] drm/amdgpu: add mb for si Zhenneng Li
2022-11-18  8:01 ` Christian König
2022-11-18  9:18   ` Michel Dänzer
2022-11-18  9:24     ` 李真能
2022-11-24 10:04       ` Quan, Evan
2022-11-24 10:06         ` Christian König
2022-11-25  2:06           ` Quan, Evan
2022-11-24 10:41         ` Lazar, Lijo
2022-11-24 10:49           ` Lazar, Lijo
2022-11-25  2:13             ` Quan, Evan
2022-11-25  6:12               ` Lazar, Lijo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox