Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp689313pxb; Tue, 5 Apr 2022 18:53:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN+m4F8RmBr8l8YjkfzYcjPuhpPu/fGaogjKPbrMa0gyhatigyAmzaqJ3x8+b1deJdNjoQ X-Received: by 2002:a17:902:e9d3:b0:154:6dd6:2521 with SMTP id 19-20020a170902e9d300b001546dd62521mr6592033plk.59.1649210036027; Tue, 05 Apr 2022 18:53:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649210036; cv=none; d=google.com; s=arc-20160816; b=CJUgaWFgC43aaHlA2kMYD6L6e1wKjmRzuZJ2hR5zDmPjnyn5vmuN5Bk3ZDfY8Tdvqx 6Mb49w8fhoe6UoG3eAnVx1ele9QUzGtigfQpQiINSOHsWfturQjAlfTz1Flfxg1UBVS6 Rsapham6qvtyo3wOkMgsfomoI/kTNPXliw1w5XtYDgMZC/yjYgz0wk5XIC5/NbVv3YBa VI8rLiXP2cmhi5/oNtwCD2/Iz3gJcNgvYEv2/9D1+ryAnRJm6guVuitxbXVS+KuHrnfo E90CNGNZ2YGeLDFAHvq4E8YYo+gX2NRBHf3u84rx/f87aiptxJYG1Zm/cKil8JT7o0Ab BaTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DB0kPRbsXx1cWDm1MdRtkL2sKpgHZxW5Wh+SZ6AuNKY=; b=GYxOlaOLYAwGA4/syI5K3xDxcK6w4mv+F1NsMa2pQmX76a2KdouzY0xoJjRkOZvD0C ZJf26eSnOBxfxjpU+fy1ApmuVHtZCvIkeNDgb/vMUzzi+yK3xPqeDOeivWWJilW8efSK jfFN3mPZ3wI4uvoLThTyzpvn+uMlBBTsxyoazqQuYLIt5HqUZ5lGkDO947ojd5t9WKs6 vVk2sKJ5M1mZWiMR4cYUdfCmja8LAPpOHMh2HAeC9WOqRdY2U7KlRaF3OPYLohpHHOYK AqjA1eWuSDXXHpaDahWy9vKjiJ7wxQPyg+vMpPOpRzOA/kbGLdDuBF/G6D1rj/Rd+IKH O+tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZVfQtl1V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x23-20020a634857000000b003816043f091si14392140pgk.646.2022.04.05.18.53.41; Tue, 05 Apr 2022 18:53:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZVfQtl1V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356721AbiDELPk (ORCPT + 99 others); Tue, 5 Apr 2022 07:15:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237087AbiDEIRl (ORCPT ); Tue, 5 Apr 2022 04:17:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6A21B0A57; Tue, 5 Apr 2022 01:05:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 452806167A; Tue, 5 Apr 2022 08:05:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4810AC385A1; Tue, 5 Apr 2022 08:05:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649145905; bh=bpHXttM/e3cLQHkW0j8q0tlu0YafmBGpQxC5mr2uDeU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZVfQtl1VROnkz3WEW/lgQO2wNlzse7Ntvc0gJQDc/jD/MGrdXd6ICVjbZ25bKNjes 0vvMt8vqAyVaC+jrSdHRHywM+BDk78HH+CU7XvFQJLK2ZQfO+FU9E7bcPNDFqFHREO sv6rOf2N3Rqq3xBg5ldmGe02kgkCLTt/ThyjqynI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Baryshkov , Stephen Boyd , Abhinav Kumar , Sasha Levin Subject: [PATCH 5.17 0572/1126] drm/msm/dpu: add DSPP blocks teardown Date: Tue, 5 Apr 2022 09:21:59 +0200 Message-Id: <20220405070424.423744398@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dmitry Baryshkov [ Upstream commit d5c5e78f217172e87d8fb2c3418dd8b58b4adfcb ] 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 Reviewed-by: Stephen Boyd Reviewed-by: Abhinav Kumar Link: https://lore.kernel.org/r/20220121210618.3482550-3-dmitry.baryshkov@linaro.org Signed-off-by: Dmitry Baryshkov Signed-off-by: Sasha Levin --- 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 f9c83d6e427a..24fbaf562d41 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