From: Daniel Vetter Subject: Re: [PATCH 35/43] drm/i915: rewrite shmem_pread_slow to use copy_to_user Date: Mon, 30 Jan 2012 23:37:13 +0100 Message-ID: <20120130223713.GH4360@phenom.ffwll.local> References: <1323867460-5486-1-git-send-email-daniel.vetter@ffwll.ch> <1323867460-5486-35-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by gabe.freedesktop.org (Postfix) with ESMTP id C98669E791 for ; Mon, 30 Jan 2012 14:37:11 -0800 (PST) Received: by wico1 with SMTP id o1so4520904wic.36 for ; Mon, 30 Jan 2012 14:37:11 -0800 (PST) Content-Disposition: inline In-Reply-To: <1323867460-5486-35-git-send-email-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Keith Packard Cc: Daniel Vetter , intel-gfx List-Id: intel-gfx@lists.freedesktop.org On Wed, Dec 14, 2011 at 01:57:32PM +0100, Daniel Vetter wrote: > Like for shmem_pwrite_slow. The only difference is that because we > read data, we can leave the fetched cachelines in the cpu: In the case > that the object isn't in the cpu read domain anymore, the clflush for > the next cpu read domain invalidation will simply drop these > cachelines. > > slow_shmem_bit17_copy is now ununsed, so kill it. > > With this patch tests/gem_mmap_gtt now actually works. > > v2: add __ to copy_to_user_swizzled as suggested by Chris Wilson. > > v3: Fixup the swizzling logic, it swizzled the wrong pages. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38115 > Signed-off-by: Daniel Vetter > Reviewed-by: Chris Wilson I've picked up these 3 patches to finally fix the pwrite/pread -EFAULT bug. Assuming nothing pops up in testing this week and no one raises any complains about the currently queued patches, I'll push out a new -next after fosdem with the current set of patches in -next-queued. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48