[PATCH] drm/amd/display: remove unneeded defines from bios parser

2022-08-21 Thread Tales Aparecida
Removes DEFINEs that should have been removed after they were introduced to ObjectID.h by the commit abea57d70e90 ("drm/amdgpu: Add BRACKET_LAYOUT_ENUMs to ObjectID.h") Signed-off-by: Tales Aparecida --- .../drm/amd/display/dc/bios/bios_parser2.c| 19 --- 1 file c

[PATCH 2/2] drm/amd/display: fix minor codestyle problems

2022-08-11 Thread Tales Aparecida
{ Signed-off-by: Tales Aparecida --- drivers/gpu/drm/amd/display/dc/dml/calcs/bw_fixed.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/calcs/bw_fixed.c b/drivers/gpu/drm/amd/display/dc/dml/calcs/bw_fixed.c index 2d4

[PATCH 1/2] drm/amd/display: fix overflow on MIN_I64 definition

2022-08-11 Thread Tales Aparecida
ed-off-by: David Gow Signed-off-by: Tales Aparecida --- drivers/gpu/drm/amd/display/dc/dml/calcs/bw_fixed.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/calcs/bw_fixed.c b/drivers/gpu/drm/amd/display/dc/dml/calcs/bw_fixed.c

[PATCH 0/2] drm/amd/display: fix MIN_I64 overflow on bw_fixed.c

2022-08-11 Thread Tales Aparecida
/CABVgOSmkeybnR2sGEEgn1Cb0cR2eKxW=vhxkhjc5xcuhaxs...@mail.gmail.com/ David Gow (1): drm/amd/display: fix overflow on MIN_I64 definition Tales Aparecida (1): drm/amd/display: fix minor codestyle problems .../gpu/drm/amd/display/dc/dml/calcs/bw_fixed.c| 14 ++ 1 file changed, 6 insertions(+), 8 deletions

[PATCH 8/8] Documentation/gpu: Add Display Core Unit Test documentation

2022-08-10 Thread Tales Aparecida
From: Maíra Canal Explain how to run the KUnit tests present in the AMDGPU's Display Core and clarify which architectures and tools can be used to run the tests. Moreover, explains how to add new tests to the existing tests. Signed-off-by: Maíra Canal Signed-off-by: Tales Aparecida

[PATCH 7/8] drm/amd/display: Introduce KUnit tests to dc_dmub_srv library

2022-08-10 Thread Tales Aparecida
From: Maíra Canal Add unit test to the SubVP feature in order to avoid possible regressions and assure the code robustness. Signed-off-by: Maíra Canal Signed-off-by: Tales Aparecida --- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 4 + .../amd/display/tests/dc/dc_dmub_srv_test.c | 285

[PATCH 6/8] drm/amd/display: Introduce KUnit tests for dcn20_fpu

2022-08-10 Thread Tales Aparecida
From: Magali Lemes This commit adds unit tests to the functions dcn20_cap_soc_clocks and dcn21_update_bw_bounding_box from dcn20/dcn20_fpu. Signed-off-by: Magali Lemes Signed-off-by: Tales Aparecida --- .../drm/amd/display/dc/dml/dcn20/dcn20_fpu.c | 4 + .../tests/dc/dml/dcn20

[PATCH 5/8] drm/amd/display: Introduce KUnit to dcn20/display_mode_vba_20 library

2022-08-10 Thread Tales Aparecida
about adding bugs to the codebase. Signed-off-by: Maíra Canal Signed-off-by: Tales Aparecida --- .../dc/dml/dcn20/display_mode_vba_20.c| 4 + .../dc/dml/dcn20/display_mode_vba_20_test.c | 227 ++ 2 files changed, 231 insertions(+) create mode 100644 drivers/gpu/drm

[PATCH 3/8] drm/amd/display: Introduce Kunit tests to display_rq_dlg_calc_20

2022-08-10 Thread Tales Aparecida
From: Isabella Basso This adds tests to the bit encoding format verification functions on the file. They're meant to be simpler so as to provide a proof of concept on testing DML code. Signed-off-by: Isabella Basso Signed-off-by: Tales Aparecida --- .../dc/dml/dcn20/display_rq_dlg_calc_20.c

[PATCH 4/8] drm/amd/display: Introduce KUnit tests to the display_mode_vba library

2022-08-10 Thread Tales Aparecida
adding bugs to the codebase. Signed-off-by: Maíra Canal Signed-off-by: Tales Aparecida --- .../drm/amd/display/dc/dml/display_mode_vba.c | 3 + .../tests/dc/dml/display_mode_vba_test.c | 741 ++ 2 files changed, 744 insertions(+) create mode 100644 drivers/gpu/drm/amd

[PATCH 2/8] drm/amd/display: Introduce KUnit tests to the bw_fixed library

2022-08-10 Thread Tales Aparecida
\ --kunitconfig=drivers/gpu/drm/amd/display/tests/ Signed-off-by: Maíra Canal Co-developed-by: Magali Lemes Signed-off-by: Magali Lemes Co-developed-by: Tales Aparecida Signed-off-by: Tales Aparecida --- drivers/gpu/drm/amd/display/Kconfig | 12 + .../drm/amd/display/dc/dml/calcs

[PATCH 1/8] drm/amd/display: Introduce KUnit tests for fixed31_32 library

2022-08-10 Thread Tales Aparecida
, such as multiplication, conversion from fractional to fixed-point number, and more. Use kunit_tool to run: $ ./tools/testing/kunit/kunit.py run --arch=x86_64 \ --kunitconfig=drivers/gpu/drm/amd/display/tests/ Signed-off-by: Tales Aparecida --- drivers/gpu/drm/amd/display/Kconfig | 13

[PATCH 0/8] drm/amd/display: Introduce KUnit to Display Mode Library

2022-08-10 Thread Tales Aparecida
) commit 94681e289bf5 ("kunit: executor: Fix a memory leak on failure in kunit_filter_tests") You can get a for branch ready for compilation at https://gitlab.freedesktop.org/isinyaaa/linux/-/tags/introduce-kunit-for-amd-v1 Thanks in advance for your time taking a look and sending a

[PATCH 2/2] libsubcmd: Fix use-after-free for realloc(..., 0)

2022-07-13 Thread Tales Aparecida
From: Kees Cook GCC 12 correctly reports a potential use-after-free condition in the xrealloc helper. Fix the warning by avoiding an implicit "free(ptr)" when size == 0: In file included from help.c:12: In function 'xrealloc', inlined from 'add_cmdname' at help.c:24:2: subcmd-util.h:56:23:

[PATCH 1/2] objtool: Fix truncated string warning

2022-07-13 Thread Tales Aparecida
From: Sergei Trofimovich On GCC 12, the build fails due to a possible truncated string: check.c: In function 'validate_call': check.c:2865:58: error: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Werror=format-truncation=] 2865 |

[GIT CHERRY-PICK 0/2] Fix compilation errors on GCC12

2022-07-13 Thread Tales Aparecida
Hello Alex, I believe you are already working on a rebase right now, but could you please cherry-pick these two commits from torvalds/master to fix compilation errors raised by GCC12 in the meantime? SHA-1:82880283d7fcd0a1d20964a56d6d1a5cc0df0713 patch-id: