[ipxe-devel] IPXE and parallels on MAC

Patel, Kalpesh, US kapatel at randomhouse.com
Fri Apr 18 18:37:48 BST 2014





On 4/18/14 12:36 PM, "Michael Brown" <mcb30 at ipxe.org> wrote:


>On 17/04/14 15:27, Patel, Kalpesh, US wrote:
>>> I suspect this is a flaw in the emulation of the Intel NIC.  We had a
>>> similar problem with VMware:
>>>
>>>    http://git.ipxe.org/ipxe.git/commitdiff/0c5e3df
>>>
>>> If you're happy experimenting with driver code, then you could try
>>> adding some calls to intel_diag() to see what the hardware and software
>>> think the ring pointers are.  I've attached a sample patch which will
>>> dump out the ring pointers when RX overrun is first detected.
>>
>> I am happy experimenting with the driver code to get to the root cause
>>of
>> it. Could you let me know against which code line is the patch for? I
>>just
>> want to make sure.
>
>It's against drivers/net/intel.c.  The patch is produced by git-diff and
>so includes filename information: you should be able to apply it using
>just
>
>   git apply ipxe-intel-diag-hack.patch

Understood. Applying the patch failed for some odd reasons. I did
following:

[root at rhcloud-ks tmp]# git clone http://git.ipxe.org/ipxe.git
Initialized empty Git repository in /tmp/ipxe/.git/
remote: Counting objects: 41213, done.
remote: Compressing objects: 100% (12415/12415), done.
remote: Total 41213 (delta 30836), reused 36769 (delta 27223)
Receiving objects: 100% (41213/41213), 9.91 MiB | 575 KiB/s, done.
Resolving deltas: 100% (30836/30836), done.
[root at rhcloud-ks tmp]# cd ipxe
[root at rhcloud-ks ipxe]# git apply ../ipxe-intel-diag-hack.patch
../ipxe-intel-diag-hack.patch:9: trailing whitespace.
	// HACK - dump out ring status when we first detect RX overrun
../ipxe-intel-diag-hack.patch:10: trailing whitespace.
	{
../ipxe-intel-diag-hack.patch:11: trailing whitespace.
		static int displayed;
../ipxe-intel-diag-hack.patch:12: trailing whitespace.
		if ( ( icr & INTEL_IRQ_RXO ) && ( ! displayed ) ) {
../ipxe-intel-diag-hack.patch:13: trailing whitespace.
			displayed = 1;
error: patch failed: src/drivers/net/intel.c:719
error: src/drivers/net/intel.c: patch does not apply
[root at rhcloud-ks ipxe]#

I manually added the code to c file. I don't think it helped in any way to
display additional output. I've attached screen shots.


>
>If you haven't already found the IRC channel (#ipxe on Freenode), then
>give it a try: IRC is quite useful for interactive
>debugging-at-a-distance.

I am signed in there so if you are there then ping me, Kalpesh.

>
>Michael
>

Thanks.

>



-------------- next part --------------
A non-text attachment was scrubbed...
Name: default[3].png
Type: image/png
Size: 56905 bytes
Desc: default[3].png
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20140418/b94b43c7/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default[4].png
Type: image/png
Size: 63263 bytes
Desc: default[4].png
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20140418/b94b43c7/attachment-0003.png>


More information about the ipxe-devel mailing list