From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 831DE43E06D; Mon, 17 Aug 2026 14:11:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786975905; cv=none; b=HXSVkb7Xrk0OTM8Xw5Y/UNFErRf/pBSzLTh0HSramD40+x37XGF5T2oDXa2J75MZTqiScgqq+0XH3uHTSnc4u4Dr7gY9bs11RVenQWop2YUx9LYvW7+6yCeQXhjKmzIRAdLndsF/P43/Serxcq+mutaedGjCUW4cDcMCUl+o8d8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786975905; c=relaxed/simple; bh=9cs6erulS7vejPlzR2UXWRY4GhLkpdsjreZAs/U37sA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gcE7seO8Zz+BrQblxd6mG/ZNPYBMe/9r+gz1HTmFxSvCNvS9yaHAv3jL/hOcsDt6fXkzVKhFWKAAxUvkMBVQPNTA/ekGjYaEUPNGDBMo5/8UaofoGYM4N6zpG2Ey5izM9ZR0eM8VyVIa3Pdi0GVC3499CA3DVx1PNXZuaDVORho= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TzcIcQr3; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="TzcIcQr3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85C431F000E9; Mon, 17 Aug 2026 14:11:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786975902; bh=LUTvHF2kVRXj2ELrMXmePnK+s+awjuEjoqF2Ose/Glo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=TzcIcQr3HaDr/S65sgAkKs1+Xa0eLuBva+KN7CLeIDgYdYDuQqfDjAKcgHPQFpbym zvT2FAu5Do8EwgFdzx3MK3/AC+jvKBXlfYAKW/RMuMy7bF7WF15JOmmsLhp6kD3jsD XB4aXWk7+LnSF+wpr2XN0N/jRzlYqOtFWm0QLr0Q= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ce Sun , Tao Zhou , Alex Deucher Subject: [PATCH 5.10 187/389] drm/amdgpu: invoke pm_genpd_remove() before freeing genpd Date: Mon, 17 Aug 2026 15:30:26 +0200 Message-ID: <20260817132546.492540057@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260817132538.796021292@linuxfoundation.org> References: <20260817132538.796021292@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ce Sun commit 28c9b3c5dc35cc790d11e26ca3fc6e068be63998 upstream. Call pm_genpd_remove() to unregister from global list prior to releasing acp_genpd memory, and clear the pointer after free. Signed-off-by: Ce Sun Reviewed-by: Tao Zhou Signed-off-by: Alex Deucher (cherry picked from commit cd8650d7a91ee8b768e202354672553faa5cc1f2) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c @@ -466,7 +466,9 @@ static int acp_hw_fini(void *handle) mfd_remove_devices(adev->acp.parent); kfree(adev->acp.acp_res); + pm_genpd_remove(&adev->acp.acp_genpd->gpd); kfree(adev->acp.acp_genpd); + adev->acp.acp_genpd = NULL; kfree(adev->acp.acp_cell); return 0;