From mboxrd@z Thu Jan 1 00:00:00 1970 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 8B8FC14B080; Wed, 5 Feb 2025 13:57:09 +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=1738763829; cv=none; b=vCb/zPcoeVomZOVIR7qk/tDZsz20rFfeIhT8RWgBO1/Shf6WFQrhGLxR1R+yKArXQ4L/QDxyu4F7DByHu03hG3IjnkBbix2Ola4Wj1GQxrnuzQgSmItCTmXuIVHIZxVlkB/5BcDKEKwpHsziQwPHXhiodGTpkgt+fvBYS0JnNOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738763829; c=relaxed/simple; bh=6y7IvGWtBK88CWVCk2vQV9yq9E5GBUfpW1gikQyHEvk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=utrOQRTu1GR9UoX73w7hXqNv1Jb7OxbKO5bLmK9UlWzpPiBiQdBLbvfg8j717n6r8QRBpIM6m7lgfEoEa9E7S24oWt5B+PrY4vnJOVHfMlEE+7pnKIz43l/FEBk9qZYD1B17yVsUOMY4CcRP6WtGOcIGF95L1OCowTs5peT5Jqc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wpe2G6xF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wpe2G6xF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2B73C4CED1; Wed, 5 Feb 2025 13:57:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1738763829; bh=6y7IvGWtBK88CWVCk2vQV9yq9E5GBUfpW1gikQyHEvk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wpe2G6xFGcCQt/kY3znqSnxT9zPKE/nzMZE9lLZRYsVGx9sDGB/97Dqzb8cahU6OT F5xKBrzrY6BzdYM9Aroaz/kXMluZKnoX1+rWzY1Q3o8SutPi4AXm5+URb+MaQT3fFf 7aujgc6OK3Pl7tTRhFRDTMhT1RwZWBHb5Sq4ud4A= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Christophe JAILLET , Alex Deucher , Sasha Levin Subject: [PATCH 6.12 042/590] drm/amd/pm: Fix an error handling path in vega10_enable_se_edc_force_stall_config() Date: Wed, 5 Feb 2025 14:36:37 +0100 Message-ID: <20250205134456.861506110@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250205134455.220373560@linuxfoundation.org> References: <20250205134455.220373560@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Christophe JAILLET [ Upstream commit a3300782d5375e280ba7040f323d01960bfe3396 ] In case of error after a amdgpu_gfx_rlc_enter_safe_mode() call, it is not balanced by a corresponding amdgpu_gfx_rlc_exit_safe_mode() call. Add the missing call. Fixes: 9b7b8154cdb8 ("drm/amd/powerplay: added didt support for vega10") Signed-off-by: Christophe JAILLET Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_powertune.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_powertune.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_powertune.c index 3007b054c873c..776d58ea63ae9 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_powertune.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_powertune.c @@ -1120,13 +1120,14 @@ static int vega10_enable_se_edc_force_stall_config(struct pp_hwmgr *hwmgr) result = vega10_program_didt_config_registers(hwmgr, SEEDCForceStallPatternConfig_Vega10, VEGA10_CONFIGREG_DIDT); result |= vega10_program_didt_config_registers(hwmgr, SEEDCCtrlForceStallConfig_Vega10, VEGA10_CONFIGREG_DIDT); if (0 != result) - return result; + goto exit_safe_mode; vega10_didt_set_mask(hwmgr, false); +exit_safe_mode: amdgpu_gfx_rlc_exit_safe_mode(adev, 0); - return 0; + return result; } static int vega10_disable_se_edc_force_stall_config(struct pp_hwmgr *hwmgr) -- 2.39.5