From nobody Sun Aug 07 20:54:38 2022 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 4M1BR23xzzz4XkMH for ; Sun, 7 Aug 2022 20:54:38 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M1BR220cZz3M8L for ; Sun, 7 Aug 2022 20:54:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4M1BR20pz3zQfL for ; Sun, 7 Aug 2022 20:54:38 +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 277Kscko083794 for ; Sun, 7 Aug 2022 20:54:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 277KsckH083793 for bugs@FreeBSD.org; Sun, 7 Aug 2022 20:54:38 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 265700] DMA initialization failed causes instantaneous kernel panic when source llvm > 14.0.4 Date: Sun, 07 Aug 2022 20:54:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bugreporter@firemail.cc X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659905678; 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; bh=ZCaUhy7jDuWputW9GoRBjIui61eBUWo/qxP/zq5kH3U=; b=ENqkB2SjBog5ptOpS6dViBcIsy+IaZ2NPN1pAkBq1vlAzzo5JXgs9PuOQ7TZxoK1VqcGH3 lF8sdHixKzR60bjEZVSwpa+Az172Pw6n0v0HDM+kjRfaJPwj7/8hV0VUcePgyMeXYY+iko bhORtMYREJajmSX2aAR4H5iX/l++MVfzz1WVxa9gyqbN0zdaRapWo3Fwqdy7KGCB3O1z0I Sg0gLMaRt38JLIxy0xqxOT83ltL2Gs6bICohqx0kw/iDKVghuszCSjNJPHsqaCpvcNLeFF HxJaZ+Vq+fmCvSyst2i1TTL9H010C4FoDoJWL0m0/IYMweOkyMUuPkvnfFhYYQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659905678; a=rsa-sha256; cv=none; b=nyWJlCUVyH9LDovpmOfkN4nR4vSP9krqBKqVW/K6yFML0Z9o6Xrq7T4UFZoMASnWcoCIns 7hxdPQciNUPqFo2zDoz/Vzq4O8UB1xP9iEAzEUS/xvjvpCyE1EiUvrynp9oPVXvAYVkaku H05GsOHFpxX6KsXkOfqr7J1zPJ5qc2CNJCyJqxJyqGfR5fuktDJh+8ly7wimtNLXbNTp+K bNVfgnLEU0nrjDlJNTSjqtLR2IHBwLeqfzxvYfQW2YTFw3r0PDT+wco4BzPmv160n68ny+ jK0/I6HCXSJIc9mKry/bnRnGNiiMJhwY9XKSO1OdmA/LQ3J+/NpCkQJY2enytA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265700 Bug ID: 265700 Summary: DMA initialization failed causes instantaneous kernel panic when source llvm > 14.0.4 Product: Base System Version: 13.1-STABLE Hardware: powerpc OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: bugreporter@firemail.cc Hardware: Raptor Computing Talos II, 128GB RAM, etc. This is a big-endian targetted: so, not powerpc64le. With install media built from sources on the stable/13 branch between the import of llvm-14.0.5 (so, 862668c4874d8ffb8d74108a55719670c8b923b6) and ti= p, which for me is currently f95569fafcba5ed3cd119f8d177622fe0e64bbf6, on kern= el boot I get an insta-panic when the kernel attempts to initialize DMA for an AHCI channel. Rebuilding (cross-rebuilding I guess) back to commitid 3fbe3365df59f9b973c7b5bc8e82e13199ab5057 allows the DMA initialize to compl= ete. I am booting the install media from a USB stick; there are a larger number = of storage devices in this system. The console reports, during this crash: ahci0: AHCI v1.00 with 4 6Gbps ports, Port Multiplier supported with FBS ahcich0: at channel 0 on ahci0 ahcich0: WARNING - DMA initialization failed, error 12 fatal kernel trap: exception =3D 0x300 (data storage interrupt) virtual address =3D 0x4f dsisr =3D 0x40000000 srr0 =3D 0xc000000003030d50 (0xd40d50) srr1 =3D 0x9000000000001032 current msr =3D 0x9000000000001032 lr =3D 0xc000000003030d48 (0xd40d48) frame =3D 0xc00800000000bf20 curthread =3D 0xc000000003a6f480 pid =3D 0, comm =3D swapper panic: data storage interrupt trap cpuid =3D 0 time =3D 1 KDB: stack backtrace: #0 0xc000000002bdc4f0 at kdb_backtrace+0x90 #1 0xc000000002b6c148 at vpanic+0x1b8 #2 0xc000000002b6bf7c at panic+0x44 #3 0xc000000003044dc0 at trap+0x304 #4 0xc0000000030390f4 at powerpc_interrupt+0x1b4 Uptime: 1s (and then instantly reboots) If I build from mainline again which I think has LLVM 15.* imported, it's b= ack to working again at least in terms of booting. If there are any debugging mechanisms you'd like me to pursue, I have a bit= of time on my hands and I'm motivated to get powerpc64 (not le) running on my talos. --=20 You are receiving this mail because: You are the assignee for the bug.=