<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/luka, branch master</title>
<subtitle>tree of Luka Perkov resides here</subtitle>
<id>https://git.openwrt.org/openwrt/staging/luka/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/luka/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/'/>
<updated>2020-05-28T09:43:13Z</updated>
<entry>
<title>linux: mvebu: backport mvneta XDP support fixes</title>
<updated>2020-05-28T09:43:13Z</updated>
<author>
<name>Jakov Petrina</name>
</author>
<published>2020-05-25T12:14:40Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=3dbb658d26062b34e5a540a4477e4a768628c42c'/>
<id>urn:sha1:3dbb658d26062b34e5a540a4477e4a768628c42c</id>
<content type='text'>
This patch backports additional fixes for XDP support in the mvneta driver. These
changes are found upstream as commits:

b37fa92e20ef2 net: mvneta: fix build skb for bm capable devices
f383b2950070c net: mvneta: rely on page_pool_recycle_direct in mvneta_run_xdp
79572c98c554d mvneta driver disallow XDP program on hardware buffer management
44efc78d0e464 net: mvneta: fix XDP support if sw bm is used as fallback

Signed-off-by: Jakov Petrina &lt;jakov.petrina@sartura.hr&gt;
</content>
</entry>
<entry>
<title>linux: mvebu: backport mvneta XDP support</title>
<updated>2020-05-28T09:43:13Z</updated>
<author>
<name>Jakov Petrina</name>
</author>
<published>2020-05-15T10:52:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=76f9aa6f4bfd12fba34fc44aef890c48d4fb1024'/>
<id>urn:sha1:76f9aa6f4bfd12fba34fc44aef890c48d4fb1024</id>
<content type='text'>
This patch backports XDP support in the mvneta driver used by Marvell ARMADA 37x,
38x and 37xx series SoCs. Supported actions are:

- XDP_DROP
- XDP_PASS
- XDP_REDIRECT
- XDP_TX

Patches are present upstream as following commits:

* b0a43db9087a net: mvneta: add XDP_TX support
* 9e58c8b41065 net: mvneta: make tx buffer array agnostic
* fa383f6b77a2 net: mvneta: move header prefetch in mvneta_swbm_rx_frame
* 0db51da7a8e9 net: mvneta: add basic XDP support
* 8dc9a0888f4c net: mvneta: rely on build_skb in mvneta_rx_swbm poll routine
* 568a3fa24a95 net: mvneta: introduce page pool API for sw buffer manager
* ff519e2acd46 net: mvneta: introduce mvneta_update_stats routine

Signed-off-by: Jakov Petrina &lt;jakov.petrina@sartura.hr&gt;
</content>
</entry>
<entry>
<title>packages/utils: fbtest fix Makefile</title>
<updated>2020-05-28T09:22:22Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2020-05-21T15:40:54Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=e430376b48c31077ec7364af6692385ed50dcc78'/>
<id>urn:sha1:e430376b48c31077ec7364af6692385ed50dcc78</id>
<content type='text'>
The clean target tries to remove what looks like a bogus 'rbcfg',
probably carried over copy-pasta. Remove the name of the generated
executable ('fbtest') instead.

Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
Fixes: 8099f4e0d3af ("fbtest utility ")
</content>
</entry>
<entry>
<title>package/base-files: caldata: work around dd's limitation</title>
<updated>2020-05-28T09:22:22Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2020-05-16T20:18:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=7557e7f267e845db5a403139c49f2637f9021992'/>
<id>urn:sha1:7557e7f267e845db5a403139c49f2637f9021992</id>
<content type='text'>
tl;dr: dd will silently truncate the output if reading from special
files (e.g. sysfs attributes) with a too large bs parameter.

This problem was exposed on some RouterBOARD ipq40xx devices which use a
caldata payload which is larger than PAGE_SIZE, contrary to all other
currently supported RouterBOARD devices: the caldata would fail to
properly load with the current scripts.

Background: dd doesn't seem to correctly handle read() results that
return less than requested data. sysfs attributes have a kernel exchange
buffer which is at most PAGE_SIZE big, so only 1 page can be read() at a
time. In this case, if bs is larger than PAGE_SIZE, dd will silently
truncate blocks to PAGE_SIZE. With the current scripts using bs=&lt;size&gt;
count=1, the data is truncated to PAGE_SIZE as soon as the requested
&lt;size&gt; exceeds this value.

This commit works around this problem by using `cat` in the caldata
routines that can read from a file (routines that read from mtd devices
are untouched). cat correctly handles partial read requests. The output
is then piped to dd with the same parameters as before, to ensure that
the resulting file remains exactly the same.

This is a simple workaround, the downside is that it uses a pipe and one
more executable, and therefore has a larger memory footprint and is
slower. This is deemed acceptable considering these routines are only
used at boot time.

Tested-by: Robert Marko &lt;robimarko@gmail.com&gt;
Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
</content>
</entry>
<entry>
<title>packages/boot: remove rbcfg</title>
<updated>2020-05-28T09:09:10Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2020-05-21T15:20:55Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=f10da7cb4d44dde346bef73ff4500d91c5730767'/>
<id>urn:sha1:f10da7cb4d44dde346bef73ff4500d91c5730767</id>
<content type='text'>
The new sysfs soft_config driver makes buggy rbcfg obsolete and
entirely replaces it.

Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
</content>
</entry>
<entry>
<title>generic: routerboot sysfs: soft_config support for ath79 cpufreq</title>
<updated>2020-05-28T09:09:10Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2020-05-15T16:02:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=48b14b9cbe521580e9d3f75a5ee1eabdd0440de8'/>
<id>urn:sha1:48b14b9cbe521580e9d3f75a5ee1eabdd0440de8</id>
<content type='text'>
This commit introduces support for R/W access to the CPU frequency
setting of routerboot on ath79 hardware.

On unsupported hardware, the sysfs attribute will expose the raw tag
value (read-only) to help with reverse engineering its meaning.

Tested-by: Koen Vandeputte &lt;koen.vandeputte@ncentric.com&gt;
Tested-by: Roger Pueyo Centelles &lt;roger.pueyo@guifi.net&gt;
Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
</content>
</entry>
<entry>
<title>generic: routerboot sysfs: move tag_show_u32()</title>
<updated>2020-05-28T09:09:10Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2020-05-15T16:00:08Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=89226b86665b135fbf4c9eefecccde0c0d0e9f05'/>
<id>urn:sha1:89226b86665b135fbf4c9eefecccde0c0d0e9f05</id>
<content type='text'>
This routine will be shared between hard and soft config drivers.

Tested-by: Koen Vandeputte &lt;koen.vandeputte@ncentric.com&gt;
Tested-by: Roger Pueyo Centelles &lt;roger.pueyo@guifi.net&gt;
Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
</content>
</entry>
<entry>
<title>generic: routerboot sysfs: add support for soft_config</title>
<updated>2020-05-28T09:09:10Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2020-05-13T20:12:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=f36e710e2d6da4c4a15a2af94204236d8fcae988'/>
<id>urn:sha1:f36e710e2d6da4c4a15a2af94204236d8fcae988</id>
<content type='text'>
This driver exposes the data encoded in the "soft_config" flash segment
of MikroTik RouterBOARDs devices. It presents the data in a sysfs folder
named "soft_config" through a set of human-and-machine-parseable
attributes. Changes can be discarded by writing 0 to the 'commit'
attribute, or they can be committed to flash storage by writing 1.

This driver does not reuse any of the existing code previously found in
the "rbcfg" utility and makes this utility obsolete by providing a clean
sysfs interface.

Like "rbcfg", this driver requires 4K_SECTORS support since the flash
partition in which these parameters are stored is typically 4KB in size.

Tested-by: Koen Vandeputte &lt;koen.vandeputte@ncentric.com&gt;
Tested-by: Roger Pueyo Centelles &lt;roger.pueyo@guifi.net&gt;
Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
</content>
</entry>
<entry>
<title>generic: routerboot sysfs: move tag_show_string()</title>
<updated>2020-05-28T09:09:10Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2020-05-13T16:43:30Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=dac18f66fb18ebadf6f050d9c5c055a82855e8f6'/>
<id>urn:sha1:dac18f66fb18ebadf6f050d9c5c055a82855e8f6</id>
<content type='text'>
This routine will be shared between hard and soft config drivers.
Also use scnprintf() instead of snprintf().

Tested-by: Koen Vandeputte &lt;koen.vandeputte@ncentric.com&gt;
Tested-by: Roger Pueyo Centelles &lt;roger.pueyo@guifi.net&gt;
Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
</content>
</entry>
<entry>
<title>generic: platform/mikrotik: rb_hardconfig.c minor fixes</title>
<updated>2020-05-28T09:09:10Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2020-05-13T16:42:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=39ec3c5986e5109c3f1dd63b27d884606453191b'/>
<id>urn:sha1:39ec3c5986e5109c3f1dd63b27d884606453191b</id>
<content type='text'>
For the sake of strictly typed code, add a missing const qualifier.
Add a missing return value in error path.
Check the return value of mtd_read(), for good measure.
Also demote the error printks of failed sysfs file creation to warn
level since they are not fatal in the init() sequence.
Finally, add a note regarding PAGE_SIZE and clarify a comment.

Tested-by: Koen Vandeputte &lt;koen.vandeputte@ncentric.com&gt;
Tested-by: Roger Pueyo Centelles &lt;roger.pueyo@guifi.net&gt;
Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
</content>
</entry>
</feed>
