Re: Troubles with nfe0 and system freezes with MP kernel

2007-02-02 Thread Andreas Maus

On 2/1/07, Srebrenko Sehic [EMAIL PROTECTED] wrote:

 the problem remains.

You should try 2 different things.

1) Get the latest -current and try that. I think some fixes went into
post 4.0 for the nfe(4) driver which might fix your issue.

Sure. Thats the first thing I will do.


2) nfe(4) phy has issues with 10 mbit. You should try 1gbit and make
sure to set the full-duplex mode. I remember havning an nfe(4) system
which whould not work unless I forced mediaopt mode to full-duplex.

Nope.
The card is connected with 1000MBit.

I remembered a problem in the Linux driver which locks the system
when running with 10 or 100 MBit and autonegotiation was set to
off (and duplexmode and speed were set manually). This problem
went away using autonegotiation.

Anyway, I will try the latest -cuurent this weekend.

Andreas.

--
Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?



Troubles with nfe0 and system freezes with MP kernel

2007-02-01 Thread Andreas Maus

Hi.

Last week I got a fresh system (my old system died)
and so I had to install.

The system is a DualCore AMD64 X2 4600+ with integrated
NVIDIA NICs (nfe0 and nfe1) and build in NVIDIA RAID.
(for details see dmesg below)

The first problem I ran into was the problem with the onboard NICs.
I had to boot about 20 or 30 times to get networking working (read
get a DHCP lease). Usually the network starts, dhclient tries to obtain
a IP address and fails after about  5 sec. with
nfe0: watchdog timeout. I tried the latest CVS snapshot yesterday
(it wasn't that fun to fetch it without a sporadic working NIC) but
the problem remains.

The second problem is the permanent system freeze without any error
(or kernel panic) after some minutes when using the MP kernel.
At first I suspected a borken RAM, but I had no problems building
Gentoolinux from stage1 and memtest reports no error.
Curiously the problem disappears when I boot the vanilla
(read non-SMP) kernel.

I will look for a old 3com card tomorrow and install it so I can
at least fetch the new CVS tree ;)

Is there anyone out there who can point me to a possible solution
of these problems? (A SMP system would be nice but I can live
with the non-SMP kernel but the network issue is driving me nuts ;)

Andreas.

dmesg:

OpenBSD 4.0 (GENERIC.MP) #967: Sat Sep 16 20:38:15 MDT 2006
   [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2146881536 (2096564K)
avail mem = 1835012096 (1792004K)
using 22937 buffers containing 214896640 bytes (209860K) of memory
mainbus0 (root)
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xfb990 (54 entries)
bios0: MSI MS-7250
mainbus0: Intel MP Specification (Version 1.4) (nVidia   MCP55   )
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2412.72 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 201MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2412.37 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
mpbios: bus 0 is type PCI
mpbios: bus 1 is type PCI
mpbios: bus 2 is type PCI
mpbios: bus 3 is type PCI
mpbios: bus 4 is type PCI
mpbios: bus 5 is type PCI
mpbios: bus 6 is type PCI
mpbios: bus 7 is type PCI
mpbios: bus 8 is type ISA
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 11, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1
NVIDIA MCP55 Memory rev 0xa1 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 NVIDIA MCP55 ISA rev 0xa2
nviic0 at pci0 dev 1 function 1 NVIDIA MCP55 SMBus rev 0xa2
iic0 at nviic0
iic1 at nviic0
unknown at iic1 addr 0x2f not configured
admtemp0 at iic1 addr 0x4c: gl523sm
ohci0 at pci0 dev 2 function 0 NVIDIA MCP55 USB rev 0xa1: apic 2 int
10 (irq 10), version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NVIDIA OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 10 ports with 10 removable, self powered
ehci0 at pci0 dev 2 function 1 NVIDIA MCP55 USB rev 0xa2: apic 2 int
11 (irq 11)
usb1 at ehci0: USB revision 2.0
uhub1 at usb1
uhub1: NVIDIA EHCI root hub, rev 2.00/1.00, addr 1
uhub1: 10 ports with 10 removable, self powered
pciide0 at pci0 dev 4 function 0 NVIDIA MCP55 IDE rev 0xa1: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: TSSTcorp, DVD-ROM SH-D162C, TS04 SCSI0
5/cdrom removable
atapiscsi1 at pciide0 channel 0 drive 1
scsibus1 at atapiscsi1: 2 targets
cd1 at scsibus1 targ 0 lun 0: TSSTcorp, CD/DVDW SH-S182D, SB04 SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
cd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 5 function 0 NVIDIA MCP55 SATA rev 0xa2: DMA
pciide1: using apic 2 int 5 (irq 5) for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: SAMSUNG SP2504C
wd0: 16-sector PIO, LBA48, 238475MB, 488397168 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1 at pciide1 channel 1 drive 0: SAMSUNG SP2504C
wd1: 16-sector PIO, LBA48, 238475MB, 488397168 sectors
wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5
pciide2 at pci0 dev 5 function 1 NVIDIA MCP55 SATA rev 0xa2: DMA
pciide2: using