From nobody Tue May 14 20:37:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=koconnor.net Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1708458134679640.6197828352243; Tue, 20 Feb 2024 11:42:14 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 9840D213EE; Tue, 20 Feb 2024 19:42:09 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 7A3592132E for ; Tue, 20 Feb 2024 19:41:52 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) for ; Tue, 20 Feb 2024 11:41:52 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.gmail.com with ESMTPSA id pf1-20020a056214498100b0068f5a02ed6dsm3502047qvb.145.2024.02.20.11.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 11:41:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=koconnor.net; s=google; t=1708458111; x=1709062911; darn=seabios.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=cJIc/xjFzf7yt33qlYrDdazSnakrBFY22LPOD6F+9CU=; b=UT/TcvsEv57ZtO0ZXU8H83DRkHVVMNVcWY8R4+Mtg3PJCOm5nDPg2XdrXSp3HECMmS PVGBCyPsl537eBPqqsBU2Bh7INQ865MNXmC+NMNMTMNp01S4FK/S+fRAiPmcN2MnILUG gzaBCsvzzOgr3v3kD9Flvn3jXGXpSqUivMw4Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708458111; x=1709062911; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=cJIc/xjFzf7yt33qlYrDdazSnakrBFY22LPOD6F+9CU=; b=A2wCxyjL+NzNpTV3w5jwNdUy8f1xn2hHZ7o+nVjGrHpd5WvhPvkU+Y/4qXZofWJA3U mB1ZDhsJtnC4r2icOGHotRrWJGA29WWL2SsjIH2X9g8wqAaLOyHaL8ZGa9QSKoUlD90f QG6bauJ3sfoYA+P+F5SCekKSnynbHzwybLIZWgHE2tr+6wSVd5ktiUwYTL7OrDuWO2Qr ZB2wokZ+ElfmN4QON5U+0z3s+SRMPf5sldWP4HwbVk8HT1GnkyqfxzQCzSzb/n0d5DJH F7cAp9jCr3zydeWbZl/NEQN1S6dbw5PpIzM93d1/3x0IImvYqF95xveTEyELXyIduokF FsZQ== X-Gm-Message-State: AOJu0YzUb10FcAtPh68WtZgxC5jz7fddq4XIxcx5yX1c/87va/yAhUgr 9iYPbFEfW55ucnZoqiRc/Sc/PwXANXQ0+sB2p8F6Bj2onF+DkmoR5yFfl3hQKBc= X-Google-Smtp-Source: AGHT+IGKjqOkWAItALR1sYYtXUHqDxJ0gdkiYW9bv5Rvp6Y4bYnfgBQ7853qa4yxfQGWQMyOhBOSdg== X-Received: by 2002:a05:6214:4114:b0:68f:4519:78ec with SMTP id kc20-20020a056214411400b0068f451978ecmr12330977qvb.60.1708458111119; Tue, 20 Feb 2024 11:41:51 -0800 (PST) Date: Tue, 20 Feb 2024 14:41:50 -0500 From: Kevin O'Connor To: Michael Tokarev Message-ID: References: <0234c7fe-1d5a-4396-a6d1-9e46488ef2ee@tls.msk.ru> <8f1e5adc-057b-4005-8f77-e962c76fdbc7@tls.msk.ru> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Message-ID-Hash: 7K2WFFNE7JL6HAACSU3KAPBJQDVX6K5R X-Message-ID-Hash: 7K2WFFNE7JL6HAACSU3KAPBJQDVX6K5R X-MailFrom: kevin@koconnor.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: seabios@seabios.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [SeaBIOS] Re: an issue with win10 boot and different compiler versions List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: / X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1708458136940100001 Content-Type: text/plain; charset="utf-8" On Sat, Feb 10, 2024 at 11:17:54PM +0300, Michael Tokarev wrote: > So.. the difference is vgabios only, not seabios (vgabios-stdvga in this = case). >=20 > And I can't get it to work with debugging vgabios, it always fails even w= ith DEBUG_LEVEL=3D2 > (and level-1 logging isn't useful). >=20 > I was able to capture logs just for the non-working version, so there's n= othing to > compare it against. So I tried a different machine type in qemu, the one= which > works, which uses SMBIOS 3.0 (q35-8.2). Thanks for testing. So, if I understand the issue correctly: 1. If smbios v3 is used then the problem does not occur. 2. If gcc v13 is used to compile vgabios then the problem does not occur. 3. If smbios v2 is used and gcc v12 is used then win10 can not boot. Is that correct? A strange issue. Issues like this tend to be very difficult to track down. As a random guess, one possibility is that it could be related to vgabios stack size usage. You could try always enabling the "extra vga stack" with a change like: --- a/vgasrc/vgabios.c +++ b/vgasrc/vgabios.c @@ -285,8 +285,7 @@ vga_set_mode(int mode, int flags) // Disable extra stack if it appears a modern OS is in use. // This works around bugs in some versions of Windows (Vista // and possibly later) when the stack is in the e-segment. - MASK_BDA_EXT(flags, BF_EXTRA_STACK - , (flags & MF_LEGACY) ? BF_EXTRA_STACK : 0); + MASK_BDA_EXT(flags, BF_EXTRA_STACK, BF_EXTRA_STACK); if (memmodel =3D=3D MM_TEXT) { SET_BDA(video_cols, width); SET_BDA(video_rows, height-1); Separately, if you can provide the failing and succeeding builds, I can try to take a look at it locally. To do this, make sure you're on commit 82faf1d5, run make, run "tar cfz fullbuild.tgz out/", and provide the resulting tgz file. -Kevin _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org