* improve similar pkg suggestions and share code in core-functions for all scripts...
[t2sde.git] / package / kernel / linux / sgi-meth-silent.patch
blob76b231e16c90e2bcb58524fdd64cf65c5f206e76
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/linux/sgi-meth-silent.patch
3 # Copyright (C) 2024 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 IMHO a constant high load flow of:
16 [ 6412.073755] meth: error status: 0x043b0360
17 [ 6412.107642] meth: Rx underflow
19 is a bit too noisy as default for production use.
21 --- linux-6.6/drivers/net/ethernet/sgi/meth.c.vanilla 2024-01-06 21:03:39.406526302 +0100
22 +++ linux-6.6/drivers/net/ethernet/sgi/meth.c 2024-01-06 21:07:32.591552068 +0100
23 @@ -541,7 +541,7 @@
24 struct meth_private *priv = netdev_priv(dev);
25 unsigned long flags;
27 - printk(KERN_WARNING "meth: error status: 0x%08x\n",status);
28 + DPRINTK("meth: error status: 0x%08x\n",status);
29 /* check for errors too... */
30 if (status & (METH_INT_TX_LINK_FAIL))
31 printk(KERN_WARNING "meth: link failure\n");
32 @@ -553,7 +553,7 @@
33 if (status & (METH_INT_RX_OVERFLOW))
34 printk(KERN_WARNING "meth: Rx overflow\n");
35 if (status & (METH_INT_RX_UNDERFLOW)) {
36 - printk(KERN_WARNING "meth: Rx underflow\n");
37 + DPRINTK("meth: Rx underflow\n");
38 spin_lock_irqsave(&priv->meth_lock, flags);
39 mace->eth.int_stat = METH_INT_RX_UNDERFLOW;
40 /* more underflow interrupts will be delivered,