Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: New ARMADA ethernet driver



Hi,

On 2015/05/13 0:57, Radoslaw Kujawa wrote:
> Hi.
> 
>> On 3 May 2015, at 17:37, SUENAGA Hiroki <hsuenaga%netbsd.org@localhost> wrote:
>>
>> I implement a new MARVELL ARMADA's ethernet dirver using 'counter mode.'
>> if_mvgbe is still working, but registers used by if_mvgbe is not
>> described in reference manual, so I think using new mode is better.
>> It's hard to maintain the undescribed features...
> 
> Very cool! I'll try testing this with Armada XP dev board DB-MV784MP-GP.

Thank you for your interest!

I'm trying with OpenBlocks AX3 that uses Marvell ARMADA XP MV78260(Rev B0) now,
and I found that there are some SMP bus problem. For exmple, atomic operations
using ldrex/strex is very slow. Probably, memory and I/O sharedability settings
are wrong.

I don't know what is wrong, but I found that this problem seems to be
resolved by enabling 'options MULTIPROCESSOR' in kernel config (even if
you enabled MULTIPROCESSOR, 2nd CPU is not attached).

If your system isn't working, please try this.

here is my kernel config diffs for OPENBLOCKS_AX3:

--- a/sys/arch/evbarm/conf/OPENBLOCKS_AX3
+++ b/sys/arch/evbarm/conf/OPENBLOCKS_AX3
@@ -15,22 +15,28 @@ maxusers    32
 makeoptions    BOARDTYPE="openblocks_ax3"
 options        EVBARM_BOARDTYPE=openblocks_ax3
 
+# Profiling
+#makeoptions   PROF="-pg"
+#options       GPROF
+
 # CPU options
 options        CPU_PJ4B
 options        L2CACHE_ENABLE
-#options       AURORA_IO_CACHE_COHERENCY
+options        AURORA_IO_CACHE_COHERENCY
 options        AURORA_L2_PT_WALK
 options        ARM_HAS_VBAR
 options        FPU_VFP
 makeoptions    CPUFLAGS="-march=armv7-a -mfpu=neon"
 
 # Architecture options
 options        ARMADAXP
 
 options        PIC_MAXSOURCES=128
 
 options        __HAVE_MM_MD_DIRECT_MAPPED_PHYS
-#options       MULTIPROCESSOR
+options        MULTIPROCESSOR
 options        TPIDRPRW_IS_CURCPU
 
 no options     KERNEL_BASE_EXT
@@ -166,7 +172,8 @@ options     DDB_ONPANIC=1
 makeoptions    DEBUG="-g"      # compile full symbol table
 makeoptions    COPY_SYMTAB=1
 
-config         netbsd          root on ? type ?
+#config                netbsd          root on ? type ?
+config         netbsd          root on wd0a type ffs
 
 # The main bus device
 mainbus0 at root
@@ -183,10 +190,14 @@ options   MVSOC_FIXUP_DEVID=0x7826
 mvsata* at mvsoc? offset ? irq ?
 
 # On-chip Gigabit Ethernet Controller Interface
-mvgbec* at mvsoc? offset ?
-mvgbe* at mvgbec? port ? irq ?
+#mvgbec* at mvsoc? offset ?
+#mvgbe*        at mvgbec? port ? irq ?
+mvxpe* at mvsoc? offset ?
 makphy* at mii? phy ?


-- 
SUENAGA Hiroki <hsuenaga%netbsd.org@localhost>
PGP: 66B3 8939 6758 20BA F243  89EC 557A 8CFB ABA9 5E92



Home | Main Index | Thread Index | Old Index