From nobody Thu Apr 03 20:00:02 2025 X-Original-To: dev-commits-src-branches@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 4ZTCJL4Bv8z5sPPJ; Thu, 03 Apr 2025 20:00:02 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZTCJL3BQSz3jsN; Thu, 03 Apr 2025 20:00:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743710402; 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; bh=Nj+qNxf1ZnF7oOPUGKOYKGvnkQNvQabKs/wHxLwb3HQ=; b=p2usyuAL1V9oyXNb3wJMRRwUufaxKTwsYC1qKZVmSlmul/G3SvztxxqhLD/EE4Ii6puWwZ Ehc8WSDCzk1aqJ71pHIf4otcnppc4j9Ck0IG6lD6WCr9t/RE9pXeTaVTt86HvldiamUaji GY8cUVqaNp2g+Byw6j/d9/uUJnQfEqltEljgEDqJXPgdeqMSJzKwJN5LXpnV8/3HdLbXsX 70YvMTjTB/JOZ8J4lwXR5fayqpsIWwfUGQFi1pZmnHyXMsM5wyeKGw48cl8nukgPRoxrt0 T5w1+wIJWfOg0OTzMXF6F9FJyZr4YcfVp9l5IfBJgx/u+B05N+w1kJ3Sl2RwwA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1743710402; a=rsa-sha256; cv=none; b=a5I3p+aalKV1QeEYo2z6Tg4TwUHFvTEV8KMmGVjh5JfhESiu7+gN1ovCn8x25naQShyMhT gaPvzc8VI4uSzYve6SFX9DUWT3VXxt2UNMkFDRSUjkkNbF8VlQ0Ik+D2+TI6YLQiHzWsy7 92Wynn4UAQQXZmFuFSYaaBzD3vSggd3Cy3uWYuUNf46Dq1lmwuz6YL99wHHd6xQ9DcZlB5 0JgUPBiCfoT33O+5Ke0xTWu+1BU2iqR2apCgKYR2t8+f+7XclxkyGlLOG483RS/34rA3FI ezKhJ61MVuHs/0O5m1THNy/gW35RaC6Qkw+0C7nPIHsuOKENCnbC9tUaQk4FSQ== 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=1743710402; 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; bh=Nj+qNxf1ZnF7oOPUGKOYKGvnkQNvQabKs/wHxLwb3HQ=; b=hyaVJFB0zwN7BFmUJsSeTq15xb3JvXCzA9Hx+LlDJhBsMPu15D4P4D4QqpU79ySB9bNNHC UYlg3skTyVoygTlspr34tFNoKSgP9H1uTKLpPHdmt95V1h43QWm0D4MKMWr9oDQfUFdlWO 1poiXZ1X85o3vsM9IAZJhpvfysBvw1ldnULSMfrIj++Ln/1xQtK1PJb/A2Sy7sHK0ug9Sf 3UQ9TnpHAH0PkdTmUiMYyjFtMlBuMhUaXcc6m8OC6vGPVHOKSpOzPu0whupoRICxS8rEab MziKLMilcy0zPAdSBrfWBN8k4Ox5hQTmAM2SjiQp/KR09ncDqBSNGSImntqExA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4ZTCJL2cD1z1MT; Thu, 03 Apr 2025 20:00:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 533K02Ma083498; Thu, 3 Apr 2025 20:00:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 533K028N083492; Thu, 3 Apr 2025 20:00:02 GMT (envelope-from git) Date: Thu, 3 Apr 2025 20:00:02 GMT Message-Id: <202504032000.533K028N083492@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Eric Joyner Subject: git: f034ddd2fa38 - stable/14 - igc(4): Fix attach for I226-K and LMVP devices List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: erj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: f034ddd2fa38cb2b0e3d16059cb059626a770e19 Auto-Submitted: auto-generated The branch stable/14 has been updated by erj: URL: https://cgit.FreeBSD.org/src/commit/?id=f034ddd2fa38cb2b0e3d16059cb059626a770e19 commit f034ddd2fa38cb2b0e3d16059cb059626a770e19 Author: Eric Joyner AuthorDate: 2025-02-26 17:19:38 +0000 Commit: Eric Joyner CommitDate: 2025-04-03 19:59:47 +0000 igc(4): Fix attach for I226-K and LMVP devices Summary: The device IDs for these were in the driver's list of PCI ids to attach to, but igc_set_mac_type() had never been setup to set the correct mac type for these devices. Fix this by adding these IDs to the switch block in order for them to be recognized by the driver instead of returning an error. This fixes the igc(4) attach for the I226-K LOM on the ASRock Z790 PG-ITX/TB4 motherboard, allowing it to be recognized and used. Signed-off-by: Eric Joyner Reviewed by: kbowling@ Relnotes: yes Differential Revision: https://reviews.freebsd.org/D49147 (cherry picked from commit 7ee310c80ea7b336972f53cc48b8c3d03029941e) --- sys/dev/igc/igc_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/igc/igc_api.c b/sys/dev/igc/igc_api.c index 9e91e7a4c73f..da499274fca4 100644 --- a/sys/dev/igc/igc_api.c +++ b/sys/dev/igc/igc_api.c @@ -109,6 +109,8 @@ s32 igc_set_mac_type(struct igc_hw *hw) case IGC_DEV_ID_I220_V: case IGC_DEV_ID_I225_K2: case IGC_DEV_ID_I225_LMVP: + case IGC_DEV_ID_I226_K: + case IGC_DEV_ID_I226_LMVP: case IGC_DEV_ID_I225_IT: case IGC_DEV_ID_I226_LM: case IGC_DEV_ID_I226_V: