[PATCH v2 2/2] drm/amd/pm: remove redundant tools_size check

2024-11-14 Thread Bhavin Sharma
The check for tools_size being non-zero is redundant as tools_size is explicitly set to a non-zero value (0x19000). Removing the if condition simplifies the code without altering functionality. Signed-off-by: Bhavin Sharma --- .../amd/pm/powerplay/smumgr/vega12_smumgr.c | 24

[PATCH v2 1/2] drm/amd/display: remove redundant is_dsc_possible check

2024-11-14 Thread Bhavin Sharma
Since is_dsc_possible is already checked just above, there's no need to check it again before filling out the DSC settings. Signed-off-by: Bhavin Sharma --- drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/driver

[PATCH v2 0/2] Remove redundant check

2024-11-14 Thread Bhavin Sharma
Change in V2: in patch 1/2: - Remove mode_422 condition check because that is fixed in amd-staging-drm-next Link for v1: https://lore.kernel.org/dri-devel/2024120900.63869-1-bhavin.sha...@siliconsignals.io/T/#t Bhavin Sharma (2): drm/amd/display: remove redundant

[PATCH 2/2] drm/amd/pm: Remove redundant check

2024-11-11 Thread Bhavin Sharma
The check for tools_size being non-zero is redundant as tools_size is explicitly set to a non-zero value (0x19000). Removing the if condition simplifies the code without altering functionality. Signed-off-by: Bhavin Sharma --- .../amd/pm/powerplay/smumgr/vega12_smumgr.c | 24

[PATCH 1/2] drm/amd/display: Remove redundant check

2024-11-11 Thread Bhavin Sharma
ality. Signed-off-by: Bhavin Sharma --- .../amd/display/dc/dml/dml1_display_rq_dlg_calc.c | 2 +- drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 13 + 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c b/dr

[PATCH 0/2] Remove redundant condition check

2024-11-11 Thread Bhavin Sharma
Bhavin Sharma (2): drm: amd: display: Remove redundant check drm: amd: pm: Remove redundant check .../display/dc/dml/dml1_display_rq_dlg_calc.c | 2 +- drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 13 -- .../amd/pm/powerplay/smumgr/vega12_smumgr.c | 24 +-- 3