[Nouveau] [RFC PATCH 5/5] force fences updated in error conditions

2015-08-05 Thread Konsta Hölttä
is broken now (how do you distinguish a long gpu job from a stuck one?). In many cases, a channel needs to be shut down completely when it breaks (e.g., mmu fault). Signed-off-by: Konsta Hölttä khol...@nvidia.com --- drm/nouveau/include/nvif/event.h | 1 + drm/nouveau/include/nvkm/engine/fifo.h

[Nouveau] [RFC PATCH 1/5] notify channel errors to userspace

2015-08-05 Thread Konsta Hölttä
currently signals idle timeout, sw notify, mmu fault and illegal pbdma error conditions. Signed-off-by: Konsta Hölttä khol...@nvidia.com --- drm/nouveau/include/nvif/class.h | 2 ++ drm/nouveau/include/nvif/event.h | 11 +++ drm/nouveau/include/nvkm/engine/fifo.h | 3 ++ drm/nouveau

[Nouveau] [RFC PATCH 0/5] More explicit pushbuf error handling

2015-08-05 Thread Konsta Hölttä
on a version of gnurou/staging. Thanks! Konsta (sooda in IRC) Konsta Hölttä (5): notify channel errors to userspace HACK don't verify route == owner in nvkm ioctl gk104: channel priority/timeslice support channel timeout using repeated sched timeouts force fences updated in error conditions

[Nouveau] [RFC PATCH 3/5] gk104: channel priority/timeslice support

2015-08-05 Thread Konsta Hölttä
, and then enable the channel again. The shift bit in the timeslice register is left untouched (3) as is the enable bit. Signed-off-by: Konsta Hölttä khol...@nvidia.com --- drm/nouveau/include/nvif/class.h | 10 +++ drm/nouveau/nvkm/engine/fifo/gk104.c | 58

[Nouveau] [RFC PATCH v2 5/5] HACK force fences updated on error

2015-08-31 Thread Konsta Hölttä
is broken now (how do you distinguish a too long gpu job from a stuck one?). In many cases, a channel needs to be shut down completely when it breaks (e.g., mmu fault). Signed-off-by: Konsta Hölttä <khol...@nvidia.com> --- drm/nouveau/include/nvif/event.h | 1 + drm/nouveau/include/nvkm/

[Nouveau] [RFC PATCH v2 2/5] don't verify route == owner in nvkm ioctl

2015-08-31 Thread Konsta Hölttä
by the same client. This will need to be fixed in some proper way. Will these objects be managed by userspace at some point? Signed-off-by: Konsta Hölttä <khol...@nvidia.com> --- drm/nouveau/nvkm/core/ioctl.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drm/nouvea

[Nouveau] [RFC PATCH v2 0/5] More explicit pushbuf error handling

2015-08-31 Thread Konsta Hölttä
of-concept on Jetson TK1, and the code is adapted from the latest nvgpu. The patches can also be found in http://github.com/sooda/nouveau and are based on a version of gnurou/staging. Thanks! Konsta (sooda in IRC) Konsta Hölttä (5): notify channel errors to userspace don't verify route == owner in

[Nouveau] [RFC PATCH v2 4/5] gk104: channel timeout detection

2015-08-31 Thread Konsta Hölttä
handler is cleaned up too. Signed-off-by: Konsta Hölttä <khol...@nvidia.com> --- drm/nouveau/include/nvif/class.h | 8 drm/nouveau/nvkm/engine/fifo/gk104.c | 92 +--- 2 files changed, 84 insertions(+), 16 deletions(-) diff --git a/drm/nouveau/i

[Nouveau] [RFC PATCH v2 3/5] gk104: channel priority/timeslice support

2015-08-31 Thread Konsta Hölttä
mpt it out, change the timeslice, and then enable the channel again. The shift bit in the timeslice register is left untouched (i.e., 3) as is the enable bit. Signed-off-by: Konsta Hölttä <khol...@nvidia.com> --- drm/nouveau/include/nvif/class.h | 10 ++ drm/nouveau/nvkm/engine/f

[Nouveau] [RFC PATCH v2 1/5] notify channel errors to userspace

2015-08-31 Thread Konsta Hölttä
currently signals idle timeout, sw notify, mmu fault and illegal pbdma error conditions. Signed-off-by: Konsta Hölttä <khol...@nvidia.com> --- drm/nouveau/include/nvif/class.h | 2 + drm/nouveau/include/nvif/event.h | 11 drm/nouveau/include/nvkm/engine/fifo.h | 3 ++ drm/n

Re: [Nouveau] [RFC PATCH v2 0/5] More explicit pushbuf error handling

2015-09-02 Thread Konsta Hölttä
On 01/09/15 16:26, Ben Skeggs wrote: On 31 August 2015 at 21:38, Konsta Hölttä <khol...@nvidia.com> wrote: Hi there, Resending these now that they've had some more polish and testing, and I heard that Ben's vacation is over :-) These patches work as a starting point for more explicit

Re: [Nouveau] [RFC PATCH v2 0/5] More explicit pushbuf error handling

2015-09-02 Thread Konsta Hölttä
On 02/09/15 13:01, Konsta Hölttä wrote: On 01/09/15 16:26, Ben Skeggs wrote: On 31 August 2015 at 21:38, Konsta Hölttä <khol...@nvidia.com> wrote: Hi there, Resending these now that they've had some more polish and testing, and I heard that Ben's vacation is over :-) These patche