openwrtv4/target/linux/arc770
Alexey Brodkin 66f3edfd8b linux/arc*: disable MAC frame filter in DW GMAC
DW GMAC on ARC SDP boards doesn't enter promiscuous mode if
Ethernet PHY haven't got established link. Good examples are
auto-negotiation in progress or disconnected cable.

We do see Linux kernel sets GMAC's MAC filter register
properly but GMAC's hardware doesn't accept new settings.

We believe it is a hardware issue, most probably problem of
integration of DW GMAC and PHY on the board.

As a work-around we completely disable frame filtering
in GMAC hardware (once and for good) which forces GMAC to enter
promiscuous mode with the first write to MAC filter register.
That gives us working bridge that consists of eth0 and wlan0
(USB Wi-Fi dongle). I.e. we finally have working "Dumb AP" setup made
of ARC AXS10x boards.

Given that hack is quite dirty (in loaded wired networks this will
effectively load CPU with junk packets even if user doesn't need promisc
mode) and there's no indication any other boards with DW GMAC suffer
from the same issue we're patching only kernel for ARC boards.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: John Crispin <john@phrozen.org>,
Cc: Felix Fietkau <nbd@nbd.name>
2016-08-24 15:16:01 +02:00
..
base-files all: drop old uci-defaults.sh 2015-12-11 15:26:06 +00:00
generic arc770: build kmod-ath9k-htc wpad-mini by default 2016-04-09 10:25:13 +00:00
image arc: use patched .dts from sources 2016-08-16 12:18:28 +02:00
patches-4.4 linux/arc*: disable MAC frame filter in DW GMAC 2016-08-24 15:16:01 +02:00
config-4.4 Revert "linux: arc: disable kernel unwinding to fix modules loading" 2016-07-11 14:19:47 +02:00
Makefile arc: clean-up and move CFLAGS to include/target.mk 2016-01-18 17:52:03 +00:00