mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-11 20:06:44 +07:00
drm/nv50: restore correct cache1 get/put address on fifoctx load
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
846975a97b
commit
7fb8ec8e2b
@ -384,8 +384,8 @@ nv50_fifo_load_context(struct nouveau_channel *chan)
|
|||||||
nv_wr32(dev, NV40_PFIFO_CACHE1_DATA(ptr),
|
nv_wr32(dev, NV40_PFIFO_CACHE1_DATA(ptr),
|
||||||
nv_ro32(dev, cache, (ptr * 2) + 1));
|
nv_ro32(dev, cache, (ptr * 2) + 1));
|
||||||
}
|
}
|
||||||
nv_wr32(dev, 0x3210, cnt << 2);
|
nv_wr32(dev, NV03_PFIFO_CACHE1_PUT, cnt << 2);
|
||||||
nv_wr32(dev, 0x3270, 0);
|
nv_wr32(dev, NV03_PFIFO_CACHE1_GET, 0);
|
||||||
|
|
||||||
/* guessing that all the 0x34xx regs aren't on NV50 */
|
/* guessing that all the 0x34xx regs aren't on NV50 */
|
||||||
if (!IS_G80) {
|
if (!IS_G80) {
|
||||||
@ -398,8 +398,6 @@ nv50_fifo_load_context(struct nouveau_channel *chan)
|
|||||||
|
|
||||||
dev_priv->engine.instmem.finish_access(dev);
|
dev_priv->engine.instmem.finish_access(dev);
|
||||||
|
|
||||||
nv_wr32(dev, NV03_PFIFO_CACHE1_GET, 0);
|
|
||||||
nv_wr32(dev, NV03_PFIFO_CACHE1_PUT, 0);
|
|
||||||
nv_wr32(dev, NV03_PFIFO_CACHE1_PUSH1, chan->id | (1<<16));
|
nv_wr32(dev, NV03_PFIFO_CACHE1_PUSH1, chan->id | (1<<16));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user