Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp949616pxb; Wed, 6 Apr 2022 05:07:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOiKBmeRNNEjIUIaVIMZ3AHkPMoeHxKdNjGuoIa7DhfuUPf689Wkx0aFlUKTKg303oCaQ7 X-Received: by 2002:a6b:fd0c:0:b0:645:d261:ba25 with SMTP id c12-20020a6bfd0c000000b00645d261ba25mr4015284ioi.124.1649246841351; Wed, 06 Apr 2022 05:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649246841; cv=none; d=google.com; s=arc-20160816; b=SvEoXhQSWnHRro6Jz4LDEsjhPkt+MVIVRYeFpdKg53Kv1wyOM+qqfIj93bnmoRwxNu yB+yELaV0NH3ZkLCJnQijLnV9Zai6cmHwDUhy3C7w0RQmg2Z6n9JIzGyp+5L87fxuYVo aJX2FVB6lQaLotvVpuPHPOg5NRf3iP9yWSs9eN1ij6717WsN7iuvolyyosuFoZ6v9OkP iAVswHnUAsPjrQR1f+qd72yquNenL+0MT8HHWOh5JlsrPS1ZZied6WVLlAKJVPt/q1nl mfhBdA8fz5ywYooMby3qhgXdID0DwCQwUkPNibmeTGRL9I/cKiLBo4baoW63Uw63DRAf HBmA== 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=Pm2L8QBjQHELbJPDvRngrRMNXW1WXbPYEv98Myk3jNVtL7Ca8l3SVEUr0+nmUs12nA p7cII1u1LoUPv9e4xZ2Ot9I3I+yVjU+HnReNeh/ymDLGB+NwwDdD4xuwbOWYyhFGy4wD +JWJsg3Ad9bRPW5Qbj35CLYrEgvVkPgILQYHI1dro1YPtELVonkWOk7+DKAMMrqd+ZDF onjEX7203WGQo2zSPR+dHU3Ufko2TN1R6kO7EaNT7/iVRVxsJiQMuZgZfvaTJCBrGwYB RPJrqVV0VrXuTjY4uENS7GhzXdeddRYMOB1P5rOSPTm6AaLGD8DdQ3MXaqLRF1JUlNiH XcmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="d6gv/HOm"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q11-20020a92ca4b000000b002ca33336570si6519034ilo.97.2022.04.06.05.07.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:07:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="d6gv/HOm"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6790168D7FB; Wed, 6 Apr 2022 03:38:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1846431AbiDFCEG (ORCPT + 99 others); Tue, 5 Apr 2022 22:04:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349075AbiDEJtE (ORCPT ); Tue, 5 Apr 2022 05:49:04 -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 414BCA94FF; Tue, 5 Apr 2022 02:40:02 -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 D12006164D; Tue, 5 Apr 2022 09:40:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEDC0C385A2; Tue, 5 Apr 2022 09:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151601; bh=bpHXttM/e3cLQHkW0j8q0tlu0YafmBGpQxC5mr2uDeU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d6gv/HOmPK+xo3CK4lElpZG+QSGtrTSRzZdwFmPL+07AsCj1M07rjtBULvpEcBob1 rYhQBibbmzwl0+k79Im4Y/Bo9IR9gnEm8KObOGta6XLbaOyY4g9YZ6+zK+eKEzWDXj LyFAjBao1J7zt5eKiU4JKbtJxxIKdVU+JuF52iMs= 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.15 474/913] drm/msm/dpu: add DSPP blocks teardown Date: Tue, 5 Apr 2022 09:25:36 +0200 Message-Id: <20220405070354.063763780@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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