From nobody Thu Dec 12 17:29:00 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 4Y8KFm5wNkz5gXMZ for ; Thu, 12 Dec 2024 17:29:00 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y8KFm3lXWz4sFR for ; Thu, 12 Dec 2024 17:29:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734024540; 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=H4FjXMUOoJiNlBYkqXw0TTQNonWx9BtywQfAUDAypew=; b=dLrwjQbM6kQJekQBRMEZbHx84hK4+Lh+gPrFK7kOEkkYJzc2Xgdw9YEAnZhXUmKaZfHliw AEIhYfAHhXmBDPCjImpTzIJNQSk/cHXPi1Hu7bQzMgxJmgFMWxtdxLB55x0a99NkY8oCwV gryr77LmMM1c/zxPDcewaIbaOql9TJAfcyn08VsmYsCyqZaIlgG+h5Oq2koTTeXq0KVP7h o1tw+Ot24s/M7LQuDkr80BM8UTsfsN+CRt3mV2JD3F+ZXcZMFHR8d2cc+MvMR47+gmT5hI CiX/pZ28uAY36iXoLTdQ2fE12Bq/OmkduLX8fUdMK2Za2rhEx5EcQYXvzvVhfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734024540; a=rsa-sha256; cv=none; b=X/nVJu63VPBhirZQx3TK6U8KRHf3Y0bkHbmU/nrTteoZnLl31CbuO9sZOcxWwp5qV47RY2 w/jTfbkk0PqUxMupXj8wXikpu4VI8qQAZdUcRdiJWF8JBPLJKcYQWejrROnIqYegqG2zqH bEXzHl/ywgX0AL+Hit2qJss8ehz9Xc0DUwVzlJzYWppK6mcELnduHdJ9qSiRqnoHAyHk+i NBSic0ZkkIcEkRrPL08yfKkI32GmgNaocx/avoN7QZLmPgdzEd16cs07D9OI3Ngdp7wtmo cj75KsM+o9USP5o2MNXbLarS9jAQdjtMqoasWP2C8NpD/My9vLXKmjqweHLNWw== 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 4Y8KFm3K84z12G4 for ; Thu, 12 Dec 2024 17:29:00 +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 4BCHT0P4004531 for ; Thu, 12 Dec 2024 17:29:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BCHT0oX004527 for bugs@FreeBSD.org; Thu, 12 Dec 2024 17:29:00 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 283285] Kernel panic at boot on Intel Atom C3758 w/ QAT module Date: Thu, 12 Dec 2024 17:29:00 +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: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: me@benschumacher.com 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283285 Bug ID: 283285 Summary: Kernel panic at boot on Intel Atom C3758 w/ QAT module Product: Base System Version: 14.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: me@benschumacher.com After attempting to upgrade my system to 14.2-RELEASE, I've encountered a c= rash that appears to be related to the qat.ko driver. Strangely, it seems I am a= ble to load the module after boot, but when I have it enabled in my loader.conf, the kernel crashes. I have not been able to successfully produce a dump, despite attempting to manualling assign a dumpdev in the loader. Also, I cannot interact with this from the console, though I don't entirely understand why, since I do have a= USB keyboard attached. This text is copied from a picture I took of my console: Fatal trap 12: page fault while in kernel mode cpuid =3D 2; apic id =3D 08 fault virtual address =3D 0x4 fault code instruction pointer =3D supervisor read data, page. not present =3D 0x20:0xffffffff8087e352 stack pointer =3D 0x28:0xfffffe00e1f679b0 frame pointer =3D 0x28:0xfffffe00e1f67a70 code segment =3D base Bx0, limit Bxfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, = gran 1 processor eflags =3D interrupt enabled, resume, TOPL =3D B current process =3D 0 (firmuare taskq) rdi: fffffe00e1f67cf0 rsi: fffff80001bf8c01 rdx: fffff80001bf8c00 rcx: fffffe00e1f67d70 8: 00000000000003=D0=B53 9: 0000000000000000 rax: 0000000000000000 rbx: fffffe00e1f67cf0 rbp: fffffe00e1f67a70 r10: fffff80001c7de90 r11: 0000000000000003 r12: fffffe00e1f67a94 r13: 0000000000000000 r14: fffffe00e1f67d60 r15: fffff80001956740 trap number =3D 12 panic: page fault cpuid =3D 2 time =3D 3 KDB: stack backtrace: 80 Bxffffffff8080313d at kdb_backtrace+0x5d #1 Bxffffffff807b6be9 at vpanic+0x169 0xffffffff807b6a73 at panic+0x43 #3 Bxffffffff80bcf0=C3=9Fd at trap_fatal+#x3fd 84 0xffffffff88bcf056 at trap_pfault+0x46 15 Bxffffffff80ba9788 at calltrap+Bx8 Bxffffffff80889a14 at namei+0x104 7 Bxffffffff80Baefae at vn_open_cred+0x55e #B Bxffffffff807fef95 at loadimage+0x235 89 0xffffffff808175c1 at taskqueue_run_locked+0x191 810 0xffffffff80818852 at taskqueue_thread_loop+=C4=90xc2 #11 Bxffffffff80771f2f at fork_exit+@x7f #12 Bxffffffff80baa7ee at fork_trampoline+Axe Uptime: 3s Automatic reboot in 15 seconds - press a key on the console to abort I diagnosed this by commenting out all of the _load statements in my /boot/loader.conf, and then enabling them one-by-one. Leaving qat_load and qat_c3xxx_fw_load commented out allowed me to boot. # use Intel QAT #qat_c3xxx_fw_load=3D"YES" # BFS 2024-12-12=20 #qat_load=3D"YES" # BFS 2024-12-12=20 But I am able to load these modules from the command-line after boot: $ kldload qat_c3xxx_fw $ kldload qat $ kldstat -v ... cut for space ... 30 1 0xffffffff83545000 122c20 qat_c3xxx_fw.ko (/boot/kernel/qat_c3xxx_fw.ko) Contains modules: Id Name 404 qat_c3xxx_fw_fw 31 1 0xffffffff830e3000 4390 qat.ko (/boot/kernel/qat.ko) Contains modules: Id Name 414 nexus/qat 32 6 0xffffffff830e8000 15dd0 qat_hw.ko (/boot/kernel/qat_hw.ko) Contains modules: Id Name 413 pci/qat_c4xxx 408 pci/qat_200xx 412 pci/qat_dh895xcc 409 pci/qat_4xxx 411 pci/qat_c3xxx 407 pci/qat_c62x 410 pci/qat_4xxxvf 33 9 0xffffffff830fe000 30010 qat_common.ko (/boot/kernel/qat_common.= ko) Contains modules: Id Name 405 qat_common 34 8 0xffffffff8312f000 68cd8 qat_api.ko (/boot/kernel/qat_api.ko) Contains modules: Id Name 406 qat_api I do have a custom kernel, though this is mostly to remove a bunch of devic= es that I do not use. This system acts as a NAS/VM host within my homelab. It = is a Supermicro A2SDi-8C+-HLN4F with 32 GB of ECC RAM. The QAT functionality isn't strictly required for me, so I've left the modu= le disabled at boot, not that this machine is frequently restarted. I'm happy to try to help further diagnose this if I can. Thanks. --=20 You are receiving this mail because: You are the assignee for the bug.=