[PATCH] gpu: drm: amd: display: dc: dcn20: Remove redudant condition

2019-08-06 Thread Hariprasad Kelam
Remove redudant codition "dsc_cfg->dc_dsc_cfg.num_slices_v". fixes coverity defect 1451853 Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn2

[PATCH] gpu: drm: amd: powerplay: Remove logically dead code

2019-08-06 Thread Hariprasad Kelam
Result of pointer airthmentic is never null fix coverity defect:1451876 Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c

[PATCH] drm/amd/powerplay: Remove multiple occurrence of asic_setup

2019-07-20 Thread Hariprasad Kelam
fix below issue reported by coccicheck drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c:1306:52-53: asic_setup: first occurrence line 1309, second occurrence line 1337 Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 1 - 1 file changed, 1 deletion

[PATCH] drm/amd/display: fix compilation error

2019-06-13 Thread Hariprasad Kelam
-function-declaration] udelay(underflow_check_delay_us); Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc

Re: [PATCH] drm/amd/display: fix compilation error

2019-06-13 Thread Hariprasad Kelam
On Wed, Jun 12, 2019 at 10:35:26PM -0400, Alex Deucher wrote: > On Wed, Jun 12, 2019 at 10:34 PM Hariprasad Kelam > wrote: > > > > this patch fixes below compilation error > > > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c: In > > f

Re: [PATCH] drm/i915/gvt: remove duplicate entry of trace

2019-06-12 Thread Hariprasad Kelam
On Wed, Jun 12, 2019 at 11:22:36AM +0800, Zhenyu Wang wrote: > On 2019.05.26 13:26:33 +0530, Hariprasad Kelam wrote: > > Remove duplicate include of trace.h > > > > Issue identified by includecheck > > > > Signed-off-by: Hariprasad Kelam > > --- > >

[PATCH] drm/amdgpu: Remove call to memset after dma_alloc_coherent

2019-05-31 Thread Hariprasad Kelam
This patch fixes below warning reported by coccicheck ./drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c:63:13-31: WARNING: dma_alloc_coherent use in ih -> ring already zeroes out memory, so memset is not needed Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c | 1 - 1 f

[PATCH] drm/amd/amdgpu: Remove duplicate including duplicate header

2019-05-27 Thread Hariprasad Kelam
remove duplicate entry of soc15.h. Issue identified by includecheck Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index c763733..d723332

[PATCH] drm/amdgpu/powerplay: remove duplicate entry of nbio_6_1_offset.h

2019-05-27 Thread Hariprasad Kelam
asic_reg/nbio/nbio_6_1_offset.h is included twice. Issue identified by includecheck Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_inc.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_inc.h b/drivers/gpu/drm/amd

[PATCH] drm/amd: fix warning PTR_ERR_OR_ZERO can be used

2019-05-27 Thread Hariprasad Kelam
fix below warnings reported by coccicheck ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c:1057:1-3: WARNING: PTR_ERR_OR_ZERO can be used Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 4 +--- 1 file changed, 1 insertion(+), 3

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

2019-05-27 Thread Hariprasad Kelam
fix below warning reported by coccicheck ./drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c:1364:3-5: WARNING: possible condition with no effect (if == else) Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c | 8 +--- 1 file changed, 1 insertion(+), 7

[PATCH] drm/nouveau: fix nvif/device.h is included more than once

2019-05-26 Thread Hariprasad Kelam
remove duplicate inclusion of nvif/device.h Issue identified by includecheck Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/nouveau/nouveau_drv.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h index 35ff0ca

[PATCH] drm/nouveau/dispnv04: subdev/bios.h is included more than once

2019-05-26 Thread Hariprasad Kelam
remove duplicate inclusion of subdev/bios.h Issue identified by includecheck Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/nouveau/dispnv04/disp.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/dispnv04/disp.h b/drivers/gpu/drm/nouveau/dispnv04/disp.h index

[PATCH] drm/i915/gvt: remove duplicate entry of trace

2019-05-26 Thread Hariprasad Kelam
Remove duplicate include of trace.h Issue identified by includecheck Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/i915/gvt/trace_points.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/trace_points.c b/drivers/gpu/drm/i915/gvt/trace_points.c index a3deed69

[PATCH] drm/bridge: analogix_dp: possible condition with no effect (if == else)

2019-05-25 Thread Hariprasad Kelam
fix below warning reported by coccicheck ./drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:1414:6-8: WARNING: possible condition with no effect (if == else) Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 -- 1 file changed, 2 deletions(-) diff

[PATCH] drm/omapdrm: fix warning PTR_ERR_OR_ZERO can be used

2019-05-25 Thread Hariprasad Kelam
can be used ./drivers/gpu/drm/omapdrm/dss/hdmi4.c:601:1-3: WARNING: PTR_ERR_OR_ZERO can be used Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/omapdrm/dss/hdmi4.c | 5 + drivers/gpu/drm/omapdrm/dss/hdmi4_core.c | 6 ++ drivers/gpu/drm/omapdrm/dss/hdmi5_core.c | 4 +--- drivers/gpu

[PATCH] drm/sun4i: fix warning PTR_ERR_OR_ZERO can be used

2019-05-25 Thread Hariprasad Kelam
: PTR_ERR_OR_ZERO can be used ./drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c:142:1-3: WARNING: PTR_ERR_OR_ZERO can be used ./drivers/gpu/drm/sun4i/sun4i_dotclock.c:198:1-3: WARNING: PTR_ERR_OR_ZERO can be used Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/sun4i/sun4i_dotclock.c | 4 +--- drivers/gpu

[PATCH] drm/tegra: fix warning PTR_ERR_OR_ZERO can be used

2019-05-25 Thread Hariprasad Kelam
fix below warnings reported by coccicheck /drivers/gpu/drm/tegra/drm.c:509:1-3: WARNING: PTR_ERR_OR_ZERO can be used ./drivers/gpu/drm/tegra/gem.c:419:1-3: WARNING: PTR_ERR_OR_ZERO can be used Signed-off-by: Hariprasad Kelam --- drivers/gpu/drm/tegra/drm.c | 6 ++ drivers/gpu/drm/tegra