Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp181629pxm; Wed, 2 Mar 2022 13:00:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyIhTlYM2i4/BZMCsMWS5m48WSmA4MAIOafNUxvazzb2PlAamwQDLr4HtDHNVaiKUsaFeTd X-Received: by 2002:a17:90b:f8a:b0:1be:dccd:e4f7 with SMTP id ft10-20020a17090b0f8a00b001bedccde4f7mr1727696pjb.92.1646254816115; Wed, 02 Mar 2022 13:00:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646254816; cv=none; d=google.com; s=arc-20160816; b=tpnqdPa6yYmgrcUHChnDmXbSjc21p1Zknm2p36P2hJ64VAi3BhYJ/bW6oO08YQRvSO zJepm372xXUbzm7WFw46VWAbE3JqBTqb+1GPfWJLIeUj3++Q+0A2IyMWyk61T1Aj9f1v oEwLwzvZRrHzzfGUplFi+lT/S45ZZh2vOOXKtaHSJ25VRK1jvK3YuKhnKiK5Hwa9j06O WciBh8VNUfkHn5db34NBlB2QwmJXPbK5lgB3lVL/SZrowxM3CdenIPpH3l70J/ez64O+ 8pWOR2+yKdZaA8ogDHKSXiU/xZd4gyItkHFWxoaiL4yRpFxVHPGz7OWx8rfW0mLDGgC/ 89JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=A/7P7csz45sM8M75vo/R3s4K0v3XOsjwI3F7niEIByg=; b=UuzoAWMbOt7C/3jBEMqhN3zuFDlLelObxr+en/v6fhtPX1ODrBfYgdwAu/EhmW8wKZ 4z33q/RJRFasxAapSfn28Q4kx4L16CF0C3PukoZaIgIs7XbUOOSdu4WNfTiXolKyRl0h LoQUhCpq7iSsXOXGlaiRdmsGkFYAQaEWzlB6R/GFa+Lqf/rj2lQGqgQ+eyxHrE1PdjbH UGODmcyaCr9RJ2qSF0BL/yPehNtKUKZa2Zln4kQJ+BSdGMRB1vMqH2jhiH1myj/pYhUj UYm9eQSKs/WDHfLaOY5IpRgkkn4ILB2T0L179hywiBdmvc+CXoLzZI7WlesdJFQdTw+4 GGVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=MP+lyDGK; 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=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a16-20020a63e850000000b003734187a0c6si103021pgk.548.2022.03.02.12.59.59; Wed, 02 Mar 2022 13:00:16 -0800 (PST) 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=@mg.codeaurora.org header.s=smtp header.b=MP+lyDGK; 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=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243946AbiCBRaf (ORCPT + 99 others); Wed, 2 Mar 2022 12:30:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243918AbiCBRaT (ORCPT ); Wed, 2 Mar 2022 12:30:19 -0500 Received: from m43-7.mailgun.net (m43-7.mailgun.net [69.72.43.7]) by lindbergh.monkeyblade.net (Postfix) with UTF8SMTPS id D32A04DF54 for ; Wed, 2 Mar 2022 09:29:01 -0800 (PST) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1646242141; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=A/7P7csz45sM8M75vo/R3s4K0v3XOsjwI3F7niEIByg=; b=MP+lyDGKCb4BAf9vrWJEa4I9rxVKGsV7mqVcslIOBseEI6HoRchjLgd23c3P1Kd5R2otwf2T 5+VUEi+P5g9fURKOg4GfnMG0yHxMbUKY7FEowDLI1Wsh4X/1bHskzGb+3+dWcB4C0gRA0TzJ wBsTq55gsXHkGUQSAWCDAbVBo4s= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-west-2.postgun.com with SMTP id 621fa94dea5f8dddb548d433 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 02 Mar 2022 17:28:45 GMT Sender: quic_akhilpo=quicinc.com@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 2C686C4314F; Wed, 2 Mar 2022 17:28:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Received: from hyd-lnxbld559.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: akhilpo) by smtp.codeaurora.org (Postfix) with ESMTPSA id A0A55C43637; Wed, 2 Mar 2022 17:28:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org A0A55C43637 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=fail (p=none dis=none) header.from=quicinc.com Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=quicinc.com From: Akhil P Oommen To: freedreno , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Rob Clark , Dmitry Baryshkov , Bjorn Andersson Cc: Abhinav Kumar , Daniel Vetter , David Airlie , Douglas Anderson , Jonathan Marek , Jordan Crouse , Sean Paul , linux-kernel@vger.kernel.org Subject: [PATCH v1 10/10] drm/msm/a6xx: Free gmu_debug crashstate bo Date: Wed, 2 Mar 2022 22:57:36 +0530 Message-Id: <20220302225551.v1.10.I94896351ce7af04c2249ced42cf1557fb2bb0d33@changeid> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1646242056-2456-1-git-send-email-quic_akhilpo@quicinc.com> References: <1646242056-2456-1-git-send-email-quic_akhilpo@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Free gmu_debug bo while destroying the gpu crashstate. Signed-off-by: Akhil P Oommen --- drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c index 4d4588a..09bb993 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c @@ -1054,6 +1054,9 @@ static void a6xx_gpu_state_destroy(struct kref *kref) if (a6xx_state->gmu_hfi) kvfree(a6xx_state->gmu_hfi->data); + if (a6xx_state->gmu_debug) + kvfree(a6xx_state->gmu_debug->data); + list_for_each_entry_safe(obj, tmp, &a6xx_state->objs, node) kfree(obj); -- 2.7.4