Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp623352pxb; Tue, 5 Apr 2022 16:18:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwA6a7nDXQfHDLZUbXqFzpvZNOoAWcRcKM7HWhK7IoGZsF6s1oDIgQH+z70JqWQ1UGkceN6 X-Received: by 2002:a63:de0c:0:b0:378:9365:c3c6 with SMTP id f12-20020a63de0c000000b003789365c3c6mr4766426pgg.301.1649200690712; Tue, 05 Apr 2022 16:18:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649200690; cv=none; d=google.com; s=arc-20160816; b=ONuuzYUpC4hXX97o/SzSltNSaTDfOpttSycsejJV/JPJcMSrVHWGmjHhrSEr+NYneW TVuq+uYd4Py/ZvX1gXDHSpJ1TNOm1qaLMG5LTTXWaXi4Ro8D3Ewa7huylQ0SA7Jn2aBw WU6vBmSQr6ekP5lqglW56WKNyN7dsfSQBMoZd/yRxAdvC2nePpB7vv1SzyLOX3PW2WvC n9ufFYb6pGRFbTbpf3bS3DEtYnHHVg9BA+h+eMKn2jm93xCnp6TTBr0irxgN2MfwmPDc QCx+INKFb8nNFdKDVUzIeVxBO1i1/+ZR/93BYZaNpew8MoNn12P7GYDkg12eTPzFPU4W XFQw== 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=pb2R9Tg3duqN3LlGKXkNVPNFiMcL8LxxrfiDBvFwyN93fnyOrOwZWtHLQm2AjPpoRO LuDR3egoFDINHQLBnkYpJqYkNSaqhibSNWRzzokqxkyE7S6A0Lk0UWkp2H9jI5VoalrA C3pME2zB8vb5kV73U2QTXwyIgQsttWT8vpDJ5KrqEimhlFIjoA8uWyfw4qXpL8YSPbT3 jNiYnzbceXYUWV0bCXmFBQCs+8u1M+v89MrTsayshDbupYfArXojH6eOjQFimAZww6uA A2gyPi4UJ30BMnpbAJs/a1yRaJIh3+tr/V1e8VykaeH1IqcZrLN71TFFhQIAXEZaMmZ+ 57oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eALTfapS; 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 s8-20020a632c08000000b003816043f13csi14216415pgs.817.2022.04.05.16.18.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 16:18:10 -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=eALTfapS; 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 CAEAA2274E5; Tue, 5 Apr 2022 16:02:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354337AbiDEMt4 (ORCPT + 99 others); Tue, 5 Apr 2022 08:49:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236571AbiDEJDJ (ORCPT ); Tue, 5 Apr 2022 05:03:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACC2EDB8; Tue, 5 Apr 2022 01:54:58 -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 ams.source.kernel.org (Postfix) with ESMTPS id 61FF3B81BC5; Tue, 5 Apr 2022 08:54:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA4A8C385A0; Tue, 5 Apr 2022 08:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148896; bh=bpHXttM/e3cLQHkW0j8q0tlu0YafmBGpQxC5mr2uDeU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eALTfapS0My+F3nrgQoIkdPdBStizwFvZoYid1A1+BBtXaTrkaBSDkDGci6MmK9Tl 1DT5DRojzfzyNPFpA2hBeqdqrDPlU7liiv2+KvtKzVskPAJ7YjGsfnRDcViroWe9FI qy0IH4p5e1wQ4kEOmqWQ6l4IeJtgYmjHpauqAGJk= 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.16 0521/1017] drm/msm/dpu: add DSPP blocks teardown Date: Tue, 5 Apr 2022 09:23:54 +0200 Message-Id: <20220405070409.760721701@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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