summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>2019-04-16 13:01:47 -0400
committerNicholas Kazlauskas <nicholas.kazlauskas@amd.com>2019-04-18 09:40:29 -0400
commit2df2ad21f8df58cbfb2be671571d9d9bae54e96c (patch)
treeb349b1a77fdd4dd2457f6345c1c3439d112e678a /lib
parent1d921615b0b706f25c856aa0eb096f274380c199 (diff)
amdgpu/amd_abm: Fix getting and setting abm level property
This patch addresses a few problems: 1. Inner loop that iterates over the properties uses the same iterator as the outer loop over connectors. If the eDP panel isn't on the first output, then it won't be checked and the tests will skip. 2. We can get null pointer deferences if any of the DRM calls return NULL. 3. The proplist isn't freed after being acquired. These can be fixed by using the kmstest_get_property helper to get the prop_id. The prop_id and KMS connector ID are then stored for use later in the test when we need to set the ABM level. All the necessary cached state has been placed into a data structure and many callsites have been updated to make use of this. Cc: David Francis <david.francis@amd.com> Cc: Leo Li <sunpeng.li@amd.com> Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Reviewed-by: David Francis <david.francis@amd.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions