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

2025-01-22 Thread Sergey Ryazanov
Hi Hauke, sorry for the delayed response, see the answer below. On 18.01.2025 22:05, Hauke Mehrtens wrote: On 1/12/25 15:09, 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

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

2025-01-18 Thread Hauke Mehrtens
On 1/12/25 15:09, 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 of th

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

2025-01-12 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