Skip to content
Commit b4cba04f authored by Wentao Xu's avatar Wentao Xu Committed by Rob Clark
Browse files

drm/msm/mdp5: release SMB (shared memory blocks) in various cases



Release all blocks after the pipe is disabled, even when vsync
didn't happen in some error cases. Allow requesting SMB multiple
times before configuring to hardware, by releasing blocks not
programmed to hardware yet for shrinking case.

This fixes a potential leak of shared memory pool blocks.

Signed-off-by: default avatarWentao Xu <wentaox@codeaurora.org>
Tested-by: default avatarArchit Taneja <architt@codeaurora.org>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 99fc1bc4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment