Marvell 88E8057

View: New views
10 Messages — Rating Filter:   Alert me  

Marvell 88E8057

by kalin mintchev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hi all..

does anybody here know if freebsd has a driver for Marvell 88E8057 nic chip?

according to the kernel list of drivers (7.2) marvell chips are driven
by the msk driver. but it doesn't show up in pciconf, dmesg or
sysinstall....
strangely enough 88E8057 is not in the list in man msk. although 88E8056
and 88E8058 are. is this just bad luck?!

thanks...
_______________________________________________
freebsd-net@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@..."

Re: Marvell 88E8057

by Pyun YongHyeon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Oct 23, 2009 at 11:44:15PM -0400, kalin m wrote:

>
> hi all..
>
> does anybody here know if freebsd has a driver for Marvell 88E8057 nic chip?
>
> according to the kernel list of drivers (7.2) marvell chips are driven
> by the msk driver. but it doesn't show up in pciconf, dmesg or
> sysinstall....
> strangely enough 88E8057 is not in the list in man msk. although 88E8056
> and 88E8058 are. is this just bad luck?!
>
I think 88E8057(Yukon Ultra 2) is the latest chipset from Marvell
and no one ever expressed his/her willingness to try experiment
patch.  I guess msk(4) in HEAD has all required features to support
88E8057.  Would you try attached patch?

The patch was generated against HEAD. If you have to use 7.2-RELEASE
copy the following files from HEAD and apply attached patch.

/usr/src/sys/dev/msk/if_msk.c
/usr/src/sys/dev/msk/if_mskreg.h
/usr/src/sys/dev/mii/miidevs
/usr/src/sys/dev/mii/e1000phy.c
/usr/src/sys/dev/mii/e1000phyreg.c


Index: sys/dev/msk/if_msk.c
===================================================================
--- sys/dev/msk/if_msk.c (revision 198453)
+++ sys/dev/msk/if_msk.c (working copy)
@@ -221,6 +221,8 @@
     "Marvell Yukon 88E8071 Gigabit Ethernet" },
  { VENDORID_MARVELL, DEVICEID_MRVL_436C,
     "Marvell Yukon 88E8072 Gigabit Ethernet" },
+ { VENDORID_MARVELL, DEVICEID_MRVL_4380,
+    "Marvell Yukon 88E8057 Gigabit Ethernet" },
  { VENDORID_DLINK, DEVICEID_DLINK_DGE550SX,
     "D-Link 550SX Gigabit Ethernet" },
  { VENDORID_DLINK, DEVICEID_DLINK_DGE560SX,
@@ -235,7 +237,9 @@
         "Yukon EX",
         "Yukon EC",
         "Yukon FE",
-        "Yukon FE+"
+        "Yukon FE+",
+        "Yukon Supreme",
+        "Yukon Ultra 2"
 };
 
 static int mskc_probe(device_t);
@@ -1142,6 +1146,7 @@
  case CHIP_ID_YUKON_EC_U:
  case CHIP_ID_YUKON_EX:
  case CHIP_ID_YUKON_FE_P:
+ case CHIP_ID_YUKON_UL_2:
  CSR_WRITE_2(sc, B0_CTST, Y2_HW_WOL_OFF);
 
  /* Enable all clocks. */
@@ -1744,6 +1749,10 @@
  sc->msk_clock = 156; /* 156 Mhz */
  sc->msk_pflags |= MSK_FLAG_JUMBO;
  break;
+ case CHIP_ID_YUKON_UL_2:
+ sc->msk_clock = 156; /* 156 Mhz */
+ sc->msk_pflags |= MSK_FLAG_JUMBO;
+ break;
  default:
  sc->msk_clock = 156; /* 156 Mhz */
  break;
Index: sys/dev/msk/if_mskreg.h
===================================================================
--- sys/dev/msk/if_mskreg.h (revision 198453)
+++ sys/dev/msk/if_mskreg.h (working copy)
@@ -143,6 +143,7 @@
 #define DEVICEID_MRVL_436A 0x436A
 #define DEVICEID_MRVL_436B 0x436B
 #define DEVICEID_MRVL_436C 0x436C
+#define DEVICEID_MRVL_4380 0x4380
 
 /*
  * D-Link gigabit ethernet device ID
@@ -890,6 +891,8 @@
 #define CHIP_ID_YUKON_EC 0xb6 /* Chip ID for YUKON-2 EC */
 #define CHIP_ID_YUKON_FE 0xb7 /* Chip ID for YUKON-2 FE */
 #define CHIP_ID_YUKON_FE_P 0xb8 /* Chip ID for YUKON-2 FE+ */
+#define CHIP_ID_YUKON_SUPR 0xb9 /* Chip ID for YUKON-2 Supreme */
+#define CHIP_ID_YUKON_UL_2 0xba /* Chip ID for YUKON-2 Ultra 2 */
 
 #define CHIP_REV_YU_XL_A0 0 /* Chip Rev. for Yukon-2 A0 */
 #define CHIP_REV_YU_XL_A1 1 /* Chip Rev. for Yukon-2 A1 */


_______________________________________________
freebsd-net@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@..."

Re: Marvell 88E8057

by Pyun YongHyeon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Oct 24, 2009 at 02:46:40PM -0700, Pyun YongHyeon wrote:

> On Fri, Oct 23, 2009 at 11:44:15PM -0400, kalin m wrote:
> >
> > hi all..
> >
> > does anybody here know if freebsd has a driver for Marvell 88E8057 nic chip?
> >
> > according to the kernel list of drivers (7.2) marvell chips are driven
> > by the msk driver. but it doesn't show up in pciconf, dmesg or
> > sysinstall....
> > strangely enough 88E8057 is not in the list in man msk. although 88E8056
> > and 88E8058 are. is this just bad luck?!
> >
>
> I think 88E8057(Yukon Ultra 2) is the latest chipset from Marvell
> and no one ever expressed his/her willingness to try experiment
> patch.  I guess msk(4) in HEAD has all required features to support
> 88E8057.  Would you try attached patch?
>
> The patch was generated against HEAD. If you have to use 7.2-RELEASE
> copy the following files from HEAD and apply attached patch.
>
> /usr/src/sys/dev/msk/if_msk.c
> /usr/src/sys/dev/msk/if_mskreg.h
> /usr/src/sys/dev/mii/miidevs
> /usr/src/sys/dev/mii/e1000phy.c
> /usr/src/sys/dev/mii/e1000phyreg.c
                       ^^^^^^^^^^^^^^
It should be read e1000phyreg.h
_______________________________________________
freebsd-net@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@..."

Re: Marvell 88E8057

by kalin mintchev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message





Pyun YongHyeon wrote:

> On Sat, Oct 24, 2009 at 02:46:40PM -0700, Pyun YongHyeon wrote:
>  
>> On Fri, Oct 23, 2009 at 11:44:15PM -0400, kalin m wrote:
>>    
>>> hi all..
>>>
>>> does anybody here know if freebsd has a driver for Marvell 88E8057 nic chip?
>>>
>>> according to the kernel list of drivers (7.2) marvell chips are driven
>>> by the msk driver. but it doesn't show up in pciconf, dmesg or
>>> sysinstall....
>>> strangely enough 88E8057 is not in the list in man msk. although 88E8056
>>> and 88E8058 are. is this just bad luck?!
>>>
>>>      
>> I think 88E8057(Yukon Ultra 2) is the latest chipset from Marvell
>> and no one ever expressed his/her willingness to try experiment
>> patch.  I guess msk(4) in HEAD has all required features to support
>> 88E8057.  Would you try attached patch?
>>
>> The patch was generated against HEAD. If you have to use 7.2-RELEASE
>> copy the following files from HEAD and apply attached patch.
>>
>> /usr/src/sys/dev/msk/if_msk.c
>> /usr/src/sys/dev/msk/if_mskreg.h
>> /usr/src/sys/dev/mii/miidevs
>> /usr/src/sys/dev/mii/e1000phy.c
>> /usr/src/sys/dev/mii/e1000phyreg.c
>>    
>                        ^^^^^^^^^^^^^^
> It should be read e1000phyreg.h
>  

i certainly would try the patch. i have not gotten the email with the
attachment. and it would probably happened on monday. the machine is in
my office. but i'm interested to try it...

thanks....



_______________________________________________
freebsd-net@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@..."

Re: Marvell 88E8057

by kalin mintchev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Pyun YongHyeon wrote:

> On Sat, Oct 24, 2009 at 02:46:40PM -0700, Pyun YongHyeon wrote:
>  
>> On Fri, Oct 23, 2009 at 11:44:15PM -0400, kalin m wrote:
>>    
>>> hi all..
>>>
>>> does anybody here know if freebsd has a driver for Marvell 88E8057 nic chip?
>>>
>>> according to the kernel list of drivers (7.2) marvell chips are driven
>>> by the msk driver. but it doesn't show up in pciconf, dmesg or
>>> sysinstall....
>>> strangely enough 88E8057 is not in the list in man msk. although 88E8056
>>> and 88E8058 are. is this just bad luck?!
>>>
>>>      
>> I think 88E8057(Yukon Ultra 2) is the latest chipset from Marvell
>> and no one ever expressed his/her willingness to try experiment
>> patch.  I guess msk(4) in HEAD has all required features to support
>> 88E8057.  Would you try attached patch?
>>
>> The patch was generated against HEAD. If you have to use 7.2-RELEASE
>> copy the following files from HEAD and apply attached patch.
>>
>> /usr/src/sys/dev/msk/if_msk.c
>> /usr/src/sys/dev/msk/if_mskreg.h
>> /usr/src/sys/dev/mii/miidevs
>> /usr/src/sys/dev/mii/e1000phy.c
>> /usr/src/sys/dev/mii/e1000phyreg.c
>>    
>                        ^^^^^^^^^^^^^^
> It should be read e1000phyreg.h
>  

hi there Pyun YongHyeon...  i stillhave not gotten you previous email
with the attached patch. can you resend please?  thanks.....

_______________________________________________
freebsd-net@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@..."

Re: Marvell 88E8057

by Bob Johnson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10/23/09, kalin m <kalin@...> wrote:
>
> hi all..
>
> does anybody here know if freebsd has a driver for Marvell 88E8057 nic chip?
>

Marvell provides FreeBSD drivers. If you don't have a philosophical
objection to using a manufacturer's binary driver, you might find what
you need at their website.

http://www.marvell.com/drivers/search.do

I think they provide one FreeBSD driver for all of their chipsets.
Don't know if it supports the 88E8057.

--
-- Bob Johnson
   fbsdlists@...
_______________________________________________
freebsd-net@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@..."

Re: Marvell 88E8057

by kalin mintchev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Bob Johnson wrote:

> On 10/23/09, kalin m <kalin@...> wrote:
>  
>> hi all..
>>
>> does anybody here know if freebsd has a driver for Marvell 88E8057 nic chip?
>>
>>    
>
> Marvell provides FreeBSD drivers. If you don't have a philosophical
> objection to using a manufacturer's binary driver, you might find what
> you need at their website.
>
> http://www.marvell.com/drivers/search.do
>
> I think they provide one FreeBSD driver for all of their chipsets.
> Don't know if it supports the 88E8057.
>  

i do. i found that page last thursday. and a saw a few freebsd drivers.
but not for 88E8057. thanks thought....

_______________________________________________
freebsd-net@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@..."

Re: Marvell 88E8057

by kalin mintchev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hi pyun...  and all....

after a few hours i'm sorry to report that the card is visible but not
usable (yet?!). here is what i have done so far:

1. got the files from http://svn.freebsd.org/viewvc/base/head/sys/dev/
2. applied the patch that pyun provided.
3. replaced if_maddr_rlock(ifp) with IF_ADDR_UNLOCK(ifp) in if_msk.c -
two instances.
4. replaced the files in /usr/src/sys/dev for mii and msk with he new
ones on the freebsd 7.2 machine.
5. recompiled the kernel..

here is what i get:

from dmesg at boot:

mskc0: <Marvell Yukon 88E8057 Gigabit Ethernet> port 0xde00-0xdeff mem
0xfddfc000-0xfddfffff irq 18 at device 0.0 on pci2
mskc0: unknown device: id=0xba, rev=0x00
device_attach: mskc0 attach returned 6

cant find what 6 stands for but it's not good..


pciconf -lvvv:

mskc0@pci0:2:0:0:    class=0x020000 card=0x51131297 chip=0x438011ab
rev=0x10 hdr=0x00
    vendor     = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
    class      = network
    subclass   = ethernet


if i put if_msk_load="YES" in loader.conf dmesg says:

module_register: module msk/miibus already exists!
Module msk/miibus failed to register: 17
module_register: module mskc/msk already exists!
Module mskc/msk failed to register: 17
module_register: module pci/mskc already exists!
Module pci/mskc failed to register: 17


ifconfig doesn't see it. sysinstall does not see it.

now what?!


thanks...




Pyun YongHyeon wrote:

> On Sat, Oct 24, 2009 at 02:46:40PM -0700, Pyun YongHyeon wrote:
>  
>> On Fri, Oct 23, 2009 at 11:44:15PM -0400, kalin m wrote:
>>    
>>> hi all..
>>>
>>> does anybody here know if freebsd has a driver for Marvell 88E8057 nic chip?
>>>
>>> according to the kernel list of drivers (7.2) marvell chips are driven
>>> by the msk driver. but it doesn't show up in pciconf, dmesg or
>>> sysinstall....
>>> strangely enough 88E8057 is not in the list in man msk. although 88E8056
>>> and 88E8058 are. is this just bad luck?!
>>>
>>>      
>> I think 88E8057(Yukon Ultra 2) is the latest chipset from Marvell
>> and no one ever expressed his/her willingness to try experiment
>> patch.  I guess msk(4) in HEAD has all required features to support
>> 88E8057.  Would you try attached patch?
>>
>> The patch was generated against HEAD. If you have to use 7.2-RELEASE
>> copy the following files from HEAD and apply attached patch.
>>
>> /usr/src/sys/dev/msk/if_msk.c
>> /usr/src/sys/dev/msk/if_mskreg.h
>> /usr/src/sys/dev/mii/miidevs
>> /usr/src/sys/dev/mii/e1000phy.c
>> /usr/src/sys/dev/mii/e1000phyreg.c
>>    
>                        ^^^^^^^^^^^^^^
> It should be read e1000phyreg.h
>  
_______________________________________________
freebsd-net@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@..."

Re: Marvell 88E8057

by Pyun YongHyeon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Nov 03, 2009 at 12:45:52AM -0500, kalin m wrote:

>
> hi pyun...  and all....
>
> after a few hours i'm sorry to report that the card is visible but not
> usable (yet?!). here is what i have done so far:
>
> 1. got the files from http://svn.freebsd.org/viewvc/base/head/sys/dev/
> 2. applied the patch that pyun provided.
> 3. replaced if_maddr_rlock(ifp) with IF_ADDR_UNLOCK(ifp) in if_msk.c -
> two instances.
> 4. replaced the files in /usr/src/sys/dev for mii and msk with he new
> ones on the freebsd 7.2 machine.
> 5. recompiled the kernel..
>
> here is what i get:
>
> from dmesg at boot:
>
> mskc0: <Marvell Yukon 88E8057 Gigabit Ethernet> port 0xde00-0xdeff mem
> 0xfddfc000-0xfddfffff irq 18 at device 0.0 on pci2
> mskc0: unknown device: id=0xba, rev=0x00
> device_attach: mskc0 attach returned 6
>
> cant find what 6 stands for but it's not good..
>
Sorry, there was a check that keep 88E8057 from attaching.
I've regenerated patch.

Index: sys/dev/msk/if_msk.c
===================================================================
--- sys/dev/msk/if_msk.c (revision 198812)
+++ sys/dev/msk/if_msk.c (working copy)
@@ -223,6 +223,8 @@
     "Marvell Yukon 88E8071 Gigabit Ethernet" },
  { VENDORID_MARVELL, DEVICEID_MRVL_436C,
     "Marvell Yukon 88E8072 Gigabit Ethernet" },
+ { VENDORID_MARVELL, DEVICEID_MRVL_4380,
+    "Marvell Yukon 88E8057 Gigabit Ethernet" },
  { VENDORID_DLINK, DEVICEID_DLINK_DGE550SX,
     "D-Link 550SX Gigabit Ethernet" },
  { VENDORID_DLINK, DEVICEID_DLINK_DGE560SX,
@@ -237,7 +239,9 @@
         "Yukon EX",
         "Yukon EC",
         "Yukon FE",
-        "Yukon FE+"
+        "Yukon FE+",
+        "Yukon Supreme",
+        "Yukon Ultra 2"
 };
 
 static int mskc_probe(device_t);
@@ -1144,6 +1148,7 @@
  case CHIP_ID_YUKON_EC_U:
  case CHIP_ID_YUKON_EX:
  case CHIP_ID_YUKON_FE_P:
+ case CHIP_ID_YUKON_UL_2:
  CSR_WRITE_2(sc, B0_CTST, Y2_HW_WOL_OFF);
 
  /* Enable all clocks. */
@@ -1647,7 +1652,8 @@
  sc->msk_hw_rev = (CSR_READ_1(sc, B2_MAC_CFG) >> 4) & 0x0f;
  /* Bail out if chip is not recognized. */
  if (sc->msk_hw_id < CHIP_ID_YUKON_XL ||
-    sc->msk_hw_id > CHIP_ID_YUKON_FE_P) {
+    sc->msk_hw_id > CHIP_ID_YUKON_UL_2 ||
+    sc->msk_hw_id == CHIP_ID_YUKON_SUPR) {
  device_printf(dev, "unknown device: id=0x%02x, rev=0x%02x\n",
     sc->msk_hw_id, sc->msk_hw_rev);
  mtx_destroy(&sc->msk_mtx);
@@ -1746,6 +1752,10 @@
  sc->msk_clock = 156; /* 156 Mhz */
  sc->msk_pflags |= MSK_FLAG_JUMBO;
  break;
+ case CHIP_ID_YUKON_UL_2:
+ sc->msk_clock = 156; /* 156 Mhz */
+ sc->msk_pflags |= MSK_FLAG_JUMBO;
+ break;
  default:
  sc->msk_clock = 156; /* 156 Mhz */
  break;
Index: sys/dev/msk/if_mskreg.h
===================================================================
--- sys/dev/msk/if_mskreg.h (revision 198812)
+++ sys/dev/msk/if_mskreg.h (working copy)
@@ -144,6 +144,7 @@
 #define DEVICEID_MRVL_436A 0x436A
 #define DEVICEID_MRVL_436B 0x436B
 #define DEVICEID_MRVL_436C 0x436C
+#define DEVICEID_MRVL_4380 0x4380
 
 /*
  * D-Link gigabit ethernet device ID
@@ -891,6 +892,8 @@
 #define CHIP_ID_YUKON_EC 0xb6 /* Chip ID for YUKON-2 EC */
 #define CHIP_ID_YUKON_FE 0xb7 /* Chip ID for YUKON-2 FE */
 #define CHIP_ID_YUKON_FE_P 0xb8 /* Chip ID for YUKON-2 FE+ */
+#define CHIP_ID_YUKON_SUPR 0xb9 /* Chip ID for YUKON-2 Supreme */
+#define CHIP_ID_YUKON_UL_2 0xba /* Chip ID for YUKON-2 Ultra 2 */
 
 #define CHIP_REV_YU_XL_A0 0 /* Chip Rev. for Yukon-2 A0 */
 #define CHIP_REV_YU_XL_A1 1 /* Chip Rev. for Yukon-2 A1 */

_______________________________________________
freebsd-net@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@..."

Re: Marvell 88E8057

by Pyun YongHyeon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Nov 03, 2009 at 10:27:39AM -0800, Pyun YongHyeon wrote:

> On Tue, Nov 03, 2009 at 12:45:52AM -0500, kalin m wrote:
> >
> > hi pyun...  and all....
> >
> > after a few hours i'm sorry to report that the card is visible but not
> > usable (yet?!). here is what i have done so far:
> >
> > 1. got the files from http://svn.freebsd.org/viewvc/base/head/sys/dev/
> > 2. applied the patch that pyun provided.
> > 3. replaced if_maddr_rlock(ifp) with IF_ADDR_UNLOCK(ifp) in if_msk.c -
> > two instances.
> > 4. replaced the files in /usr/src/sys/dev for mii and msk with he new
> > ones on the freebsd 7.2 machine.
> > 5. recompiled the kernel..
> >
> > here is what i get:
> >
> > from dmesg at boot:
> >
> > mskc0: <Marvell Yukon 88E8057 Gigabit Ethernet> port 0xde00-0xdeff mem
> > 0xfddfc000-0xfddfffff irq 18 at device 0.0 on pci2
> > mskc0: unknown device: id=0xba, rev=0x00
> > device_attach: mskc0 attach returned 6
> >
> > cant find what 6 stands for but it's not good..
> >
>
> Sorry, there was a check that keep 88E8057 from attaching.
> I've regenerated patch.

FYI: Patch committed to HEAD(r199012).
_______________________________________________
freebsd-net@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@..."