[PATCH -next 1/5] drm/amd/display: Make core_dcn4_g6_temp_read_blackout_table static

2024-08-21 Thread Jinjie Ruan
outside of dml2_core_dcn4_calcs.c, so marks it static. And not want to change it, so mark it const. Signed-off-by: Jinjie Ruan --- .../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src

[PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static

2024-08-21 Thread Jinjie Ruan
The sparse tool complains as follows: drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c:1071:22: warning: symbol 'dcn35_fpga_funcs' was not declared. Should it be static? This symbol is not used outside of dcn35_clk_mgr.c, so marks it static. Signed-off-

[PATCH -next 4/5] drm/amd/display: Make dcn401_dsc_funcs static

2024-08-21 Thread Jinjie Ruan
The sparse tool complains as follows: drivers/gpu/drm/amd/amdgpu/../display/dc/dsc/dcn401/dcn401_dsc.c:30:24: warning: symbol 'dcn401_dsc_funcs' was not declared. Should it be static? This symbol is not used outside of dcn401_dsc.c, so marks it static. Signed-off-by: J

[PATCH -next 2/5] drm/amd/display: Make core_dcn4_ip_caps_base static

2024-08-21 Thread Jinjie Ruan
c. And do not want to change it, so mark it const. Signed-off-by: Jinjie Ruan --- .../amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c b/drive

[PATCH -next 0/5] drm/amd/display: Make some symobols static

2024-08-21 Thread Jinjie Ruan
Make some symobols static. Jinjie Ruan (5): drm/amd/display: Make core_dcn4_g6_temp_read_blackout_table static drm/amd/display: Make core_dcn4_ip_caps_base static drm/amd/display: Make dcn35_hubp_funcs static drm/amd/display: Make dcn401_dsc_funcs static drm/amd/display: Make

[PATCH -next 3/5] drm/amd/display: Make dcn35_hubp_funcs static

2024-08-21 Thread Jinjie Ruan
The sparse tool complains as follows: drivers/gpu/drm/amd/amdgpu/../display/dc/hubp/dcn35/dcn35_hubp.c:191:19: warning: symbol 'dcn35_hubp_funcs' was not declared. Should it be static? This symbol is not used outside of dcn35_hubp.c, so marks it static. Signed-off-by: J

[PATCH -next v2] drm/amd/display: Remove unused dcn35_fpga_funcs

2024-08-22 Thread Jinjie Ruan
dcn35_fpga_funcsc is not used anywhere, remove it. Signed-off-by: Jinjie Ruan --- v2: - Remove it instead of making it static. --- .../gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35

[PATCH -next v2 RESEND] drm/amd/display: Remove unused dcn35_fpga_funcs

2024-08-22 Thread Jinjie Ruan
dcn35_fpga_funcs is not used anywhere, remove it. Signed-off-by: Jinjie Ruan --- v2: - Remove it instead of making it static. --- .../gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35

[PATCH -next v3] drm/amd/display: Remove unused dcn35_fpga_funcs and related functions

2024-08-23 Thread Jinjie Ruan
dcn35_fpga_funcs is not used anywhere, remove it. And also remove related not used dcn35_init_clocks_fpga() and dcn35_update_clocks_fpga(). Signed-off-by: Jinjie Ruan --- v3: - Also remove related unused functions. - Update the commit message. v2: - Remove it instead of making it static

Re: [PATCH -next v2 RESEND] drm/amd/display: Remove unused dcn35_fpga_funcs

2024-08-23 Thread Jinjie Ruan
On 2024/8/23 2:01, Alex Deucher wrote: > On Thu, Aug 22, 2024 at 5:20 AM Jinjie Ruan wrote: >> >> dcn35_fpga_funcs is not used anywhere, remove it. > > This will lead to warnings about unused functions. The fpga specific > functions should be removed as well. I&#

[PATCH] drm/amdgpu: Fix incorrect resource realease in amdgpu_init()

2024-09-06 Thread Jinjie Ruan
If pci_register_driver() fails, amdgpu_sync_slab and amdgpu_fence_slab should be freed in the error path, fix it. Signed-off-by: Jinjie Ruan Suggested-by: Thomas Gleixner --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a