<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=2535&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Shutdown problem - e1000 driver bug?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2535</link>
		<description><![CDATA[The most recent posts in Shutdown problem - e1000 driver bug?.]]></description>
		<lastBuildDate>Thu, 22 Apr 2021 13:39:10 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Shutdown problem - e1000 driver bug?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=29274#p29274</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>My Sun Microsystems Ultra24 rig has a problem which up to now I’ve chalked up to a crap BIOS.<br />It happened with the previous original version it came with and with this one, which is the latest one available.</p></div></blockquote></div><p>For an update on the status of this problem, see <a href="https://dev1galaxy.org/viewtopic.php?id=4274" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=4274</a></p><p>tl;dr<br />Apparently, having EEE enabled on this NICs leaves the EEE TX LPI timer active at shutdown.<br />EEE works on the basis of auto-negotiation with the device it is connected to and if that device does not support EEE, the timer ends up waiting for a signal it won&#039;t receive.<br />The result is an unresponsive system requiring a hard shutdown.<br />I have not been able to find out why this happens in a totally aleatory manner and found no reliable way to reproduce it. </p><p>ethtool (4.19) is not able to query or access the Intel 82566DM-2 Gigabit NIC&#039;s EEE settings because their e1000e driver <span class="bbu">does not</span> support it.<br />See the rest in the thread linked above.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 22 Apr 2021 13:39:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=29274#p29274</guid>
		</item>
		<item>
			<title><![CDATA[Re: Shutdown problem - e1000 driver bug?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13470#p13470</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>it seems that the EEE settings can be modified with the Windows driver</p></div></blockquote></div><p>Maybe <a href="https://www.hiren.info/pages/bootcd" rel="nofollow">Hiren&#039;s BootCD</a>?</p>]]></description>
			<author><![CDATA[dummy@example.com (fanderal)]]></author>
			<pubDate>Tue, 25 Dec 2018 18:18:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13470#p13470</guid>
		</item>
		<item>
			<title><![CDATA[Re: Shutdown problem - e1000 driver bug?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13332#p13332</link>
			<description><![CDATA[<p>Hello:</p><p>While waiting to see if anyone here had a clue about this, I was able to find a few leads.</p><p>It seems that the problem is related to the Intel e1000e driver, WoL and the EEE settings on the e1000e on-board NIC.</p><p>My rig&#039;s BIOS has <span class="bbu">no</span> setting to disable WoL or the on board Gbe for that matter. (!)</p><p>I am disabling WoL at boot with a line in /etc/rc.local</p><div class="codebox"><pre><code>#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will &quot;exit 0&quot; on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#
# Disable WoL - 20181212
/sbin/ethtool -s eth0 wol d
exit 0</code></pre></div><p>It survives a reboot and disconnecting/connecting the interface while logged in.<br />But it has not been enough as the problem subsists.</p><p>Seeing that this involved the <span class="bbu">e1000e: EEE Tx LPI Timer</span>, I searched and found this:</p><p><a href="https://en.wikipedia.org/wiki/Energy-Efficient_Ethernet" rel="nofollow">https://en.wikipedia.org/wiki/Energy-Efficient_Ethernet</a></p><p>My guess was that if the EEE TX LPI timer was what was giving me trouble (?), turning it off would do away with the issue.</p><p>Searching around I found this on the web:</p><p><a href="https://unix.stackexchange.com/questions/255810/turn-down-the-energy-efficient-ethernet-eee-aka-green-ethernet" rel="nofollow">https://unix.stackexchange.com/question … n-ethernet</a></p><p>It seems that this EEE thing is also a source of grief to others.<br />So I tried seeing what the EEE setting was for my on-board NIC using ethtool:</p><div class="codebox"><pre><code>[root@devuan groucho]# ethtool --show-eee eth0
Cannot get EEE settings: Operation not supported
[root@devuan groucho]#</code></pre></div><p>Just to try and see, I attempted to turn EEE off:</p><div class="codebox"><pre><code>[root@devuan groucho]# ethtool --set-eee eth0  eee off
Cannot get EEE settings: Operation not supported</code></pre></div><p>From the last link it seems that the EEE settings can be modified with the Windows driver but not with the Linux driver, at least not using ethtool.</p><p>Which was really unexpected. 8 ^/</p><p>The ethtool version installed in Devuan is 4.8 (20161004)</p><div class="codebox"><pre><code>[root@devuan groucho]# ethtool -h | grep version
ethtool version 4.8
[root@devuan groucho]#</code></pre></div><p>The latest available version is 4.19 (20181102)</p><p>The installed e1000e driver version is 3.2.6-k and it has SmartPowerDown enabled, apparently by default. (?)</p><div class="codebox"><pre><code>[root@devuan groucho]# modinfo e1000e
filename:       /lib/modules/4.9.0-8-amd64/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko
version:        3.2.6-k
license:        GPL
description:    Intel(R) PRO/1000 Network Driver
author:         Intel Corporation, &lt;linux.nics@intel.com&gt;
srcversion:     5EA033004005330EC3218BD
alias:          pci:v00008086d000015D6sv*sd*bc*sc*i*
---- snip ---
depends:        ptp
retpoline:      Y
intree:         Y
vermagic:       4.9.0-8-amd64 SMP mod_unload modversions 
parm:           debug:Debug level (0=none,...,16=all) (int)
parm:           copybreak:Maximum size of packet that is copied to a new buffer on receive (uint)
parm:           TxIntDelay:Transmit Interrupt Delay (array of int)
parm:           TxAbsIntDelay:Transmit Absolute Interrupt Delay (array of int)
parm:           RxIntDelay:Receive Interrupt Delay (array of int)
parm:           RxAbsIntDelay:Receive Absolute Interrupt Delay (array of int)
parm:           InterruptThrottleRate:Interrupt Throttling Rate (array of int)
parm:           IntMode:Interrupt Mode (array of int)
parm:           SmartPowerDownEnable:Enable PHY smart power down (array of int)
parm:           KumeranLockLoss:Enable Kumeran lock loss workaround (array of int)
parm:           WriteProtectNVM:Write-protect NVM [WARNING: disabling this can lead to corrupted NVM] (array of int)
parm:           CrcStripping:Enable CRC Stripping, disable if your BMC needs the CRC (array of int)
[root@devuan groucho]#</code></pre></div><p>Any ideas as to how to get around this?<br />Turning off the EEE feature is the only thing I can think of now.</p><p>But how?<br />Maybe I need the latest version of ethtool and/or the latest version of the Intel driver but they are not available in the Devuan repo.</p><p><span class="bbu">EDIT:</span></p><p>This is the specific on-board hardware in my Ultra24 rig:</p><div class="codebox"><pre><code>[root@devuan groucho]# lspci | grep -i ethernet
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
[root@devuan groucho]# </code></pre></div><p>This is the latest version of the Intel e1000e driver:</p><p><a href="https://downloadcenter.intel.com/download/15817/Intel-Network-Adapter-Driver-for-PCIe-Intel-Gigabit-Ethernet-Network-Connections-Under-Linux-?product=34459" rel="nofollow">https://downloadcenter.intel.com/downlo … duct=34459</a></p><p>---<br />For Intel® 82566DM Gigabit Ethernet PHY<br />Intel® Network Adapter Driver for PCIe* Intel® Gigabit Ethernet Network Connections Under Linux*<br />Version: <strong>3.4.2.1</strong> (Latest) Date: 8/26/2018<br />---</p><p>Can an update to this driver be requested to the maintainers?<br />If not, how can the download from Intel be installed in Devuan ASCII?</p><p>Thanks in advance.</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 17 Dec 2018 23:18:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13332#p13332</guid>
		</item>
		<item>
			<title><![CDATA[Shutdown problem - e1000 driver bug?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13121#p13121</link>
			<description><![CDATA[<p>Hello:</p><p>My Sun Microsystems Ultra24 rig has a problem which up to now I’ve chalked up to a crap BIOS.<br />It happened with the previous original version it came with and with this one, which is the latest one available.</p><p>I&#039;m on Devuan latest:</p><div class="codebox"><pre><code>groucho@devuan:~$ uname -a
Linux devuan 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
groucho@devuan:~$ </code></pre></div><div class="codebox"><pre><code>[root@devuan groucho]# apt-get update
Hit:1 http://deb.devuan.org/merged ascii InRelease
Get:2 http://deb.devuan.org/merged ascii-updates InRelease [25.6 kB]
Hit:3 http://deb.devuan.org/merged ascii-security InRelease
Fetched 25.6 kB in 5s (4944 B/s)
Reading package lists... Done
[root@devuan groucho]#</code></pre></div><div class="codebox"><pre><code>[root@devuan groucho]# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[root@devuan groucho]# </code></pre></div><div class="codebox"><pre><code>[root@devuan groucho]# 
[root@devuan groucho]# apt-get check
Reading package lists... Done
Building dependency tree       
Reading state information... Done
[root@devuan groucho]# </code></pre></div><p>Description:</p><p>On shutdown, the rig will do one of three things:</p><p>1. shut down properly<br />2. shut down properly and after about 5s. reboot start reboot and freeze<br />3. freeze during the shutdown at this point ...</p><div class="codebox"><pre><code>e1000e: EEE Tx LPI Timer
Preparing to enter sleep state S5
Reboot: Power Down </code></pre></div><p>… with the fans blowing at full speed.<br />&#160; <br />This happens ocasionally and I have not been able to reliably reproduce the behaviour, no idea what causes it.<br />It happened when I only had wireless access ie: before I had a wired connection and it also happens now.</p><p>Unfortunately, there’s no way of disabling the on board e1000e controller (you see, as this Sun MoBo has IME, that would be a no-no).</p><p>Could it be that (at least part of the issue) is caused by this bug:</p><p><a href="https://sourceforge.net/p/e1000/mailman/message/34986431" rel="nofollow">https://sourceforge.net/p/e1000/mailman … e/34986431</a></p><p>Apparently it was solved from kernel 3.16.49 on, but the behaviour is very similar.</p><p>See:<br /><a href="https://www.systutorials.com/linux-kernels/66652/e1000e-undo-e1000e_pm_freeze-if-__e1000_shutdown-fails-linux-3-16-49" rel="nofollow">https://www.systutorials.com/linux-kern … ux-3-16-49</a></p><p>My power settings (Xfce Power Manager) are:</p><p>General<br />When power button is pressed: Shutdown<br />When sleep button is pressed:&#160; Do nothing<br />When hibernate button is pressed: Do nothing</p><p>System<br />System sleep mode: Suspend<br />Put sytem to sleep when inactive for: Never</p><p>This also happened with other distros I have tried before settling here with Devuan.<br />Previous owner of the rig used a a Gates OS but I don’t think he would have mentioned this anyway.</p><p>I have not found a way to log what is happening so as to be able to get a better idea of what is happening.<br />I’d appreciate any suggestions you may have as this is a real PITA.</p><p>Thanks in advance.</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Wed, 05 Dec 2018 20:05:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13121#p13121</guid>
		</item>
	</channel>
</rss>
