drm/amdgpu: Clean up errors in vega20_baco.c
Subsystems (3)
PATCH 1/1 drm/amdgpu: Clean up errors in vega20_baco.c
Fix the following errors reported by checkpatch:
ERROR: that open brace { should be on the previous line
ERROR: space required before the open parenthesis '('
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_baco.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_baco.c +3 -4
@@ -31,8 +31,7 @@#include "amdgpu_ras.h" -static const struct soc15_baco_cmd_entry clean_baco_tbl[] = -{ +static const struct soc15_baco_cmd_entry clean_baco_tbl[] = { {CMD_WRITE ,SOC15_REG_ENTRY (NBIF ,0 , mmBIOS_SCRATCH_6),0 ,0 ,0 ,0 }, {CMD_WRITE ,SOC15_REG_ENTRY (NBIF ,0 , mmBIOS_SCRATCH_7),0 ,0 ,0 ,0 }, };
@@ -90,11 +89,11 @@ int vega20_baco_set_state(struct pp_hwmgr *hwmgr, enum BACO_STATE state) data |=0x80000000 ;WREG32_SOC15 (THM ,0 , mmTHM_BACO_CNTL, data); -if (smum_send_msg_to_smc_with_parameter (hwmgr, +if (smum_send_msg_to_smc_with_parameter (hwmgr, PPSMC_MSG_EnterBaco,0 ,NULL ))return -EINVAL ; }else { -if (smum_send_msg_to_smc_with_parameter (hwmgr, +if (smum_send_msg_to_smc_with_parameter (hwmgr, PPSMC_MSG_EnterBaco,1 ,NULL ))return -EINVAL ; }
Signature · 1 line
2.17.1
[AMD Official Use Only - General]
Quoted 54 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Ran Sun
Sent: Tuesday, August 1, 2023 4:03 PM
To: Deucher, Alexander <[email protected]>; [email protected]; [email protected]
Cc: Ran Sun <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: [PATCH] drm/amdgpu: Clean up errors invega20_baco.cFix the following errors reported by checkpatch:
ERROR: that open brace { should be on the previous line
ERROR: space required before the open parenthesis '('Signed-off-by Ran Sun <[email protected]>--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_baco.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_baco.c +1
-1@@ -31,8 +31,7 @@#include "amdgpu_ras.h" -static const struct soc15_baco_cmd_entry clean_baco_tbl[] = -{ +static const struct soc15_baco_cmd_entry clean_baco_tbl[] = { {CMD_WRITE ,SOC15_REG_ENTRY (NBIF ,0 , mmBIOS_SCRATCH_6),0 ,0 ,0 ,0 }, {CMD_WRITE ,SOC15_REG_ENTRY (NBIF ,0 , mmBIOS_SCRATCH_7),0 ,0, 0, 0}, }; @@ -90,11 +89,11 @@ int
vega20_baco_set_state(struct pp_hwmgr *hwmgr, enum BACO_STATE state)data |= 0x80000000; WREG32_SOC15(THM, 0, mmTHM_BACO_CNTL,data);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_baco.c +1
-1- if(smum_send_msg_to_smc_with_parameter(hwmgr, + if(smum_send_msg_to_smc_with_parameter(hwmgr,
PPSMC_MSG_EnterBaco, 0, NULL)) return -EINVAL; } else {drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_baco.c +1
-1- if(smum_send_msg_to_smc_with_parameter(hwmgr, + if(smum_send_msg_to_smc_with_parameter(hwmgr,
PPSMC_MSG_EnterBaco, 1, NULL)) return -EINVAL; }--
2.17.1
Alex Deucher
AppliedApplied. Thanks!
Quoted 60 lines · Evan
[AMD Official Use Only - General]
Reviewed-by Evan Quan <[email protected]>Quoted 54 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Ran Sun
Sent: Tuesday, August 1, 2023 4:03 PM
To: Deucher, Alexander <[email protected]>; [email protected]; [email protected]
Cc: Ran Sun <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: [PATCH] drm/amdgpu: Clean up errors invega20_baco.cFix the following errors reported by checkpatch:
ERROR: that open brace { should be on the previous line
ERROR: space required before the open parenthesis '('Signed-off-by Ran Sun <[email protected]>--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_baco.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_baco.c +1
-1@@ -31,8 +31,7 @@#include "amdgpu_ras.h" -static const struct soc15_baco_cmd_entry clean_baco_tbl[] = -{ +static const struct soc15_baco_cmd_entry clean_baco_tbl[] = { {CMD_WRITE ,SOC15_REG_ENTRY (NBIF ,0 , mmBIOS_SCRATCH_6),0 ,0 ,0 ,0 }, {CMD_WRITE ,SOC15_REG_ENTRY (NBIF ,0 , mmBIOS_SCRATCH_7),0 ,0, 0, 0}, }; @@ -90,11 +89,11 @@ int
vega20_baco_set_state(struct pp_hwmgr *hwmgr, enum BACO_STATE state)data |= 0x80000000; WREG32_SOC15(THM, 0, mmTHM_BACO_CNTL,data);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_baco.c +1
-1- if(smum_send_msg_to_smc_with_parameter(hwmgr, + if(smum_send_msg_to_smc_with_parameter(hwmgr,
PPSMC_MSG_EnterBaco, 0, NULL)) return -EINVAL; } else {drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_baco.c +1
-1- if(smum_send_msg_to_smc_with_parameter(hwmgr, + if(smum_send_msg_to_smc_with_parameter(hwmgr,
PPSMC_MSG_EnterBaco, 1, NULL)) return -EINVAL; }--
2.17.1