Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp301974rwj; Sat, 29 Oct 2022 03:26:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM48CrK5ZTzzNH9x+AaB8E6Kcc0BfMbj9VzEJd7BzyrwbCXPMv5YjWdJypQrnRArZLGXbpiC X-Received: by 2002:a05:6402:5253:b0:461:e870:8507 with SMTP id t19-20020a056402525300b00461e8708507mr3653786edd.323.1667039189154; Sat, 29 Oct 2022 03:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667039189; cv=none; d=google.com; s=arc-20160816; b=Pcg4ogsvrM+IZE4KupNP+FUy2NeDyIzHk+r6Scv2eso3CzF6TSBujweZlTSVCGu56y Tl2jqJRL78804Z6x6WzXa0b0qTTx6CNL5moBjLvt+mrR4P/heDEg9lqD9/vBRMB6BpUU zdps9zSoiFb0X4KhdWYOWNIOsxATToTTGsNYTPsdQPxJZDL68ZGCrA38V/A+Jbt71mj8 +3+TI6QEpStZdp+ru3GHUsHCp6RqIVb2H5JG92zwx0WjlWd5l36ynDIHrioDND70lT13 cow16acdnn0upnkoelARXht/oI06cO+UrqWxpiNUnMpZnULmlGsATHtMIgRvimSwA/tE y+Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LdgXe0XOFV6nR/ec3XDOyNjpHQv0Xc0RBQ1ofiWsYsM=; b=SmVVrDkcKIZ6Z13/rBbY+CKQhtdfI1f/5WHoBuvg3Zo8dX4xFsU7EeLHRUvl9YNFcs PUBTPw4OX4TBrq3RIHhY8/0E8djutNpzS49FW0wK9+Lmq3dXOhbHFQJG7s3fcA1YJnvy W/K5aY8HgyEE4ft8Wk+ut4tK2LNeC+CYaXU9+MSM2fdwx/AzuJD72dYgqvMZlwalMSRJ 064EIeIkVzjXWb6fZ9F1S2JaEmWJ8/8jhTVF+U1Yx84kuUfV2BrPPic1IbAANgKNrxzX DRJsuojlUibNarnbOtJbsIk8dDtrD8Ldhx33oYvUqJSdpJwoiBMJUfWQ9w9jCTzcjH1D 1sFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=JSZHXpKg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm2-20020a170907948200b0078c25fb3842si1385016ejc.370.2022.10.29.03.26.04; Sat, 29 Oct 2022 03:26:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=JSZHXpKg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbiJ2KIE (ORCPT + 99 others); Sat, 29 Oct 2022 06:08:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229833AbiJ2KIC (ORCPT ); Sat, 29 Oct 2022 06:08:02 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 584578276D; Sat, 29 Oct 2022 03:08:01 -0700 (PDT) Received: from zn.tnic (p200300ea9733e788329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e788:329c:23ff:fea6:a903]) (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 DFC6B1EC066E; Sat, 29 Oct 2022 12:07:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1667038079; 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=LdgXe0XOFV6nR/ec3XDOyNjpHQv0Xc0RBQ1ofiWsYsM=; b=JSZHXpKgYBfRFHr+K7dnpKmjA2cPz7cQvMs71C8DZ/dRxK+r+UTK9ZoaErp/+dHmNZAR9i qVELRRJ32YUzlwf7noReAQg1OwXYOKlESljcI/3+Rtn61UstzLft77YFx2EjIQFBCOxcGq QQnHh6qfD4aBcEi/aHZPwW1lPFOUWSw= Date: Sat, 29 Oct 2022 12:07:54 +0200 From: Borislav Petkov To: Juergen Gross Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-pm@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" , "Rafael J. Wysocki" , Pavel Machek Subject: Re: [PATCH v4 12/16] x86/mtrr: add a stop_machine() handler calling only cache_cpu_init() Message-ID: References: <20221004081023.32402-1-jgross@suse.com> <20221004081023.32402-13-jgross@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221004081023.32402-13-jgross@suse.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 04, 2022 at 10:10:19AM +0200, Juergen Gross wrote: > +void cache_ap_init(void) > +{ > + if (!memory_caching_control || cache_aps_delayed_init) > + return; > + > + /* > + * Ideally we should hold mtrr_mutex here to avoid mtrr entries > + * changed, but this routine will be called in cpu boot time, In all new text you're adding s/mtrr/MTRR/g s/cpu/CPU/g so that it is all consistent. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette