summaryrefslogtreecommitdiff
path: root/scripts/code_cov_gather_on_test.py
diff options
context:
space:
mode:
authorAbhinav Kumar <quic_abhinavk@quicinc.com>2022-03-25 16:41:46 -0700
committerAbhinav Kumar <quic_abhinavk@quicinc.com>2022-03-28 12:50:32 -0700
commit9ba6cb16f04319226383b57975db203561c75781 (patch)
tree6ad1c82dbc97c5a3d315cb416c956437c5e991c1 /scripts/code_cov_gather_on_test.py
parent49582e9bdf9378f2df62f911a15a2349ab8be0d1 (diff)
tests/kms_concurrent: check if second primary plane is valid
prepare_planes() in kms_concurrent loops through the list of planes and assigns them to the data->plane array. During this assignment, it skips planes which are of type DRM_PLANE_TYPE_PRIMARY as they are assigned separately. However, only one primary plane is assigned and prepared for the test. This causes an issue later on in the test when there are multiple primary planes as the second one is not added to the data->plane list causing a segmentation fault when trying to access the second primary plane. Check if the data->plane is valid before accessing its members to fix this crash. This fixes the crash and makes kms_concurrent pass on devices having multiple primary planes. localhost /usr/local/libexec/igt-gpu-tools # ./kms_concurrent IGT-Version: 1.26-NO-GIT (arm) (Linux: 5.17.0-rc2-lockdep-75821-g6200d34d858f aarch64) Starting subtest: pipe-A Testing resolution with connector eDP-1 using pipe A with seed 1648151339 Subtest pipe-A: SUCCESS (0.429s) Starting subtest: pipe-B Testing resolution with connector eDP-1 using pipe B with seed 1648151340 Subtest pipe-B: SUCCESS (0.592s) Test requirement not met in function igt_require_pipe, file ../igt-gpu-tools-9999/lib/igt_kms.c:2135: Test requirement: !(pipe >= display->n_pipes || !display->pipes[pipe].enabled) Pipe C does not exist or not enabled Subtest pipe-C: SKIP Test requirement not met in function igt_require_pipe, file ../igt-gpu-tools-9999/lib/igt_kms.c:2135: Test requirement: !(pipe >= display->n_pipes || !display->pipes[pipe].enabled) Pipe D does not exist or not enabled Subtest pipe-D: SKIP Test requirement not met in function igt_require_pipe, file ../igt-gpu-tools-9999/lib/igt_kms.c:2135: Test requirement: !(pipe >= display->n_pipes || !display->pipes[pipe].enabled) Pipe E does not exist or not enabled Subtest pipe-E: SKIP Test requirement not met in function igt_require_pipe, file ../igt-gpu-tools-9999/lib/igt_kms.c:2135: Test requirement: !(pipe >= display->n_pipes || !display->pipes[pipe].enabled) Pipe F does not exist or not enabled Subtest pipe-F: SKIP changes in v2: - add a comment on to explain the NULL check Reviewed-by: Mark Yacoub <markyacoub@chromium.org> Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Diffstat (limited to 'scripts/code_cov_gather_on_test.py')
0 files changed, 0 insertions, 0 deletions