25359 Commits

Author SHA1 Message Date
developer
cec6012a69 [Description]
Fix Intel X550 IOT issue.

Due to X550 doesn't advertise 2.5G/5G link capability, phlylink
cannot resolve link speed/duplex in the phy_resolve_aneg_linkmode().
Therefore, we handle the link speed from vendor registers.

If without this patch, phylink will show unknown speed messages
when link with NBASE-T link partner.

[Release-log]
N/A

Change-Id: Iaef49fe8ea6ef7c6dc022e50456903b7feb4eef6
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6852800
2022-12-03 01:34:47 +08:00
developer
257cc4bff6 [Description]
Fix Coverity scan warning.
    - Fix uninitialized variables in mtk_gmac_xgmii_path_setup().
    - Fix uninitialized variables in mt7621_gmac0_rgmii_adjust().
    - Fix uninitialized variables in mtk_mac_config().
    - Fix uninitialized variables in mtk_sgmii_setup_phya_gen1().
    - Fix uninitialized variables in mtk_sgmii_setup_mode_force().
    - Fix uninitialized variables in mtk_sgmii_restart_an().
    - Fix error handling for wait_for_completion_timeout().

[Release-log]
N/A

Change-Id: I86f36fa33efffb93dadbdedef51d44efb04fdb9a
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6858102
2022-12-03 01:34:34 +08:00
hanwckf
6a9d682cc2
mediatek: 360t7: fix wps button state 2022-11-30 13:04:02 +08:00
hanwckf
1cc396e96b medtatek: add support for redmi ax6000
See: ff558034ea
2022-11-29 23:40:20 +08:00
hanwckf
b5cf184301 mediatek: mt7981: update kernel config 2022-11-28 20:07:01 +08:00
hanwckf
140b2ba37f mediatek: mt7981: update kernel config 2022-11-26 00:03:42 +08:00
Tianling Shen
1146cdb0ee
mediatek: 360-t7: use the LED for showing system status (#7)
* autocore: fix install unneeded ethinfo page

Fixes: db262a5db7 (autocore: improve support for the mediatek
 target (#6)"")

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* mediatek: 360-t7: use the LED for showing system status

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-11-25 23:29:27 +08:00
developer
50ca63a5b9 [Description]
Fix panic issue for mtk_pending_work.

If without this patch, mtk_pending_work might cause kernel panic
in the one gmac system.

[Release-log]
N/A

Change-Id: I9d2940645d738bac8888a7410c5ad5586a08c115
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6814894
2022-11-24 19:35:11 +08:00
hanwckf
2468a531a6 kernel: add bcm fullconenat 2022-11-19 13:01:47 +08:00
hanwckf
6b61cd98df Merge branch 'openwrt-21.02' of https://github.com/immortalwrt/immortalwrt into openwrt-21.02 2022-11-19 12:59:41 +08:00
hanwckf
1f2c63f181 mediatek: disable br-nf to avoid high cpu usage 2022-11-18 18:32:54 +08:00
hanwckf
a8880da6ce Revert "mediatek: add mtk_eth_soc patches from upstream"
This reverts commit 9092e74f365b464f29af00203c6925063562a860.
2022-11-18 00:37:45 +08:00
Shiji Yang
d6e0100470
ramips: improve compatibility for Youku YK-L2 and YK-L1 series
Add UIMAGE_NAME and UIMAGE_MAGIC to allow users to directly install
initramfs-kernel.bin from the stock firmware Web UI. At the same time,
this change makes it possible to boot OpenWrt with the official u-boot.

Notice:
Since the stock firmware is based on OpenWrt and the configuration
will be retained by default during the upgrade process, so we must use
initramfs-kernel.bin to do a initial installation. After the system
restarts, install sysupgrade.bin and do not retain any configuration.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
(cherry picked from commit eba0a8deb65de70b0d913f9ec8910640a79d0191)
2022-11-17 18:08:43 +08:00
Michael Lyle
cc9a238b4b
ramips: gl-mt1300: downclock SPI to 50MHz
The SPI max frequency was set to 80MHz, considerably higher than the
vendor clocks it in their firmware (10MHz).  Multiple users reported
jffs2 corruption/instability in GitHub issue #10461.

My unit has a W25Q256; datasheet specifies maximum SPI frequency for
read command of 50MHz.

Thanks to @DragonBlueP for suggesting to eliminate m25p,fast-read;
and @MPannen1979 for identifying the problem.

Fixes: #10461
Signed-off-by: Michael Lyle <mlyle@lyle.org>
(cherry picked from commit 961e01fc67e7d9e60557df3474fa326216aa4839)
2022-11-17 18:06:54 +08:00
hanwckf
bbb2177f79 mediatek: Set ppe entry num to 32k 2022-11-17 00:15:09 +08:00
hanwckf
9092e74f36 mediatek: add mtk_eth_soc patches from upstream 2022-11-16 22:08:50 +08:00
hanwckf
1d733e5fc0 mediatek: mt798x: add pstore support 2022-11-16 22:08:50 +08:00
developer
4cc988f062 [Description]
Add static binding support to debugfs.

[Release-log]
N/A

Change-Id: I05e9b014cf878139426aedf67521e907b163044b
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6629918
2022-11-16 22:08:50 +08:00
hanwckf
1b3852abd4 mt7981: config-5.4: add EIP97 drivers 2022-11-16 22:08:49 +08:00
hanwckf
3015b9b636 kernel: move mtd patches from mediatek target to generic 2022-11-16 22:08:49 +08:00
hanwckf
ac468843b4 mediatek: mt753x: fix P5 P6 phy_mode 2022-11-16 22:08:49 +08:00
hanwckf
9e16c8d8bc uboot-envtools: add support for 360T7
mediatek: add uboot-envtools to default packages
2022-11-16 22:08:49 +08:00
hanwckf
b47a1bc350 mediatek: add support for 360 T7
mt7981-360-t7: 36M ubi partition (stock uboot)

mt7981-360-t7-108M: 108M large ubi partition
2022-11-16 22:08:49 +08:00
hanwckf
ede9e0dd69 mediatek: add smp.sh 2022-11-16 22:08:49 +08:00
hanwckf
f54003f7c6 package: mtk: add applications and drivers 2022-11-16 22:08:49 +08:00
hanwckf
52742eaedb mediatek: add support for mt7981 mt7986 2022-11-16 22:08:49 +08:00
hanwckf
309e64b088 mediatek: remove unneeded patches 2022-11-16 22:08:49 +08:00
hanwckf
d56beafc56 mediatek: add kernel patches 2022-11-16 22:08:49 +08:00
hanwckf
97a8f2f1f0 mediatek: add kernel files 2022-11-16 22:08:49 +08:00
hanwckf
86db85cd44 kernel: update config 2022-11-16 22:08:49 +08:00
hanwckf
abf24a9990 kernel: add mtk patches 2022-11-16 22:08:49 +08:00
hanwckf
2ccbb9f779 kernel: remove unneeded patches 2022-11-16 22:08:49 +08:00
hanwckf
aa49faa97d kernel: add mtk nmbm 2022-11-16 22:08:49 +08:00
Tianling Shen
6c1ebe4474
kernel: refresh patches
Fixes: ee211e2fcd ("Merge Official Source")

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-11-13 15:05:11 +08:00
Tianling Shen
ee211e2fcd
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-11-13 13:52:38 +08:00
Hauke Mehrtens
079ce0413a kernel: bump 5.4 to 5.4.224
Manually adapted:
 generic/pending-5.4/680-NET-skip-GRO-for-foreign-MAC-addresses.patch
 lantiq/patches-5.4/0028-NET-lantiq-various-etop-fixes.patch

Compile-tested: x86/64
Run-tested: x86/64

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-11-13 01:06:12 +01:00
Tianling Shen
68f5354178
x86: remove duplicate dependencies
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-11-07 17:34:33 +08:00
Tianling Shen
6e6c82c947
x86: include tg3 driver by default
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-11-07 17:33:16 +08:00
Chen Minqiang
4a3a4e1b02
ipq40xx: essedma Time-balanced scheduling
add script to adjust cpu affinity
essedma Time-balanced scheduling:
TX:
CPU:  |3          | |2          | |1          | |0          |
TX-Q: |15-14-13-12| |11-10-09-08| |07-06-05-04| |03-02-01-00|
          ___________|             |             |
          |  ______________________|             |
          |  |  _________________________________|
          |  |  |
TX-P: |15-11-07-03| |14-10-06-02| |13-09-05-01| |12-08-04-00|
TX-S: |---+--+--+-| |+-----+--+-| |+--+-----+-| |+--+--+----|
       |                |                |                |
RX:    |                |                |                |
CPU:  |3          | |   2       | |      1    | |         0 |
RX-Q: |07-06      | |05-04      | |03-02      | |01-00      |

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-11-07 17:21:44 +08:00
Tianling Shen
5dd4ee6770
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-11-05 16:56:57 +08:00
Rafał Miłecki
1d12cfdce2 bcm4908: backport upstream BQL support for bcm4908_enet
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit ae57770c956888337249688b9a16c25dd4fd63fb)
(cherry picked from commit 6198eb3e6448e9a43a32d3f46b7d0543424f455b)
2022-11-03 09:40:06 +01:00
Rafał Miłecki
973c18fb8c bcm4908: backport bcm4908_enet fix for NULL dereference
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 31e4e566545e53594bafe846c170a5d2fa6821e3)
2022-11-03 09:26:20 +01:00
Rafał Miłecki
da4e3881ea bcm4908: optimize Ethernet driver by using build_skb()
This should slightly improve performance thanks to the better cache
usage.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 6a02205a4d94a7b6a888ec55d1aecd60ebb20d77)
2022-11-03 09:12:09 +01:00
Rafał Miłecki
ab26cddca2 kernel: mtd: backport SafeLoader parser
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 711f1a8bcbdde1ee9e2934d707fb1765fc644268)
2022-11-02 08:31:52 +01:00
Tianling Shen
12b323b700
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-10-31 12:45:51 +08:00
Rafał Miłecki
3e8a713bc4 kernel: mtd: backport extended dynamic partitions support
This gets rid of "nvmem-cells" limitation. Dynamic partitions can be
defined for any (sub)partitions layout.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 4eda414b09c790344e47c1cebe78e5433b4dc10d)
2022-10-27 09:22:03 +02:00
Tianling Shen
f6c4028e51
Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-10-25 17:51:12 +08:00
Robert Senderek
09a649ff4b ramips: rt3883: enable lzma-loader for Belkin F9K1109v1
Fixes boot loader LZMA decompression issues

Fixes: #10968
Signed-off-by: Robert Senderek <robert.senderek@10g.pl>
(cherry picked from commit ac296f621058119501ccd54e7cb2a243af5dc5a0)
2022-10-23 22:48:04 +02:00
Rafał Miłecki
9cec59ca38 kernel: mtd: fix unbalanced of_node_put() in dynamic partitions code
Fixes: edf3363959d3c ("kernel: backport mtd dynamic partition patch")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 76a470d5df971bd4c7309480a585d7fbaef63621)
2022-10-21 11:46:05 +02:00
Tianling Shen
1d83009dc6
mvebu: use schedutil gov by default
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-10-21 16:45:40 +08:00