diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-11-24 12:26:56 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-11-24 14:08:01 +0000 |
commit | 50361845e873bb2c7820d3eace1add980c420067 (patch) | |
tree | a57ec81dae503cd244bcef73e3e0e6985d26ce4e /tests/i915/gem_mmap_gtt.c | |
parent | 54cefc989e1f8cf6eb6e01ef61c3524b79c52b68 (diff) |
Cast negative debugfs values to u64
Since
commit 488dac0c9237647e9b8f788b6a342595bfa40bda
Author: Yicong Yang <yangyicong@hisilicon.com>
Date: Sat Nov 21 22:17:19 2020 -0800
libfs: fix error cast of negative value in simple_attr_write()
the kernel now rejects any negative values written to debugfs, rather
than casting them to u64. Since we are accustomed to having the -1 mean
U64_MAX, perform that conversion ourselves.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_mmap_gtt.c')
-rw-r--r-- | tests/i915/gem_mmap_gtt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_mmap_gtt.c b/tests/i915/gem_mmap_gtt.c index 0b1d5ce9..6ecff12b 100644 --- a/tests/i915/gem_mmap_gtt.c +++ b/tests/i915/gem_mmap_gtt.c @@ -713,7 +713,7 @@ test_hang(int fd) count = 0; dir = igt_debugfs_dir(fd); igt_until_timeout(5) { - igt_sysfs_set(dir, "i915_wedged", "-1"); + igt_sysfs_printf(dir, "i915_wedged", "%llu", -1ull); if (READ_ONCE(control->error)) break; count++; |