From nobody Mon Feb 2 22:02:37 2026 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 4f4gb20l5Cz6QbdS for ; Mon, 02 Feb 2026 22:02: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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f4gb207mCz4GkF for ; Mon, 02 Feb 2026 22:02:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770069758; 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=GI6wqEXQCCJgJCKj7v2+h5xVO7eubililQuC40syJgY=; b=Yk7TmgxEUPIKNK6LFrVzeUqtWBfJ/sHD7H2XGuqvUM2rHHsl8bfnvPVkpDOiaSS382wZbc 2AUVqSGuBdqjGiIBWccsqPCYwqpjlKmbw1oerEI8tqqAQUhBtgJndN87Dq7nW2hvf3crYa oIsfZLrrVA9UkiZB3jh6x2blPg/zEq3mLve0lv3xjnOQcGhFPZNW2dvM/LVzAztlf+MJwH Wfbg0qewwl7fdFw0hZpZlQoeWnz03EteBZuKcssimj1mKsJL/JWWbNYHWoRBA7Y1MxsuWl LO7IfMaqbLbV9sktSdkXmRtPGoqdyQ5YNovLcGhMhzY1RrTqZcH9wk3cAffIJQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770069758; a=rsa-sha256; cv=none; b=CIwxGd5kzbNQNrOs2Ndn7yQaxnOC3MP9nxHH0PqyKFxe0L93wzBR2WWUIISe25dtZX8afz lnwu2p4NTa1A2CcYdcbfH5D8QGEgnI5aKbUChnxqOucSZ8uFsqM0vjhzs73zD0tDa0ns11 KGiQNDq/d7So02FNBgfpRS+J2JhcXqXV8n8zW0mZdlR3QjTogSyTXvDWLFigTspQLIr80M I9OI1vfWXBLGXNgHXuwqv9dAaUfpu4HHRrIIjH6T3OEQIssISNrtKh+Z8453qAqFsjC94a bUwTe8tUbHW5xqskFlIZQc2GTnXA0uUwKd8Ayzbn3aItFlX++bZvri0lMXk4BQ== 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=1770069758; 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=GI6wqEXQCCJgJCKj7v2+h5xVO7eubililQuC40syJgY=; b=d0C3Iq3KZKbdqKc2VjQ4ewWbkH5kLotlXogGrn37T+j4IpnLV8PB+MvJPKPH0/u/RJXfS7 l4Sh46dyICid+uEMsWV9xLtq/OZ5oAdcMGD8weX0Gf/Ql7FFvKxtTfyQt1BN+ZBOWyxb/f rRW5RKxXCr2zhROu9Kw/VgYAtFfM1LYXO13/+HEO+K2wqbKYUjk2f6VrTIeZxOkIIMkYr5 tloOMAfefmKssx314MnxzPri/7rg5ug4mDdRIcMTFf9MjX/WpEHBB90zMFXZrrctwJUYNb +dQxe7w3xRMSjOnV0ha29KDoOlouH3acqH0CJTQ8Rre2tzKA5I0B9s5sFOXAwA== 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 4f4gb16qrDzlY8 for ; Mon, 02 Feb 2026 22:02:37 +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 612M2bUK096539 for ; Mon, 2 Feb 2026 22:02:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 612M2bOp096538 for bugs@FreeBSD.org; Mon, 2 Feb 2026 22:02:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 270816] kernel panic in sym_hipd.c Date: Mon, 02 Feb 2026 22:02:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.5-STABLE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D270816 --- Comment #10 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Db941d1c64e58708c93621cc07ed1c8e5e= 709cd48 commit b941d1c64e58708c93621cc07ed1c8e5e709cd48 Author: Marius Strobl AuthorDate: 2026-02-02 21:30:42 +0000 Commit: Marius Strobl CommitDate: 2026-02-02 21:57:56 +0000 sym(4): Map HCB memory as uncacheable also on x86 As part of making the chip-specific mix and match of different accesses (DMA/bus space) work as desired, the intent is to map the HCB memory as uncacheable. Prior to VM_MEMATTR_*, the !x86 way of indicating this to bus_dmamem_alloc(9) was BUS_DMA_COHERENT. Then later on in 2db99100a4, BUS_DMA_NOCACHE was hooked up to VM_MEMATTR_UNCACHEABLE for x86. As it turns out, still as of today bus_dmamem_alloc(9) differs in this regard across architectures. On arm, it still supports BUS_DMA_COHERENT only for requesting uncacheable DMA and x86 still uses BUS_DMA_NOCACHE only. On arm64 and riscv, BUS_DMA_COHERENT seems to effectively be an alias for BUS_DMA_NOCACHE. Thus, allocate the HCB memory with BUS_DMA_COHERENT | BUS_DMA_NOCACHE, so we get uncacheable memory on all architectures including x86 and so loads and stores from/to HCB won't get reordered. However, even on x86 we still need to use at least compiler barriers to achieve the desired program order. This change should also fix panics due to out-of-sync data seen with FreeBSD VMs on top of OpenStack and HBAs of type lsiLogic as a result of loads and stores getting reordered. [1] While at it: - Nuke the unused SYM_DRIVER_NAME macro. - Remove unused/redundant HCB members and correct a comment typo. PR: 270816 [1] MFC after: 3 days sys/dev/sym/sym_hipd.c | 46 +++++++++++++++++++--------------------------- 1 file changed, 19 insertions(+), 27 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=