<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/target/linux/layerscape/armv8_32b, branch master</title>
<subtitle>MTK 20170518 : Mediatek SDK based on OpenWRT Barrier Breaker</subtitle>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/'/>
<entry>
<title>kernel: only optimized for size if small_flash</title>
<updated>2018-07-12T16:15:32+00:00</updated>
<author>
<name>Mathias Kresin</name>
<email>dev@kresin.me</email>
</author>
<published>2018-07-09T18:48:56+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=cf7154db07c0b8746be290c9e11dcab3c91d237e'/>
<id>cf7154db07c0b8746be290c9e11dcab3c91d237e</id>
<content type='text'>
Add a new config option to allow to select the default compile
optimization level for the kernel.

Select the optimization for size by default if the small_flash feature is
set. Otherwise "Optimize for performance" is set.

Add the small_flash feature flag to all (sub)targets which had the
optimization for size in their default kernel config.

Remove CC_OPTIMIZE_FOR_* symbols from all kernel configs to apply the new
setting.

Exceptions to the above are:

  - lantiq, where the optimization for size is only required for the
    xway_legacy subtarget but was set for the whole target
  - mediatek, ramips/mt7620 &amp; ramips/mt76x8 where boards should have
    plenty of space and an optimization for size doesn't make much sense
  - rb532, which has 128MByte flash

Signed-off-by: Mathias Kresin &lt;dev@kresin.me&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a new config option to allow to select the default compile
optimization level for the kernel.

Select the optimization for size by default if the small_flash feature is
set. Otherwise "Optimize for performance" is set.

Add the small_flash feature flag to all (sub)targets which had the
optimization for size in their default kernel config.

Remove CC_OPTIMIZE_FOR_* symbols from all kernel configs to apply the new
setting.

Exceptions to the above are:

  - lantiq, where the optimization for size is only required for the
    xway_legacy subtarget but was set for the whole target
  - mediatek, ramips/mt7620 &amp; ramips/mt76x8 where boards should have
    plenty of space and an optimization for size doesn't make much sense
  - rb532, which has 128MByte flash

Signed-off-by: Mathias Kresin &lt;dev@kresin.me&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>kernel: remove DEVMEM and DEVKMEM from target's config</title>
<updated>2018-07-07T16:19:39+00:00</updated>
<author>
<name>Luis Araneda</name>
<email>luaraneda@gmail.com</email>
</author>
<published>2018-07-03T02:54:11+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=8f60c3d57149a2bb04fde9798edc45d659ed7c17'/>
<id>8f60c3d57149a2bb04fde9798edc45d659ed7c17</id>
<content type='text'>
These options are handled by generic configuration

Targets that need these options should select KERNEL_DEVMEM
and/or KERNEL_DEVKMEM options on OpenWRT's config

Signed-off-by: Luis Araneda &lt;luaraneda@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These options are handled by generic configuration

Targets that need these options should select KERNEL_DEVMEM
and/or KERNEL_DEVKMEM options on OpenWRT's config

Signed-off-by: Luis Araneda &lt;luaraneda@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>layerscape: remove USB and TI specific configs for 32-bit</title>
<updated>2018-02-13T09:01:50+00:00</updated>
<author>
<name>Yangbo Lu</name>
<email>yangbo.lu@nxp.com</email>
</author>
<published>2018-01-18T06:02:58+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=6e9a5f4db4a6e08df366f683c369593fdf7c1da4'/>
<id>6e9a5f4db4a6e08df366f683c369593fdf7c1da4</id>
<content type='text'>
This patch is to remove USB configs for 32-bit device since
they're already in kmod package. Also removed TI platform
specific configs.

Signed-off-by: Yangbo Lu &lt;yangbo.lu@nxp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch is to remove USB configs for 32-bit device since
they're already in kmod package. Also removed TI platform
specific configs.

Signed-off-by: Yangbo Lu &lt;yangbo.lu@nxp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>target: disable CONFIG_PROC_PAGE_MONITOR on most targets</title>
<updated>2018-01-13T14:04:15+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jo@mein.io</email>
</author>
<published>2018-01-13T13:46:11+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=7e99a6ba690f27b36e99144178c71f0687b07ad9'/>
<id>7e99a6ba690f27b36e99144178c71f0687b07ad9</id>
<content type='text'>
Disable CONFIG_PROC_PAGE_MONITOR in most places and only keep it enabled
for virtual targets such as malta or potent ones like x86.

This saves up to 4KB of uncompressed kernel size and significantly
decreases CPU load under certain workloads.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Disable CONFIG_PROC_PAGE_MONITOR in most places and only keep it enabled
for virtual targets such as malta or potent ones like x86.

This saves up to 4KB of uncompressed kernel size and significantly
decreases CPU load under certain workloads.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>layerscape: enable CONFIG_CRYPTO_ARC4 in kernel 4.9</title>
<updated>2017-11-14T11:55:20+00:00</updated>
<author>
<name>Yangbo Lu</name>
<email>yangbo.lu@nxp.com</email>
</author>
<published>2017-11-14T11:17:17+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=769e1bac7b2d41428b25e79b429c2d6a577dc5e3'/>
<id>769e1bac7b2d41428b25e79b429c2d6a577dc5e3</id>
<content type='text'>
This patch is to enable CONFIG_CRYPTO_ARC4 in kernel 4.9
which is a dependency for mac80211 package.

Signed-off-by: Yangbo Lu &lt;yangbo.lu@nxp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch is to enable CONFIG_CRYPTO_ARC4 in kernel 4.9
which is a dependency for mac80211 package.

Signed-off-by: Yangbo Lu &lt;yangbo.lu@nxp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>layerscape: fix ls1046ardb 32-bit call trace</title>
<updated>2017-11-10T22:00:49+00:00</updated>
<author>
<name>Yangbo Lu</name>
<email>yangbo.lu@nxp.com</email>
</author>
<published>2017-10-20T09:40:35+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=669c02d46d765c16104135859f2edb21fbafb605'/>
<id>669c02d46d765c16104135859f2edb21fbafb605</id>
<content type='text'>
Enabled CONFIG_ARCH_DMA_ADDR_T_64BIT in kernel to
resolve below call trace when ls1046ardb 32-bit
started up kernel.

[    0.142141] Bman ver:0a02,02,01
[    0.145326] ------------[ cut here ]------------
[    0.149969] WARNING: CPU: 0 PID: 1 at arch/arm/mm/ioremap.c:303 __arm_ioremap_pfn_caller+0x1ac/0x1d8
[    0.159152] Modules linked in:
[    0.162216] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.51-g9c76e024 #2
[    0.169036] Hardware name: Generic DT based system
[    0.173853] [&lt;c02236a4&gt;] (unwind_backtrace) from [&lt;c021ed94&gt;] (show_stack+0x10/0x14)
[    0.181638] [&lt;c021ed94&gt;] (show_stack) from [&lt;c04d2d38&gt;] (dump_stack+0x98/0xac)
[    0.188899] [&lt;c04d2d38&gt;] (dump_stack) from [&lt;c0245bcc&gt;] (__warn+0xe4/0x100)
[    0.195896] [&lt;c0245bcc&gt;] (__warn) from [&lt;c0245c98&gt;] (warn_slowpath_null+0x20/0x28)
[    0.203504] [&lt;c0245c98&gt;] (warn_slowpath_null) from [&lt;c0229e24&gt;] (__arm_ioremap_pfn_caller+0x1ac/0x1d8)
[    0.212861] [&lt;c0229e24&gt;] (__arm_ioremap_pfn_caller) from [&lt;c0229f0c&gt;] (ioremap_cache+0x20/0x28)
[    0.221608] [&lt;c0229f0c&gt;] (ioremap_cache) from [&lt;c105e390&gt;] (parse_mem_property.part.3+0x18/0x50)
[    0.230441] [&lt;c105e390&gt;] (parse_mem_property.part.3) from [&lt;c105e6dc&gt;] (qman_init_early+0x314/0x334)
[    0.239623] [&lt;c105e6dc&gt;] (qman_init_early) from [&lt;c0201a24&gt;] (do_one_initcall+0xb4/0x168)
[    0.247844] [&lt;c0201a24&gt;] (do_one_initcall) from [&lt;c1000e84&gt;] (kernel_init_freeable+0x1d8/0x280)
[    0.256590] [&lt;c1000e84&gt;] (kernel_init_freeable) from [&lt;c0adbcfc&gt;] (kernel_init+0x8/0x114)
[    0.264812] [&lt;c0adbcfc&gt;] (kernel_init) from [&lt;c021bb28&gt;] (ret_from_fork+0x14/0x2c)
[    0.272423] ---[ end trace 39aaeef329e2a0a2 ]---
[    0.277058] qman-fqd addr 0xfb000000 size 0x800000

Signed-off-by: Yangbo Lu &lt;yangbo.lu@nxp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Enabled CONFIG_ARCH_DMA_ADDR_T_64BIT in kernel to
resolve below call trace when ls1046ardb 32-bit
started up kernel.

[    0.142141] Bman ver:0a02,02,01
[    0.145326] ------------[ cut here ]------------
[    0.149969] WARNING: CPU: 0 PID: 1 at arch/arm/mm/ioremap.c:303 __arm_ioremap_pfn_caller+0x1ac/0x1d8
[    0.159152] Modules linked in:
[    0.162216] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.51-g9c76e024 #2
[    0.169036] Hardware name: Generic DT based system
[    0.173853] [&lt;c02236a4&gt;] (unwind_backtrace) from [&lt;c021ed94&gt;] (show_stack+0x10/0x14)
[    0.181638] [&lt;c021ed94&gt;] (show_stack) from [&lt;c04d2d38&gt;] (dump_stack+0x98/0xac)
[    0.188899] [&lt;c04d2d38&gt;] (dump_stack) from [&lt;c0245bcc&gt;] (__warn+0xe4/0x100)
[    0.195896] [&lt;c0245bcc&gt;] (__warn) from [&lt;c0245c98&gt;] (warn_slowpath_null+0x20/0x28)
[    0.203504] [&lt;c0245c98&gt;] (warn_slowpath_null) from [&lt;c0229e24&gt;] (__arm_ioremap_pfn_caller+0x1ac/0x1d8)
[    0.212861] [&lt;c0229e24&gt;] (__arm_ioremap_pfn_caller) from [&lt;c0229f0c&gt;] (ioremap_cache+0x20/0x28)
[    0.221608] [&lt;c0229f0c&gt;] (ioremap_cache) from [&lt;c105e390&gt;] (parse_mem_property.part.3+0x18/0x50)
[    0.230441] [&lt;c105e390&gt;] (parse_mem_property.part.3) from [&lt;c105e6dc&gt;] (qman_init_early+0x314/0x334)
[    0.239623] [&lt;c105e6dc&gt;] (qman_init_early) from [&lt;c0201a24&gt;] (do_one_initcall+0xb4/0x168)
[    0.247844] [&lt;c0201a24&gt;] (do_one_initcall) from [&lt;c1000e84&gt;] (kernel_init_freeable+0x1d8/0x280)
[    0.256590] [&lt;c1000e84&gt;] (kernel_init_freeable) from [&lt;c0adbcfc&gt;] (kernel_init+0x8/0x114)
[    0.264812] [&lt;c0adbcfc&gt;] (kernel_init) from [&lt;c021bb28&gt;] (ret_from_fork+0x14/0x2c)
[    0.272423] ---[ end trace 39aaeef329e2a0a2 ]---
[    0.277058] qman-fqd addr 0xfb000000 size 0x800000

Signed-off-by: Yangbo Lu &lt;yangbo.lu@nxp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>layerscape: update config-4.9</title>
<updated>2017-11-10T22:00:49+00:00</updated>
<author>
<name>Yangbo Lu</name>
<email>yangbo.lu@nxp.com</email>
</author>
<published>2017-11-01T09:52:10+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=110c9e9034736d0302359de1eadd8b363dead4a7'/>
<id>110c9e9034736d0302359de1eadd8b363dead4a7</id>
<content type='text'>
Some new options were introduced by kernel patches.
And some options should be removed/added.
The config-4.9 should be updated accordingly.

Signed-off-by: Yangbo Lu &lt;yangbo.lu@nxp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some new options were introduced by kernel patches.
And some options should be removed/added.
The config-4.9 should be updated accordingly.

Signed-off-by: Yangbo Lu &lt;yangbo.lu@nxp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>layerscape: remove default profile</title>
<updated>2017-11-10T22:00:47+00:00</updated>
<author>
<name>Yangbo Lu</name>
<email>yangbo.lu@nxp.com</email>
</author>
<published>2017-10-26T05:55:11+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=e47c93bb19d8cbf195cf3a51c149454eec15391a'/>
<id>e47c93bb19d8cbf195cf3a51c149454eec15391a</id>
<content type='text'>
Default profile had to enable many packages for all devices
support. This made these packages still enabled when built
for single device. This patch is to remove default profile.
For multiple devices build, it's proper to build with multiple
devices profile.

Signed-off-by: Yangbo Lu &lt;yangbo.lu@nxp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Default profile had to enable many packages for all devices
support. This made these packages still enabled when built
for single device. This patch is to remove default profile.
For multiple devices build, it's proper to build with multiple
devices profile.

Signed-off-by: Yangbo Lu &lt;yangbo.lu@nxp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>kernel: add support for limiting 4K erase sector support based on flash chip size</title>
<updated>2017-11-06T15:38:25+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@nbd.name</email>
</author>
<published>2017-11-03T08:53:54+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=c08293893aadca182b52ef96d3c2b1700282f0f2'/>
<id>c08293893aadca182b52ef96d3c2b1700282f0f2</id>
<content type='text'>
Some targets need 4K sectors for small flash chips (e.g. some
routerboards, where the entire chip is just one "erase block"), whereas
on other devices 4K sectors lead to horrible flash erase/write
performance.

Set the default limit in the generic kernel configuration to 4 MiB to
ensure that all new platforms don't use 4K sectors for bigger flash
chips. On all existing targets use 16 MiB for now to avoid regressions.
They will be changed individually in follow-up commits.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some targets need 4K sectors for small flash chips (e.g. some
routerboards, where the entire chip is just one "erase block"), whereas
on other devices 4K sectors lead to horrible flash erase/write
performance.

Set the default limit in the generic kernel configuration to 4 MiB to
ensure that all new platforms don't use 4K sectors for bigger flash
chips. On all existing targets use 16 MiB for now to avoid regressions.
They will be changed individually in follow-up commits.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>layerscape: Remove netfilter and LZ4 config symbols</title>
<updated>2017-10-29T15:15:42+00:00</updated>
<author>
<name>Mathew McBride</name>
<email>matt@traverse.com.au</email>
</author>
<published>2017-10-13T04:23:07+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=6a457749a46eaed82fef66d65bd6125eebf93aa0'/>
<id>6a457749a46eaed82fef66d65bd6125eebf93aa0</id>
<content type='text'>
These conflict with the kmod packages (such as nf-netlink)

Signed-off-by: Mathew McBride &lt;matt@traverse.com.au&gt;
[Add same changes for arm8_32b subtarget and refresh config]
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These conflict with the kmod packages (such as nf-netlink)

Signed-off-by: Mathew McBride &lt;matt@traverse.com.au&gt;
[Add same changes for arm8_32b subtarget and refresh config]
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
