[PATCH v2 1/4] kernel: vrx518_tc: fix RX desc phys to virt mapping

2025-01-11 Thread Sergey Ryazanov
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 app

[PATCH v2 3/4] ipq40xx: fix compatibility with linux-atm tools

2025-01-11 Thread Sergey Ryazanov
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

[PATCH v2 4/4] kernel: vrx518_tc: bump PKG_RELEASE

2025-01-11 Thread Sergey Ryazanov
Bump PKG_RELEASE after the previous fixes. Signed-off-by: Sergey Ryazanov --- package/kernel/lantiq/vrx518_tc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/lantiq/vrx518_tc/Makefile b/package/kernel/lantiq/vrx518_tc/Makefile index a5718d9d5b..d92c6d

[PATCH v2 2/4] kernel: vrx518_tc: fix ADSL/ATM operation

2025-01-11 Thread Sergey Ryazanov
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 preven

[PATCH v2 0/4] ipq40xx: fritzbox 7530: fix ADSL/ATM support

2025-01-11 Thread Sergey Ryazanov
Andre and Martin did a great job implementing xDSL (VRX518 chip) support for the Fritzbox 7530 router. Device was well tested with VDSL link. Suddenly, there were no ADSL users and the corresponding functionality needs small fixes here and there to make router capable to work with ADSL lines w/ ATM

Re: [PATCH 1/3] kernel: vrx518_tc: fix RX desc phys to virt mapping

2025-01-11 Thread Sergey Ryazanov
Hi Jan, On 12.01.2025 02:20, Jan Hoffmann wrote: On 11.01.25 at 23:50, Sergey Ryazanov wrote: 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

Re: [PATCH 1/3] kernel: vrx518_tc: fix RX desc phys to virt mapping

2025-01-11 Thread Jan Hoffmann
On 11.01.25 at 23:50, Sergey Ryazanov wrote: 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 o

[PATCH 1/3] kernel: vrx518_tc: fix RX desc phys to virt mapping

2025-01-11 Thread Sergey Ryazanov
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 app

[PATCH 0/3] ipq40xx: fritzbox 7530: fix ADSL/ATM support

2025-01-11 Thread Sergey Ryazanov
Andre and Martin did a great job implementing xDSL (VRX518 chip) support for the Fritzbox 7530 router. Device was well tested with VDSL link. Suddenly, there were no ADSL users and the corresponding functionality needs small fixes here and there to make router capable to work with ADSL lines w/ ATM

[PATCH 2/3] kernel: vrx518_tc: fix ADSL/ATM operation

2025-01-11 Thread Sergey Ryazanov
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 preven

[PATCH 3/3] ipq40xx: fix compatibility with linux-atm tools

2025-01-11 Thread Sergey Ryazanov
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