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 504283FF1DD; Fri, 15 May 2026 15:54:06 +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=1778860446; cv=none; b=dsZ6hZ5N0xP0IohXQxzvGDaVOTnxAyRtI9JPcppvpTyYhojTWMHlCoSjtSTCjFnnzA/nQIErxdt8kPtsi5fmdyHy0YtqqZjU+sQ/UN1XAZZsGTia3J18d5au0ypIGD3Boljof5vs1QJTJvM6PNxjRD4Nr9Sht7ctg3y04KjZkeY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778860446; c=relaxed/simple; bh=JcdYfa/Izvgh6YCvD6+F6fuy4hQze275oOrL8GOjWGU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ga8UM5YZkYOgHgQFrFGQH7QXlaY/7IgCgBhqAGIOMRbL93gKB5oGrZETE2KKgCGiLNQ++8nHGagcOv8jseMZmSOfIrNaHxYlhJ83fTbqWbtXMy1AaFLh6VxZHQgZuj/CSaezfMiGfJIFCJPOH42JN+j9stGxhXv7or63xPoiMyE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yEI2PHz0; 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="yEI2PHz0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9C6DC2BCB3; Fri, 15 May 2026 15:54:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778860446; bh=JcdYfa/Izvgh6YCvD6+F6fuy4hQze275oOrL8GOjWGU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yEI2PHz0z7na61JmZ2OSb5Y0yKVcLYNMduBe0li5g6mgJSSzgjMxlTPAD86m8EWyl wDLqPkl4o1UlFRyAtTbPgLDxIxE+Q8xcTskn5n7/T4gIHnrtS2dWb030tqvX/Gdr0y NtTnmO2nfpRzxUeYE/hartn7kGqhmFXG11EATCOI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Timur=20Krist=C3=B3f?= , Kent Russell , Alex Deucher Subject: [PATCH 6.12 091/144] drm/amdgpu/pm: add missing revision check for CI Date: Fri, 15 May 2026 17:48:37 +0200 Message-ID: <20260515154655.624870622@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260515154653.469907118@linuxfoundation.org> References: <20260515154653.469907118@linuxfoundation.org> User-Agent: quilt/0.69 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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alex Deucher commit 2a561b361b7681509710f3cfc3d95d54c87ac69f upstream. The ci_populate_all_memory_levels() workaround only applies to revision 0 SKUs. Link: https://gitlab.freedesktop.org/drm/amd/-/work_items/1816 Fixes: 9f4b35411cfe ("drm/amd/powerplay: add CI asics support to smumgr (v3)") Reviewed-by: Timur Kristóf Reviewed-by: Kent Russell Signed-off-by: Alex Deucher (cherry picked from commit 1db15ba8f72f400bbad8ae0ce24fafc43429d4bd) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c @@ -1326,8 +1326,9 @@ static int ci_populate_all_memory_levels dev_id = adev->pdev->device; - if ((dpm_table->mclk_table.count >= 2) - && ((dev_id == 0x67B0) || (dev_id == 0x67B1))) { + if ((dpm_table->mclk_table.count >= 2) && + ((dev_id == 0x67B0) || (dev_id == 0x67B1)) && + (adev->pdev->revision == 0)) { smu_data->smc_state_table.MemoryLevel[1].MinVddci = smu_data->smc_state_table.MemoryLevel[0].MinVddci; smu_data->smc_state_table.MemoryLevel[1].MinMvdd =