From nobody Thu Jan 26 22:46:07 2023 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 4P2wmH6yW3z3cDsn for ; Thu, 26 Jan 2023 22:46:07 +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 4P2wmH4XTtz4KWZ for ; Thu, 26 Jan 2023 22:46:07 +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=1674773167; 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=iCdhbzpWMZ4QNh6FFiIjfOwLuJSs1GgMJwbb71NzkpY=; b=ey6DDRc2XzjuHjhAqqwHSCf+2j42dqGMN37eFeiYYgm0tkIEXLtl+/y2QN8iBE+tbCSZVP nll7sNxDJG4S+iOP7Pz04Wm4rI8/M3c9hPwhNxowURqj4GPyZsoSF2aUABGT4eFW2cwX6M u1PLAxaGVPX0Ws7c3JQV866MYRrsFCmED8Wp9nnabo/zPzZiCSyQ+7fqHvGJl8ulvHBULv wpQqzEKDV8zzW7vTM2Cc6eno3pnX+1XeDrXOWcQfYU/TR+bdTmqxvCEaFiwwxNBaDwUjJ8 xNqevQxUWb7u6LQmuLYDk5EPr17UgoM0DYCeTAPjqsHtUWVf1RI5o4xmX+k3DQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674773167; a=rsa-sha256; cv=none; b=xQi22pOKTCAcUOSxcDa/VTGCNWsSXR8l/odgLfvhAMAh6mNNryM/VcoYBfNSbML3odsbaD 7z1CcYfBP1oTW2QDzLV3SJMy2rUy33/45mcB/iiZ8SFPDhxIdO4fbTRR67Fe5Ud7SzyLra I+MTbVmfhRKj7mGFXnxYD/oUS59IlaoJ0wftM2/qxAicdLkp32aGvY4Mb3GUmBeoRt+ISD P54Z5tXSnFCcNp00ArZf/IB9tUfa11oImA5+YyI4Yt/1vMe13o5HQFkV7C0dSNXa1alC3U PY49HBX/JPrcLtoAumDhuBwqf1mxpF1PkOEO+8sNGVTRH21Epr2/2p0Hwf4LdA== 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 4P2wmH3VHjzmqS for ; Thu, 26 Jan 2023 22:46:07 +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 30QMk73r022661 for ; Thu, 26 Jan 2023 22:46:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30QMk7DS022660 for bugs@FreeBSD.org; Thu, 26 Jan 2023 22:46:07 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 268486] panic: vtd_add_device: device 0 is not in scope for any DMA remapping unit Date: Thu, 26 Jan 2023 22:46:07 +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.1-RELEASE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: erj@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-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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268486 --- Comment #3 from Eric Joyner --- Ok; I'm seeing the same problem on the dual processor Ice Lake-SP system th= at I have, and I think I've found a temporary fix: Go to /usr/src/sys/amd64/vmm/intel/vtd.c and change DRHD_MAX_UNITS from 8 to 10. You can verify that your system probably has more DRHDs than what FreeBSD w= ill look at by doing "acpidump -dt" and checking the DMAR section and counting = the number of DRHD sections you find under there. My system has exactly 10, and since FreeBSD was missing two of the sections, some device scopes were missing. So, when FreeBSD decided to add all of the devices in the system on iommu initialization, there existed devices with no stored scopes, so the code there called panic(). --=20 You are receiving this mail because: You are the assignee for the bug.=