<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/jow/package/kernel, branch main</title>
<subtitle>Staging tree of Jo-Philipp Wich</subtitle>
<id>https://git.openwrt.org/openwrt/staging/jow/atom?h=main</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/jow/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/'/>
<updated>2025-01-26T13:06:40Z</updated>
<entry>
<title>linux: package virtio-vsockets driver</title>
<updated>2025-01-26T13:06:40Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2024-06-21T12:01:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=6f7c6234b2df639525e03b6f3663ff6f049abaed'/>
<id>urn:sha1:6f7c6234b2df639525e03b6f3663ff6f049abaed</id>
<content type='text'>
Add the necessary definitions to package the virtio-vsockets driver,
providing AF_VSOCK support for virtual machine guests.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>linux: package qemu-fw-cfg driver</title>
<updated>2025-01-26T13:06:40Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2024-06-21T08:41:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=fab67caa696833af3799ceea4a632546115580a8'/>
<id>urn:sha1:fab67caa696833af3799ceea4a632546115580a8</id>
<content type='text'>
Add the necessary definitions to package the kernel module for QEMU firmware
configuration (fw_cfg) entries.

This module exposes parameters passed via the QEMU `-fw_cfg` command line
option to the guest system within the `/sys/firmware/qemu_fw_cfg/` directory
in a similar fashion to UEFI variables in sysfs.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>mac80211: package virt_wifi driver</title>
<updated>2025-01-26T13:06:40Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2024-06-21T08:07:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=03648addc2aff1b7a9f07dc7102cea948b4cf61f'/>
<id>urn:sha1:03648addc2aff1b7a9f07dc7102cea948b4cf61f</id>
<content type='text'>
Add the necessary definitions to package the virt_wifi kernel module as
kmod package.

The virt_wifi module is useful to wrap an existing ethernet interface and
make it appear like a wireless device, which allows testing wireless related
userspace tools without actual wireless hardware.

In contrast to mac80211-hwsim, it allows forwarding "fake" wireless traffic
between different virtual machines, enabling virtual testing of complex
wireless topologies.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>kernel: Make kmod-usb-chipidea select kmod-phy-ath79-usb</title>
<updated>2025-01-25T12:31:49Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2025-01-24T21:56:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=b467e5a0afebbc4982213c03f90dfc6deb717b36'/>
<id>urn:sha1:b467e5a0afebbc4982213c03f90dfc6deb717b36</id>
<content type='text'>
The USB PHY on the ar9330 and similar SoCs needs the PHY driver. In
OpenWrt 23.05 it was compiled into the kernel. The kernel 6.6
configuration does not compile it in any more, make the
kmod-usb-chipidea driver select it to add it to the images.

Fixes: https://github.com/openwrt/openwrt/issues/17710
Fixes: 04bdf9b3323e ("ath79: disable ath79 USB phy drivers by default")
Link: https://github.com/openwrt/openwrt/pull/17720
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>kernel: vrx518_tc: bump PKG_RELEASE</title>
<updated>2025-01-23T19:27:54Z</updated>
<author>
<name>Sergey Ryazanov</name>
</author>
<published>2025-01-22T22:26:54Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=78f908407e2824bc69a65acec270ffb94eca4038'/>
<id>urn:sha1:78f908407e2824bc69a65acec270ffb94eca4038</id>
<content type='text'>
Bump PKG_RELEASE after the previous fixes.

Signed-off-by: Sergey Ryazanov &lt;ryazanov.s.a@gmail.com&gt;
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250122222654.21833-5-ryazanov.s.a@gmail.com/
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>ipq40xx: fix compatibility with linux-atm tools</title>
<updated>2025-01-23T19:27:49Z</updated>
<author>
<name>Sergey Ryazanov</name>
</author>
<published>2025-01-22T22:26:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=6d6dc3a3c967174598a44503f4af281574660356'/>
<id>urn:sha1:6d6dc3a3c967174598a44503f4af281574660356</id>
<content type='text'>
atm_qos struct should be the same both for user and kernel spaces. Via
the __SO_ENCODE() macro it is used to define the SO_ATMQOS socket IOC.

During the VRX518 support introduction, the atm_trafprm sturct nested
into the atm_qos stucture was update with newer fields that are
referenced by the ATM TC layer of the VRX518 TC driver. These new fields
are intended to communicate information for extra traffic classes
supported by the driver. But we are still using vanilla kernel headers
to build the toolchain. Due to the atm.h header incoherency br2684ctl
from linux-atm tools is incapable to configure the ATM bridge netdev:

  br2684ctl: Interface "dsl0" created sucessfully
  br2684ctl: Communicating over ATM 0.1.2, encapsulation: LLC
  br2684ctl: setsockopt SO_ATMQOS 22 &lt;-- EINVAL errno
  br2684ctl: Fatal: failed to connect on socket; File descriptor in bad state

There are two options to fix this incoherency. (a) update the header
file in the toolchain to build linux-atm against updated atm_trafprm and
atm_qos structures, or (b) revert atm_trafprm changes.

Since there are no actual users of the extra ATM QoS traffic classes,
just drop these extra traffic classes from vrx518_tc ATM TC layer and
drop the kernel patch updating atm.h.

Besides fixing the compatibility with linux-atm tools, removing the
kernel patch should simplify kernel updates removing unneeded burden of
maintenance.

Run tested with FRITZ!Box 7530 with disabled extra traffic classes and
then removed them entirely before the submission.

CC: John Crispin &lt;john@phrozen.org&gt;
Fixes: cfd42a0098 ("ipq40xx: add Intel/Lantiq ATM hacks")
Suggested-by: Andre Heider &lt;a.heider@gmail.com&gt;
Reported-and-tested-by: nebibigon93@yandex.ru
Signed-off-by: Sergey Ryazanov &lt;ryazanov.s.a@gmail.com&gt;
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250122222654.21833-4-ryazanov.s.a@gmail.com/
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>kernel: vrx518_tc: fix ADSL/ATM operation</title>
<updated>2025-01-23T19:26:53Z</updated>
<author>
<name>Sergey Ryazanov</name>
</author>
<published>2025-01-22T22:26:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=470335450e67002366fcbcd7334b15bdf008e44d'/>
<id>urn:sha1:470335450e67002366fcbcd7334b15bdf008e44d</id>
<content type='text'>
ATM TC layer have some issues which effectively prevent VRX518 from
being used as ADSL modem. Specifically, there one crash during the ATM
layer configuration and wrong PVC ID selection on packet receiving what
breaks RX path. Fix both of the issues. Make subif iface registration
optional to prevent the crash (see more details in the new patch) and
update the hardcoded PVC ID to match the first allocated channel.

Run tested with FRITZ!Box 7530.

Fixes: 474bbe23b7 ("kernel: add Intel/Lantiq VRX518 TC driver")
Reported-and-tested-by: nebibigon93@yandex.ru
Signed-off-by: Sergey Ryazanov &lt;ryazanov.s.a@gmail.com&gt;
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250122222654.21833-3-ryazanov.s.a@gmail.com/
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>kernel: vrx518_tc: fix RX desc phys to virt mapping</title>
<updated>2025-01-23T19:26:39Z</updated>
<author>
<name>Sergey Ryazanov</name>
</author>
<published>2025-01-22T22:26:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=7bd579689d2304c73c263be3e030d76c551d6e87'/>
<id>urn:sha1:7bd579689d2304c73c263be3e030d76c551d6e87</id>
<content type='text'>
It looks like VRX518 returns phys addr of data buffer in the 'data_ptr'
field of the RX descriptor and an actual data offset within the buffer
in the 'byte_off' field. In order to map the phys address back to
virtual we need the original phys address of the allocated buffer.

In the same driver applies offset to phys address before the mapping,
what leads to WARN_ON triggering in plat_mem_virt() function with
subsequent kernel panic:

  WARNING: CPU: 0 PID: 0 at .../sw_plat.c:764 0xbf306cd0 [vrx518_tc@8af9f5d0+0x25000]
  ...
  Unable to handle kernel NULL pointer dereference at virtual address 00000000
  pgd = aff5701e
  [00000000] *pgd=00000000
  Internal error: Oops: 5 [#1] SMP ARM

Noticed in ATM mode, when chip always returns byte_off = 4.

In order to fix the issue, pass the phys address to plat_mem_virt() as
is and apply byte_off later for proper DMA syncing and on mapped virtual
address when copying RXed data into the skb.

Run tested with FRITZ!Box 7530 on both ADSL and VDSL (thanks Jan) links.

Fixes: 474bbe23b7 ("kernel: add Intel/Lantiq VRX518 TC driver")
Tested-by: Jan Hoffmann &lt;jan@3e8.eu&gt; # VDSL link
Reported-and-tested-by: nebibigon93@yandex.ru # ADSL link
Signed-off-by: Sergey Ryazanov &lt;ryazanov.s.a@gmail.com&gt;
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250122222654.21833-2-ryazanov.s.a@gmail.com/
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>mt76: update to Git HEAD (2025-01-22)</title>
<updated>2025-01-23T10:37:20Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2025-01-23T10:36:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=17dc0797d03d2f2dd57b38ab39962dafc69d1d34'/>
<id>urn:sha1:17dc0797d03d2f2dd57b38ab39962dafc69d1d34</id>
<content type='text'>
3e85822b9c66 page_pool: remove PP_FLAG_PAGE_FRAG
a22d59e4ad50 tools: fix allocation check and missing memory freeing

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>kernel: add missing symbols for lxc</title>
<updated>2025-01-20T23:10:12Z</updated>
<author>
<name>John Audia</name>
</author>
<published>2025-01-10T02:22:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=65de1e0f78707695238382ace6a78695acbb8ed8'/>
<id>urn:sha1:65de1e0f78707695238382ace6a78695acbb8ed8</id>
<content type='text'>
These symbols are needed to satisfy lxc dependencies.

Signed-off-by: John Audia &lt;therealgraysky@proton.me&gt;
Link: https://github.com/openwrt/openwrt/pull/17553
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
</feed>
