All of lore.kernel.org
 help / color / mirror / Atom feed
From: "A. Nolson" <alohanono@gmail.com>
To: linuxppc-embedded@ozlabs.org
Subject: Problems with plb_temac+hard_temac+2.6.24rc3
Date: Wed, 20 Feb 2008 17:33:01 +0100	[thread overview]
Message-ID: <47BC563D.4040003@gmail.com> (raw)

Hi,

 I am working with a ML403 platform and I have my kernel 2.6.24rc3 
perfectly running on it. Almost everything seems to work but the 
ethernet. I am using the IP cores that come with the EDK 9.1sp2 ( 
plb_emac 3.00a + hard_temac 3.00b). The weird thing arises when I try to 
bring up the interface and use it. If I do "ifconfig eth0 up" the 
interface shows up but, strangely, it eithers not receives or send 
packets. I will explain myself, if I assing an IP manually and try to 
connect to another worksatation within the network ( by pinging from 
just one of the sides  for example ) the interface seems only to send or 
receive packets , but generallty not both at the same time ( I can see 
this through the evolution of the Rx/Tx bytes in ifconfig). The only few 
times that both tx/rx work at the same time is when I do (ifconfig eth0 
down and ifconfig eth0 up), but this only works sporadically and only  
for around a second or less.

This is what I get after the first "ifconfig eth0 up":
[  293.258765] eth0: XTemac: Options: 0xb8f2                              
[  295.253048] eth0: XTemac: speed set to 10Mb/s                          
[  295.256042] eth0: XTemac: Send Threshold = 16, Receive Threshold = 2   
[  295.256095] eth0: XTemac: Send Wait bound = 1, Receive Wait bound = 1  
[  297.252047] eth0: XTemac: PHY Link carrier lost.                       
[  299.251657] eth0: XTemac: PHY Link carrier restored.                   

and this after some ifconfig up/down:

[  293.258765] eth0: XTemac: Options: 0xb8f2                              
[  295.253048] eth0: XTemac: speed set to 10Mb/s                          
[  295.256042] eth0: XTemac: Send Threshold = 16, Receive Threshold = 2   
[  295.256095] eth0: XTemac: Send Wait bound = 1, Receive Wait bound = 1  
[  297.252047] eth0: XTemac: PHY Link carrier lost.                       
[  299.251657] eth0: XTemac: PHY Link carrier restored.                   
[  438.159833] eth0: XTemac: Options: 0xb8f2                              
[  440.154122] eth0: XTemac: speed set to 1000Mb/s                        
[  440.157316] eth0: XTemac: Send Threshold = 16, Receive Threshold = 2   
[  440.157369] eth0: XTemac: Send Wait bound = 1, Receive Wait bound = 1  
[  442.153739] eth0: XTemac: PHY Link carrier lost.                       
[  511.255518] eth0: XTemac: Options: 0xb8f2                              
[  513.249808] eth0: XTemac: speed set to 10Mb/s                          
[  513.252729] eth0: XTemac: Send Threshold = 16, Receive Threshold = 2   
[  513.252784] eth0: XTemac: Send Wait bound = 1, Receive Wait bound = 1  
[  515.249462] eth0: XTemac: PHY Link carrier restored.                   
[  992.441619] eth0: XTemac: Options: 0xb8f2                              
[  994.435904] eth0: XTemac: speed set to 1000Mb/s                        
[  994.438786] eth0: XTemac: Send Threshold = 16, Receive Threshold = 2   
[  994.438839] eth0: XTemac: Send Wait bound = 1, Receive Wait bound = 1  
[  996.435460] eth0: XTemac: PHY Link carrier lost.                       
[ 1099.850622] eth0: XTemac: Options: 0xb8f2                              
[ 1101.844907] eth0: XTemac: speed set to 10Mb/s                          
[ 1101.847816] eth0: XTemac: Send Threshold = 16, Receive Threshold = 2   
[ 1101.847868] eth0: XTemac: Send Wait bound = 1, Receive Wait bound = 1  
[ 1103.844479] eth0: XTemac: PHY Link carrier restored.                   
[ 1180.024979] eth0: XTemac: Options: 0xb8f2                              
[ 1182.019263] eth0: XTemac: speed set to 1000Mb/s                        
[ 1182.022265] eth0: XTemac: Send Threshold = 16, Receive Threshold = 2   
[ 1182.022316] eth0: XTemac: Send Wait bound = 1, Receive Wait bound = 1  
[ 1184.018815] eth0: XTemac: PHY Link carrier lost.                       

It also seems to negotiate wrongly the speed since my network is 100Mb/s.

This is my dmesg before "ifconfig eth0 up":

[    0.000000] Linux version 2.6.24-rc3-gd7ed933b-dirty (ios@xxx) (gcc 
versio
ion 4.0.0 (DENX ELDK 4.1 4.0.0)) #17 Mon Feb 18 11:52:47 CET 
2008               [
[    0.000000] Xilinx ML403 Reference System (Virtex-4 
FX)                      [
[    0.000000] Entering add_active_range(0, 0, 16384) 0 entries of 256 
used     [
[    0.000000] Zone PFN 
ranges:                                                 [
[    0.000000]   DMA             0 ->    
16384                                  [
[    0.000000]   Normal      16384 ->    
16384                                  [
[    0.000000]   HighMem     16384 ->    
16384                                  [
[    0.000000] Movable zone start PFN for each 
node                             [
[    0.000000] early_node_map[1] active PFN 
ranges                              [
[    0.000000]     0:        0 ->    
16384                                      [
[    0.000000] On node 0 totalpages: 
16384                                      [
[    0.000000]   DMA zone: 128 pages used for 
memmap                            [
[    0.000000]   DMA zone: 0 pages 
reserved                                     [
[    0.000000]   DMA zone: 16256 pages, LIFO 
batch:3                            [
[    0.000000]   Normal zone: 0 pages used for 
memmap                           [
[    0.000000]   HighMem zone: 0 pages used for 
memmap                          [
[    0.000000]   Movable zone: 0 pages used for 
memmap                          [
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  
Total pages
es: 
16256                                                                       
[
[    0.000000] Kernel command line: console=ttyS0,57600 root=/dev/xsa2 
rw init=/sb
sbin/init                                                                       
[
[    0.000000] Xilinx INTC #0 at 0x41200000 mapped to 
0xFDFFE000                [
[    0.000000] PID hash table entries: 256 (order: 8, 1024 
bytes)               [
[    0.000189] Console: colour dummy device 
80x25                               [
[    0.000632] Dentry cache hash table entries: 8192 (order: 3, 32768 
bytes)    [
[    0.001411] Inode-cache hash table entries: 4096 (order: 2, 16384 
bytes)     [
[    0.015628] Memory: 61312k available (2744k kernel code, 780k data, 
116k init,
, 0k 
highmem)                                                                   
[
[    0.015942] SLUB: Genslabs=11, HWalign=32, Order=0-1, MinObjects=4, 
CPUs=1, Nod
odes=1                                                                          
[
[    0.015988] Calibrating delay loop... 199.47 BogoMIPS 
(lpj=997376)           [
[    0.210274] Mount-cache hash table entries: 
512                              [
[    0.214569] net_namespace: 64 
bytes                                          [
[    0.220610] NET: Registered protocol family 
16                               [
[    0.268325] NET: Registered protocol family 
2                                [
[    0.350699] IP route cache hash table entries: 1024 (order: 0, 4096 
bytes)   [
[    0.353529] TCP established hash table entries: 2048 (order: 2, 16384 
bytes) [
[    0.353862] TCP bind hash table entries: 2048 (order: 1, 8192 
bytes)         [
[    0.354067] TCP: Hash tables configured (established 2048 bind 
2048)         [
[    0.354107] TCP reno 
registered                                              [
[    0.381445] sysctl table check failed: /kernel/l2cr .1.31 Missing 
strategy   [
[    0.381529] Call 
Trace:                                                      [
[    0.381556] [c3c11e80] [c0008380] show_stack+0x4c/0x174 
(unreliable)         [
[    0.381653] [c3c11eb0] [c0037170] 
set_fail+0x50/0x68                         [
[    0.381735] [c3c11ed0] [c00377f8] 
sysctl_check_table+0x670/0x6bc             [
[    0.381804] [c3c11f10] [c003780c] 
sysctl_check_table+0x684/0x6bc             [
[    0.381871] [c3c11f50] [c0024e7c] 
register_sysctl_table+0x5c/0xac            [
[    0.381953] [c3c11f70] [c034ab68] 
register_ppc_htab_sysctl+0x18/0x2c         [
[    0.382040] [c3c11f80] [c034484c] 
kernel_init+0xc8/0x284                     [
[    0.382103] [c3c11ff0] [c0004b18] 
kernel_thread+0x44/0x60                    [
[    0.442249] Installing knfsd (copyright (C) 1996 
okir@monad.swb.de).         [
[    0.447391] JFS: nTxBlock = 479, nTxLock = 
3832                              [
[    0.450534] SGI XFS with ACLs, large block numbers, no debug 
enabled         [
[    0.466636] io scheduler noop 
registered                                     [
[    0.466687] io scheduler anticipatory 
registered                             [
[    0.466722] io scheduler deadline 
registered                                 [
[    0.467224] io scheduler cfq registered 
(default)                            [
[    1.069672] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ 
sharing di
disabled                                                                        
[
[    1.078357] serial8250.0: ttyS0 at MMIO 0x40401003 (irq = 3) is a 
16550A     [
[    1.078443] console [ttyS0] 
enabled                                          [
[    1.621990] RAMDISK driver initialized: 16 RAM disks of 4096K size 
1024 blocksi
size                                                                            
[
[    1.644429] loop: module 
loaded                                              [
[    1.651930] xsysace xsysace.0: Xilinx SystemACE revision 
1.0.12              [
[    1.664582] xsysace xsysace.0: capacity: 1019088 
sectors                     [
[    1.675836]  xsa: xsa1 xsa2 
xsa3                                             [
[    1.688906] Xilinx SystemACE device driver, 
major=254                        [
[    1.700197] nbd: registered device at major 
43                               [
[    1.728380] XTemac: using sgDMA 
mode.                                        [
[    1.735840] XTemac: using TxDRE 
mode                                         [
[    1.743198] XTemac: using RxDRE 
mode                                         [
[    1.750455] XTemac: buffer descriptor size: 32768 
(0x8000)                   [
[    1.762007] XTemac: (buffer_descriptor_init) phy: 0x3d98000, virt: 
0xff100000,
, size: 
0x8000                                                                  [
[    1.785641] eth%d: XTemac: No PHY detected.  Assuming a PHY at 
address 0     [
[    1.799277] eth0: Dropping NETIF_F_SG since no checksum 
feature.             [
[    1.814696] eth0: Xilinx TEMAC #0 at 0x81200000 mapped to 0xC5060000, 
irq=0  [
[    1.828792] eth0: XTemac id 1.0f, block id 5, type 
8                         [
[    1.840200] NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c 
$Revision: 1
 1.41 
$                                                                         [
[    1.856295] INFTL: inftlcore.c $Revision: 1.19 $, inftlmount.c 
$Revision: 1.18
8 
$                                                                             
[
[    1.872015] SSFDC read-only Flash Translation 
layer                          [
[    1.885404] i8042.c: No controller 
found.                                    [
[    1.895700] mice: PS/2 mouse device common for all 
mice                      [
[    1.908819] i2c /dev entries 
driver                                          [
[    1.917372] TCP cubic 
registered                                             [
[    1.924238] NET: Registered protocol family 
1                                [
[    1.933271] NET: Registered protocol family 
17                               [
[    1.944649] RPC: Registered udp transport 
module.                            [
[    1.954206] RPC: Registered tcp transport 
module.                            [
[    4.575003] kjournald starting.  Commit interval 5 
seconds                   [
[    4.586220] EXT3-fs warning: maximal mount count reached, running 
e2fsck is rec
ecommended                                                                      
[
[    4.641727] EXT3 FS on xsa2, internal 
journal                                [
[    4.650587] EXT3-fs: recovery 
complete.                                      [
[    4.697624] EXT3-fs: mounted filesystem with ordered data 
mode.              [
[    4.709702] VFS: Mounted root (ext3 
filesystem).                             [
[    4.719390] Freeing unused kernel memory: 116k 
init                          
ba                                                              

Any idea of what it can be?

Thanks in advance!

/A

             reply	other threads:[~2008-02-20 16:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-20 16:33 A. Nolson [this message]
2008-02-21  2:26 ` Problems with plb_temac+hard_temac+2.6.24rc3 Rick Moleres
2008-02-21 17:10   ` A. Nolson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47BC563D.4040003@gmail.com \
    --to=alohanono@gmail.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.