hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/gpu/drm/nouveau/nv04_fence.c
....@@ -21,12 +21,12 @@
2121 *
2222 * Authors: Ben Skeggs
2323 */
24
-
2524 #include "nouveau_drv.h"
2625 #include "nouveau_dma.h"
2726 #include "nouveau_fence.h"
2827
2928 #include <nvif/if0004.h>
29
+#include <nvif/push006c.h>
3030
3131 struct nv04_fence_chan {
3232 struct nouveau_fence_chan base;
....@@ -39,12 +39,11 @@
3939 static int
4040 nv04_fence_emit(struct nouveau_fence *fence)
4141 {
42
- struct nouveau_channel *chan = fence->channel;
43
- int ret = RING_SPACE(chan, 2);
42
+ struct nvif_push *push = fence->channel->chan.push;
43
+ int ret = PUSH_WAIT(push, 2);
4444 if (ret == 0) {
45
- BEGIN_NV04(chan, NvSubSw, 0x0150, 1);
46
- OUT_RING (chan, fence->base.seqno);
47
- FIRE_RING (chan);
45
+ PUSH_NVSQ(push, NV_SW, 0x0150, fence->base.seqno);
46
+ PUSH_KICK(push);
4847 }
4948 return ret;
5049 }