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 34899171A6 for ; Wed, 9 Aug 2023 11:01:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A79EEC433C8; Wed, 9 Aug 2023 11:01:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1691578919; bh=JMtCCH4S/dMNJD/3rhmgPyRs59S9ef4h5jIeCn9jeSk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P2KiCk5SbHcSFSUCZ9Ouzl2oD3NpdB+YQpFcpohXJoT7zS7hqlvDO3LCnNidvIntM 8l/eL0/ShbdMX27gpPJ2ZIvTfeG21nYsP42gR+0vd18yxYVui3i6VtwzFaNwWty1ho kksP0W0zrZoCAv+veSOLxZj5PmTQIQBLHgyJ26Z8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Borislav Petkov (AMD)" , stable@kernel.org Subject: [PATCH 4.14 002/204] x86/microcode/AMD: Load late on both threads too Date: Wed, 9 Aug 2023 12:39:00 +0200 Message-ID: <20230809103642.640256387@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230809103642.552405807@linuxfoundation.org> References: <20230809103642.552405807@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Borislav Petkov (AMD) commit a32b0f0db3f396f1c9be2fe621e77c09ec3d8e7d upstream. Do the same as early loading - load on both threads. Signed-off-by: Borislav Petkov (AMD) Cc: Link: https://lore.kernel.org/r/20230605141332.25948-1-bp@alien8.de Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/cpu/microcode/amd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c @@ -532,7 +532,7 @@ static enum ucode_state apply_microcode_ rdmsr(MSR_AMD64_PATCH_LEVEL, rev, dummy); /* need to apply patch? */ - if (rev >= mc_amd->hdr.patch_id) { + if (rev > mc_amd->hdr.patch_id) { ret = UCODE_OK; goto out; }