Skip to content

Commit

Permalink
powerpc/spufs: Clear purge status before setting up isolated mode
Browse files Browse the repository at this point in the history
Currently, we may setup the MFC for isolated mode initilaisation with
the purge still active. This means that DMAs required to perform the
init do not happen.

This change clears the purge status after doing the purge, so that
the isolated init can proceed.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Jeremy Kerr authored and Benjamin Herrenschmidt committed Feb 22, 2009
1 parent 60ee031 commit 3688b46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/platforms/cell/spufs/run.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ static int spu_setup_isolated(struct spu_context *ctx)
cond_resched();
}

/* clear purge status */
out_be64(mfc_cntl, 0);

/* put the SPE in kernel mode to allow access to the loader */
sr1 = spu_mfc_sr1_get(ctx->spu);
sr1 &= ~MFC_STATE1_PROBLEM_STATE_MASK;
Expand Down

0 comments on commit 3688b46

Please sign in to comment.