Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BE64CC00528 for ; Sun, 30 Jul 2023 17:17:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9013686A74; Sun, 30 Jul 2023 19:16:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Tttfasi9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 114E386A6E; Sun, 30 Jul 2023 19:16:30 +0200 (CEST) Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D32DB86A4D for ; Sun, 30 Jul 2023 19:16:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd35.google.com with SMTP id ca18e2360f4ac-790a8c74383so6278339f.3 for ; Sun, 30 Jul 2023 10:16:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690737383; x=1691342183; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uHacyTlaZf2r4RA2K/m9UqpxOJlGVw/k+5lWvTkg4wY=; b=Tttfasi9GSpWYA/l/xRfRd19jXNLNRiKcvMLSVGMjIGoBdehGm6dysuNZTdgBmsyX2 QQkdD4HKP6YUn5euaHMgeyiLdTJrtDmY7Mc0tAT+AbZsOeh+sRnWV5BPReP5Gdai8lfP Kun/hW79LMR2w+qZZDpet/KVn65MbcNkpRGOo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690737383; x=1691342183; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uHacyTlaZf2r4RA2K/m9UqpxOJlGVw/k+5lWvTkg4wY=; b=js5/qHNYgZTyu37UUZigKGGu7b3geuBQLA1mr1EOH1K1/nRxCQLvFhPUCDiP2IqS0G Cwa3N3SsUxbyado2brgH8kBanVsh6v3UHIebsBRhGmQevbFe7IGMQR1qR6pt2yE+Zlle SWAm0416Lyx7HVliCNA8peQsWnBQkz9776f3wIn1Y0u7iQ0AyuxaIwiJLft6QC5eCVNa rJN3wYZbowIDfw2UOT7PzK7b4T31+gJ3AndiTZC9Ua9pVOgYODLOvBhcaJhPom5lEMUf XhMwjgbqeWHZHxaw3DRCnSPr8tg4/2TvVr9ZPhvsKjAUtt8BilkkXBD2Tv6rHaBMZQEN eV3Q== X-Gm-Message-State: ABy/qLaw96sOYy5hC7DZTtJHESOOXLyyIvRIWb9rCs3wFnHYPhDwJqZ9 peCvntqbcXMNVFtGRDk9a9hCbb3bozUZ+BxY8H8= X-Google-Smtp-Source: APBJJlGxmlFecdFkTu8MN4SeXZbPr/dSFbndMu5RKeXh0Y0CCHDnK8wR07uUjLwhtB39/AdeHgOY0Q== X-Received: by 2002:a05:6e02:1345:b0:348:c294:2b9b with SMTP id k5-20020a056e02134500b00348c2942b9bmr5292821ilr.12.1690737383319; Sun, 30 Jul 2023 10:16:23 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id l1-20020a02cd81000000b0042b57bbbaf2sm2519732jap.26.2023.07.30.10.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jul 2023 10:16:23 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Bin Meng , Abdellatif El Khlifi , Anatolij Gustschin , Balamanikandan Gunasundar , Dario Binacchi , Devarsh Thakkar , Mayuresh Chitale , Michal Suchanek , Nikhil M Jain , Ovidiu Panait , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Patrice Chotard , Patrick Delaunay , Paul Barker , Rasmus Villemoes , Soeren Moch , Stefan Roese , Sughosh Ganu , Svyatoslav Ryhel , Troy Kisky Subject: [PATCH v2 0/9] x86: Fixes for distro booting Date: Sun, 30 Jul 2023 11:15:58 -0600 Message-ID: <20230730171619.915576-1-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This series collects together various fixes found whn testing out booting of distros using QEMU on x86. Together they improve functionality, but it is not perfect yet. Some notes are included as to the current state. Changes in v2: Use SPL_ instead of SPL_TPL_ - Drop unnecessary IS_ENABLED(CONFIG_X86) - Add a note that this reproduces reliably - Add a Kconfig as the suggested conditional did not work - Use sizeof(struct vesa_mode_info) instead Simon Glass (9): x86: spl: Drop unwanted debug() video: Tidy up Makefile rule for video x86: Run QEMU machine setup in SPL Revert "x86: Switch QEMU over to use the bochs driver" board_f: Fix corruption of relocaddr x86: Correct copying of BIOS mode information video: Add a Kconfig option for SPL video handoff x86: Enable useful options for qemu-86 x86: Update qemu documentation arch/x86/cpu/qemu/Kconfig | 2 +- arch/x86/cpu/qemu/qemu.c | 2 +- arch/x86/include/asm/qemu.h | 14 +++++ arch/x86/lib/bios.c | 2 +- arch/x86/lib/spl.c | 4 +- common/board_f.c | 6 +-- configs/qemu-x86_64_defconfig | 4 ++ configs/qemu-x86_defconfig | 12 +++++ doc/board/emulation/qemu-x86.rst | 88 ++++++++++++++++++++++++++++++-- drivers/Makefile | 4 +- drivers/video/Kconfig | 18 +++++++ drivers/video/video-uclass.c | 2 +- 12 files changed, 144 insertions(+), 14 deletions(-) create mode 100644 arch/x86/include/asm/qemu.h -- 2.41.0.487.g6d72f3e995-goog