diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-12-14 13:57:30 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-01-30 23:34:07 +0100 |
commit | 5c0480f21f9896c443b0e65d779c8e09a695da7b (patch) | |
tree | d87810ed77352d11fc1abdc9dbf14f8ba73852ec /arch/mips/kernel/csrc-ioasic.c | |
parent | ea16a3cdb9218a2389fafc804356c1914c157654 (diff) |
drm/i915: fall through pwrite_gtt_slow to the shmem slow path
The gtt_pwrite slowpath grabs the userspace memory with
get_user_pages. This will not work for non-page backed memory, like a
gtt mmapped gem object. Hence fall throuh to the shmem paths if we hit
-EFAULT in the gtt paths.
Now the shmem paths have exactly the same problem, but this way we
only need to rearrange the code in one write path.
v2: v1 accidentaly falls back to shmem pwrite for phys objects. Fixed.
v3: Make the codeflow around phys_pwrite cleara as suggested by Chris
Wilson.
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'arch/mips/kernel/csrc-ioasic.c')
0 files changed, 0 insertions, 0 deletions