Re: [PATCH v2] app/dma-perf: fix physical address seg-fault

2023-10-04 Thread Jerin Jacob
On Wed, Oct 4, 2023 at 3:46 PM Varghese, Vipin wrote: > > [AMD Official Use Only - General] > > Hi Jerrin, > > Apologies for the delay, I missed on the comment > > ``` > > for (i = 0; i < nr_buf; i++) { > > + void *src = rte_pktmbuf_mtod(dsts[i], void *); > >

RE: [PATCH v2] app/dma-perf: fix physical address seg-fault

2023-10-04 Thread Varghese, Vipin
sta...@dpdk.org > Subject: RE: [PATCH v2] app/dma-perf: fix physical address seg-fault > > Caution: This message originated from an External Source. Use proper caution > when opening attachments, clicking links, or responding. > > > Hi, > > > -Original Message- &g

RE: [PATCH v2] app/dma-perf: fix physical address seg-fault

2023-09-20 Thread Jiang, Cheng1
Hi, > -Original Message- > From: Vipin Varghese > Sent: Wednesday, August 16, 2023 5:42 PM > To: tho...@monjalon.net; dev@dpdk.org; ano...@marvell.com > Cc: ferruh.yi...@amd.com; Jiang, Cheng1 ; > sta...@dpdk.org > Subject: [PATCH v2] app/dma-perf: fix physi

RE: [EXT] [PATCH v2] app/dma-perf: fix physical address seg-fault

2023-08-16 Thread Anoob Joseph
> do_cpu_mem_copy uses DPDK API rte_mbuf_data_iova to return the start > of the virtual address for both src and dst. > But in case of iova mode set as PA, this results in seg-fault. > This is because rte_memcpy uses VA address and not PA. > > This fix invokes `rte_pktmbuf_mtod` for both src and d

Re: [PATCH v2] app/dma-perf: fix physical address seg-fault

2023-08-16 Thread Jerin Jacob
On Wed, Aug 16, 2023 at 3:21 PM Vipin Varghese wrote: > > do_cpu_mem_copy uses DPDK API rte_mbuf_data_iova to return > the start of the virtual address for both src and dst. > But in case of iova mode set as PA, this results in seg-fault. > This is because rte_memcpy uses VA address and not PA. >

[PATCH v2] app/dma-perf: fix physical address seg-fault

2023-08-16 Thread Vipin Varghese
do_cpu_mem_copy uses DPDK API rte_mbuf_data_iova to return the start of the virtual address for both src and dst. But in case of iova mode set as PA, this results in seg-fault. This is because rte_memcpy uses VA address and not PA. This fix invokes `rte_pktmbuf_mtod` for both src and dst. Bugzill

[PATCH v2] app/dma-perf: fix physical address seg-fault

2023-08-16 Thread Vipin Varghese
do_cpu_mem_copy uses DPDK API rte_mbuf_data_iova to return the start of the virtual address for both src and dst. But in case of iova mode set as PA, this results in seg-fault. This is because rte_memcpy uses VA address and not PA. This fix invokes `rte_pktmbuf_mtod` for both src and dst. Bugzill

[PATCH v2] app/dma-perf: fix physical address seg-fault

2023-08-16 Thread Vipin Varghese
do_cpu_mem_copy uses DPDK API rte_mbuf_data_iova to return the start of the virtual address for both src and dst. But in case of iova mode set as PA, this results in seg-fault. This is because rte_memcpy uses VA address and not PA. This fix invokes `rte_pktmbuf_mtod` for both src and dst. Bugzill