From nobody Sat Mar 01 04:14:36 2025 X-Original-To: dev-commits-src-all@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 4Z4Wth2kxbz5htbk; Sat, 01 Mar 2025 04:14:36 +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 4Z4Wth21bFz3mJG; Sat, 01 Mar 2025 04:14:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740802476; 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=Itm+c4MAo2ES0EUXeoFMgQvxMGReYgpdUnCYAi3oLcE=; b=ZTTIuVYXy1uD9Y5b4DZgZsGfDlPbCDUVRmCVgRSCOs7YUiwdBBzZt2mLo0ToPO1nCojrtU 6HayPrK77EYg3QofPSx1qdtlwJTu49mS0ZX/ruUU4qqQr13+UiHHFghJPt0oSg/GRjR83/ /pnsBFk09mKlIAmKRLqWkqCS8A7pkOqwBQPyVA4xlKnT3z8z0YIJlqE0uO9OfjvqG2ocOT I/etdipzaCX1TE4nzLnBu5hqmG5iRGf/oyyZUEmRq0HwhqaTsEnyVLskgr3mqgFsNtVFto f/LSLVOTzu16arvaOhz5PFb4TmgIyRcNYG+6pgke4z6DuuPZUiuPJfmInK9y2A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1740802476; a=rsa-sha256; cv=none; b=lxiuM0y/TaVr4psJUuCfo3aEBVmZls5HeIVMYO+HzawO5TUkXsPPimDri5leilDbSdN9vt j4+aTM5vSE6NZOsRG2Smp31rl3MVV0VCU68nYhw7kj92U/3AeqOR43GeVcL3mZOBpUKcUp EhnoA2zoFuHjgEQ87owjlTlGf8450qHVvI3a7IDb3rnR4pdB5v4Nb3EMshMjPt/EJdzm08 GPgy8UlwqpVHl78xomMTGDgwdKTRiZEJ6/cS3T5QJ345MZzuE0TlLuamfNABUiMtgnKEVz g8kTpaaiOV/c5tlC89GiIBFfB0fa3P9bGyUk+fapcjubdOWRlKWccTL01K9JRQ== 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=1740802476; 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=Itm+c4MAo2ES0EUXeoFMgQvxMGReYgpdUnCYAi3oLcE=; b=BgRbVT7RB1vGz1fXXLoFZt6/hpFIXRR2vFRYnqo92DKJ7iWeUZ4k5/uJZ6CpHNKZLC7JZl R8cidGd+qb4LR7d9TfFPIUI1u1XpvD4SYUz4gip/SwGMoDCwJp6gQZxYEIV79hn+L7xODZ doRGaNABToe4PK8HiJ1G04AYRXRMmsIw9A2f3wQ8FXrUjayI071VjMtzxCVs4462PcjgwY +fZA99WRB8o6ZUSY+cl6K3IGtsihGN/De4V/8xC2o1NXI5umbcHfescq6h/MEL3/c/wfQk 7rEkMxCjTmc6PJSz9k+C7BWZ7gsRUFah3cn76pYuz1oN3+jrHkLQKDBnW3U3tQ== 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 4Z4Wth1Vyfz10Kx; Sat, 01 Mar 2025 04:14:36 +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 5214EaH7083299; Sat, 1 Mar 2025 04:14:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5214EaxT083297; Sat, 1 Mar 2025 04:14:36 GMT (envelope-from git) Date: Sat, 1 Mar 2025 04:14:36 GMT Message-Id: <202503010414.5214EaxT083297@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Eric Joyner Subject: git: 7ee310c80ea7 - main - igc(4): Fix attach for I226-K and LMVP devices List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 7ee310c80ea7b336972f53cc48b8c3d03029941e Auto-Submitted: auto-generated The branch main has been updated by erj: URL: https://cgit.FreeBSD.org/src/commit/?id=7ee310c80ea7b336972f53cc48b8c3d03029941e commit 7ee310c80ea7b336972f53cc48b8c3d03029941e Author: Eric Joyner AuthorDate: 2025-02-26 17:19:38 +0000 Commit: Eric Joyner CommitDate: 2025-02-26 18:15:38 +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@ MFC after: 3 days Relnotes: yes Differential Revision: https://reviews.freebsd.org/D49147 --- 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: