Displaying 4 results from an estimated 4 matches for "drm_udelay".
Did you mean:
dm_delay
2009 Aug 21
4
[PATCH] drm/nouveau: rewrite nouveau_dma_wait()
...happens to
+ * just be processing an operation that takes a long time
+ */
+ get_valid = READ_GET(chan, &get);
+ if (get != prev_get) {
+ prev_get = get;
+ cnt = 0;
+ }
- for (i = 0; i < us_timeout; i++) {
- if (!READ_GET(chan, &get)) {
+ if ((++cnt & 0xff) == 0) {
DRM_UDELAY(1);
- continue;
+ if (cnt > 10000)
+ return -EBUSY;
}
- if (chan->dma.put >= get) {
- chan->dma.free = chan->dma.max - chan->dma.cur;
-
- if (chan->dma.free < size) {
- OUT_RING(chan, 0x20000000|chan->pushbuf_base);
- if (get <= NOUVEAU_DMA_SKIPS...
2009 Aug 20
4
[PATCH 1/4] drm/nouveau: refactor nouveau_dma_wait()
...uf_base);
+
+ if (get <= NOUVEAU_DMA_SKIPS) {
+ /* corner case - will be idle */
+ if (chan->dma.put <= NOUVEAU_DMA_SKIPS)
+ WRITE_PUT(NOUVEAU_DMA_SKIPS + 1);
+
+ for (; *timeout; (*timeout)--) {
+ if (READ_GET(chan, &get) && get > NOUVEAU_DMA_SKIPS)
+ break;
+
+ DRM_UDELAY(1);
+ }
+
+ if (*timeout == 0)
+ return -EBUSY;
+ }
+
+ WRITE_PUT(NOUVEAU_DMA_SKIPS);
+ chan->dma.cur = NOUVEAU_DMA_SKIPS;
+ chan->dma.put = NOUVEAU_DMA_SKIPS;
+ chan->dma.free = get - (NOUVEAU_DMA_SKIPS + 1);
+ return 0;
+}
+
int
nouveau_dma_wait(struct nouveau_channel *chan, int...
2019 May 19
5
[PATCH v1 0/4] drm/nouveau: drop use of drmP.h
...inux/* drm/* etc.
The removal is divided up in a few patches that was the logical
steps to remove the use of drmP.h.
Build tested with allmodconfig and allyesconfig for x86, arm, alpha and more.
Patchset made on top of drm-misc-next.
Sam
Sam Ravnborg (4):
drm/nouveau: drop use of DRM_UDELAY
drm/nouveau: drop drmP.h from nouveau_drv.h
drm/nouveau: drop drmP.h from all header files
drm/nouveau: drop use of drmp.h
drivers/gpu/drm/nouveau/dispnv04/arb.c | 2 --
drivers/gpu/drm/nouveau/dispnv04/crtc.c | 3 ++-
drivers/gpu/drm/nouveau/dispnv04/cursor.c...
2010 Aug 06
4
nv vpe video decoder
Hello,
I have my work on the nv vpe video decoder in a functional
state. In case you didn't know this decoder accelerates mpeg2
video at the idct/mc level. I have verified that it works on
nv40 hardware. I believe it works on nv30 hardware (and
maybe some earlier hardware), but I cannot verify since I have
none.
I will reply with patches against the kernel, drm, ddx
and mesa for