All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: Call trace info was found in dmesg when loading amdgpu
@ 2022-07-14  2:31 lin cao
  2022-07-14  2:50 ` JingWen Chen
  0 siblings, 1 reply; 2+ messages in thread
From: lin cao @ 2022-07-14  2:31 UTC (permalink / raw)
  To: amd-gfx; +Cc: jianzh, lin cao

In the case of SRIOV, the register smnMp1_PMI_3_FIFO will get an invalid
value which will cause the "shift out of bound". In Ubuntu22.04, this
issue will be checked an related call trace will be reported in dmesg.

Signed-off-by: lin cao <lin.cao@amd.com>
---
 drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
index b71860e5324a..fa520d79ef67 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
@@ -886,6 +886,7 @@ static void sienna_cichlid_stb_init(struct smu_context *smu);
 
 static int sienna_cichlid_init_smc_tables(struct smu_context *smu)
 {
+	struct amdgpu_device *adev = smu->adev;
 	int ret = 0;
 
 	ret = sienna_cichlid_tables_init(smu);
@@ -896,7 +897,8 @@ static int sienna_cichlid_init_smc_tables(struct smu_context *smu)
 	if (ret)
 		return ret;
 
-	sienna_cichlid_stb_init(smu);
+	if (!amdgpu_sriov_vf(adev))
+		sienna_cichlid_stb_init(smu);
 
 	return smu_v11_0_init_smc_tables(smu);
 }
-- 
2.25.1


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

* Re: [PATCH] drm/amdgpu: Call trace info was found in dmesg when loading amdgpu
  2022-07-14  2:31 [PATCH] drm/amdgpu: Call trace info was found in dmesg when loading amdgpu lin cao
@ 2022-07-14  2:50 ` JingWen Chen
  0 siblings, 0 replies; 2+ messages in thread
From: JingWen Chen @ 2022-07-14  2:50 UTC (permalink / raw)
  To: lin cao, amd-gfx

feel free to add

Reviewed-by: Jingwen Chen <Jingwen.Chen2@amd.com>

On 7/14/22 10:31 AM, lin cao wrote:
> In the case of SRIOV, the register smnMp1_PMI_3_FIFO will get an invalid
> value which will cause the "shift out of bound". In Ubuntu22.04, this
> issue will be checked an related call trace will be reported in dmesg.
>
> Signed-off-by: lin cao <lin.cao@amd.com>
> ---
>  drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
> index b71860e5324a..fa520d79ef67 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
> @@ -886,6 +886,7 @@ static void sienna_cichlid_stb_init(struct smu_context *smu);
>  
>  static int sienna_cichlid_init_smc_tables(struct smu_context *smu)
>  {
> +	struct amdgpu_device *adev = smu->adev;
>  	int ret = 0;
>  
>  	ret = sienna_cichlid_tables_init(smu);
> @@ -896,7 +897,8 @@ static int sienna_cichlid_init_smc_tables(struct smu_context *smu)
>  	if (ret)
>  		return ret;
>  
> -	sienna_cichlid_stb_init(smu);
> +	if (!amdgpu_sriov_vf(adev))
> +		sienna_cichlid_stb_init(smu);
>  
>  	return smu_v11_0_init_smc_tables(smu);
>  }

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

end of thread, other threads:[~2022-07-14  2:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-14  2:31 [PATCH] drm/amdgpu: Call trace info was found in dmesg when loading amdgpu lin cao
2022-07-14  2:50 ` JingWen Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.