summaryrefslogtreecommitdiff
path: root/tests/kms_setmode.c
diff options
context:
space:
mode:
authorDavid Zhang <dingchen.zhang@amd.com>2022-04-18 17:32:53 -0400
committerDavid Zhang <dingchen.zhang@amd.com>2022-04-20 16:33:38 -0400
commit891ce2ff8769675b52dcfff3cf1c91bb711ddb03 (patch)
treec9a276850d82723db4e21d6e5b491e0ab095e369 /tests/kms_setmode.c
parent5ccee9b203f65586dbe2692ebdf03454c074af3a (diff)
tests/amdgpu/amd_psr: define reusable wrapper for PSR support check
[why & how] For amdgpu PSR-SU test cases, we'd first check if the sink device and amdgpu driver support the PSR-SU feature at the beginning. We define a local helper to wrap the check for PSR-SU support from sink and driver as well and called by both MPO and FFU test case, to avoid the code repetition. Cc: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Cc: Harry Wentland <harry.wentland@amd.com> Cc: Leo Li <sunpeng.li@amd.com> Cc: Jay Pillai <aurabindo.pillai@amd.com> Cc: Wayne Lin <wayne.lin@amd.com> Changes in v2: ----------------- - use igt_warn() for any PSR SU cap/support check before FALSE returned Signed-off-by: David Zhang <dingchen.zhang@amd.com> Reviewed-by: Leo Li <sunpeng.li@amd.com>
Diffstat (limited to 'tests/kms_setmode.c')
0 files changed, 0 insertions, 0 deletions