Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1931229rdb; Tue, 5 Sep 2023 09:07:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFlsI739iiOokZ9vwpUreAq9sr238Cu3MQ5WypU66ocLgCE4qno8FNchW5W7Hmf8RQDXbgH X-Received: by 2002:a05:6402:3446:b0:523:2c05:7d24 with SMTP id l6-20020a056402344600b005232c057d24mr242552edc.24.1693930036895; Tue, 05 Sep 2023 09:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693930036; cv=none; d=google.com; s=arc-20160816; b=nTNzQXMkgFgVyVWUgC77nigsPBNDainLwHy7BSkknrycvbMz5sJUjEsErRO5axi5+5 Uj/dvMumhYLA2bA/zbweWIs2/Kpf/AjDuWVfCw7elQYTlgPnPdzjf6Bx4dsJ3KZIVHDP EGs+u/245EG4rQ0b7vG2j+a17p9inhGS7oL85HTqyGrNKOBCEu8Vo40f7lo9+RklCyOO rEuLf+c9FtKh1QU7lcek6Cl6RUKdCwBya24GO9d7WBD2zZwA9FVnAqzR/g3qXljOynU+ rSJYF4BFsZCM0RomMYr/b2cfpNtvqE30Juzi5Y0Vi5kfD6Kt3xR/e1AcFrdlMXAQPDQJ Ay8Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=D+B2LETBRYo235Gzl9s8FV6KtOjZrwPltfhhztkFxvM=; fh=DIccuXVPwn0O/ofYW2fdBIr6rDQ4oVGscDSyBmBgUX0=; b=QA3EiGIg0v2Jt/FxBNb7T165zUCbZMvfi/hLQ2AFGthGOEwFSLG+jEOUW1kos/MUDk n9z8uZGADHTZAMm7MvJSN1sDBpnh5t5jL7jlmmStLzohsek4Si3WK68wIQV5FM8QZXQN HFORK4Is3mE2U1J+yZCsa1s0xKaJZjoaFdM9kIPIKFrZzyUn5DwPvHOy638gSShZtNip 6Ily/OYr7Rt92vifXmV7wQG68hGrdgo8Qs1qobD8Y9/0ehPmN6m6zUVId4Yr/xgIC/lT 8hHzDc0Q9dAekxRqoYo97ByApacQKqh/dwjXRMwjYP9cQM/Abfv0E8P47FZ5V200m5nK XKYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=NdLhcKzK; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h5-20020aa7de05000000b005233d0a02absi7517761edv.29.2023.09.05.09.07.13; Tue, 05 Sep 2023 09:07:16 -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=@gmail.com header.s=20221208 header.b=NdLhcKzK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351166AbjIAWzO (ORCPT + 10 others); Fri, 1 Sep 2023 18:55:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351118AbjIAWzF (ORCPT ); Fri, 1 Sep 2023 18:55:05 -0400 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89DA9173B; Fri, 1 Sep 2023 14:09:20 -0700 (PDT) Received: by mail-il1-x12f.google.com with SMTP id e9e14a558f8ab-34e1ddc38c6so546665ab.3; Fri, 01 Sep 2023 14:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693602560; x=1694207360; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=D+B2LETBRYo235Gzl9s8FV6KtOjZrwPltfhhztkFxvM=; b=NdLhcKzK5TtyE3yGXf0uYCWGBJ51CtYAMTp8fyqyotxbiuLDrBmuqCufUBh/9Kay/+ cs/82bnQla4NayTzVgjGTveV31nubv694UuuwYm74Iw6O+IBVYPcGi2xjA2TDp9r0zB6 +cDT4w57KljBPiXT1CUYuaaEVnqyZk3Qnih0I7okeb1fLD43Qtj5jdrSUFq0oAlFzKe0 PzT35Vjrvj7odIXOltxfWBE4Zbd3dVKPXlYFOl1cWrwAxd0DfatfNvMvKzeeKkcVI/Zs 9Nk+FsZuaa5Dh2kj8xGJjgiBwJIsq2Tftn6uXncDE8Kump651qCwuzoTw6sv4gLrQ05J vk5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693602560; x=1694207360; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=D+B2LETBRYo235Gzl9s8FV6KtOjZrwPltfhhztkFxvM=; b=XDMd1A4czk5dxvZI82tosueJhx3Mgu/t6UuTCmt7Kbw2ouv8nzJBZWE/awL1+g4TtT Nlmvl6tot/uZ6I1najO95x/ZluFbPRZSyiuDAHIQAFgZgxBE7XwdS2i3Tkd7sd2JkRU2 CeJaxWjHBUh3HZOzq2nkNzLtck4J5SxTsnl/RYG6rjv9mPJLsPBmHn1mvy9lUp0Qkejx xCqopxG0gIpuTkNHW5YGI0lICG+pt/d2kaAocAAc1GDtaCG6hJFu+aB1xWFkR85n+xNV xNs4AByVWFura15wNCh2pjTWQ4srLdAfv9KFhcjHfMgT9QDcVyAQBhOWCTcVLDy0Vn0k 1DYw== X-Gm-Message-State: AOJu0Yzxz6KnufEnRJnFLCim44M6YaZNQvD4NECnU3nhbw3ocldk/79j eumFA56m8Nv2rgJibhqv/PM= X-Received: by 2002:a05:6e02:1062:b0:34c:cf1f:2a27 with SMTP id q2-20020a056e02106200b0034ccf1f2a27mr4042401ilj.0.1693602559809; Fri, 01 Sep 2023 14:09:19 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id f11-20020a056638118b00b0042bb2448847sm1257257jas.53.2023.09.01.14.09.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Sep 2023 14:09:18 -0700 (PDT) Sender: Guenter Roeck Date: Fri, 1 Sep 2023 14:09:17 -0700 From: Guenter Roeck To: Nikolay Borisov Cc: Thomas Gleixner , LKML , x86@kernel.org, Linus Torvalds , "Ahmed S. Darwish" , Arnd Bergmann , Russell King , linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, Huacai Chen , WANG Xuerui , loongarch@lists.linux.dev, Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org, Thomas Bogendoerfer , linux-mips@vger.kernel.org, Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , linux-sh@vger.kernel.org, "David S. Miller" , sparclinux@vger.kernel.org, Richard Weinberger , Anton Ivanov , Johannes Berg , linux-um@lists.infradead.org, Richard Henderson , "James E.J. Bottomley" , Michael Ellerman , Chris Zankel , Tom Lendacky , semenzato@google.com Subject: Re: [patch 17/17] x86/fpu: Move FPU initialization into arch_cpu_finalize_init() Message-ID: References: <20230613223827.532680283@linutronix.de> <20230613224545.902376621@linutronix.de> <6a09294e-2c07-585b-336b-20d07e7e08ba@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6a09294e-2c07-585b-336b-20d07e7e08ba@suse.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Fri, Sep 01, 2023 at 09:02:19PM +0300, Nikolay Borisov wrote: > > > On 1.09.23 г. 20:30 ч., Guenter Roeck wrote: > > Hi, > > > > On Wed, Jun 14, 2023 at 01:39:46AM +0200, Thomas Gleixner wrote: > > > Initializing the FPU during the early boot process is a pointless > > > exercise. Early boot is convoluted and fragile enough. > > > > > > Nothing requires that the FPU is set up early. It has to be initialized > > > before fork_init() because the task_struct size depends on the FPU register > > > buffer size. > > > > > > Move the initialization to arch_cpu_finalize_init() which is the perfect > > > place to do so. > > > > > > No functional change. > > > > > > This allows to remove quite some of the custom early command line parsing, > > > but that's subject to the next installment. > > > > > > Signed-off-by: Thomas Gleixner > > > > The backport of this patch into chromeos-5.10 and chromeos-5.15 via stable > > relase merges is causing various Chromebooks (not all of them) to crash > > early during boot. Subsequent fixes have not addressed the problem for us, > > so we already reverted the patch from chromeos-5.15 and will revert it > > from chromeos-5.10 as well. > > > > I don't know if this is a Chromebook specific problem, or if it affects > > mainline, so this is just a heads-up in case others experience similar > > problems. > > > Another thing - if you choose to revert the arch_finalize patch then bear in > mind that the GDS' 'force' option is rendered inoperable as the FPU can't be > disabled due to the way things are sequenced. I understand, but that is still better than not being able to boot in the first place. Thanks, Guenter