Sudeep Holla 42de9b0a2b 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: 4ba74e53ada3 ("drm/i915/selftests: Verify frequency scaling with RPS")
Fixes: 8757797ff9c9 ("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
(cherry picked from commit 2196dfea896f7027b43bae848890ce4aec5c8724)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2020-07-14 20:30:58 +03:00
..
2020-04-28 16:04:00 +02:00
2020-06-02 15:04:15 -07:00
2020-04-28 16:13:03 +02:00
2020-04-02 14:16:44 +02:00
2020-04-21 09:02:29 +02:00
2020-04-02 14:16:44 +02:00
2020-06-02 15:04:15 -07:00
2020-04-24 20:51:24 +08:00
2020-03-12 12:42:56 +10:00
2020-06-02 15:04:15 -07:00
2020-04-03 17:11:41 +02:00
2020-07-09 14:42:49 -04:00
2020-06-21 05:12:57 +03:00
2020-04-02 14:16:45 +02:00
2020-06-02 15:04:15 -07:00
2020-04-28 16:05:15 +02:00
2020-06-16 13:31:47 +02:00
2020-04-28 15:15:59 +02:00
2020-04-22 10:41:35 +10:00
2020-03-26 15:45:36 +01:00
2020-06-02 15:04:15 -07:00
2020-04-22 10:41:35 +10:00
2020-04-02 14:16:46 +02:00
2020-04-03 17:11:41 +02:00
2020-03-11 07:27:21 +10:00
2020-04-03 17:11:41 +02:00
2019-10-08 18:29:00 +02:00
2020-06-02 15:04:15 -07:00
2020-04-28 15:05:19 +02:00
2020-06-02 15:04:15 -07:00
2020-06-24 21:34:11 +02:00
2020-06-02 15:04:15 -07:00
2020-03-26 15:38:09 +01:00
2020-06-02 15:04:15 -07:00
2020-03-16 09:27:09 +01:00
2020-04-29 18:44:26 +03:00
2020-04-03 17:11:41 +02:00
2020-06-02 15:04:15 -07:00
2020-04-28 16:05:15 +02:00