]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Fix compare functions provided for sorting
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 9 Jul 2020 15:49:31 +0000 (16:49 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Jul 2020 17:21:31 +0000 (18:21 +0100)
commitb9a121afda281e5cc3e9699554d5df6cef39f124
tree11ce202c867e217b71b826d4da6b4b9ca7dabaf4
parent6ed2416ef8dcf232ab5380b51e7996bfaee9640c
drm/i915/selftests: Fix compare functions provided for sorting

Both cmp_u32 and cmp_u64 are comparing the pointers instead of the value
at those pointers. This will result in incorrect/unsorted list. Fix it
by deferencing the pointers before comparison.

Fixes: b7c5d6ffc67d ("drm/i915/selftests: Verify frequency scaling with RPS")
Fixes: 0db247492891 ("drm/i915/selftests: Repeat the rps clock frequency measurement")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200709154931.23310-1-sudeep.holla@arm.com
drivers/gpu/drm/i915/gt/selftest_rps.c