search for: dispc_vma

Displaying 9 results from an estimated 9 matches for "dispc_vma".

2014 Sep 22
2
[PATCH] drm/nv84+: fix fence context seqno's
.../nouveau/nv84_fence.c b/drivers/gpu/drm/nouveau/nv84_fence.c index 7b372a68aa4e..4138db4d8291 100644 --- a/drivers/gpu/drm/nouveau/nv84_fence.c +++ b/drivers/gpu/drm/nouveau/nv84_fence.c @@ -120,6 +120,7 @@ nv84_fence_context_del(struct nouveau_channel *chan) nouveau_bo_vma_del(bo, &fctx->dispc_vma[i]); } + nouveau_bo_wr32(priv->bo, chan->chid * 16 / 4, fctx->base.sequence); nouveau_bo_vma_del(priv->bo, &fctx->vma_gart); nouveau_bo_vma_del(priv->bo, &fctx->vma); nouveau_fence_context_del(&fctx->base); @@ -159,8 +160,6 @@ nv84_fence_context_new(str...
2013 Sep 02
2
[PATCH] drm/nv84-: write fence value on exit, and restore value on init.
...nouveau_fifo_chan *fifo = (void *)chan->object; int i; + nouveau_bo_wr32(priv->bo, fifo->chid * 16/4, fctx->base.sequence); + for (i = 0; i < dev->mode_config.num_crtc; i++) { struct nouveau_bo *bo = nv50_display_crtc_sema(dev, i); nouveau_bo_vma_del(bo, &fctx->dispc_vma[i]); @@ -168,7 +171,7 @@ nv84_fence_context_new(struct nouveau_channel *chan) ret = nouveau_bo_vma_add(bo, client->vm, &fctx->dispc_vma[i]); } - nouveau_bo_wr32(priv->bo, fifo->chid * 16/4, 0x00000000); + fctx->base.sequence = nouveau_bo_rd32(priv->bo, fifo->chid * 1...
2013 Nov 12
6
[PATCH 1/7] drm/nouveau: fix m2mf copy to tiled gart
From: Maarten Lankhorst <maarten.lankhorst at canonical.com> Commit de7b7d59d54852c introduced tiled GART, but a linear copy is still performed. This may result in errors on eviction, fix it by checking tiling from memtype. Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com> Cc: stable at vger.kernel.org #3.10+ --- drivers/gpu/drm/nouveau/nouveau_bo.c | 33
2013 Sep 04
0
[PATCH] drm/nv84-: write fence value on exit, and restore value on init.
...> + nouveau_bo_wr32(priv->bo, fifo->chid * 16/4, fctx->base.sequence); > + > for (i = 0; i < dev->mode_config.num_crtc; i++) { > struct nouveau_bo *bo = nv50_display_crtc_sema(dev, i); > nouveau_bo_vma_del(bo, &fctx->dispc_vma[i]); > @@ -168,7 +171,7 @@ nv84_fence_context_new(struct nouveau_channel *chan) > ret = nouveau_bo_vma_add(bo, client->vm, &fctx->dispc_vma[i]); > } > > - nouveau_bo_wr32(priv->bo, fifo->chid * 16/4, 0x00000000); > + fctx->bas...
2014 Sep 22
0
[PATCH] drm/nv84+: fix fence context seqno's
...rivers/gpu/drm/nouveau/nv84_fence.c > index 7b372a68aa4e..4138db4d8291 100644 > --- a/drivers/gpu/drm/nouveau/nv84_fence.c > +++ b/drivers/gpu/drm/nouveau/nv84_fence.c > @@ -120,6 +120,7 @@ nv84_fence_context_del(struct nouveau_channel *chan) > nouveau_bo_vma_del(bo, &fctx->dispc_vma[i]); > } > > + nouveau_bo_wr32(priv->bo, chan->chid * 16 / 4, fctx->base.sequence); > nouveau_bo_vma_del(priv->bo, &fctx->vma_gart); > nouveau_bo_vma_del(priv->bo, &fctx->vma); > nouveau_fence_context_del(&fctx->base); > @@ -159,8 +...
2014 Sep 23
2
[PATCH] drm/nv84+: fix fence context seqno's
...ce.c >> index 7b372a68aa4e..4138db4d8291 100644 >> --- a/drivers/gpu/drm/nouveau/nv84_fence.c >> +++ b/drivers/gpu/drm/nouveau/nv84_fence.c >> @@ -120,6 +120,7 @@ nv84_fence_context_del(struct nouveau_channel *chan) >> nouveau_bo_vma_del(bo, &fctx->dispc_vma[i]); >> } >> >> + nouveau_bo_wr32(priv->bo, chan->chid * 16 / 4, fctx->base.sequence); >> nouveau_bo_vma_del(priv->bo, &fctx->vma_gart); >> nouveau_bo_vma_del(priv->bo, &fctx->vma); >> nouveau_fence_context...
2012 Jul 27
0
[PATCH 2/3] nouveau: add software methods to e0
....c b/drivers/gpu/drm/nouveau/nvc0_software.c index a029de5..4fd14cf 100644 --- a/drivers/gpu/drm/nouveau/nvc0_software.c +++ b/drivers/gpu/drm/nouveau/nvc0_software.c @@ -38,6 +38,7 @@ struct nvc0_software_priv { struct nvc0_software_chan { struct nouveau_software_chan base; struct nouveau_vma dispc_vma[4]; + u32 class[8]; }; u64 @@ -67,6 +68,40 @@ nvc0_software_method(struct drm_device *dev, u32 chid, u32 class, u32 mthd, u32 return handled; } +bool +nve0_software_method(struct drm_device *dev, u32 chid, u32 subc, u32 mthd, u32 data) +{ + struct nouveau_fifo_priv *pfifo = nv_engine(dev,...
2012 Jul 27
0
[PATCH 3/3] nouveau: add vblank methods on newer cards
.../drivers/gpu/drm/nouveau/nvc0_software.c b/drivers/gpu/drm/nouveau/nvc0_software.c index 4fd14cf..5bd381c 100644 --- a/drivers/gpu/drm/nouveau/nvc0_software.c +++ b/drivers/gpu/drm/nouveau/nvc0_software.c @@ -48,6 +48,63 @@ nvc0_software_crtc(struct nouveau_channel *chan, int crtc) return pch->dispc_vma[crtc].offset; } +static int +nvc0_swmthd_vblsem_offset_high(struct nouveau_channel *chan, + u32 class, u32 mthd, u32 data) +{ + struct nvc0_software_chan *pch = chan->engctx[NVOBJ_ENGINE_SW]; + + pch->base.vblank.ctxdma = data; + return 0; +} + +static int +nvc0_swmthd_vblsem_offset_low(...
2014 Apr 17
0
[PATCH] drm/nouveau: add some basic debugfs dumping for nouveau's clients and vm mappings
...0x84) { + struct nv84_fence_priv *priv = drm->fence; + struct nv84_fence_chan *fctx = chan->fence; + int i; + + for (i = 0; i < drm->dev->mode_config.num_crtc; i++) { + struct nouveau_bo *bo = nv50_display_crtc_sema(drm->dev, i); + + dump_single_bo(m, bo, -2, &fctx->dispc_vma[i]); + } + dump_single_bo(m, priv->bo, -3, &fctx->vma); + dump_single_bo(m, priv->bo_gart, -3, &fctx->vma_gart); + } + + if (chan->push.buffer) + dump_single_bo(m, chan->push.buffer, -4, &chan->push.vma); +} + +static void dump_channels_abi16(struct seq_file *m,...