<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="MSHTML 8.00.7600.17051">
<style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div id="divBdy" class="bdyItmPrt" _fAllwCM="1">
<div>
<div>
<div dir="ltr"><font color="black" size="2" face="Tahoma"><span style="FONT-SIZE: 10pt" dir="ltr">
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><b>Environment</b></div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> intel sccReset 1.4.2</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> Linux scctest-desktop 2.6.32-33-generic #70-Ubuntu SMP Thu Jul 7 21:13:52 UTC 2011 x86_64 GNU/Linux</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> Barrelfish version: release2012-11-03</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><b>Others</b></div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> Because only eMAC3 of scc is available, I changed all of eMAC2 to eMAC3 in /lib/lwip/src/core/init.c and /usr/drivers/eMAC/eMAC_hwint.c</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><b>Phenomenon</b></div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> Hi, all</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> Every time I start barrelfish, netd is always fail to get ip from dhcp server.</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> And then, I found that in send_packets_on_wire() function it will return 0 with a probability of 98%. That is to mean in send_packets_on_wire() function, sp_queue_empty(spp) will return true with a probability
of 98%.</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">static uint64_t send_packets_on_wire(struct net_queue_manager_binding *cc)<br>
{</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> ... ...<br>
sp_reload_regs(spp);<br>
<font color="red">if (sp_queue_empty(spp)) {</font><font color="red"><br>
return 0;</font><font color="red"><br>
}</font></div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> ... ...</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">}</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> I tried many times, only three times send_packets_on_wire() function went normally, but it then aborted in sp_process_tx_done() function later.</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> What is the problem? Can anyone help me out? Thank you!</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><b>menu.lst</b></div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">title Barrelfish<br>
root (nd)<br>
kernel /scc/sbin/cpu loglevel=4<br>
module /scc/sbin/cpu<br>
module /scc/sbin/init</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"># Domains spawned by init<br>
module /scc/sbin/mem_serv<br>
module /scc/sbin/monitor</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">module /scc/sbin/chips boot<br>
module /scc/sbin/ramfsd boot<br>
module /scc/sbin/skb boot<br>
module /scc/sbin/spawnd boot bootscc=1<br>
module /scc/sbin/startd boot<br>
# modules needed to start the networking<br>
module /scc/sbin/eMAC core=0 device=3 servicename=eMAC3_0<br>
module /scc/sbin/NGD_mng core=0 cardname=eMAC3_0<br>
module /scc/sbin/netd core=0 cardname=eMAC3_0</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"># RCK memory map<br>
# 624MB private RAM<br>
mmap map 0x0 0x27000000 1<br>
# 1GB shared RAM (over all MCs) in the middle of address space<br>
mmap map 0x80000000 0x40000000 1<br>
# 16MB more private RAM (bootup jump is in here, too)<br>
mmap map 0xff000000 0x1000000 1</div>
</span></font></div>
</div>
</div>
</div>
</div>
</body>
</html>