From nobody Tue Jul 30 15:00:53 2024 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 4WYJMB1yG6z5RNJ7; Tue, 30 Jul 2024 15:00:54 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WYJMB10MPz57Sw; Tue, 30 Jul 2024 15:00:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722351654; 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=BOXuRFRDfY/cN1uUa050PSn1FWlRx1qrKPU6D7OFvCM=; b=tWzJTLCGxDsl69Xw+jYQwV4SM1x1Mjbm1nAUNmtEkELP5N/VGPdGwDLuHpzD0JRhlQ5K3J F1BPGC+YVQgFa9PnKK47ofos5zTODHSBtndvtmP7BJfvMH08OWjWkG+CFDPGN1DnVDIqk1 bGQp6zz5+Z0WOqTdZa89EPF1lIUb6pT/HGQlqDpMe0OVVusnNa6oCZzMU43GwV0wRSb9Gh Zh0dFxwDWdGC860ZWaBlhpOgiDK3a4zdvgmY1Lz2/YsPZXThHISatprKlU68kiSGCsYN2d feuji+4uk6r2ZvGfQy/rebMguHUg+qGx0wYNFiNM1fcLNU+ITzM98OpLm9xKxQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722351654; a=rsa-sha256; cv=none; b=rNVaKYPNUGVW7ZlK796mcjSASgWi350dysZK5ayFxHOd0CFKVyDVwSs9uaEPxGVKMkNnFc dSGtnnPp8ZoE6UPVT4q22AFrEiRjzlU4D6noSR0p+s6fR10oe+UH4vc+g413BgWUqVaaax 071decswD96vl6hnnUG4GVsirG5D5v9A0Dje/qF4soXvKur+O4TG01f7DLE3WSuxun8UKC D5rJEoXcFz8peJ5sXSpxjkb8ISmywihLLlzjn6sIZ4EHqA37ZwCUwUjV0VbGzUVyHGYftE /0+TKNOS/vHPtiSpzCfYJmD9xH/hqD/KJWd0zfsIKqGYEvPuIzJDljfYQS3NlA== 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=1722351654; 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=BOXuRFRDfY/cN1uUa050PSn1FWlRx1qrKPU6D7OFvCM=; b=Ir8Pkv6MRfBSHUlwiBTH+I7z/rMB8dPQ8qreIxJola7Yo9AToN98/ijSoaQ/e33u1Az/XJ avHvI9pV81BRnXNAmuz6UnBk3FbWIS8cPRGCdIE1jQUS0hmldFnJq99iU6GMdQvoIaWIzl eaB1WjhK9ibgKt+KfetURJ7iAtwvELX18nb3KTfxM8XxD37glbOTZrTQQy5CQzJJNY3DKB N+DBSnFBfOq+K+AIUtL4gEMqtXF4c2zZDVynXRABEbgttAHCbBxKIHMC6rXPa5hNplpRB7 rdhQraF+wr6mTWcYXvAnYJbinZAZA/pcZYK+AYmxAmwpiEUndKEMDEXdMH1Qwg== 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 4WYJMB0cQhzMdF; Tue, 30 Jul 2024 15:00:54 +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 46UF0r6l092394; Tue, 30 Jul 2024 15:00:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46UF0r39092391; Tue, 30 Jul 2024 15:00:53 GMT (envelope-from git) Date: Tue, 30 Jul 2024 15:00:53 GMT Message-Id: <202407301500.46UF0r39092391@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 2204a4829083 - main - mlx5en: limit reporting eeprom read failure due to unplugged module to verboseboot 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2204a4829083bf2a40304ea873d287a5498973d7 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=2204a4829083bf2a40304ea873d287a5498973d7 commit 2204a4829083bf2a40304ea873d287a5498973d7 Author: Konstantin Belousov AuthorDate: 2024-07-26 21:09:58 +0000 Commit: Konstantin Belousov CommitDate: 2024-07-30 15:00:04 +0000 mlx5en: limit reporting eeprom read failure due to unplugged module to verboseboot Requested by: gallatin Sponsored by: NVIDIA networking MFC after: 1 week --- sys/dev/mlx5/mlx5_en/mlx5_en_main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c index 791e278daaf8..ccbdf11a1dd5 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c @@ -3687,9 +3687,11 @@ out: /* Check if module is present before doing an access */ module_status = mlx5_query_module_status(priv->mdev, module_num); if (module_status != MLX5_MODULE_STATUS_PLUGGED_ENABLED) { - mlx5_en_err(ifp, - "Query module %d status: not plugged (%d), eeprom reading is not supported\n", - module_num, module_status); + if (bootverbose) + mlx5_en_err(ifp, + "Query module %d status: not plugged (%d), " + "eeprom reading is not supported\n", + module_num, module_status); error = EINVAL; goto err_i2c; }