diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-03 10:56:52 +0000 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-03 13:03:07 +0000 |
| commit | 52da22e7aba155be238faff4f6e97b2eb9de64f3 (patch) | |
| tree | 319f3bc9989b77226f64515f560a71447be47020 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 0aab2c721d81590012a5021a516f00666646741f (diff) | |
| download | kernel-52da22e7aba155be238faff4f6e97b2eb9de64f3.tar.gz | |
drm/i915: Reject set-tiling-ioctl with stride==0 and a tiling mode
In commit 957870f93412 ("drm/i915: Split out i915_gem_object_set_tiling()"),
I swapped an alignment check for IS_ALIGNED and in the process removed
the less-than check. That check turns out to be important as it was the
only rejection for stride == 0. Tvrtko did spot it, but I was
overconfident in the IS_ALIGNED() conversion.
Fixes: 957870f93412 ("drm/i915: Split out i915_gem_object_set_tiling()")
Testcase: igt/gem_tiling_max_stride
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170203105652.27819-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
