[Intel-gfx] [PATCH 0/6] Page faults to help user space debug
Ben Widawsky
ben at bwidawsk.net
Sat Jul 6 22:11:34 CEST 2013
Can we get a collective status update? I'm touching some code at the
moment which will have some uncomfortable conflicts with this series,
and I'd like to have an idea on the plan.
On Tue, Jul 02, 2013 at 12:18:55PM -0700, Paul Berry wrote:
> On 2 July 2013 12:03, Chris Wilson <[1]chris at chris-wilson.co.uk> wrote:
>
> On Tue, Jul 02, 2013 at 12:00:48PM -0700, Paul Berry wrote:
> > Â Â On 28 June 2013 15:39, Chris Wilson
> <[1][2]chris at chris-wilson.co.uk> wrote:
> >
> > Â Â Â On Fri, Jun 28, 2013 at 03:23:31PM -0700, Ben Widawsky wrote:
> > Â Â Â > This series originated from the request from Paul, "can you
> enable
> > Â Â Â page
> >    > faults"? �After some though and discussion, we came up
> with 3 debug
> > Â Â Â features to
> > Â Â Â > implement:
> >
> > Â Â Â The issue lies in that the CS and EU units like to prefetch
> 128 bytes
> > Â Â Â and will cross page boundaries. Userspace is rather lax in
> providing the
> > Â Â Â extra page (or preventing the read past the end of its bo)
> and so
> > Â Â Â without adding a sentinel page behind every bo you quickly
> generate
> > Â Â Â false positives. (Unless you also run a fixed userspace).
> >
> > Â Â Â If you are prepared to fix userspace, tweaking the kernel not
> to install
> > Â Â Â scratch pages everywhere is trivial.
> >
> > Â Â Mesa already adds the necessary padding to EU programs to ensure
> that
> > Â Â prefetch won't cause a page fault, and because of its "stack and
> heap"
> > Â Â model for batch buffers, CS prefetching shouldn't cause a page
> fault
> >   either.� I don't know whether the 2D drivers do something
> similar, so they
> > Â Â might potentially need fixing.
>
> You do not on the BLT ring, and have not done historically. The EU
> is no
> longer padded. We have been purposely lax in this area.
>
> -Chris
>
> You're right--I didn't realize that we removed the EU padding, and I
> wasn't thinking about the BLT code.
>
> References
>
> 1. mailto:chris at chris-wilson.co.uk
> 2. mailto:chris at chris-wilson.co.uk
--
Ben Widawsky, Intel Open Source Technology Center
More information about the Intel-gfx
mailing list