Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2204473lqp; Sun, 24 Mar 2024 07:49:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUUQbhFD5OZTrk1nf0HsE2vTkURYnaT5UNh+aAG+lwoDiqWDRXRUGQllvK+jmqkxixjZSONFlyP9o7kK1pvQbSYzjvGdDXzQZscUdzmg== X-Google-Smtp-Source: AGHT+IFXRKWxSR/eNJn1vu8pX56Q2Fji7q5IL6cRBUzO9brRQsQgvth8AmPTuIG91k17qdwwTX58 X-Received: by 2002:ad4:5ec9:0:b0:691:c4c:c2d0 with SMTP id jm9-20020ad45ec9000000b006910c4cc2d0mr5668118qvb.1.1711291780550; Sun, 24 Mar 2024 07:49:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711291780; cv=pass; d=google.com; s=arc-20160816; b=vKkvVFKu2Bj/0MOLmZxY0pSZoy8pxon/sK6CVWFP7+XZgT36vdpdmfOnOYnyQkXiEu Ye5SjmPMjLqJrJmo5iDjSkkg6BwsgstyXYsujA8NaIVtlAJLeCff8Dl1cjNZdZhsRGNT dWjaZBIua9/tRP9ZJ7O6znsBFeouAWh2s22bjQYdJPhofS8SMIzJGvOsQouTf0FqUkPQ oJFwtfvF9TCsB29HuuBCPoYEEEJwHp+eZ0cztNIPVwoF6gFMHWMEYZ5HEFUU3mOA1/JC aW8iRgn0Kwwo7I9Uh9BXkw9bbFdxZtiZa4LwCqZWxUhFF46mxTIPGZ38PHr9mVvZfVDp 30yg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=bQeOWgDE8ZK/2VH8iK9oZfcBxftmpHefx2GklYdNKXY=; fh=Qs3k7RAb8EGDBIcsnCO98mvxXNmFn+TvOGQO7uk71P0=; b=iXmEiDqC80EdRJ1/TvovZJPH4Kcd+4GyuU7ldKdr3ojdSnocFMj+/sh2OOS1IR1E2A qUtpxeD0Zv0uorhXOhpzpNJG6ciBMMtXehQgsIojrMJgIJ2J10naZBdXfQTUp1WWQxl7 UC4QzJVSKKvcZElY1oka52L52FpkBCKJi/WvuBmxeXU+GtbrAX27rynOBs2DSE4byeV8 p6n0Wb7rxLn27OdBeL0uDxoeL8XBeBUymUgNYjEuUV4h9nS3co7gIESwhQ/9JEylQ8D1 5GNN7mzMEbbQV/n4PGI6+rPjVA1DGi6vEBSDRRlGxh64I/tY0UfcT/ngD7lVP88e+i94 HFEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JPDshrsW; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-112712-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112712-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z13-20020a056214040d00b00690493ddf90si5933275qvx.429.2024.03.24.07.49.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 07:49:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112712-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JPDshrsW; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-112712-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112712-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2F52A1C20979 for ; Sun, 24 Mar 2024 14:49:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3101818635; Sun, 24 Mar 2024 14:49:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JPDshrsW" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBE9418030 for ; Sun, 24 Mar 2024 14:49:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711291771; cv=none; b=oOdIGZMU+2cMQrTGcZu/ElSx5epbi2InNUKiC28R45ataZZ+O0FSlUQtZgAy6162HyIudxcoS15wc8DdxabGdhkhvYYYdg0EoAYhhHNhAHi5wLj2e6QIzFkMTUKhnVdbVHishNDC7loYOBW8lfWpIxcZcRWaKAN8CDqpi5XSGtk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711291771; c=relaxed/simple; bh=b0T2E6rfT+SfjZ3KicwpabA3ip4trl8wAgPlr1ugUpw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=e12OuO+B9K8aW69O8SPBsOnzjaOfQoUkTueduaQIx/8v0anjSSvk9meNCiAord5aCXUYKd6QaLZsqOpWcXtQOu136SbWeAdX2d/4RXm5LYC10UIuJhzttWYEQjjqe1p/0qvKAqMuEAJVOKi7gKVX4tvo1n8aO+jPw69KhIPXu6Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=JPDshrsW; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711291768; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bQeOWgDE8ZK/2VH8iK9oZfcBxftmpHefx2GklYdNKXY=; b=JPDshrsWr/wjE56u+saCfH8lbxgtCxBrs0Eimlm5xsal3Jd8jqqZvfGhpNSkdNMIv0aIRm 4QaVQtKEFsOsRhEQNGR/q6K5NrfYE3tGF6imkM35vZ3zfqtkYbN0wjGIPnqJ1jhEhGzmUw v5IA00mnXEoAUMN9p18q4zdO4VwI/M8= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-656-CIQjuRLyMu-zfTKNiV-zrA-1; Sun, 24 Mar 2024 10:49:26 -0400 X-MC-Unique: CIQjuRLyMu-zfTKNiV-zrA-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-a450265c7b6so186177666b.0 for ; Sun, 24 Mar 2024 07:49:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711291765; x=1711896565; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bQeOWgDE8ZK/2VH8iK9oZfcBxftmpHefx2GklYdNKXY=; b=Ex/L3uMuNMDr6lf7YyBelkbypXUiSWTH9zaOxNVre8QqbrtdECMsB0X/1Lo19Q4RS/ wD3a7NjXcyHzMMkASRG1HjB27svo4aQO5aUJeAW6bvjfWjDV7zlZCT03UlpdQZdvsrRd h8/qNLMjx0sJtUJgo4qpTRCbv66KfvcpMA81HCDNczpdsYTyLfhFYRrv+fiyhihvN81Z kpEYDkUsEkKS7Ca2n9TCjRc9vVvsmTojDQwnnSHaYiM3fBt7mHkgYvCHEUmzEu3QvMVJ SvHcgAyDLZ/b6sUb5sPIKqjmaBSYCSbEpxRL2FOiX9v3rdyFDw53IUBbewCD46G6myQ4 ddpA== X-Forwarded-Encrypted: i=1; AJvYcCVeTtYvNnTEf17/HDvf1a3DvsGmfRsgoC0Fs1cKIDa8pe0ECzQEWqQ0qXFYsOS8clwDpJFseZX/dJa6YG4wU/rjlBT1WV30v/U1VAwf X-Gm-Message-State: AOJu0Yx/zafOlU2JbAgwFng1T7XUE/pDTDcUU9KzFl2tCb/vQxkadZku NpcCyhDCWHRAtAFEUL//vDb8h2QfCt3cMf9l9nRJHkJmNbCZICMRZY4zIum4j8F7KCDBCZgceer xxR2zjWKUlkIt9e8DY353n9rw4lB06pUG4ZWsZEB3Eaxg9Wy0O9becss4cDZFwg== X-Received: by 2002:a17:906:c111:b0:a47:4b76:6258 with SMTP id do17-20020a170906c11100b00a474b766258mr2091368ejc.25.1711291765645; Sun, 24 Mar 2024 07:49:25 -0700 (PDT) X-Received: by 2002:a17:906:c111:b0:a47:4b76:6258 with SMTP id do17-20020a170906c11100b00a474b766258mr2091360ejc.25.1711291765291; Sun, 24 Mar 2024 07:49:25 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id se16-20020a170906ce5000b00a468be342bfsm2036173ejb.136.2024.03.24.07.49.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 24 Mar 2024 07:49:24 -0700 (PDT) Message-ID: Date: Sun, 24 Mar 2024 15:49:23 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: x86_64 32-bit EFI mixed mode boot broken To: Ard Biesheuvel , Clayton Craft Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , regressions@lists.linux.dev References: <20240321150510.GI8211@craftyguy.net> Content-Language: en-US, nl From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, On 3/21/24 11:48 PM, Ard Biesheuvel wrote: > (cc Hans) > > On Thu, 21 Mar 2024 at 23:05, Clayton Craft wrote: >> >> I've been chasing a problem with 32-bit EFI mixed mode booting on two different >> (x86_64) Intel Bay Trail platforms, where the system reboots or hangs seemingly >> very early somewhere before or after loading the kernel. I've not been able to >> get any output from the kernel or stub over efifb when the issue happens[0], and >> do not have serial console access on these systems. >> >> v6.8 fails for me, and presumably so does everything back to v6.2. v6.1 is able >> to boot OK on these platforms with mixed mode, and it looks like there are a lot >> of changes from 6.1..6.2 for EFI/mixed mode booting. > > v6.1 just received some EFI related backports, so please check the > latest v6.1.y as well. > >> I did managed to bisect the >> issue to: >> >> commit e2ab9eab324cdf240de89741e4a1aa79919f0196 >> Author: Ard Biesheuvel >> Date: Tue Nov 22 17:10:02 2022 +0100 >> >> x86/boot/compressed: Move 32-bit entrypoint code into .text section >> >> However I'm not sure how to proceed from here, or if my bisect is all that >> useful since the commit seems to be in the middle of a bunch of changes I do not >> understand. I've been using systemd-boot to test this (both the full bootloader >> and UKI w/ the sd-boot stub). Is 32-bit mixed mode on x86_64 working for others? >> > > I usually test on 32-bit OVMF built with LOAD_X64_ON_IA32_ENABLE, > which allows the use of the compat entry point. This is different from > the EFI handover protocol, and I am not sure which one you are using. > > I have never had any reports, or noticed any issues myself. Last time > I tried (some weeks ago) it was working for me. > CC'ing Hans who may have more data points. I've been offline for most of the week and I see that in the mean time you seem to have found a fix, great. FWIW I have been booting everything up to 6.8.0 on my own mixed-mode Bay Trail tablets without issues, so the problem seems to be specific to certain BIOS-es. Please Cc me on the final fix, then I can test that early and double check that things don't regress on other mixed-mode Bay Trail devices. Regards, Hans