Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3137422pxk; Mon, 21 Sep 2020 06:16:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/ptpvFNho9/sH/BICt69lUXVKhJvazvLjUnpeMCILpUu2FVZTACXqTY/98UKtIHyJlukc X-Received: by 2002:a17:906:b24e:: with SMTP id ce14mr49183980ejb.494.1600694174578; Mon, 21 Sep 2020 06:16:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600694174; cv=none; d=google.com; s=arc-20160816; b=Teq6/czytMb7DTniR6YsTaitxgarpbPiz9QGi7WuK5TsmrDIm+6Fyj0woZcc/6fs2V NEfer1JE1KcRk8ouMFp8CznMUuJk3+AJrNAJrZSvAKICKbFezZXu7fU2M7PokEgtrj1e ct4YJ+aUUH7wNejoV2NtOciY0+4rhOqnPXmDKItf2k3Y7LxZkgvNLBLPP5aDyUsMa8ya V9RgBb5woJIgU8D/tW4jGk/KkiZeAfAArtvDk3kIuGsq+TB02qnV7M1wvc8gxBPtoN4H 1/WRdb/fGhFe34en7xK818XaHQyLdaVpDCmJK4cqhglnWsqLpME4gaHOvJPCjWAZOwsk zsfA== 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=9/ujxYY+aQO9o6gv67WT5My/XdaKCAJBq6gZzzqrh60=; b=AT4KfbaXFmMNM8BvepzJbq+0pVilSGWOXcgBWz0Ld48S4TLL7baLqgYqWS65dHbhbK s4SSzoK7ZKFpHz6mgOSIShLfUgF+6o2uCHjfw8Fzh3Cl5IFOafGMbQjItSCjgvSe6dmN 2noWGZGpzDDN4VhG5jR04jJJchRU6mkOjfhXDo09dtWYhlsNs04TojOpBvJQgbVCTsmG lmrv9qHErRYirDyQtPSFGFH7ZtoRnqnT1+BvoJVDi+fKiiZuCbk9v2ZRqv7QSX6WHrdE B234/+2wESjdomyRZtFh3InvKt/JrAbI6KRYfadHzKhCE1Xyuc8zLqjJgaj2LRkOZ6e9 liKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="S+7d7u/s"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bf1si8038232edb.565.2020.09.21.06.15.50; Mon, 21 Sep 2020 06:16:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="S+7d7u/s"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727233AbgIUNKP (ORCPT + 99 others); Mon, 21 Sep 2020 09:10:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727222AbgIUNKJ (ORCPT ); Mon, 21 Sep 2020 09:10:09 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 813FBC061755 for ; Mon, 21 Sep 2020 06:10:08 -0700 (PDT) Received: from zn.tnic (p200300ec2f07e300be7bcf3e7fc25083.dip0.t-ipconnect.de [IPv6:2003:ec:2f07:e300:be7b:cf3e:7fc2:5083]) (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 D391A1EC03CE; Mon, 21 Sep 2020 15:10:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1600693807; 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=9/ujxYY+aQO9o6gv67WT5My/XdaKCAJBq6gZzzqrh60=; b=S+7d7u/sq7HYFYv57bZLJtkf5+lw8JXx+Tr2DS5AXYBgLA1UEzN1klkOBnj1H6AdjyCcGP kNxwsIAYIQ7uFjZid0CFoLqeHpJ63FSZ4p7snqa747CyatgmbPAti5bUoHZ6dAib1qtB5M ANRtao6sCCyHy2SVWy8tyVS1Rifl6lA= Date: Mon, 21 Sep 2020 15:10:05 +0200 From: Borislav Petkov To: Mike Hommey Cc: x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] x86/boot: Handle fpu-related and clearcpuid command line arguments earlier Message-ID: <20200921131005.GF5901@zn.tnic> References: <20200920083626.GA7473@zn.tnic> <20200920220036.7469-1-mh@glandium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200920220036.7469-1-mh@glandium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 07:00:36AM +0900, Mike Hommey wrote: > FPU initialization handles them currently. However, in the case of > clearcpuid, some other early initialization code may check for features > before the FPU initialization code is called. Handling the argument > earlier allows the command line to influence those early > initializations. > > Signed-off-by: Mike Hommey > --- > arch/x86/kernel/cpu/common.c | 41 ++++++++++++++++++++++++++++++++++++ > arch/x86/kernel/fpu/init.c | 41 ------------------------------------ > 2 files changed, 41 insertions(+), 41 deletions(-) > > diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c > index c5d6f17d9b9d..5e2e4d3621bd 100644 > --- a/arch/x86/kernel/cpu/common.c > +++ b/arch/x86/kernel/cpu/common.c > @@ -23,6 +23,7 @@ > #include > #include > > +#include > #include > #include > #include > @@ -1220,6 +1221,45 @@ static void detect_nopl(void) > #endif > } > > +/* > + * We parse cpu parameters early because early_identify_cpu() is executed > + * before parse_early_param(). > + */ > +static void __init cpu__init_parse_early_param(void) Yeah, let's call it simply "cpu_parse_early_param". Also, I forgot to says this, sorry about that, but can you pls do your patch ontop of tip/master: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/log/ because there are other changes in that area and your patch as is, doesn't apply. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette