Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2100361rwa; Mon, 22 Aug 2022 02:00:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR4X+YQMA2uM/9N7MHrt0r3y/EQm5D1NNdENK7QFBpfmIwiQ8KjQXyPDD6cGywfdTBYxNuEz X-Received: by 2002:a05:6a00:228c:b0:536:cd2c:c9f3 with SMTP id f12-20020a056a00228c00b00536cd2cc9f3mr1291401pfe.62.1661158853655; Mon, 22 Aug 2022 02:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661158853; cv=none; d=google.com; s=arc-20160816; b=y6s3IAUARVIS0hhBNmcLBXeYB/iwz8FBGKj4yYjXopsKUhI8wuH5ut6JnaqdphqFZk /5uSuE96GIioeQ0sFAdRuwj5ztQvVwaJiSHFmVVHi4VUA1nqnaPIlJizYO+R6ZACsAc/ L31dCp0EYfE3we8JNTWebKCl1gAUEbG1LdhStVAuVhkBBt35gUmWg5vDKZ5dRr89tJRQ d6jhIp2l/BqwoZ/Esi5S4HCYjp/UnqdkD4vT5nezinC5bdw386lBalIkNXIJH8ZLclvx S2phwt6oji4nA52oT+j27dfNQteVP+kpqJ+VLQ3O1wqDnFOdyO+s2tSrT70TvJaCEAYj j36w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Er9ibm4gSRglhgkkZSQJnqVdTCFZFwiUA3xNQXqHB/M=; b=jRBbhwLtX74D+V5RAvAOf8XK3P5rFuFE4m4YxXEW5g2kLDVv89VVF4baXCz5rRc50u Ks6N7ano0nliPvPk+8p+bFnKyJ1/2wYMuCArcKlbEkNPzvQoKnFSZbGqruDprLK1afcE QR/GyCu5YhbtwH7jAoH1gTYgAIVexuMhMf0FYyDfq4KZkoBy41EUVK0IUJPqp94RwPl5 6OcSoOweLlLS/rTlkU7toANkeh2f9Vgd+MNzwsH3G20PHcrypy0UT1hd2JuUdJDlbVLT jsnhR9PzLF1/i4YH2yC8r0e6z8E0w6mvE2pOtVxkv5kp196LPoSMvYMtJCxRFUlrjows x4nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b="IVQw/rdT"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y20-20020a1709027c9400b001727963f929si11310989pll.130.2022.08.22.02.00.43; Mon, 22 Aug 2022 02:00:53 -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=@gmx.net header.s=badeba3b8450 header.b="IVQw/rdT"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233674AbiHVINO (ORCPT + 99 others); Mon, 22 Aug 2022 04:13:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231278AbiHVINL (ORCPT ); Mon, 22 Aug 2022 04:13:11 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F9961001; Mon, 22 Aug 2022 01:13:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1661155988; bh=VF47xpSy5FMXLFoHD4vWRnBzqe4OlQT5XGbK7tkpYXU=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=IVQw/rdTWqU73uPZgM+iIdgxTLOl++xT82L4OfB9UYPsnw0lKlNc+xOpoRLuT4Vdp H/5zYEWDEGOr/st/28+/t8Z3KMeE0XrWd650BAx26xzSpE0DLsCH8/OjiebSUdn0yg +XiMw+YtJ+hqyC6ZLsKaSS+KHu5mhoVf0qoDCK38= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [0.0.0.0] ([149.28.201.231]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MhD2Y-1p3Cmv0A5q-00eJ17; Mon, 22 Aug 2022 10:13:08 +0200 Message-ID: Date: Mon, 22 Aug 2022 16:13:03 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: LTS kernel Linux 4.14.290 unable to boot with edk2-ovmf (x86_64 UEFI runtime) Content-Language: en-US To: Greg KH Cc: stable , "linux-btrfs@vger.kernel.org" , Linux Kernel Mailing List , linux-x86_64@vger.kernel.org References: <2d6012e8-805d-4225-80ed-d317c28f1899@gmx.com> <1ed5a33a-b667-0e8e-e010-b4365f3713d6@gmx.com> <8aff5c17-d414-2412-7269-c9d15f574037@gmx.com> From: Qu Wenruo In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:sa08DhrSOFunKMqMAgmYyystR5b0QdhInYEnY/iilAcBcCRmr2O jULTD4n6NLrmyiBAHcczjIeXmmZyQQEEYMpjNLtb3WX3FsNCh21G++VRWgbYEL3tStNSTM9 UxmyS3XTy2TxMjvjkp3MHhjyypzKX0n1od5cEx/mhrCoFioEHH+IQ/8Hyd482bazh50ZkOs WKW1E0ma9g1teivfwu3BA== X-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ckm5PMv9F2qQsDYNVAbXo5TDbQic765Y/WMrJLSDhQhvy bv0msPgdcpZBeSXppWWLlpmeihOZCuBWF8chaYL6sc2ziJY7PU2W7hk2dtqy7Sr31rl9kkGoq S81hIZJWwvrWthoeX7x4MUv6bX2ZJDLWPvcvAjPTUtVuh0N6QaZt1EU7oqTe0pxsKZiuncabl peaxYYx6i9YSg6Uye69xXyUcNqXeqzFAEbCF7oBBwqodk9v6Gyg2NLxC++6BDuVlmgf0oemkJ lPiGP+eT2yoJZn4l1+gRG1C622VUpAS7g1oLsCd7Yywen8JCb0chf6/P2iU2qeekmINa8atdl 7Rj7xICUyqs3mJBFfxCBN9g1RDXFuA== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 2022/8/22 15:58, Greg KH wrote: > On Mon, Aug 22, 2022 at 03:49:51PM +0800, Qu Wenruo wrote: >> >> >> On 2022/8/22 15:33, Greg KH wrote: >>> On Mon, Aug 22, 2022 at 03:24:53PM +0800, Qu Wenruo wrote: >>>> >>>> >>>> On 2022/8/22 14:25, Greg KH wrote: >>>>> On Mon, Aug 22, 2022 at 09:15:59AM +0800, Qu Wenruo wrote: >>>>>> Hi, >>>>>> >>>>>> When backporting some btrfs specific patches to all LTS kernels, I = found >>>>>> v4.14.290 kernel unable to boot as a KVM guest with edk2-ovmf >>>>>> (edk2-ovmf: 202205, qemu 7.0.0, libvirt 1:8.6.0). >>>>>> >>>>>> While all other LTS/stable branches (4.19.x, 5.4.x, 5.10.x, 5.15.x, >>>>>> 5.18.x, 5.19.x) can boot without a hipccup. >>>>>> >>>>>> I tried the following configs, but none of them can even provide an >>>>>> early output: >>>>>> >>>>>> - CONFIG_X86_VERBOSE_BOOTUP >>>>>> - CONFIG_EARLY_PRINTK >>>>>> - CONFIG_EARLY_PRINTK_EFI >>>>>> >>>>>> Is this a known bug or something new? >>>>> >>>>> Has this ever worked properly on this very old kernel tree? If so, = can >>>>> you use 'git bisect' to find the offending commit? >>>> >>>> Unfortunately the initial v4.14 from upstream can not even be compile= d. >>> >>> Really? Try using an older version of gcc and you should be fine. It >>> did build properly back in 2017 when it was released :) >> >> Yeah, I'm pretty sure my toolchain is too new for v4.14.0. But my distr= o >> only provides the latest and mostly upstream packages. >> >> It may be a even worse disaster to find a way to rollback to older >> toolchains using my distro... >> >> Also my hardware may not be well suited for older kernels either. >> (Zen 3 CPU used here) >> >> In fact, I even find it hard just to locate a v4.14.x tag that can comp= ile. >> After some bisection between v4.14.x tags, only v4.14.268 and newer tag= s >> can even be compiled using latest toolchain. >> (But still tons of warning, and tons of objdump warnings against >> insn_get_length()). >> >> I'm not sure what's the normal practice for backports to such old branc= h. >> >> Do you stable guys keep dedicated VMs loaded with older distro just for >> these old branches? > > I don't, that's why those kernels can be built with newer versions of > gcc. > > Your distro should have a version of gcc-10 or gcc-9 that can be > installed, right? This may sounds like a meme, but I'm really using Archlinux for my VM and host, and it doesn't provide older GCC at all. > Or maybe use the gcc versions on kernel.org that only > work for kernel builds? > >> If so, any recommendation on those kinda retro distro? > > Try installing an old version of Debian, or better yet, use a distro > that provides old versions of gcc :) I guess that's the only way to go. Thanks for all the advice, Qu > > good luck! > > greg k-h