Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3019376pxf; Sun, 28 Mar 2021 08:57:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSvHGBTr07TLnBjGNVa6dOu6bCrMR6hdErA03zRAmS83OCMj+ZJX9R+uHXKoi+6R3TYXDZ X-Received: by 2002:a17:906:23e9:: with SMTP id j9mr23928150ejg.78.1616947020642; Sun, 28 Mar 2021 08:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616947020; cv=none; d=google.com; s=arc-20160816; b=BDmwBnju7RDW2Xfb7n7aSgfew8CZw0jHIRUJEYDFkB6FgTy4iLITlvuz6ZCNPcCYpG 4TZIhKRPVDqFKpNDgOMP7yZY0zbU6Xg8Q0mhl4AYHixfvlwqjckn7NXBt9PVmJfJWgcN lL+tCLSaY7Uf7f6bK4VqeGctjDg1JEqQioOYVASxx2Y9TeCbfAcE9ATLJzQLhW9KvtFd +VbX4RQojW06kekNGlrnapg2+D6wWXmNOcWA3yZfV2uwSkdv1TJCFeOCUGKcRv6ejOWL nwONcwJrvb8OhqT8iO5zMj0No042pdvZgfKnzpP8BR5T/+V2McwkAgXofn5b/8yoSK5z g2CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=VXDTFHRNLXufDMIBb7PFXnjv3/DG0TV3zHiWqFEu9e4=; b=XVKo5XnEg4q8K2S2bByQ8HkdVXy+0YkQ590bmYLjDn4uk6/XS2l0pCUbn+ihS87sRM QlBAX/NbETP8q+0gLqwJ/TJ032X0Vea+jJKbkNGA4r930+/2EN6I1CZtAHBvUIusGli9 x51FzYnVMeK6iXnsBiiPuzDUi2sJ1UHpEu8E801xDj9F11kBcBNjWSm//A9FMFxiFH/8 tKGoMs9HAiSQwVVfGCaPLgGtQ/gNrYNm1ia3GIwp3X3xnKRLmqgwNGjvYT0gmrKy3io1 Wcz6TxIG7uoGqnXlnpyRcGR8aaPKQZhLA5s52otNTL7PM7CR41WSdVFX8bsu4mJL0g9Q fK2A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr18si10380659ejc.538.2021.03.28.08.56.37; Sun, 28 Mar 2021 08:57:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230144AbhC1Pzh (ORCPT + 99 others); Sun, 28 Mar 2021 11:55:37 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:50976 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229593AbhC1Pzd (ORCPT ); Sun, 28 Mar 2021 11:55:33 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 12SFtRXB025014; Sun, 28 Mar 2021 17:55:27 +0200 Date: Sun, 28 Mar 2021 17:55:27 +0200 From: Willy Tarreau To: Mateusz Jonczyk Cc: Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: Testers wanted: Atom netbooks with x86_64 disabled by BIOS Message-ID: <20210328155527.GA24931@1wt.eu> References: <20210327203218.119372-1-mat.jonczyk@o2.pl> <20210327211322.121708-1-mat.jonczyk@o2.pl> <20210327232551.GA20783@1wt.eu> <87lfa8cchf.ffs@nanos.tec.linutronix.de> <059b4775-e130-27c4-26fc-3a0eca07ddae@o2.pl> <20210328133029.GA24429@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210328133029.GA24429@1wt.eu> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 28, 2021 at 03:30:29PM +0200, Willy Tarreau wrote: > On Sun, Mar 28, 2021 at 02:37:55PM +0200, Mateusz Jonczyk wrote: > > W dniu 28.03.2021 o?00:25, Willy Tarreau pisze: > > > FWIW I tested on my ASUS 1025C which runs on an Atom N2600 forced to > > > 32-bit. I had already tried in the past but wanted to give it a try > > > again in case I'd have missed anything. Sadly it didn't work, I'm > > > still getting the "requires an x86-64 CPU" message. > > > > Thank you. It looks like your bootloader uses the 16-bit kernel boot > > protocol. The 16-bit kernel boot code checks for x86_64 presence with a > > similar message ( inside arch/x86/boot/cpu.c ), which I did not patch out. > > If you would like to test again, use the same patched kernel, but change in > > GRUB: "linux16" to "linux" and "initrd16" to "initrd" to use the 32-bit boot > > protocol. Which distribution and bootloader do you use? > > I'm using Lilo on an old Slackware. I can patch the 16-bit code myself, > it's no big deal. > > > Of course, force enabling x86_64 would require passing a kernel command line > > parameter with a prominent warning in documentation, just like with > > "forcepae". > > Sure, but I mean, I suspect that the risk could be higher with very low > priced laptops were crappy chips are to be expected by definition based > on contracts neither you nor me have seen. > > I'll try again after patching the 16-bit code, thanks for the suggestion. So I added this at the end of get_cpuflags(): set_bit(X86_FEATURE_LM, cpu.flags); But now it goes further, the screen turns black and after 2 seconds or so it reboots, it looks like a triple fault late in the init process. No need to go further on this machine! Willy