Re: [PATCH 1/3] drm/i915: implement dma buf begin_cpu_access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 30, 2012 at 02:06:54PM +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied@xxxxxxxxxx>
> 
> In order for udl vmap to work properly, we need to push the object
> into the CPU domain before we start copying the data to the USB device.
> 
> question: what is direction here in terms of read/write to the device.
> 
> This along with the udl change avoids userspace explicit mapping to
> be used.
> 
> Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx>

In my understanding TO_DEVICE means cpu writes, devices reads. FROM is
devices writes, cpu reads. So your patch looks correct.

One thing I wonder is how much lockdep likes this one here ... But I guess
it's not the first one ;-) Also, do we have a simple testcase that clears
the bo with the intel igd and then tells udl the updated damage, just to
exercise the code a bit?
-Daniel
-- 
Daniel Vetter
Mail: daniel@xxxxxxxx
Mobile: +41 (0)79 365 57 48
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux