From nobody Fri Sep 29 04:32:30 2023 X-Original-To: freebsd-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 4Rxcrt30kZz4w51q for ; Fri, 29 Sep 2023 04:32:30 +0000 (UTC) (envelope-from jwd@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rxcrt2WPpz4Q14 for ; Fri, 29 Sep 2023 04:32:30 +0000 (UTC) (envelope-from jwd@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695961950; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=m+AzjGMFO91eT7dB0NUPAzt7GtmwWyy7HlN/7jaioAc=; b=wL4ZU1MHi6YzbUKnR4v9TrkVHvrl603PXkKXbBLvs2Y5zh0INqurVCYcFPZT0jqjvTeENU frHyvtDBX9q8vZvGeBGLS1UavpK/f6efacMvbOwlZ16FB1xDKi/ylLfSw4A90rE2cvTaw+ 6vGLCJURulE7BRqqixj85vhh/j7T2C5GY1dv6Tz0yd2KWj1Q8Zp1ms9LNAO4+UBZ+2JBZJ fz5W+Hw3eTGL0DqLxnJ1nNyr4i0Fy2CZisd7Aod6onhCYPHib5STySeid6FJjHImNpMxbC cl2sLNF2t2HZ9fSEOXWdZ1vCI3C4IOmPJWQLm5X7uiaEPHHhxvgx8hPyYra/0Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695961950; a=rsa-sha256; cv=none; b=TI2+3qXFVB+31b9V/fGiaJTOhxFTu+EOQrTwlg4UpBJSsjVOnf0AKCw9m3w8ZJ4qZI9BOr GnfqkrgiL3TcsRq8bzYEhcB6jnv3qSRsq/rsApRYVEKTAmFPx33T/rybHGKsVCAT7arwVg F3kZFKLZl4rYkG5V5g9zjY0cEMPr+TK/xFVvMTorVLbMGLrV8lkjomKxUL6scSWzQGgdUQ NuRqbfb5r741X15GnjCJ+OB9eRPYNxO53uP0oYDIR4lUg0FqIvV0q3DKeK4ZuHskqaEjZn 0Q05h4V9baGLjnvVSaBs7Gf84nJLGL/uW49YBrRM2BMJJVwETOupP7+VpL5Tog== 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=1695961950; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=m+AzjGMFO91eT7dB0NUPAzt7GtmwWyy7HlN/7jaioAc=; b=oFMr/M0J23QJn5kYTm89BFcTRoekslVBI1SD8MQC3QPcuAAT18s+l8EYmffa3owkMfW/Xw M9+4wcP8IS8j9Pk0aE7zQnqgmkQ0+fZqyUv8CMB+ZjlaX+67XDZ0nJ229K6CcudqHQOmRl GonQEgUDabadN9hq3v1SNpNShdb2JC2QnhCgkRi+819G+ENrbYn/DH9F3fKSZv1ArklLbV v74uXVfI/nBM3fbcRpHiTjI047SJ9xWm2dMsFcDT1WKbxehwMxlAuzT91dbSRe+Ofqm2ME FbgLjCRcPGEWUSa26WKMuc/eg5eoKiK7oL5OOAtFIaxQ5F/gnx9FfIXwPp6C9w== Received: by freefall.freebsd.org (Postfix, from userid 821) id 328A01E011; Fri, 29 Sep 2023 04:32:30 +0000 (UTC) Date: Fri, 29 Sep 2023 04:32:30 +0000 From: John To: "Freebsd-Net@FreeBSD.org" Subject: kernel crash: devctl set driver -f mlx5_core6 ppt Message-ID: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Folks, Working against 13.2-STABLE. I have a chance to get some bhyve VMs running on new hardware with Mellanox 100Gb/s cards. After creating VF entries with iovctl at boottime, a devctl command to detach the mlx5 driver and attach the ppt driver causes the kernel to crash: # devctl set driver -f mlx5_core6 ppt backtrace here: https://people.freebsd.org/~jwd/mlx5.dump.txt If I create the VF in ppt mode I can correctly detach the ppt driver and attach the mlx5 driver. Also of note, if multiple VFs are created and a single VF is targeted for the detach operation, all VFs are operated on. It seems the VFs are not seen as individual entities but a group of children in detach_method(). Thoughts? Thanks, John