commit | 5f12b80a0b42da253691ca03828033014bb786eb | [log] [tgz] |
---|---|---|
author | Chris Wilson <chris@chris-wilson.co.uk> | Mon Oct 03 13:45:15 2016 +0100 |
committer | Chris Wilson <chris@chris-wilson.co.uk> | Mon Oct 03 20:59:55 2016 +0100 |
tree | 1901f99205efbcaafd9c4712036db4b1c39004aa | |
parent | dda960335e020835f7f1c12760e7f0b525b451e2 [diff] |
drm/i915: Unalias obj->phys_handle and obj->userptr We use obj->phys_handle to choose the pread/pwrite path, but as obj->phys_handle is a union with obj->userptr, we then mistakenly use the phys_handle path for userptr objects within pread/pwrite. Testcase: igt/gem_userptr_blits/forbidden-operations Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97519 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: stable@vger.kernel.org Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20161003124516.12388-2-chris@chris-wilson.co.uk