[PATCH -next] drm/amdgpu: Fix kernel-doc param for amdgpu_vm_is_bo_always_valid

2024-05-21 Thread Yang Li
Make @abo to @bo to silence the kernel-doc warning. Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index b9cca51356b1

[PATCH -next] drm/amd/display: Update optc35_set_odm_combine doc to match kernel-doc spec

2024-05-17 Thread Yang Li
This patch updates the function documentation comment for optc35_set_odm_combine to conform to the kernel-doc specification. Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/optc/dcn35/dcn35_optc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[PATCH -next] drm/amd/pm: Remove unneeded semicolon

2023-12-14 Thread Yang Li
./drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c:1418:2-3: Unneeded semicolon Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7743 Signed-off-by: Yang Li --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next] drm/amd/display: Remove duplicated include in dcn201_resource.c

2023-11-20 Thread Yang Li
./drivers/gpu/drm/amd/display/dc/resource/dcn201/dcn201_resource.c: dcn201/dcn201_hubbub.h is included more than once. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7583 Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/resource/dcn201

[PATCH -next 1/2] drm/amd/display: clean up one inconsistent indenting

2023-10-19 Thread Yang Li
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_util.c:150 dml_max() warn: inconsistent indenting Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6933 Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dml2/display_mode_util.c | 2 +- 1 file

[PATCH -next 2/2] drm/amd/display: clean up one inconsistent indenting

2023-10-19 Thread Yang Li
drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml2_policy.c:206 dml2_policy_build_synthetic_soc_states() warn: inconsistent indenting Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6933 Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dml2

[PATCH -next] drm/amd/display: Remove unneeded semicolon

2023-10-18 Thread Yang Li
./drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c:464:3-4: Unneeded semicolon Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6900 Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c | 2 +- 1 file changed, 1

[PATCH -next] drm/amd/display: Simplify bool conversion

2023-10-18 Thread Yang Li
./drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c:4802:84-89: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6901 Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c | 2 +- 1

[PATCH -next] drm/amd/display: Remove duplicated include in dce110_hwseq.c

2023-10-18 Thread Yang Li
./drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c: dce110_hwseq.h is included more than once. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6897 Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c | 2 -- 1 file

[PATCH -next] drm/amd/display: clean up some inconsistent indentings

2023-09-27 Thread Yang Li
drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn35/dcn35_fpu.c:261 dcn35_update_bw_bounding_box_fpu() warn: inconsistent indenting Signed-off-by: Yang Li --- .../drm/amd/display/dc/dml/dcn35/dcn35_fpu.c | 144 +- 1 file changed, 72 insertions(+), 72 deletions(-) diff --git

[PATCH -next 2/4] drm/amd/display: Remove duplicated include in dcn35_optc.c

2023-09-01 Thread Yang Li
./drivers/gpu/drm/amd/display/dc/dcn35/dcn35_optc.c: dcn35_optc.h is included more than once. Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn35/dcn35_optc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn35/dcn35_optc.c b/drivers/gpu/drm/amd

[PATCH -next 4/5] drm/amd/display: clean up some inconsistent indentings

2023-09-01 Thread Yang Li
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c:288 dcn35_update_clocks() warn: inconsistent indenting Signed-off-by: Yang Li --- .../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 28 +-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

[PATCH -next 4/4] drm/amd/display: Remove duplicated include in dcn35_clk_mgr.c

2023-09-01 Thread Yang Li
./drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c: dcn35_clk_mgr.h is included more than once. Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35

[PATCH -next 2/5] drm/amd/display: clean up one inconsistent indenting

2023-09-01 Thread Yang Li
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn35/dcn35_resource.c:1877 dcn35_resource_construct() warn: inconsistent indenting Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd

[PATCH -next 3/4] drm/amd/display: Remove duplicated include in dcn35_hwseq.c

2023-09-01 Thread Yang Li
./drivers/gpu/drm/amd/display/dc/dcn35/dcn35_hwseq.c: clk_mgr.h is included more than once. Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn35/dcn35_hwseq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn35/dcn35_hwseq.c b/drivers/gpu/drm/amd

[PATCH -next 1/5] drm/amd/display: clean up one inconsistent indenting

2023-09-01 Thread Yang Li
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_srv.c:355 dmub_srv_hw_setup() warn: inconsistent indenting Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dmub/src

[PATCH -next 5/5] drm/amd/display: clean up one inconsistent indenting

2023-09-01 Thread Yang Li
drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn35/dcn35_fpu.c:260 dcn35_update_bw_bounding_box_fpu() warn: inconsistent indenting Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu

[PATCH -next 1/4] drm/amd/display: Remove duplicated include in dcn35_resource.c

2023-09-01 Thread Yang Li
./drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c: dcn31/dcn31_dio_link_encoder.h is included more than once. Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn35

[PATCH -next 3/5] drm/amd/display: clean up some inconsistent indentings

2023-09-01 Thread Yang Li
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn35/dcn35_hwseq.c:159 dcn35_init_hw() warn: inconsistent indentig Signed-off-by: Yang Li --- .../drm/amd/display/dc/dcn35/dcn35_hwseq.c| 32 +-- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/amd

[PATCH -next] drm/amd/display: Simplify bool conversion

2023-08-16 Thread Yang Li
./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c:94:102-107: WARNING: conversion to bool not needed here ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c:102:72-77: WARNING: conversion to bool not needed here Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/amdgpu_dm

[PATCH -next] drm/amdgpu: Fix one kernel-doc comment

2023-07-31 Thread Yang Li
/show_bug.cgi?id=6031 Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index dc0e5227119b..83f52227f9dc 100644 --- a/drivers/gpu/drm/amd/amdgpu

[PATCH -next] drm/amdgpu: clean up some inconsistent indentings

2023-07-27 Thread Yang Li
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:622 amdgpu_gfx_enable_kcq() warn: inconsistent indenting Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5992 Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH -next] drm/amdgpu: Fix one kernel-doc comment

2023-07-20 Thread Yang Li
Use colon to separate parameter name from their specific meaning. silence the warning: drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c:793: warning: Function parameter or member 'adev' not described in 'amdgpu_vm_pte_update_noretry_flags' Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu

[PATCH -next] drm/amdkfd: clean up one inconsistent indenting

2023-05-31 Thread Yang Li
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device.c:1036 kgd2kfd_interrupt() warn: inconsistent indenting Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu

[PATCH -next 07/13] drm/amd/display: remove unused definition

2023-05-24 Thread Yang Li
-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../amd/display/dc/dcn302/dcn302_resource.c | 25 --- 1 file changed, 25 deletions(-) diff --git a/drive

[PATCH -next 09/13] drm/amd/display: remove unused definition

2023-05-24 Thread Yang Li
FPGA code in dc") Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c index 24

[PATCH -next 01/13] drm/amd/display: remove unused definition

2023-05-24 Thread Yang Li
FPGA code in dc") Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c index a0625209c86d..26

[PATCH -next 06/13] drm/amd/display: remove unused definition

2023-05-24 Thread Yang Li
-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../amd/display/dc/dcn301/dcn301_resource.c | 24 --- 1 file changed, 24 deletions(-) diff --git a/drive

[PATCH -next 11/13] drm/amd/display: remove unused definition

2023-05-24 Thread Yang Li
-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../amd/display/dc/dcn316/dcn316_resource.c | 27 --- 1 file changed, 27 deletions(-) diff --git a/drive

[PATCH -next 10/13] drm/amd/display: remove unused definition

2023-05-24 Thread Yang Li
-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../amd/display/dc/dcn315/dcn315_resource.c | 27 --- 1 file changed, 27 deletions(-) diff --git a/drive

[PATCH -next 05/13] drm/amd/display: remove unused definition

2023-05-24 Thread Yang Li
-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../drm/amd/display/dc/dcn32/dcn32_resource.c | 29 --- 1 file changed, 29 deletions(-) diff --git a/drivers/g

[PATCH -next 12/13] drm/amd/display: remove unused definition

2023-05-24 Thread Yang Li
-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../amd/display/dc/dcn321/dcn321_resource.c | 30 --- 1 file changed, 30 deletions(-) diff --git a/drive

[PATCH -next 02/13] drm/amd/display: remove unused definition

2023-05-24 Thread Yang Li
-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../drm/amd/display/dc/dcn21/dcn21_resource.c | 23 --- 1 file changed, 23 deletions(-) diff --git a/drivers/g

[PATCH -next 03/13] drm/amd/display: remove unused definition

2023-05-24 Thread Yang Li
-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../drm/amd/display/dc/dcn30/dcn30_resource.c | 25 --- 1 file changed, 25 deletions(-) diff --git a/drivers/g

[PATCH -next 08/13] drm/amd/display: remove unused definition

2023-05-24 Thread Yang Li
-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../amd/display/dc/dcn303/dcn303_resource.c | 24 --- 1 file changed, 24 deletions(-) diff --git a/drive

[PATCH -next 04/13] drm/amd/display: remove unused definition

2023-05-24 Thread Yang Li
-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5296 Fixes: 00df97e1df57 ("drm/amd/display: Clean FPGA code in dc") Signed-off-by: Yang Li --- .../drm/amd/display/dc/dcn31/dcn31_resource.c | 27 --- 1 file changed, 27 deletions(-) diff --git a/drivers/g

[PATCH -next 13/13] drm/amd/display: remove unused definition

2023-05-24 Thread Yang Li
FPGA code in dc") Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c b/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c index 21

[PATCH -next] drm/amd/display: Simplify bool conversion

2023-02-10 Thread Yang Li
./drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c:1610:68-73: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4025 Signed-off-by: Yang Li --- .../gpu/drm/amd/display/dc/link/protocols

[PATCH -next] drm/amd/display: clean up some inconsistent indentings

2023-02-10 Thread Yang Li
/show_bug.cgi?id=4026 Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/link/link_factory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/link/link_factory.c b/drivers/gpu/drm/amd/display/dc/link/link_factory.c index 13a766273755

[PATCH -next] drm/amdgpu: clean up some inconsistent indentings

2023-01-06 Thread Yang Li
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c:65 amdgpu_gem_fault() warn: inconsistent indenting Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3639 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH -next] drm/amdkfd: Fix NULL pointer dereference in svm_migrate_to_ram()

2022-10-26 Thread Yang Li
./drivers/gpu/drm/amd/amdkfd/kfd_migrate.c:985:58-62: ERROR: p is NULL but dereferenced. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2549 Reported-by: Abaci Robot Signed-off-by: Yang Li --- change in v2: According to Felix's suggestion, move the pr_debug up before

[PATCH -next] drm/amdkfd: Fix NULL pointer dereference in svm_migrate_to_ram()

2022-10-25 Thread Yang Li
./drivers/gpu/drm/amd/amdkfd/kfd_migrate.c:985:58-62: ERROR: p is NULL but dereferenced. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2549 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH -next] drm/amdkfd: clean up some inconsistent indentings

2022-10-25 Thread Yang Li
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c:331 svm_migrate_copy_to_vram() warn: inconsistent indenting Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2537 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c | 3 +-- 1 file changed, 1

[PATCH -next] drm/amd/display: Simplify bool conversion

2022-10-10 Thread Yang Li
The result of 'pwr_status == 0' is Boolean, and the question mark expression is redundant. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2354 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH -next 1/2] drm/amd/display: clean up one inconsistent indenting

2022-09-30 Thread Yang Li
clean up one inconsistent indenting Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2238 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd

[PATCH -next 2/2] drm/amd/display: clean up one inconsistent indenting

2022-09-30 Thread Yang Li
clean up one inconsistent indenting Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2321 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd

[PATCH -next] drm/amd/display: clean up one inconsistent indenting

2022-09-20 Thread Yang Li
clean up one inconsistent indenting https://bugzilla.openanolis.cn/show_bug.cgi?id=2238 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc

[PATCH -next 2/6] drm/amd/display: clean up some inconsistent indentings

2022-09-14 Thread Yang Li
clean up some inconsistent indentings Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2178 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd

[PATCH -next 5/6] drm/amd/display: clean up some inconsistent indentings

2022-09-14 Thread Yang Li
clean up some inconsistent indentings Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2181 Reported-by: Abaci Robot Signed-off-by: Yang Li --- .../gpu/drm/amd/display/dc/dml/dcn314/display_mode_vba_314.c| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[PATCH -next 3/6] drm/amd/display: clean up some inconsistent indentings

2022-09-14 Thread Yang Li
clean up some inconsistent indentings Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2179 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm

[PATCH -next 4/6] drm/amd/display: clean up some inconsistent indentings

2022-09-14 Thread Yang Li
clean up some inconsistent indentings Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2180 Reported-by: Abaci Robot Signed-off-by: Yang Li --- .../amd/display/dc/dcn321/dcn321_resource.c | 26 +-- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers

[PATCH -next 6/6] drm/amd/display: clean up some inconsistent indentings

2022-09-14 Thread Yang Li
clean up some inconsistent indentings Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2182 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[PATCH -next 1/6] drm/amd/display: clean up some inconsistent indentings

2022-09-14 Thread Yang Li
clean up some inconsistent indentings Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2177 Reported-by: Abaci Robot Signed-off-by: Yang Li --- .../gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu

[PATCH -next] drm/amd/display: remove possible condition with no effect (if == else)

2022-09-01 Thread Yang Li
Conditional statements have no effect to next process.So remove it. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2028 Reported-by: Abaci Robot Signed-off-by: Yang Li --- .../drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c | 4 1 file changed, 4 deletions(-) diff --git

[PATCH -next] drm/amd/display: clean up some inconsistent indentings

2022-09-01 Thread Yang Li
This if statement is the content of the for statement above it. It should be indented. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2026 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c | 4 ++-- 1 file changed, 2 insertions

[PATCH -next] drm/amd/display: Simplify bool conversion

2022-09-01 Thread Yang Li
The result of relational operation is Boolean, and the question mark expression is redundant. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2027 Reported-by: Abaci Robot Signed-off-by: Yang Li --- .../gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c | 2 +- 1 file changed, 1

[PATCH -next 3/4 RESEND] drm/amd/display: clean up some inconsistent indentings

2022-08-29 Thread Yang Li
The indentation of statements in the same curly bracket should be consistent. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1890 Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1891 Reported-by: Abaci Robot Signed-off-by: Yang Li --- .../amd/display/dc/dcn10/dcn10_hw_sequencer.c

[PATCH -next 2/4 RESEND] drm/amd/display: clean up some inconsistent indentings

2022-08-29 Thread Yang Li
The indentation of statements in the same curly bracket should be consistent. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1886 Reported-by: Abaci Robot Signed-off-by: Yang Li --- .../gpu/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c | 13 - 1 file changed, 8 insertions(+), 5

[PATCH -next 1/4 RESEND] drm/amd/display: clean up one inconsistent indenting

2022-08-29 Thread Yang Li
://bugzilla.openanolis.cn/show_bug.cgi?id=1889 Reported-by: Abaci Robot Signed-off-by: Yang Li --- .../gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c| 13 - .../amd/display/dc/dml/dcn32/display_mode_vba_32.c | 6 +++--- .../display/dc/dml/dcn32/display_mode_vba_util_32.c | 2 +- 3 files changed, 12

[PATCH -next 4/4 RESEND] drm/amd/display: clean up some inconsistent indentings

2022-08-29 Thread Yang Li
The indentation of statements in the same curly bracket should be consistent. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1892 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH -next] drm/amd/display: remove unneeded semicolon

2022-08-18 Thread Yang Li
Semicolon is not required after curly braces. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1918 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH -next 4/4] drm/amd/display: clean up one inconsistent indenting

2022-08-12 Thread Yang Li
The indentation of statements in the same curly bracket should be consistent. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1892 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH -next 2/4] drm/amd/display: clean up one inconsistent indenting

2022-08-12 Thread Yang Li
://bugzilla.openanolis.cn/show_bug.cgi?id=1889 Reported-by: Abaci Robot Signed-off-by: Yang Li --- .../gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c| 13 - .../amd/display/dc/dml/dcn32/display_mode_vba_32.c | 6 +++--- .../display/dc/dml/dcn32/display_mode_vba_util_32.c | 2 +- 3 files changed, 12

[PATCH -next 1/4] drm/amd/display: clean up one inconsistent indenting

2022-08-12 Thread Yang Li
The indentation of statements in the same curly bracket should be consistent. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1886 Reported-by: Abaci Robot Signed-off-by: Yang Li --- .../gpu/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c | 13 - 1 file changed, 8 insertions(+), 5

[PATCH -next 3/4] drm/amd/display: clean up one inconsistent indenting

2022-08-12 Thread Yang Li
The indentation of statements in the same curly bracket should be consistent. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1890 Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1891 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn10

[PATCH -next RESEND] drm/amd/display: Simplify bool conversion

2022-08-05 Thread Yang Li
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c:109:52-57: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 2 +- 1 file changed, 1 insertion

[PATCH -next] drm/amd/display: remove unneeded semicolon

2022-07-27 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c:2344:67-68: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH -next] drm/amd/display: clean up some inconsistent indenting

2022-07-06 Thread Yang Li
/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:818 bios_parser_get_device_tag() warn: inconsistent indenting drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:1599 bios_parser_is_device_id_supported() warn: inconsistent indenting Signed-off-by: Yang Li --- .../gpu/drm/amd/display

[PATCH -next] drm/amd/display: clean up some inconsistent indenting

2022-07-02 Thread Yang Li
Eliminate the follow smatch warning: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:3151 commit_planes_for_stream() warn: inconsistent indenting Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/core/dc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH -next] drm/amdgpu: Remove duplicated include in amdgpu_dm.c

2022-06-23 Thread Yang Li
Fix following includecheck warning: ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c: soc15_common.h is included more than once. Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display

[PATCH -next 1/2] drm/amdgpu/gfx11: remove unneeded semicolon

2022-05-06 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:1222:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd

[PATCH -next 2/2] drm/amdkfd: Return true/false (not 1/0) from bool functions

2022-05-06 Thread Yang Li
Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c b/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c index c3919aaa76e6.

[PATCH -next] drm/amd/display: remove unneeded semicolon

2022-04-08 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c:477:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH -next] drm/amd/pm: clean up some inconsistent indenting

2022-03-11 Thread Yang Li
Eliminate the follow smatch warning: drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu_cmn.c:174 __smu_cmn_reg_print_error() warn: inconsistent indenting Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 22 +++--- 1 file changed, 11

[PATCH -next] drm/amdgpu: clean up some inconsistent indenting

2022-03-02 Thread Yang Li
Eliminate the follow smatch warning: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c:413 amdgpu_get_xgmi_hive() warn: inconsistent indenting Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 16 1 file changed, 8 insertions(+), 8 deletions

[PATCH -next] drm/amdkfd: Fix NULL but dereferenced coccicheck error

2022-02-09 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/gpu/drm/amd/amdkfd/kfd_chardev.c:2087:27-38: ERROR: bo_buckets is NULL but dereferenced. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions

[PATCH -next] drm/amdkfd: Fix resource_size.cocci warning

2022-02-02 Thread Yang Li
Use resource_size function on resource object instead of explicit computation. Eliminate the following coccicheck warning: ./drivers/gpu/drm/amd/amdkfd/kfd_migrate.c:978:11-14: ERROR: Missing resource_size with res Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdkfd

[PATCH -next] drm/amd/display: clean up some inconsistent indenting

2022-01-29 Thread Yang Li
Eliminate the follow smatch warning: drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c:2246 dp_perform_8b_10b_link_training() warn: inconsistent indenting Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 10 +- 1 file changed, 5

[PATCH -next 2/2 v2] drm/amdgpu: clean up some inconsistent indenting

2022-01-13 Thread Yang Li
amdgpu_ras_error_inject() warn: inconsistent indenting Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c| 8 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH -next 1/2 v2] drm/amdgpu: remove unneeded semicolon

2022-01-13 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2725:16-17: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[PATCH -next 2/2] drm/amdgpu: clean up some inconsistent indenting

2022-01-12 Thread Yang Li
amdgpu_ras_set_context() warn: if statement not indented drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1058 amdgpu_ras_error_inject() warn: inconsistent indenting Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

[PATCH -next 1/2] drm/amdgpu: remove unneeded semicolon

2022-01-12 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2725:16-17: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[PATCH -next] drm/amd/display: check top_pipe_to_program pointer

2021-11-15 Thread Yang Li
er_enable) { ^ top_pipe_to_program being NULL is caught as an error But then it is used to report the error. So add a check before using it. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/core/dc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dr

[PATCH] drm/amdkfd: fix resource_size.cocci warnings

2021-09-27 Thread Yang Li
Use resource_size function on resource object instead of explicit computation. Clean up coccicheck warning: ./drivers/gpu/drm/amd/amdkfd/kfd_migrate.c:905:10-13: ERROR: Missing resource_size with res Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c

[PATCH] drm/amdgpu: Fix kernel-doc

2021-05-25 Thread Yang Li
-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c index 240596b..db79ee5 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +++ b/drivers/gpu/drm

[PATCH] drm/radeon/si: Fix inconsistent indenting

2021-04-15 Thread Yang Li
Kernel test robot throws below warning -> smatch warnings: drivers/gpu/drm/radeon/si.c:4514 si_vm_packet3_cp_dma_check() warn: inconsistent indenting Fixed the inconsistent indenting. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/radeon/si.c | 2 +- 1 file changed

[PATCH] drm/amdgpu: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-02-25 Thread Yang Li
Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c index 0a25fec..52ef488 100644

[PATCH] drm/radeon/dpm: fix non-restricted types with le16_to_cpu()

2021-02-19 Thread Yang Li
Signed-off-by: Yang Li --- drivers/gpu/drm/radeon/rv6xx_dpm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/rv6xx_dpm.c b/drivers/gpu/drm/radeon/rv6xx_dpm.c index 69d380f..e6ab99e 100644 --- a/drivers/gpu/drm/radeon/rv6xx_dpm.c +++ b/drivers/gpu

[PATCH] drm/amd/display: Simplify bool conversion

2021-02-18 Thread Yang Li
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:8142:16-21: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH] drm/amd/display: Simplify bool comparison

2021-01-13 Thread Yang Li
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c:3141:30-39: WARNING: Comparison to bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c | 2 +- 1 file changed, 1 insertion

[PATCH] drm/amd/display: Simplify bool comparison

2021-01-13 Thread Yang Li
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_cm.c:580:23-31: WARNING: Comparison to bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] drm/amd/display: Simplify bool comparison

2021-01-13 Thread Yang Li
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c:5121:14-38: WARNING: Comparison to bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- .../amd/display/dc/dml/dcn21/display_mode_vba_21.c | 44 +++--- 1 file changed, 22

[PATCH] drm/amd/display: Simplify bool comparison

2021-01-13 Thread Yang Li
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c:1228:9-20: WARNING: Comparison to bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c | 4 ++-- 1 file changed, 2