From nobody Thu Apr 03 20:02:18 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 4ZTCLz0Zf7z5sPFd; Thu, 03 Apr 2025 20:02:19 +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 4ZTCLy6xj8z3kTv; Thu, 03 Apr 2025 20:02:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743710539; 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=Be1L65/bfKMHtbpecN4PMXAS0Iokd//1H0zq+776LFE=; b=omnovEcIm+gY23NhNGLXnzX6UJ8FNhm5XJurPOeoi6WtMRf9wW33E2tmw6ECf5nU8FopED l22nd2+FU2hRx0DfBrRGWBTU8eB7bXVWI6A6Ff0XQJ3k9DScIVV/3MxTzmqKtIDAIe5AxW x8fQWxgrI/VZwiL28Wmp8IWIV1mcnzVNneFFUmnQVsfZenes1C1rLyc0ps3cOmu4n7UvJ6 mt6v4fkDUBfNJO/v5tDj05Of5lYNX/LBu6SW5tndWTa/OGs89byAOvB+wDJA4LQUENNadd Onqf4gINpHaSbklHe0N7sBCg0shBCX3NYfkh2s36/O0NIw2fCuSl86WDUhKUgw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1743710539; a=rsa-sha256; cv=none; b=uV5d2tc36UQEN8LJlVSj+uFTicIGoUd4A/Q8kDkSESFIeg/Vt/s4I3BWSZdRsNeLAxdwYr yBZmyzseEsQUO1l3T0KnRIgSAHpMcZw25gVZHjdoCXjpJI9lP/4yxnXeEDIqKqUJKXXCuo V3IsXQck2SQYIh6b0LSgNZcV20PqmKVgNdPRKysJrE24vXOko1c3/EnoJwgu+tWW3o9HH6 abfCrHiXemtznmbD2eZqITbaSKbJx2n+O4Onjxsaz8KkBHxJZrYFGmNShbjgPpSEt810nQ EOy0QvwGySrt0y8L+FwPxuT9qPD+Al9sF0dfYifMw5ybh3G9LcdbX4f9O2O0dQ== 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=1743710539; 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=Be1L65/bfKMHtbpecN4PMXAS0Iokd//1H0zq+776LFE=; b=OthobKEPNBxKvGH9n3od9VkLfGMJChCpBgUKz3Ph0nlVKA/fjH1are3BZfjHlKXwyQqdet ZnTYnPYjDtnYpUn7JzE2FKa7okHu/84MX6ZyYpPf6lG/GLmismOSYaugagDdVtJYEEvHLS a3PRQslZLmSOQD2lw8ANhCgxe3MIJGMdlkEUHeC3Q8nh8civJ8hlIpnGfh4U9zlGzsTpuC b9KD/NSfyVrAgTqYnf1Iz8Jocjv/V1eGGsGdVMUxHeM4e8DjlCeHPXKvcl8Nwd/yMl40fD PTwXfOORceF/DnH9ptyvK1PDrpeg8xpVjmPgfGszJQ2cO9FPRt6p4iDcHX1hIQ== 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 4ZTCLy6XzMz1ZV; Thu, 03 Apr 2025 20:02:18 +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 533K2IJB096625; Thu, 3 Apr 2025 20:02:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 533K2IcZ096622; Thu, 3 Apr 2025 20:02:18 GMT (envelope-from git) Date: Thu, 3 Apr 2025 20:02:18 GMT Message-Id: <202504032002.533K2IcZ096622@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: 5ae5f71d505c - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 5ae5f71d505ccddc7de235d3f9e3d9bdb03dd454 Auto-Submitted: auto-generated The branch stable/13 has been updated by erj: URL: https://cgit.FreeBSD.org/src/commit/?id=5ae5f71d505ccddc7de235d3f9e3d9bdb03dd454 commit 5ae5f71d505ccddc7de235d3f9e3d9bdb03dd454 Author: Eric Joyner AuthorDate: 2025-02-26 17:19:38 +0000 Commit: Eric Joyner CommitDate: 2025-04-03 20:00:25 +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: