From nobody Fri Nov 21 18:51:58 2025 X-Original-To: net@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 4dCkpl0Pz6z6Hc7V for ; Fri, 21 Nov 2025 18:51:59 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dCkpk756gz3WLt for ; Fri, 21 Nov 2025 18:51:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763751119; 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=SiZ+vqmV1GQxxzK9EMk6bGPnUJ5bwjphFyttRLCfbuk=; b=OKeVBCQcparMUrwDhrU5ckzaN/+hHu/EdBz5m32LX/tScfWjIlotRWWqSkyR0ipR0OcgdQ RQwfBiEjUGf3Uq9zA4W2qXIW+lM3EHyNnh+yuT05C/WIvGvCXdXpzhFnyK+9g8wzZwlM6g 253tT68i9w0NKPQx7oocy6hFfIViqLd4aUj0HG2qlrJEMDKnf+uZML4TaCg0h07MHLxcIK r6aDhAJ8vgfuxLy3aRSi58J4jvsGvnLd0Wfa3S3aWt50wO0dZ2Psc4fRjWoKNmx4AIOgKk 8Nk4weN/gE5mkdhnibIcrhRKkj56FzgNrLoCLMhnrpwokb9WyV1eXKeQOvYl0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763751119; 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=SiZ+vqmV1GQxxzK9EMk6bGPnUJ5bwjphFyttRLCfbuk=; b=iHCJJwun7u6Z0zufSV7N94zM6ugQPSFzVUFzsVkDzLHTTEo0bVVYayUPCBbAaE4IMo36cS Pb400YCv1TW4OZU54+ZTkzlP/7p4QM6SHY++9oZCv4VmlCUZ0QkfPE3PCfL4DM8DWPIux3 07Bxlq7dgFh8cEQ7mPCxZW8YWs3rOq6yuD+lV+mk4CQ5vt1VSmCDOr3s1qXnyi58tTIL8k 6cz+cz4lmgIIcXNyNnaDXGvnvPtqQMbKyRZe0MMFJ3rDzK4tJI0PHrTyBpDd9ZxenNYvJb EPtoKV2WfTbCaJqeQP9Urh4eth9D0BLe/v2ARW+FcS6QF3um5/U4hrt6O6b+KA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763751119; a=rsa-sha256; cv=none; b=w1aDNKd2IwCzQ24equCgzS7OSV2J86W4KjFVjg+sLVPo5SNiqzkY0x0IrKfH1sFbV8TrFy EwVyLCCj8xuw3o7sbfnaSmg4SqwRuZh0baX5WCol8X86UoFnV4pTeeXc0GHYFhL/4nl3Id 9oB14S10a7GgKjeANFBg9pSNLf9VnKZGyvc1cVrNHgYCbW2eM1YZF/ggk+EaxwiavSuyK4 0l1HnuTLF9YcQbrKMctv5Kgdbe1Nh2vNxL9yHGSCKllT8+fUJEfBk9Dg0D9ARxY0d4iClv S6SOMLFZvpSF3CEudzLpAvJeKtXcZ6il9ltEZ6QbkeR90IvPeAhAwQb0tsh35w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4dCkpk6g0cz88W for ; Fri, 21 Nov 2025 18:51:58 +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 5ALIpwq3078588 for ; Fri, 21 Nov 2025 18:51:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5ALIpwZC078587 for net@FreeBSD.org; Fri, 21 Nov 2025 18:51:58 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: net@FreeBSD.org Subject: [Bug 290793] iovctl on mlx5en won't work Date: Fri, 21 Nov 2025 18:51:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@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: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D290793 --- Comment #4 from Bjoern A. Zeeb --- (In reply to David BOYER from comment #3) What's the call graph into this? I can only find mlx5_core/mlx5_main.c::request_bar -> pci_request_regions() which ends up at the end of a loop in lkpi_pci_request_region(). You made me actually look at Linux code and there you end up in __pci_request_region() which has the same checks at the beginning it seems: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/dri= vers/pci/pci.c#n3935 So the problem is likely elsewhere in the LinuxKPI emulation or in mlx5. Also the error logged: mlx5_core2: lkpi_pci_request_region: failed to alloc bar 0 type 3 rid 16 comes from after that check? So if it would fail and return we would not s= ee this? Is that a secondary problem? If you say "On FreeBSD, the BAR size of VFs can temporarily be 0 and." Would we assume mlx5core to only call pci_request_regions() once they are properly initialized? I am trying to get access to a mlx5 in order to see if I can dig into this = but someone who knows the driver should likely be able to do this a lot easier = than I. --=20 You are receiving this mail because: You are the assignee for the bug.=