Commit 943906ba authored by Jeremy Kerr's avatar Jeremy Kerr

[POWERPC] spufs: don't touch suspend bits when purging DMA queue

When we issue a MFC purge request, we may inadvertantly clear the
suspended status.

This change adds the MFC_CNTL_SUSPEND_MASK when we issue a purge
request, so that the suspend bit is masked out.
Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
parent 5711fe90
...@@ -462,7 +462,9 @@ static inline void purge_mfc_queue(struct spu_state *csa, struct spu *spu) ...@@ -462,7 +462,9 @@ static inline void purge_mfc_queue(struct spu_state *csa, struct spu *spu)
* Restore, Step 14. * Restore, Step 14.
* Write MFC_CNTL[Pc]=1 (purge queue). * Write MFC_CNTL[Pc]=1 (purge queue).
*/ */
out_be64(&priv2->mfc_control_RW, MFC_CNTL_PURGE_DMA_REQUEST); out_be64(&priv2->mfc_control_RW,
MFC_CNTL_PURGE_DMA_REQUEST |
MFC_CNTL_SUSPEND_MASK);
eieio(); eieio();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment