drm/amd/display: clean up some inconsistent indentings
PATCH 1/6 drm/amd/display: clean up some inconsistent indentings
clean up some inconsistent indentings
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- .../gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c +2 -2
@@ -1051,10 +1051,10 @@ static bool CalculatePrefetchSchedule( bytes_pp = myPipe->BytePerPixelY + myPipe->BytePerPixelC;/*rev 99*/ prefetch_bw_pr =dml_min (1 , bytes_pp * myPipe->PixelClock / (double ) myPipe->DPPPerPlane); - max_Tsw =dml_max (PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime; + max_Tsw =dml_max (PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime; prefetch_sw_bytes = PrefetchSourceLinesY * swath_width_luma_ub * myPipe->BytePerPixelY + PrefetchSourceLinesC * swath_width_chroma_ub * myPipe->BytePerPixelC; prefetch_bw_oto =dml_max (bytes_pp * myPipe->PixelClock / myPipe->DPPPerPlane, prefetch_sw_bytes / (dml_max (PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime)); - prefetch_bw_oto =dml_max (prefetch_bw_pr, prefetch_sw_bytes / max_Tsw); + prefetch_bw_oto =dml_max (prefetch_bw_pr, prefetch_sw_bytes / max_Tsw); min_Lsw =dml_max (1 ,dml_max (PrefetchSourceLinesY, PrefetchSourceLinesC) / max_vratio_pre); Lsw_oto =dml_ceil (4 *dml_max (prefetch_sw_bytes / prefetch_bw_oto / LineTime, min_Lsw),1 ) /4 ;
Signature · 1 line
2.20.1.7.g153144c
PATCH 2/6 drm/amd/display: clean up some inconsistent indentings
clean up some inconsistent indentings
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +8 -8
@@ -406,14 +406,14 @@ struct amdgpu_hive_info *amdgpu_get_xgmi_hive(struct amdgpu_device *adev)if (adev->reset_domain->type !=XGMI_HIVE ) { hive->reset_domain =amdgpu_reset_create_reset_domain (XGMI_HIVE ,"amdgpu-reset-hive" ); -if (!hive->reset_domain) { -dev_err (adev->dev,"XGMI: failed initializing reset domain for xgmi hive\n" ); - ret = -ENOMEM ; -kobject_put (&hive->kobj); -kfree (hive); - hive =NULL ; - goto pro_end; - } +if (!hive->reset_domain) { +dev_err (adev->dev,"XGMI: failed initializing reset domain for xgmi hive\n" ); + ret = -ENOMEM ; +kobject_put (&hive->kobj); +kfree (hive); + hive =NULL ; + goto pro_end; + } }else {amdgpu_reset_get_reset_domain (adev->reset_domain); hive->reset_domain = adev->reset_domain;
Signature · 1 line
2.20.1.7.g153144c
PATCH 3/6 drm/amd/display: clean up some inconsistent indentings
In reply to Yang Liclean up some inconsistent indentings
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c +4 -4
@@ -919,10 +919,10 @@ static struct hubp *dcn32_hubp_create(#undef REG_STRUCT#define REG_STRUCT hubp_regs -hubp_regs_init (0 ), -hubp_regs_init (1 ), -hubp_regs_init (2 ), -hubp_regs_init (3 ); +hubp_regs_init (0 ), +hubp_regs_init (1 ), +hubp_regs_init (2 ), +hubp_regs_init (3 );if (hubp32_construct (hubp2, ctx, inst, &hubp_regs[inst], &hubp_shift, &hubp_mask))
Signature · 1 line
2.20.1.7.g153144c
PATCH 4/6 drm/amd/display: clean up some inconsistent indentings
In reply to Yang Liclean up some inconsistent indentings
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- .../amd/display/dc/dcn321/dcn321_resource.c | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c +13 -13
@@ -820,11 +820,11 @@ static struct dce_i2c_hw *dcn321_i2c_hw_create(#undef REG_STRUCT#define REG_STRUCT i2c_hw_regs -i2c_inst_regs_init (1 ), -i2c_inst_regs_init (2 ), -i2c_inst_regs_init (3 ), -i2c_inst_regs_init (4 ), -i2c_inst_regs_init (5 ); +i2c_inst_regs_init (1 ), +i2c_inst_regs_init (2 ), +i2c_inst_regs_init (3 ), +i2c_inst_regs_init (4 ), +i2c_inst_regs_init (5 );dcn2_i2c_hw_construct (dce_i2c_hw, ctx, inst, &i2c_hw_regs[inst], &i2c_shifts, &i2c_masks);
@@ -922,10 +922,10 @@ static struct hubp *dcn321_hubp_create(#undef REG_STRUCT#define REG_STRUCT hubp_regs -hubp_regs_init (0 ), -hubp_regs_init (1 ), -hubp_regs_init (2 ), -hubp_regs_init (3 ); +hubp_regs_init (0 ), +hubp_regs_init (1 ), +hubp_regs_init (2 ), +hubp_regs_init (3 );if (hubp32_construct (hubp2, ctx, inst, &hubp_regs[inst], &hubp_shift, &hubp_mask))
@@ -1670,10 +1670,10 @@ static bool dcn321_resource_construct(#undef REG_STRUCT#define REG_STRUCT abm_regs -abm_regs_init (0 ), -abm_regs_init (1 ), -abm_regs_init (2 ), -abm_regs_init (3 ); +abm_regs_init (0 ), +abm_regs_init (1 ), +abm_regs_init (2 ), +abm_regs_init (3 );#undef REG_STRUCT#define REG_STRUCT dccg_regs
Signature · 1 line
2.20.1.7.g153144c
PATCH 5/6 drm/amd/display: clean up some inconsistent indentings
In reply to Yang Liclean up some inconsistent indentings
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- .../gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c +1 -1
@@ -1362,7 +1362,7 @@ static bool CalculatePrefetchSchedule(// - ((NumberOfCursors > 0 || GPUVMEnable || DCCEnable) ? - ((GPUVMEnable || myPipe->DCCEnable) ? (*DestinationLinesToRequestVMInVBlank +2 * *DestinationLinesToRequestRowInVBlank) :0.0 );// TODO: Did someone else add this?? #else - LinesToRequestPrefetchPixelData = *DestinationLinesForPrefetch - *DestinationLinesToRequestVMInVBlank -2 * *DestinationLinesToRequestRowInVBlank; + LinesToRequestPrefetchPixelData = *DestinationLinesForPrefetch - *DestinationLinesToRequestVMInVBlank -2 * *DestinationLinesToRequestRowInVBlank;#endif #ifdef __DML_VBA_DEBUG__
Signature · 1 line
2.20.1.7.g153144c
PATCH 6/6 drm/amd/display: clean up some inconsistent indentings
In reply to Yang Liclean up some inconsistent indentings
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c +1 -1
@@ -2636,7 +2636,7 @@ static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerforman &mode_lib->vba.SrcActiveDrainRate, &mode_lib->vba.TInitXFill, &mode_lib->vba.TslvChk); - locals->XFCRemoteSurfaceFlipLatency[k] = + locals->XFCRemoteSurfaceFlipLatency[k] = dml_floor( mode_lib->vba.XFCRemoteSurfaceFlipDelay / (mode_lib->vba.HTotal[k]
Signature · 1 line
2.20.1.7.g153144c
Applied the series.
Thanks,
Alex
Quoted 30 lines · Yang Li
clean up some inconsistent indentings
Reported-by Abaci Robot <[email protected]>Signed-off-by Yang Li <[email protected]>--- .../gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c +2
-3@@ -1051,10 +1051,10 @@ static bool CalculatePrefetchSchedule( bytes_pp = myPipe->BytePerPixelY + myPipe->BytePerPixelC;/*rev 99*/ prefetch_bw_pr =dml_min (1 , bytes_pp * myPipe->PixelClock / (double ) myPipe->DPPPerPlane); - max_Tsw =dml_max (PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime; + max_Tsw =dml_max (PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime; prefetch_sw_bytes = PrefetchSourceLinesY * swath_width_luma_ub * myPipe->BytePerPixelY + PrefetchSourceLinesC * swath_width_chroma_ub * myPipe->BytePerPixelC; prefetch_bw_oto =dml_max (bytes_pp * myPipe->PixelClock / myPipe->DPPPerPlane, prefetch_sw_bytes / (dml_max (PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime)); - prefetch_bw_oto =dml_max (prefetch_bw_pr, prefetch_sw_bytes / max_Tsw); + prefetch_bw_oto =dml_max (prefetch_bw_pr, prefetch_sw_bytes / max_Tsw); min_Lsw =dml_max (1 ,dml_max (PrefetchSourceLinesY, PrefetchSourceLinesC) / max_vratio_pre); Lsw_oto =dml_ceil (4 *dml_max (prefetch_sw_bytes / prefetch_bw_oto / LineTime, min_Lsw),1 ) /4 ; --2.20.1.7.g153144c