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