Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp607058rwi; Thu, 27 Oct 2022 05:38:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5GMmFtEoGk7Lc3U6YiR1zInJE4IKS4cZvuT/W76IUioKWDEoOmzOp0PsiNINQMhiJCQiRi X-Received: by 2002:a05:6402:1e88:b0:461:a513:f543 with SMTP id f8-20020a0564021e8800b00461a513f543mr22694635edf.183.1666874317780; Thu, 27 Oct 2022 05:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666874317; cv=none; d=google.com; s=arc-20160816; b=gM6SW+YtzCPKMJ0zR9e+VA8LCVbTiyRwjzNY1mhR0uBZqi1W5/iASnhel+pFQ5Bkwv hu3q45nE9WJDxBotegT+xo3ESjBgvaeDAWaFJmkx9iFFS2v5Ew+6oqBW4f2vVhOZTqGN QFL8rJ/GHYEyVCp+x2PjHkT3WqGSgCg40QOusOCpjQ5diyGJgCyZBLsD8ogm+azHbS7b SbYki2+PjdDVq8H9noaXmnVeC93NZtP1sWZ8Vqwgw+KjouVfxiAsVgbYlZejYzZIYC7N v1iPlyNI77w8mZuzVJqFMr7FOW8VxwL0Gil+fDQETogbzck/jQkJEpcXdKK8PhXpRplo XV2w== 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=WquI/8NSd14rVXUzGFlNJMA6t1lxckM7GaSPLgAhaPs=; b=aoVyhYcsIo7cyx1Iq3Um4zWn+PsYmsOYul8mMfj/G/gNuiV+L59flq+JcxtOuz1NE5 zhxgmtkXePk8Pv/7/S55yFT2NhJqXR45acyrwG8SkJsGfQOq12AAUKD0iy7jCz8E66fE nKGnxizxVzzVBqSXJ879DJ0c095dhu8Uhc2sWKHanHGoJCXcsPbJqmyasuMOZfV3Su3e dzBH6fPwCOuLnnBbnKrVZUy2gMh1Ey37Ks7QGYweG/bakJZYx0Hi8TDmVxPAhkq4c5ET um3EOTDEpV2kRDoWx1e/YpL3skn33SA7BgQoyk8u3vVPrHKVxHrtUxKqWYL/JGjMeCNH fnfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="CPsGQc/e"; 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 i9-20020a05640242c900b00456dcf56d90si60150edc.84.2022.10.27.05.38.12; Thu, 27 Oct 2022 05:38:37 -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="CPsGQc/e"; 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 S235178AbiJ0MSM (ORCPT + 99 others); Thu, 27 Oct 2022 08:18:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234375AbiJ0MSK (ORCPT ); Thu, 27 Oct 2022 08:18:10 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0212DE071A for ; Thu, 27 Oct 2022 05:18:10 -0700 (PDT) Received: from zn.tnic (p200300ea9733e7cb329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e7cb: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 9B66F1EC0426; Thu, 27 Oct 2022 14:18:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1666873088; 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=WquI/8NSd14rVXUzGFlNJMA6t1lxckM7GaSPLgAhaPs=; b=CPsGQc/egPKz0SwpUVtl3T2rU39ipDsV8KcRCN4n05gL1W57J0pao4V9vBin4T4cKvNWGB hS7Ldfmop1kJ8aWPS0cuX95CzAYY7nF6pugsLax5wdbcVtCa+rTntZHV9OZTeAlqLPJ95y i56xrrrAjBYE8QYGkg+Oxn20mc/Q8+k= Date: Thu, 27 Oct 2022 14:18:03 +0200 From: Borislav Petkov To: Juergen Gross Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" Subject: Re: [PATCH v4 11/16] x86/mtrr: let cache_aps_delayed_init replace mtrr_aps_delayed_init Message-ID: References: <20221004081023.32402-1-jgross@suse.com> <20221004081023.32402-12-jgross@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221004081023.32402-12-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:18AM +0200, Juergen Gross wrote: > diff --git a/arch/x86/kernel/cpu/cacheinfo.c b/arch/x86/kernel/cpu/cacheinfo.c > index 49b60a427fc9..330aa412be63 100644 > --- a/arch/x86/kernel/cpu/cacheinfo.c > +++ b/arch/x86/kernel/cpu/cacheinfo.c > @@ -1137,3 +1137,10 @@ void cache_cpu_init(void) > cache_enable(); > local_irq_restore(flags); > } > + > +bool cache_aps_delayed_init; Why isn't that static and only the accessors set it or clear it? > +void set_cache_aps_delayed_init(void) > +{ > + cache_aps_delayed_init = true; > +} Otherwise, there's no point for this thing. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette