Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 1 | /* |
| 2 | * Copyright © 2014 Intel Corporation |
| 3 | * |
| 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 5 | * copy of this software and associated documentation files (the "Software"), |
| 6 | * to deal in the Software without restriction, including without limitation |
| 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 8 | * and/or sell copies of the Software, and to permit persons to whom the |
| 9 | * Software is furnished to do so, subject to the following conditions: |
| 10 | * |
| 11 | * The above copyright notice and this permission notice (including the next |
| 12 | * paragraph) shall be included in all copies or substantial portions of the |
| 13 | * Software. |
| 14 | * |
| 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS |
| 21 | * IN THE SOFTWARE. |
| 22 | * |
| 23 | * Authors: |
| 24 | * Mika Kuoppala <mika.kuoppala@intel.com> |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 25 | * Oscar Mateo <oscar.mateo@intel.com> |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 26 | * |
| 27 | */ |
| 28 | |
Thomas Wood | 804e11f | 2015-08-17 17:57:43 +0100 | [diff] [blame] | 29 | #include "igt.h" |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 30 | #include <limits.h> |
| 31 | #include <sys/types.h> |
| 32 | #include <sys/stat.h> |
| 33 | #include <fcntl.h> |
| 34 | |
Brad Volkin | e34240d | 2014-11-04 14:00:43 -0800 | [diff] [blame] | 35 | #ifndef I915_PARAM_CMD_PARSER_VERSION |
| 36 | #define I915_PARAM_CMD_PARSER_VERSION 28 |
| 37 | #endif |
| 38 | |
Chris Wilson | 405b347 | 2016-02-26 12:47:33 +0000 | [diff] [blame] | 39 | static char read_buffer[1024]; |
| 40 | |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 41 | static int _read_sysfs(void *dst, int maxlen, |
| 42 | const char* path, |
| 43 | const char *fname) |
| 44 | { |
| 45 | int fd; |
| 46 | char full[PATH_MAX]; |
| 47 | int r, e; |
| 48 | |
| 49 | igt_assert(snprintf(full, PATH_MAX, "%s/%s", path, fname) < PATH_MAX); |
| 50 | |
| 51 | fd = open(full, O_RDONLY); |
| 52 | if (fd == -1) |
| 53 | return -errno; |
| 54 | |
| 55 | r = read(fd, dst, maxlen); |
| 56 | e = errno; |
| 57 | close(fd); |
| 58 | |
| 59 | if (r < 0) |
| 60 | return -e; |
| 61 | |
| 62 | return r; |
| 63 | } |
| 64 | |
| 65 | static int read_sysfs(void *dst, int maxlen, const char *fname) |
| 66 | { |
| 67 | char path[PATH_MAX]; |
| 68 | |
| 69 | igt_assert(snprintf(path, PATH_MAX, "/sys/class/drm/card%d", |
| 70 | drm_get_card()) < PATH_MAX); |
| 71 | |
| 72 | return _read_sysfs(dst, maxlen, path, fname); |
| 73 | } |
| 74 | |
| 75 | static void test_sysfs_error_exists(void) |
| 76 | { |
Chris Wilson | 405b347 | 2016-02-26 12:47:33 +0000 | [diff] [blame] | 77 | igt_assert_lt(0, read_sysfs(read_buffer, sizeof(read_buffer), "error")); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 78 | } |
| 79 | |
| 80 | static void test_debugfs_error_state_exists(void) |
| 81 | { |
| 82 | int fd; |
| 83 | |
Matt Roper | 07be8fe | 2015-03-05 15:01:00 -0800 | [diff] [blame] | 84 | igt_assert_lte(0, |
| 85 | (fd = igt_debugfs_open("i915_error_state", O_RDONLY))); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 86 | |
| 87 | close (fd); |
| 88 | } |
| 89 | |
| 90 | static void test_debugfs_ring_stop_exists(void) |
| 91 | { |
| 92 | int fd; |
| 93 | |
Matt Roper | 07be8fe | 2015-03-05 15:01:00 -0800 | [diff] [blame] | 94 | igt_assert_lte(0, (fd = igt_debugfs_open("i915_ring_stop", O_RDONLY))); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 95 | |
| 96 | close(fd); |
| 97 | } |
| 98 | |
| 99 | static void read_dfs(const char *fname, char *d, int maxlen) |
| 100 | { |
| 101 | int fd; |
| 102 | int l; |
| 103 | |
Matt Roper | 07be8fe | 2015-03-05 15:01:00 -0800 | [diff] [blame] | 104 | igt_assert_lte(0, (fd = igt_debugfs_open(fname, O_RDONLY))); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 105 | |
Matt Roper | 07be8fe | 2015-03-05 15:01:00 -0800 | [diff] [blame] | 106 | igt_assert_lt(0, (l = read(fd, d, maxlen - 1))); |
| 107 | igt_assert_lt(l, maxlen); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 108 | d[l] = 0; |
| 109 | close(fd); |
| 110 | |
| 111 | igt_debug("dfs entry %s read '%s'\n", fname, d); |
| 112 | } |
| 113 | |
Chris Wilson | 405b347 | 2016-02-26 12:47:33 +0000 | [diff] [blame] | 114 | static int compare_dfs_entry(const char *fname, const char *s) |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 115 | { |
Chris Wilson | 405b347 | 2016-02-26 12:47:33 +0000 | [diff] [blame] | 116 | const int l = min(strlen(s), sizeof(read_buffer)); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 117 | |
Chris Wilson | 405b347 | 2016-02-26 12:47:33 +0000 | [diff] [blame] | 118 | read_dfs(fname, read_buffer, l + 1); |
| 119 | return strncmp(read_buffer, s, l); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 120 | } |
| 121 | |
| 122 | static void assert_dfs_entry(const char *fname, const char *s) |
| 123 | { |
Chris Wilson | 405b347 | 2016-02-26 12:47:33 +0000 | [diff] [blame] | 124 | igt_fail_on_f(compare_dfs_entry(fname, s) != 0, |
| 125 | "contents of %s: '%s' (expected '%s')\n", |
| 126 | fname, read_buffer, s); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 127 | } |
| 128 | |
| 129 | static void assert_dfs_entry_not(const char *fname, const char *s) |
| 130 | { |
Chris Wilson | 405b347 | 2016-02-26 12:47:33 +0000 | [diff] [blame] | 131 | igt_fail_on_f(compare_dfs_entry(fname, s) == 0, |
| 132 | "contents of %s: '%s' (expected not '%s'\n", |
| 133 | fname, read_buffer, s); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 134 | } |
| 135 | |
| 136 | static void assert_error_state_clear(void) |
| 137 | { |
| 138 | assert_dfs_entry("i915_error_state", "no error state collected"); |
| 139 | } |
| 140 | |
| 141 | static void assert_error_state_collected(void) |
| 142 | { |
| 143 | assert_dfs_entry_not("i915_error_state", "no error state collected"); |
| 144 | } |
| 145 | |
Chris Wilson | 0753057 | 2015-12-11 13:27:49 +0000 | [diff] [blame] | 146 | const uint32_t *batch; |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 147 | |
Chris Wilson | 0753057 | 2015-12-11 13:27:49 +0000 | [diff] [blame] | 148 | static uint64_t submit_hang(int fd, unsigned ring_id) |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 149 | { |
Chris Wilson | 0753057 | 2015-12-11 13:27:49 +0000 | [diff] [blame] | 150 | uint64_t offset; |
| 151 | igt_hang_ring_t hang; |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 152 | |
Chris Wilson | 0753057 | 2015-12-11 13:27:49 +0000 | [diff] [blame] | 153 | hang = igt_hang_ctx(fd, 0, ring_id, HANG_ALLOW_CAPTURE, &offset); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 154 | |
Chris Wilson | 0753057 | 2015-12-11 13:27:49 +0000 | [diff] [blame] | 155 | batch = gem_mmap__cpu(fd, hang.handle, 0, 4096, PROT_READ); |
| 156 | gem_set_domain(fd, hang.handle, I915_GEM_DOMAIN_CPU, 0); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 157 | |
Chris Wilson | 0753057 | 2015-12-11 13:27:49 +0000 | [diff] [blame] | 158 | igt_post_hang_ring(fd, hang); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 159 | |
Chris Wilson | 0753057 | 2015-12-11 13:27:49 +0000 | [diff] [blame] | 160 | return offset; |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 161 | } |
| 162 | |
| 163 | static void clear_error_state(void) |
| 164 | { |
| 165 | int fd; |
| 166 | const char *b = "1"; |
| 167 | |
Matt Roper | 07be8fe | 2015-03-05 15:01:00 -0800 | [diff] [blame] | 168 | igt_assert_lte(0, |
| 169 | (fd = igt_debugfs_open("i915_error_state", O_WRONLY))); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 170 | igt_assert(write(fd, b, 1) == 1); |
| 171 | close(fd); |
| 172 | } |
| 173 | |
| 174 | static void test_error_state_basic(void) |
| 175 | { |
| 176 | int fd; |
| 177 | |
Daniel Vetter | 6cf7272 | 2015-12-03 07:45:36 +0100 | [diff] [blame] | 178 | fd = drm_open_driver(DRIVER_INTEL); |
| 179 | |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 180 | clear_error_state(); |
| 181 | assert_error_state_clear(); |
| 182 | |
Chris Wilson | 0753057 | 2015-12-11 13:27:49 +0000 | [diff] [blame] | 183 | submit_hang(fd, I915_EXEC_RENDER); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 184 | close(fd); |
| 185 | |
| 186 | assert_error_state_collected(); |
| 187 | clear_error_state(); |
| 188 | assert_error_state_clear(); |
| 189 | } |
| 190 | |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 191 | static void check_error_state(const int gen, |
Brad Volkin | e34240d | 2014-11-04 14:00:43 -0800 | [diff] [blame] | 192 | const bool uses_cmd_parser, |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 193 | const char *expected_ring_name, |
| 194 | uint64_t expected_offset) |
| 195 | { |
| 196 | FILE *file; |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 197 | char *line = NULL; |
| 198 | size_t line_size = 0; |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 199 | |
Chris Wilson | 01e467a | 2016-01-01 11:29:51 +0000 | [diff] [blame] | 200 | file = igt_debugfs_fopen("i915_error_state", "r"); |
| 201 | igt_require(file); |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 202 | |
| 203 | while (getline(&line, &line_size, file) > 0) { |
Chris Wilson | 01e467a | 2016-01-01 11:29:51 +0000 | [diff] [blame] | 204 | char *dashes; |
Mika Kuoppala | c37b235 | 2015-08-18 17:44:38 +0300 | [diff] [blame] | 205 | uint32_t gtt_offset_upper, gtt_offset_lower; |
Chris Wilson | 01e467a | 2016-01-01 11:29:51 +0000 | [diff] [blame] | 206 | int matched; |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 207 | |
| 208 | dashes = strstr(line, "---"); |
| 209 | if (!dashes) |
| 210 | continue; |
| 211 | |
Chris Wilson | 01e467a | 2016-01-01 11:29:51 +0000 | [diff] [blame] | 212 | matched = sscanf(dashes, "--- gtt_offset = 0x%08x %08x\n", |
Mika Kuoppala | c37b235 | 2015-08-18 17:44:38 +0300 | [diff] [blame] | 213 | >t_offset_upper, >t_offset_lower); |
Chris Wilson | 01e467a | 2016-01-01 11:29:51 +0000 | [diff] [blame] | 214 | if (matched) { |
| 215 | char expected_line[64]; |
| 216 | uint64_t gtt_offset; |
| 217 | int i; |
Mika Kuoppala | c37b235 | 2015-08-18 17:44:38 +0300 | [diff] [blame] | 218 | |
Chris Wilson | 01e467a | 2016-01-01 11:29:51 +0000 | [diff] [blame] | 219 | strncpy(expected_line, line, dashes - line); |
| 220 | expected_line[dashes - line - 1] = '\0'; |
| 221 | igt_assert(strstr(expected_line, expected_ring_name)); |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 222 | |
Chris Wilson | 01e467a | 2016-01-01 11:29:51 +0000 | [diff] [blame] | 223 | gtt_offset = gtt_offset_upper; |
| 224 | if (matched == 2) { |
| 225 | gtt_offset <<= 32; |
| 226 | gtt_offset |= gtt_offset_lower; |
| 227 | } |
Brad Volkin | e34240d | 2014-11-04 14:00:43 -0800 | [diff] [blame] | 228 | if (!uses_cmd_parser) |
Chris Wilson | 01e467a | 2016-01-01 11:29:51 +0000 | [diff] [blame] | 229 | igt_assert_eq_u64(gtt_offset, expected_offset); |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 230 | |
Chris Wilson | 0753057 | 2015-12-11 13:27:49 +0000 | [diff] [blame] | 231 | for (i = 0; i < 1024; i++) { |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 232 | igt_assert(getline(&line, &line_size, file) > 0); |
Chris Wilson | 01e467a | 2016-01-01 11:29:51 +0000 | [diff] [blame] | 233 | snprintf(expected_line, sizeof(expected_line), |
| 234 | "%08x : %08x", |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 235 | 4*i, batch[i]); |
| 236 | igt_assert(strstr(line, expected_line)); |
| 237 | } |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 238 | break; |
Chris Wilson | 01e467a | 2016-01-01 11:29:51 +0000 | [diff] [blame] | 239 | } |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 240 | } |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 241 | |
| 242 | free(line); |
Chris Wilson | 01e467a | 2016-01-01 11:29:51 +0000 | [diff] [blame] | 243 | fclose(file); |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 244 | } |
| 245 | |
Brad Volkin | e34240d | 2014-11-04 14:00:43 -0800 | [diff] [blame] | 246 | static bool uses_cmd_parser(int fd, int gen) |
| 247 | { |
| 248 | int parser_version = 0; |
| 249 | drm_i915_getparam_t gp; |
| 250 | int rc; |
| 251 | |
| 252 | gp.param = I915_PARAM_CMD_PARSER_VERSION; |
| 253 | gp.value = &parser_version; |
| 254 | rc = drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp); |
| 255 | if (rc || parser_version == 0) |
| 256 | return false; |
| 257 | |
Michał Winiarski | 52b5d50 | 2016-01-25 19:35:01 +0100 | [diff] [blame] | 258 | if (!gem_uses_ppgtt(fd)) |
Brad Volkin | e34240d | 2014-11-04 14:00:43 -0800 | [diff] [blame] | 259 | return false; |
| 260 | |
| 261 | if (gen != 7) |
| 262 | return false; |
| 263 | |
| 264 | return true; |
| 265 | } |
| 266 | |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 267 | static void test_error_state_capture(unsigned ring_id, |
| 268 | const char *ring_name) |
| 269 | { |
| 270 | int fd, gen; |
| 271 | uint64_t offset; |
Brad Volkin | e34240d | 2014-11-04 14:00:43 -0800 | [diff] [blame] | 272 | bool cmd_parser; |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 273 | |
Daniel Vetter | 6cf7272 | 2015-12-03 07:45:36 +0100 | [diff] [blame] | 274 | fd = drm_open_driver(DRIVER_INTEL); |
| 275 | |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 276 | clear_error_state(); |
| 277 | |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 278 | gen = intel_gen(intel_get_drm_devid(fd)); |
Brad Volkin | e34240d | 2014-11-04 14:00:43 -0800 | [diff] [blame] | 279 | cmd_parser = uses_cmd_parser(fd, gen); |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 280 | |
Chris Wilson | 0753057 | 2015-12-11 13:27:49 +0000 | [diff] [blame] | 281 | offset = submit_hang(fd, ring_id); |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 282 | close(fd); |
| 283 | |
Brad Volkin | e34240d | 2014-11-04 14:00:43 -0800 | [diff] [blame] | 284 | check_error_state(gen, cmd_parser, ring_name, offset); |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 285 | } |
| 286 | |
Daniele Ceraolo Spurio | 95ca764 | 2016-03-01 11:01:33 +0000 | [diff] [blame^] | 287 | |
| 288 | /* This test covers the case where we end up in an uninitialised area of the |
| 289 | * ppgtt and keep executing through it. This is particularly relevant if 48b |
| 290 | * ppgtt is enabled because the ppgtt is massively bigger compared to the 32b |
| 291 | * case and it takes a lot more time to wrap, so the acthd can potentially keep |
| 292 | * increasing for a long time |
| 293 | */ |
| 294 | #define NSEC_PER_SEC 1000000000L |
| 295 | static void hangcheck_unterminated(void) |
| 296 | { |
| 297 | int fd; |
| 298 | /* timeout needs to be greater than ~5*hangcheck */ |
| 299 | int64_t timeout_ns = 100 * NSEC_PER_SEC; /* 100 seconds */ |
| 300 | struct drm_i915_gem_execbuffer2 execbuf; |
| 301 | struct drm_i915_gem_exec_object2 gem_exec; |
| 302 | uint32_t handle; |
| 303 | |
| 304 | fd = drm_open_driver(DRIVER_INTEL); |
| 305 | igt_require(gem_uses_full_ppgtt(fd)); |
| 306 | igt_require_hang_ring(fd, 0); |
| 307 | |
| 308 | handle = gem_create(fd, 4096); |
| 309 | |
| 310 | memset(&gem_exec, 0, sizeof(gem_exec)); |
| 311 | gem_exec.handle = handle; |
| 312 | |
| 313 | memset(&execbuf, 0, sizeof(execbuf)); |
| 314 | execbuf.buffers_ptr = (uintptr_t)&gem_exec; |
| 315 | execbuf.buffer_count = 1; |
| 316 | |
| 317 | gem_execbuf(fd, &execbuf); |
| 318 | if (gem_wait(fd, handle, &timeout_ns) != 0) { |
| 319 | /* need to manually trigger an hang to clean before failing */ |
| 320 | igt_force_gpu_reset(); |
| 321 | igt_assert_f(0, "unterminated batch did not trigger an hang!"); |
| 322 | } |
| 323 | |
| 324 | close(fd); |
| 325 | } |
| 326 | |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 327 | igt_main |
| 328 | { |
Chris Wilson | 38fe49d | 2016-02-04 11:17:42 +0000 | [diff] [blame] | 329 | const struct intel_execution_engine *e; |
| 330 | |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 331 | igt_skip_on_simulation(); |
| 332 | |
| 333 | igt_subtest("error-state-debugfs-entry") |
| 334 | test_debugfs_error_state_exists(); |
| 335 | |
| 336 | igt_subtest("error-state-sysfs-entry") |
| 337 | test_sysfs_error_exists(); |
| 338 | |
| 339 | igt_subtest("ring-stop-sysfs-entry") |
| 340 | test_debugfs_ring_stop_exists(); |
| 341 | |
| 342 | igt_subtest("error-state-basic") |
| 343 | test_error_state_basic(); |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 344 | |
Chris Wilson | 38fe49d | 2016-02-04 11:17:42 +0000 | [diff] [blame] | 345 | for (e = intel_execution_engines; e->name; e++) { |
| 346 | if (e->exec_id == 0) |
| 347 | continue; |
| 348 | |
| 349 | igt_subtest_f("error-state-capture-%s", e->name) |
| 350 | test_error_state_capture(e->exec_id | e->flags, |
| 351 | e->full_name); |
Mika Kuoppala | 6fa1934 | 2014-05-20 11:25:48 +0300 | [diff] [blame] | 352 | } |
Daniele Ceraolo Spurio | 95ca764 | 2016-03-01 11:01:33 +0000 | [diff] [blame^] | 353 | |
| 354 | igt_subtest("hangcheck-unterminated") |
| 355 | hangcheck_unterminated(); |
Mika Kuoppala | 9b0d348 | 2014-05-19 17:42:21 +0300 | [diff] [blame] | 356 | } |