From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> To: Bjorn Andersson <bjorn.andersson@linaro.org>, Rob Clark <robdclark@gmail.com>, Sean Paul <sean@poorly.run>, Abhinav Kumar <quic_abhinavk@quicinc.com> Cc: Stephen Boyd <swboyd@chromium.org>, David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH v5 2/6] drm/msm/dpu: add DSPP blocks teardown Date: Sat, 22 Jan 2022 00:06:14 +0300 [thread overview] Message-ID: <20220121210618.3482550-3-dmitry.baryshkov@linaro.org> (raw) In-Reply-To: <20220121210618.3482550-1-dmitry.baryshkov@linaro.org> Add missing calls to dpu_hw_dspp_destroy() to free resources allocated for DSPP hardware blocks. Fixes: e47616df008b ("drm/msm/dpu: add support for color processing blocks in dpu driver") Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c index b5b1ea1e4de6..63ed0d7df848 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c @@ -35,6 +35,14 @@ int dpu_rm_destroy(struct dpu_rm *rm) { int i; + for (i = 0; i < ARRAY_SIZE(rm->dspp_blks); i++) { + struct dpu_hw_dspp *hw; + + if (rm->dspp_blks[i]) { + hw = to_dpu_hw_dspp(rm->dspp_blks[i]); + dpu_hw_dspp_destroy(hw); + } + } for (i = 0; i < ARRAY_SIZE(rm->pingpong_blks); i++) { struct dpu_hw_pingpong *hw; -- 2.34.1
WARNING: multiple messages have this Message-ID (diff)
From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> To: Bjorn Andersson <bjorn.andersson@linaro.org>, Rob Clark <robdclark@gmail.com>, Sean Paul <sean@poorly.run>, Abhinav Kumar <quic_abhinavk@quicinc.com> Cc: David Airlie <airlied@linux.ie>, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, Stephen Boyd <swboyd@chromium.org>, freedreno@lists.freedesktop.org Subject: [PATCH v5 2/6] drm/msm/dpu: add DSPP blocks teardown Date: Sat, 22 Jan 2022 00:06:14 +0300 [thread overview] Message-ID: <20220121210618.3482550-3-dmitry.baryshkov@linaro.org> (raw) In-Reply-To: <20220121210618.3482550-1-dmitry.baryshkov@linaro.org> Add missing calls to dpu_hw_dspp_destroy() to free resources allocated for DSPP hardware blocks. Fixes: e47616df008b ("drm/msm/dpu: add support for color processing blocks in dpu driver") Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c index b5b1ea1e4de6..63ed0d7df848 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c @@ -35,6 +35,14 @@ int dpu_rm_destroy(struct dpu_rm *rm) { int i; + for (i = 0; i < ARRAY_SIZE(rm->dspp_blks); i++) { + struct dpu_hw_dspp *hw; + + if (rm->dspp_blks[i]) { + hw = to_dpu_hw_dspp(rm->dspp_blks[i]); + dpu_hw_dspp_destroy(hw); + } + } for (i = 0; i < ARRAY_SIZE(rm->pingpong_blks); i++) { struct dpu_hw_pingpong *hw; -- 2.34.1
next prev parent reply other threads:[~2022-01-21 21:06 UTC|newest] Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-01-21 21:06 [PATCH v5 0/6] drm/msm/dpu: simplify RM code Dmitry Baryshkov 2022-01-21 21:06 ` Dmitry Baryshkov 2022-01-21 21:06 ` [PATCH v5 1/6] drm/msm/dpu: drop unused lm_max_width from RM Dmitry Baryshkov 2022-01-21 21:06 ` Dmitry Baryshkov 2022-02-10 0:08 ` [Freedreno] " Abhinav Kumar 2022-02-10 0:08 ` Abhinav Kumar 2022-01-21 21:06 ` Dmitry Baryshkov [this message] 2022-01-21 21:06 ` [PATCH v5 2/6] drm/msm/dpu: add DSPP blocks teardown Dmitry Baryshkov 2022-02-10 0:09 ` Abhinav Kumar 2022-02-10 0:09 ` Abhinav Kumar 2022-01-21 21:06 ` [PATCH v5 3/6] drm/msm/dpu: get INTF blocks directly rather than through RM Dmitry Baryshkov 2022-01-21 21:06 ` Dmitry Baryshkov 2022-02-10 0:25 ` Abhinav Kumar 2022-02-10 0:25 ` Abhinav Kumar 2022-02-10 9:32 ` Dmitry Baryshkov 2022-02-10 9:32 ` Dmitry Baryshkov 2022-02-10 23:31 ` [Freedreno] " Abhinav Kumar 2022-02-10 23:31 ` Abhinav Kumar 2022-02-11 13:47 ` Dmitry Baryshkov 2022-02-11 13:47 ` Dmitry Baryshkov 2022-02-12 1:08 ` Abhinav Kumar 2022-02-12 1:08 ` Abhinav Kumar 2022-01-21 21:06 ` [PATCH v5 4/6] drm/msm/dpu: stop embedding dpu_hw_blk into dpu_hw_intf Dmitry Baryshkov 2022-01-21 21:06 ` Dmitry Baryshkov 2022-02-14 19:08 ` Abhinav Kumar 2022-02-14 19:08 ` Abhinav Kumar 2022-01-21 21:06 ` [PATCH v5 5/6] drm/msm/dpu: fix error handling in dpu_rm_init Dmitry Baryshkov 2022-01-21 21:06 ` Dmitry Baryshkov 2022-02-14 19:15 ` Abhinav Kumar 2022-02-14 19:15 ` Abhinav Kumar 2022-02-14 20:43 ` Dmitry Baryshkov 2022-02-14 20:43 ` Dmitry Baryshkov 2022-02-14 21:25 ` Abhinav Kumar 2022-02-14 21:25 ` Abhinav Kumar 2022-01-21 21:06 ` [PATCH v5 6/6] drm/msm/dpu: move VBIF blocks handling to dpu_rm Dmitry Baryshkov 2022-01-21 21:06 ` Dmitry Baryshkov 2022-02-14 19:53 ` Abhinav Kumar 2022-02-14 19:53 ` Abhinav Kumar 2022-02-14 20:56 ` Dmitry Baryshkov 2022-02-14 20:56 ` Dmitry Baryshkov 2022-02-14 22:04 ` [Freedreno] " Abhinav Kumar 2022-02-14 22:04 ` Abhinav Kumar 2022-02-14 22:39 ` Dmitry Baryshkov 2022-02-14 22:39 ` Dmitry Baryshkov 2022-02-14 23:22 ` Abhinav Kumar 2022-02-14 23:22 ` Abhinav Kumar
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220121210618.3482550-3-dmitry.baryshkov@linaro.org \ --to=dmitry.baryshkov@linaro.org \ --cc=airlied@linux.ie \ --cc=bjorn.andersson@linaro.org \ --cc=daniel@ffwll.ch \ --cc=dri-devel@lists.freedesktop.org \ --cc=freedreno@lists.freedesktop.org \ --cc=linux-arm-msm@vger.kernel.org \ --cc=quic_abhinavk@quicinc.com \ --cc=robdclark@gmail.com \ --cc=sean@poorly.run \ --cc=swboyd@chromium.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.