Skip to contentSkip to conversation

IXP4xx Silicon version

U-Boot-Users Jonathan Pratt 3 participants 4 messages Jun 6, 2007 – Jun 7, 2007 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi all

I'm not sure if anyone else has found it to be a problem but some boards we recently had built have an IXP425 on them which reports a Product Revision value 0x2 (lowest four bits of CP15, reg 0). This is only a problem because the file

cpu/ixp/npe/npe.c

uses this field in the npe_initialize function to decide how to determine how many ethernet ports there are. Unfortunately the case statement only accounts for revision values 0x0 (IX_FEATURE_CTRL_SILICON_TYPE_A0) and 0x01 (IX_FEATURE_CTRL_SILICON_TYPE_B0) so that the existing code doesn't think that these processors have any ethernet ports available. I found that by adding a 'default:' statement before line #639 remedied the problem. This file is part of u-boot, not the Intel npe library.

Since it seems that someone is immanently about to release a patch on the npe stuff anyway, would it be too much trouble to add the 'default:' statement or otherwise handle this product revision?

Thanks

Jonathan Pratt
Senior Development Engineer
ELPRO Technologies P/L

#2 lore raw

Hi Jonathan,

Quoted 3 lines · Jonathan Pratt

I'm not sure if anyone else has found it to be a problem but some boards we recently had built have an IXP425 on them which reports a Product Revision value 0x2 (lowest four bits of CP15, reg 0).

Seems that Intel has released a new revision of the CPU.

Quoted 5 lines

This is only a
problem because the file

cpu/ixp/npe/npe.c

Quoted 8 lines

uses this field in the npe_initialize function to decide how to determine how many ethernet ports there are. Unfortunately the case statement only accounts for revision values 0x0 (IX_FEATURE_CTRL_SILICON_TYPE_A0) and 0x01 (IX_FEATURE_CTRL_SILICON_TYPE_B0) so that the existing code doesn't think that these processors have any ethernet ports available. I found that by adding a 'default:' statement before line #639 remedied the problem. This file is part of u-boot, not the Intel npe library.

Would be interesting to know, what the differences of this new IXP425 revision are before "blindly" selecting default for Rev. A or Rev. B.

Quoted 3 lines

Since it seems that someone is immanently about to release a patch on the npe stuff anyway, would it be too much trouble to add the 'default:' statement or otherwise handle this product revision?

Yes, "someone" is waiting for another revised patch. I could of course add this statement, but I can't test since I don't have IXP hardware right now. Did you test this change successfully on both ethernet ports?

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================

#3 lore raw
Quoted 7 lines

-----Original Message-----
From: Stefan Roese [mailto:sr at denx.de]
Sent: Thursday, 7 June 2007 3:18 PM
To: u-boot-users at lists.sourceforge.net
Cc: Jonathan Pratt
Subject: Re: [U-Boot-Users] IXP4xx Silicon version

Quoted 8 lines

Hi Jonathan,

Quoted 3 lines · Jonathan Pratt

I'm not sure if anyone else has found it to be a problem but some boards we recently had built have an IXP425 on them which reports a Product Revision value 0x2 (lowest four bits of CP15, reg 0).

Seems that Intel has released a new revision of the CPU.

I couldn't find any reference to it in the Intel documentation (but the web site is not friendly to navigate so I didn't try all that hard).

Quoted 11 lines
Quoted 11 lines

This is only a
problem because the file

cpu/ixp/npe/npe.c

uses this field in the npe_initialize function to decide how to determine how many ethernet ports there are. Unfortunately the case statement only accounts for revision values 0x0 (IX_FEATURE_CTRL_SILICON_TYPE_A0) and 0x01 (IX_FEATURE_CTRL_SILICON_TYPE_B0) so that the existing code doesn't think that these processors have any ethernet ports

Quoted 7 lines

available. I found

Quoted 2 lines

that by adding a 'default:' statement before line #639 remedied the problem. This file is part of u-boot, not the Intel npe library.

Would be interesting to know, what the differences of this new IXP425 revision are before "blindly" selecting default for Rev. A or Rev. B.

The 'B' option uses the reported capabilities of the device (through the ixFeatureCtrlComponentCheck function in the npe library) which reads the feature control register to get the infomration. I would have thought that (for determining whether ethernet MAC's are present) this would be a pretty safe bet.

Quoted 10 lines
Quoted 1 line

Since it seems that someone is immanently about to release

a patch on

Quoted 1 line

the npe stuff anyway, would it be too much trouble to add

the 'default:'

Quoted 1 line

statement or otherwise handle this product revision?

Yes, "someone" is waiting for another revised patch. I could of course add this statement, but I can't test since I don't have IXP hardware right now.
Did you test this change successfully on both ethernet ports?

Sorry - this hardware only utilises one of the MACs (npe B = MAC 0).

Quoted 9 lines

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email:
office at denx.de
=====================================================================

Thanks
Jonathan Pratt

#4 lore raw
In reply to Jonathan Pratt
Quoted 6 lines · Jonathan Pratt

Hi all

I'm not sure if anyone else has found it to be a problem but some boards we recently had built have an IXP425 on them which reports a Product Revision value 0x2 (lowest four bits of CP15, reg 0). This is only a problem because the file

There is a specification update from Intel, containing a proposed fixed for B1 stepping CPUs.

http://www.intel.com/design/network/products/npfamily/docs/ixp4xx.htm?prod=IXP425#specupdt

best regards
Christian