Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2388394lqp; Sun, 24 Mar 2024 17:13:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCV8IK1sVmMWrjU2cgEJ+VOBCUyZBodwfvQ995SsitATE8NZr32IxYoJwrSMK+UM9rVUCx+KmTojrlooPEbBCGSXV2Ar6V7Xbz1D0ODg== X-Google-Smtp-Source: AGHT+IEPKeM9HQLNhYiEITRzHv+ri+yrnBeTztCFeM9liovUkR+LIWpZF9WlqHbKSiFj4kcrmf6K X-Received: by 2002:a17:90a:e608:b0:29b:3106:7f24 with SMTP id j8-20020a17090ae60800b0029b31067f24mr3522321pjy.37.1711325617806; Sun, 24 Mar 2024 17:13:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711325617; cv=pass; d=google.com; s=arc-20160816; b=bUP+YGxNOPVllgfEm4MH5Oqiff8+266dHxewTf5I8+x6qsbNn3G4QjprgOsccCLPh1 vXV/AaGQSGmA28SZD+fuwBvsixK3pE2LB3Q6vnTG7PJM5pBFy2cQDYnz/ZZrRh83iaWl TAQxZZtkx7aEDjVSQV9vbvtXQfCIoINBLESOooqz4zjKo4TIHieKAbaXa6naIQgVskOE pJrQgr2J41NL+/1Z+oQtJ6TzZkh2gdVyOiuF1X5EQaYZqEFDyeA4sulBvVF6+zFxrUdl 57fYpf/ufE46upcuuwYum0eh6t6gNhXhclNEhgLT0K2LsF1Veiq1A8lnSxtg6rlDqKrX FNcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ne1DoPEq55ePDxgLcJFUiXHHLOFJw820qViDv2ImBQk=; fh=U89JBospakvuZKSi5HhhaduTOZPMl9hG/74aewx7+Io=; b=mgPYwATcysqxk7ZerMzhaTSFCn6+m3/UC4XdMSPMRUEcbXm54vVBQQnb/2iOf5wTCt Fz0YiKADnhF20OealgydKVDbEwQF1HJhYvPP7AqRhvZlRTKE3E2TrRYb36tKVGNYu00t lasBOLaunOTxUwe2epE3bu2VLDlUgJ4fG9mgJFM5DpJ0RntIPfiYde48L4h4PyvHqcZX U0d9XhcdzCrLfIT4wPk43UCS+MfKCpNlvOqPL2tp0N+m5++K+J+OjTDzesmtBBO1FCm6 7eIHShtNM6B5CZru/PZ+Q2xlcInrrOryC8zhfxhTBqyAjgXAjvG0USkpDMrGaVuklMdT DQgg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QkmfLwc9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113337-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113337-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k6-20020a17090a4c8600b0029ff73e6b4fsi6407183pjh.69.2024.03.24.17.13.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:13:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113337-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QkmfLwc9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113337-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113337-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AE345281F99 for ; Mon, 25 Mar 2024 00:12:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4C39197C8C; Sun, 24 Mar 2024 22:42:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QkmfLwc9" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD57919757C; Sun, 24 Mar 2024 22:42:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320138; cv=none; b=ifesRuYGmHg4pRTwvZ7sdwTKObahOzhnJVD+bBXzyqxK45dfqF9SygFz9cOQWDklFL99SDuL+gzWXgJZvaXxVYzjEUxt8hkbm04YhnaInKuxP6+qbONTs+QJcrK8wfxNF/0I6/39MsoupYvjoJcfn/vgqnSBLXJgc4sXei6K3BI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320138; c=relaxed/simple; bh=dbhrgi50dL8sBDMTPgHpKXd85uS5WWzkVEyi07bE/Hw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=s5pvpchLsyDklSaSgb0nQkcIkrO/b9e/d3Juz4X2JHBQZ35Iof/L8tM8so5uLo7P2oz4xh9EYFnP2X6zx++KcyjHMOpeMyazxIxtolTwRY4bL8iXJqIhPiiE7qbuFPfr9u1bHYSzJNbSol/PaCnbG3XcSzXzxO47qubmCYlNDME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QkmfLwc9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBCD1C43390; Sun, 24 Mar 2024 22:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320138; bh=dbhrgi50dL8sBDMTPgHpKXd85uS5WWzkVEyi07bE/Hw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QkmfLwc9vx3/AsEsARQOCmFLxxFs1bYb8CMW1pbfqPYxKInJcUCI1AuEuy6S5O5Yg joX6dua47gRd6L1FCxjzdD2EolwjKovG7vKDXHTgleBnFweIgZrLEnuy+8+rcoGa9X 0I2vED+w5bi4+eepXtO5uMceA+2k4kt1MXnx8Ek+GgVJHg9Gz9I1Cg2WSJ0C5LzkFU V+MaWTD0GMsceB4wq84X8du8jJW39v5flwxdn1y6bKlWwWkU82bBbU/c6I2S12l4IM TEqRRyHNTTPwTaCJLe25PLYqwazk6yZMe4cXpNCGGvzCnOWdj6rB6L2uZ0b1WUkxiT jB1RNMJdd7Q2A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Dmitry Baryshkov , Abhinav Kumar , Sasha Levin Subject: [PATCH 6.8 446/715] drm/msm/dpu: finalise global state object Date: Sun, 24 Mar 2024 18:30:25 -0400 Message-ID: <20240324223455.1342824-447-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Dmitry Baryshkov [ Upstream commit 49e27d3c9cd67fd5851f8b5518645b9bf3d2c6c0 ] Add calls to finalise global state object and corresponding lock. Fixes: de3916c70a24 ("drm/msm/dpu: Track resources in global state") Signed-off-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Patchwork: https://patchwork.freedesktop.org/patch/570175/ Link: https://lore.kernel.org/r/20231203000532.1290480-3-dmitry.baryshkov@linaro.org Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c index 723cc1d821431..2330eb2a4e9c8 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c @@ -374,6 +374,12 @@ static int dpu_kms_global_obj_init(struct dpu_kms *dpu_kms) return 0; } +static void dpu_kms_global_obj_fini(struct dpu_kms *dpu_kms) +{ + drm_atomic_private_obj_fini(&dpu_kms->global_state); + drm_modeset_lock_fini(&dpu_kms->global_state_lock); +} + static int dpu_kms_parse_data_bus_icc_path(struct dpu_kms *dpu_kms) { struct icc_path *path0; @@ -801,6 +807,8 @@ static void _dpu_kms_hw_destroy(struct dpu_kms *dpu_kms) dpu_kms->hw_vbif[i] = NULL; } + dpu_kms_global_obj_fini(dpu_kms); + dpu_kms->catalog = NULL; dpu_kms->hw_mdp = NULL; -- 2.43.0