From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5B13C77B7A for ; Wed, 7 Jun 2023 20:03:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbjFGUDv (ORCPT ); Wed, 7 Jun 2023 16:03:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjFGUDq (ORCPT ); Wed, 7 Jun 2023 16:03:46 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEBECE2 for ; Wed, 7 Jun 2023 13:03:45 -0700 (PDT) Received: from zn.tnic (pd9530d32.dip0.t-ipconnect.de [217.83.13.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 24AAF1EC0589; Wed, 7 Jun 2023 22:03:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1686168224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=K4I0V/hubQTsNd2IGgWHCW17HQtObQhYdKpQS5C4Z58=; b=FjEag43fOedPR6c11b6HbBAnBkfk84JNCBxBTuYtUWp7jO8hEMlxSMqNtCsvA7qQ8tp6YB 1x3ismAgIDYtWkoURCHcOShpGtcgNX2MWFzVHMU9zLcDe3TSDmul+RN8pcv4ZVY3i/UEXb D26dra2Qub44mf6QgcviB8MYBZYfUrc= Date: Wed, 7 Jun 2023 22:03:39 +0200 From: Borislav Petkov To: Dave Hansen Cc: X86 ML , LKML , stable@kernel.org Subject: Re: [PATCH 1/2] x86/microcode/AMD: Load late on both threads too Message-ID: <20230607200339.GDZIDim1s0FYkoeNDK@fat_crate.local> References: <20230605141332.25948-1-bp@alien8.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 07, 2023 at 12:36:53PM -0700, Dave Hansen wrote: > What's the benefit of doing the loading on both threads? I would have > naively thought it was just wasted work. I have the perfect example for this, see: e7ad18d1169c ("x86/microcode/AMD: Apply the patch early on every logical thread") so it is for reasons like that. > I think I even have a back-burnered Intel patch around somewhere that > ensures that we *never* load on both threads. Interesting - I guess there are considerable differences in microcode architecture between the two. :-) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette