[PATCH libdrm v2 1/2] tests/modetest: Allocate drmModeAtomicReq before setting properties

2022-08-12 Thread Rohith Iyer
Fix null pointer deference caused by drmModeAtomicReq being allocated before set_property was called when modetest was run with the atomic flag. Reviewed-by: Rob Clark Signed-off-by: Rohith Iyer --- tests/modetest/modetest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH libdrm v2 2/2] tests/modetest: Add support for writeback connector

2022-08-12 Thread Rohith Iyer
r pipe has writeback connector - Added error message for dump flag if no writeback connector is found - Polls on the writeback fence fd until writeback is complete Signed-off-by: Rohith Iyer --- tests/modetest/buffers.c | 19 tests/modetest/buffers.h | 1 + tests/modet

[PATCH libdrm v2 0/2] Add Writeback Support for Modetest

2022-08-12 Thread Rohith Iyer
Changes made in V2: - Added helper method that checks if user pipe has writeback connector - Added error message for dump flag if no writeback connector is found - Polls on the writeback fence fd until writeback is complete Rohith Iyer (2): tests/modetest: Allocate drmModeAtomicReq befor

Re: [PATCH libdrm v1 2/2] tests/modetest: Add support for writeback connector

2022-08-10 Thread Rohith Iyer
Hi Andy, On 7/25/2022 6:57 PM, Andy Yan wrote: Hi Rohith: At 2022-07-26 03:26:39, "Rohith Iyer" wrote: Add writeback support to modetest with the below options: + case 'o': + pipe_args->dump = true; +

[PATCH libdrm v1 1/2] tests/modetest: Allocate drmModeAtomicReq before setting properties

2022-07-25 Thread Rohith Iyer
Fix null pointer deference caused by drmModeAtomicReq being allocated before set_property was called when modetest was run with the atomic flag. Signed-off-by: Rohith Iyer --- tests/modetest/modetest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/modetest

[PATCH libdrm v1 2/2] tests/modetest: Add support for writeback connector

2022-07-25 Thread Rohith Iyer
t; Refer to --help for exact syntax - Dump the writeback output buffer to bitstream Usage: "./modetest -M msm -s : -a -o -P @:+0+0@RG24" This currently supports a singular writeback connector. Signed-off-by: Rohith Iyer --- tests/modetest/buffers.c | 19 ++

[PATCH libdrm v1 0/2] Add Writeback Support for Modetest

2022-07-25 Thread Rohith Iyer
t; Refer to --help for exact syntax - Dump the writeback output buffer to bitstream Usage: "./modetest -M msm -s : -a -o -P @:+0+0@RG24" This currently supports a singular writeback connector. This patch also fixes a bug for running modetest with the atomic f