diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2020-06-22 19:04:55 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-07-24 18:50:57 +1000 |
commit | 44517aa8d787243dad59c0b55131ae4b6dc100f7 (patch) | |
tree | edb288db3bab669f2879fa14cc0d609867c059ee /drivers/gpu/drm/nouveau/nouveau_dma.h | |
parent | 71e741ad124d07b15d7f1cd481f98d69867ca0a2 (diff) | |
download | lwn-44517aa8d787243dad59c0b55131ae4b6dc100f7.tar.gz lwn-44517aa8d787243dad59c0b55131ae4b6dc100f7.zip |
drm/nouveau/svm: convert migrate_clear to new push macros
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_dma.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_dma.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_dma.h b/drivers/gpu/drm/nouveau/nouveau_dma.h index 8778fd6002c0..32a1f03ec488 100644 --- a/drivers/gpu/drm/nouveau/nouveau_dma.h +++ b/drivers/gpu/drm/nouveau/nouveau_dma.h @@ -49,8 +49,6 @@ void nv50_dma_push(struct nouveau_channel *, u64 addr, int length); enum { NvSubSw = 1, NvSubImageBlit = 2, - - NvSubCopy = 4, /* DO NOT CHANGE - hardcoded for kepler gr fifo */ }; /* Object handles - for stuff that's doesn't use handle == oclass. */ @@ -94,12 +92,6 @@ BEGIN_NVC0(struct nouveau_channel *chan, int subc, int mthd, int size) OUT_RING(chan, 0x20000000 | (size << 16) | (subc << 13) | (mthd >> 2)); } -static inline void -BEGIN_IMC0(struct nouveau_channel *chan, int subc, int mthd, u16 data) -{ - OUT_RING(chan, 0x80000000 | (data << 16) | (subc << 13) | (mthd >> 2)); -} - #define WRITE_PUT(val) do { \ mb(); \ nouveau_bo_rd32(chan->push.buffer, 0); \ |