From nobody Sat Sep 7 12:45:29 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X1CVy5ksKz5VDHd for ; Sat, 07 Sep 2024 12:45:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X1CVy4kh5z4sxK for ; Sat, 7 Sep 2024 12:45:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725713130; a=rsa-sha256; cv=none; b=xgI7kylaXmleIU1UpCbih+HXtPJDInov08hyfVyWOmQnPjs+aFW1Pl9qX7beKWnbqHqZiW 74KWwABIErAG7c3F6hg2gPDsAAggkbujMqC46ehv7+aoRlDBTpOx/rNuYWba3iqJMyexEm F1g4bLLgnz/IYRWbltc+pOCAMcvebEaBEUwASAt20wJJMwmt8+p3fbenO74keiZ9iVoGdm mpGPudU8wjqeW158bY+tfChwdO21eFPE7eDnDb1CM0Hgd+te8hzreSiU36Fpnh4Nytq1xJ OZVMNStEJudaWJysSVJIgPKUc1D1iC3WzQg3gGmYxIhCboYfjnzXZ3ZtY31iVg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725713130; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rzAbk9qJchGK9HPpa4IXy+tDJP86BoDwsCpAcXpFGNI=; b=S05nWSVxgCU4dt18qrIldH3pJORh4ftOx3jaEn7a+O7BVlTGPwzLpPiVhRbjhVgh10+tJC fJqcWSfyM4ejZh/L+MFl79UW7X7sDyNteiSR889csqaniGr1B0N1A2Tc3BxdAyKL7mHpqj Qkp3UGjUD0W6rOAcJKLDYgFhd2ixFR/9uhBaLi/Ub6aNlkdgZRRd5RzGlLRs3wNcI+d9LS bMkKYYbiZuP7DjIFrMvQpT1iH20ZJ/5CyN1po/o+UzzLqsyN+TwxAUc8DsvMu+XnPf35Y5 RBvXpqxoSnkQK1zWKFpiDx5IHn26n8atMeOMc6bP54hBbVPqQKVYaFIPJIPOkQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X1CVy415yzcG7 for ; Sat, 7 Sep 2024 12:45:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 487CjUEY065775 for ; Sat, 7 Sep 2024 12:45:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 487CjUZW065773 for bugs@FreeBSD.org; Sat, 7 Sep 2024 12:45:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 255072] boot (legacy): no progress beyond 'BIOS DRIVE D: is disk1' Date: Sat, 07 Sep 2024 12:45:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: spell@itl.ua X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255072 --- Comment #50 from spell@itl.ua --- (In reply to Toomas Soome from comment #45) > Unfortunately, with those legacy cases, we really can not fix it just by= =20 > reading and changing the code -- we need to understand under which condit= ions > the problem is appearing and then figure how to fix it. Meaning, debug=20 > printouts need to be inserted and it is long cycle of tests.... and=20 > unfortunately, those tests need to be performed on that specific hardware. BTW, I had done this investigation already, with all those printouts, long cycle of tests and finally locating the exact point and conditions when boot fails. The issue is obviously in BIOS code and has stochastic behavior as it occurs due to (seems) some race condition. My comprehensive tests had shown that in no way the FreeBSD loader code cau= ses the failure (I've tested 11.2-RELEASE and 12.3-RELEASE). The failure occurs exclusively inside of bd_edd_io() or bd_int13probe(), th= ough far not every call of these functions. This conclusion is based on result of debug printf()'s: right before these calls and right after of them. Sometim= es (randomly) these functions do not return (no exit debug message), approxima= tely once per several tens of calls (proved by print()'s with incrementing number after each such call, and this number is always random one), without any regularity, so it is like some race condition. bd_edd_io() and bd_int13probe() call BIOS INT 13H, so it appears to be the cause of the failure. The reason why 11.2 loader seems to not having this issue (it boots normall= y) is just the fact it calls INT 13H just several times (about 6 or so) and al= most always the race condition does not occur and boot goes normally (proved by incrementing count of bd_int13probe() calls - boot fails). Contrarily, 12.3 loader, due to zfs probing, has over hundred of INT 13H ca= lls so earlier or sooner INT 13H runs into the race condition and boot fails. Just to remember, the failure occurs when three conditions are met: 1) Legacy boot 2) AHCI mode 3) USB flash drive inserted In these conditions, boot fails regardless of the device from which boot is preformed, whether it is USB Drive or HDD. So conclusion is: BIOS 13H handl= er incorrectly handles HDD+FlashDrive combination in AHCI mode. --=20 You are receiving this mail because: You are the assignee for the bug.=