Re: [OpenWrt-Devel] [PATCH] ramips: ethernet: turn off flow control

2020-01-31 Thread Felix Fietkau
On 2020-01-29 17:22, Petr Štetiar wrote: > Rosen Penev [2020-01-25 15:04:03]: > > Hi Bjørn and Rosen, > >> On Thu, Jan 23, 2020 at 12:25 AM Bjørn Mork wrote: >> > > >> > > - if ((rt_sysc_r32(SYSC_REG_CHIP_REV_ID) & 0x) == 0x0101) { >> > > - /* (GE1, Force 1000M/FD, FC ON, MA

Re: [OpenWrt-Devel] [PATCH] ramips: ethernet: turn off flow control

2020-01-31 Thread Petr Štetiar
Bjørn Mork [2020-01-30 10:54:17]: > Are you sure the revision says anything about which SoC this is? Nope :-) It's based only on source code observation. -- ynezz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.

Re: [OpenWrt-Devel] [PATCH] ramips: ethernet: turn off flow control

2020-01-31 Thread Petr Štetiar
Rosen Penev [2020-01-29 20:39:57]: Hi, > On kernel.org, the ralink_soc variable is only used in arch/mips , > mainly under the ralink subdirectory. correct, but your proposed patch can't be accepted as it is. You need to handle only 0x0101 and 0x0103 cases, thus putting content of the register

Re: [OpenWrt-Devel] [PATCH] ramips: ethernet: turn off flow control

2020-01-30 Thread Bjørn Mork
Rosen Penev writes: > On Wed, Jan 29, 2020 at 3:14 PM Rosen Penev wrote: >> > On Jan 29, 2020, at 8:22 AM, Petr Štetiar wrote: >> > >> > I just quickly skimmed through the code and it seems like we've that >> > information already in dmesg: >> > >> > SoC Type: MediaTek MT7688 ver:1 eco:2= 0x

Re: [OpenWrt-Devel] [PATCH] ramips: ethernet: turn off flow control

2020-01-29 Thread Rosen Penev
On Wed, Jan 29, 2020 at 3:14 PM Rosen Penev wrote: > > > > Sent from my iPhone > > > On Jan 29, 2020, at 8:22 AM, Petr Štetiar wrote: > > > > Rosen Penev [2020-01-25 15:04:03]: > > > > Hi Bjørn and Rosen, > > > >>> On Thu, Jan 23, 2020 at 12:25 AM Bjørn Mork wrote: > > > > - if ((r

Re: [OpenWrt-Devel] [PATCH] ramips: ethernet: turn off flow control

2020-01-29 Thread Rosen Penev
Sent from my iPhone > On Jan 29, 2020, at 8:22 AM, Petr Štetiar wrote: > > Rosen Penev [2020-01-25 15:04:03]: > > Hi Bjørn and Rosen, > >>> On Thu, Jan 23, 2020 at 12:25 AM Bjørn Mork wrote: > > - if ((rt_sysc_r32(SYSC_REG_CHIP_REV_ID) & 0x) == 0x0101) { > -

Re: [OpenWrt-Devel] [PATCH] ramips: ethernet: turn off flow control

2020-01-29 Thread Petr Štetiar
Rosen Penev [2020-01-25 15:04:03]: Hi Bjørn and Rosen, > On Thu, Jan 23, 2020 at 12:25 AM Bjørn Mork wrote: > > > > > > - if ((rt_sysc_r32(SYSC_REG_CHIP_REV_ID) & 0x) == 0x0101) { > > > - /* (GE1, Force 1000M/FD, FC ON, MAX_RX_LENGTH 1536) */ > > > + if ((rt_sysc_r32(SYS

Re: [OpenWrt-Devel] [PATCH] ramips: ethernet: turn off flow control

2020-01-25 Thread Rosen Penev
On Thu, Jan 23, 2020 at 12:25 AM Bjørn Mork wrote: > > Rosen Penev writes: > > > Several users have been reporting crashing issues with the ethernet > > driver. > > > > One source says that this is a silicon bug in mt7621: > > https://github.com/openwrt/mt76/issues/211#issuecomment-569687506 > >

Re: [OpenWrt-Devel] [PATCH] ramips: ethernet: turn off flow control

2020-01-23 Thread Bjørn Mork
Rosen Penev writes: > Several users have been reporting crashing issues with the ethernet > driver. > > One source says that this is a silicon bug in mt7621: > https://github.com/openwrt/mt76/issues/211#issuecomment-569687506 > > A user that has been testing this has seen greater than 2-3 days up

[OpenWrt-Devel] [PATCH] ramips: ethernet: turn off flow control

2020-01-22 Thread Rosen Penev
Several users have been reporting crashing issues with the ethernet driver. One source says that this is a silicon bug in mt7621: https://github.com/openwrt/mt76/issues/211#issuecomment-569687506 A user that has been testing this has seen greater than 2-3 days uptime of the ethernet interface wit