Skip to content

Commit

Permalink
vc-sm-cma: Restore correct cache maintainance operations
Browse files Browse the repository at this point in the history
We have been using the more expensive flush operations rather than
invalidate and clean since kernel rpi-5.9.y

These are exposed with:
52f1453 Re-expose some dmi APIs for use in VCSM

But I believe that commit was dropped when (non-cma) vc-sm was dropped,
and didn't get updated when the commit was restored

Signed-off-by: Dom Cobley <popcornmix@gmail.com>
  • Loading branch information
popcornmix authored and pelwell committed May 25, 2022
1 parent 2d1db10 commit 08bca69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/vc04_services/vc-sm-cma/vc_sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,9 @@ static void (*cache_op_to_func(const unsigned int cache_op))
return NULL;

case VC_SM_CACHE_OP_INV:
return dmac_inv_range;
case VC_SM_CACHE_OP_CLEAN:
return dmac_clean_range;
case VC_SM_CACHE_OP_FLUSH:
return dmac_flush_range;

Expand Down

0 comments on commit 08bca69

Please sign in to comment.