rom nobody Fri Nov 21 00:58:56 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 4dCH0c2Cv8z6JCBQ for ; Fri, 21 Nov 2025 00:58:56 +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 4dCH0c1Smtz3HJS for ; Fri, 21 Nov 2025 00:58:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763686736; 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=KnP+FyNRA+hSnkCWiJ3QrBJ5ApoxFIgWggEzWwfC2ns=; b=wi7jq7L+BzZ6ggcz2UCdaJKJ/1b5WCdoUOtHNPE+i5krmm8ttXtxrjqKkex5hfK8mWx2jw Zi8p5MUqgcSb+K05FOT2Ylk3NUzoJ/HrLbuUW7ooX+zftezr4+iThCgcyq0WaVF3t2RkYA 2cT9iWfwG6pAUOPhi8ZEgoZx1a7ibaULdYEgnD71QctiBjOzd5BNEI8ljJZmB3FNRqkmI2 WmUfTErA/Ed1DKWA+VvpJm3xFHaBHjux+gaRwMMzDtao+mBrwTHbhzn+f7C7GPCvOUKTNa m2QVyc8lI/uBDHRcvlNp6BUT0xKELBd1hxQLb5+OIPVHpGpIdOMu4UpZcI/S/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763686736; 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=KnP+FyNRA+hSnkCWiJ3QrBJ5ApoxFIgWggEzWwfC2ns=; b=f5YvYdHH5cAsVC/FmFdhvUrw75EX4KE9wXCflwik7LXohx42l1T6ceX+vP0Jedfo/kIH4g hcdGsujNDad6IGsVEIVCspFhdnmrkerYh33F+QGAJhjjerrWg5WJ1CqLE5lsitZEOIbR0S Khg+8EQLkjvX0Cq90J9NigZqBP9jNdpQbjNjy2PLfVeJeNUwfRiVgMycQWwpbe8mV9n9q5 i5k3FXaFIeMw6r7e/qm3UEyUJqp5n+Mik7Q23qmGiQj7GIYYGs3x0PmwGXyqD9w76TiTWl Wl4m/2YCT1qnWwAtPKOkC5x4eQue+32PzW3MZ2R9zWv2BFpNFmzNR1H6C/X5fA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763686736; a=rsa-sha256; cv=none; b=XZIUWVxviCk7mJ+x2EbWTqcWYgvmIpiXgPdnDGQ4hX94zXa+8QhFs1tt7wreJHDKUbL6xx QxcAo14Da5K2WwLFHTuKs4FlRRPj7klf3TdGPlgIglTlFh0JzhgFEIFgUayy/Pl3GNA9qb KUMugnXVV3uVTGLSGeXWOLFd7eeOFi/PXegqmutBmEvqCdu1Yd9qMJncPas8hRqJg68TFy Goca3PC+ap1icibWLvLXeJQmak+dzM1J3LADPrwD8iBgRfO9AzpwtMYvh6jPvj4UvhWFcy k0hh/94IB+3b/MLlB3bcx6/6HadWGQG3rR1uUWeDCKwC6s67tuFtP+Q95YwP8w== 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 4dCH0c0p5qzr0T for ; Fri, 21 Nov 2025 00:58:56 +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 5AL0wthb018647 for ; Fri, 21 Nov 2025 00:58:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5AL0wtd3018646 for net@FreeBSD.org; Fri, 21 Nov 2025 00:58:55 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 00:58:56 +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: jcduss13@gmail.com 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 #2 from David BOYER --- The bad behavior was introduced by the commit ff31767e530ab. The bar appears as not (yet?) valid=20 I tried to find a function or a boolean such as "is_vf" to modify if condit= ion, but I failed. The only working patch I could come up with is the following: diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c index 8507a59a8df3..04ff817666a3 100644 --- a/sys/compat/linuxkpi/common/src/linux_pci.c +++ b/sys/compat/linuxkpi/common/src/linux_pci.c @@ -1223,12 +1223,6 @@ lkpi_pci_request_region(struct pci_dev *pdev, int ba= r, const char *res_name, if (!lkpi_pci_bar_id_valid(bar)) return (-EINVAL); - /* - * If the bar is not valid, return success without adding the BAR; - * otherwise linuxkpi_pcim_request_all_regions() will error. - */ - if (pci_resource_len(pdev, bar) =3D=3D 0) - return (0); /* Likewise if it is neither IO nor MEM, nothing to do for us. */ type =3D pci_resource_type(pdev, bar); if (type < 0) --=20 You are receiving this mail because: You are the assignee for the bug.=