Re: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32

2023-11-12 Thread Ruifeng Wang
On 2023/11/10 9:18 PM, Morten Brørup wrote: Dear Ruifeng, Hi Morten, +CC: all CPU architecture maintainers, I'm trying to figure out the requirements for supporting unaligned memory access in DPDK (specifically the ring library), and need your expert feedback. The #define RTE_ARCH_STRICT

RE: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32

2023-11-12 Thread Honnappa Nagarahalli
drew.rybche...@oktetlabs.ru; Gavin Hu > > Subject: RE: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32 > > > From: Konstantin Ananyev [mailto:konstantin.anan...@huawei.com] > > Sent: Friday, 10 November 2023 10.45 > > > > > From: Morten Brørup

RE: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32

2023-11-10 Thread Konstantin Ananyev
> > From: Konstantin Ananyev [mailto:konstantin.anan...@huawei.com] > > Sent: Friday, 10 November 2023 10.45 > > > > > From: Morten Brørup > > > Sent: Friday, November 10, 2023 9:34 AM > > > > > > +CC Gavin, reviewed the test case > > > > > > > From: Ruifeng Wang [mailto:ruifeng.w...@arm.com] > >

RE: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32

2023-11-10 Thread Morten Brørup
Dear Ruifeng, +CC: all CPU architecture maintainers, I'm trying to figure out the requirements for supporting unaligned memory access in DPDK (specifically the ring library), and need your expert feedback. The #define RTE_ARCH_STRICT_ALIGN - which is undocumented, but probably means that CPU me

RE: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32

2023-11-10 Thread Morten Brørup
> From: Konstantin Ananyev [mailto:konstantin.anan...@huawei.com] > Sent: Friday, 10 November 2023 10.45 > > > From: Morten Brørup > > Sent: Friday, November 10, 2023 9:34 AM > > > > +CC Gavin, reviewed the test case > > > > > From: Ruifeng Wang [mailto:ruifeng.w...@arm.com] > > > Sent: Friday, 1

RE: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32

2023-11-10 Thread Konstantin Ananyev
.@oktetlabs.ru; Gavin Hu > Subject: RE: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32 > > +CC Gavin, reviewed the test case > > > From: Ruifeng Wang [mailto:ruifeng.w...@arm.com] > > Sent: Friday, 10 November 2023 09.40 > > > > On 2023/11/4 8

RE: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32

2023-11-10 Thread Morten Brørup
+CC Gavin, reviewed the test case > From: Ruifeng Wang [mailto:ruifeng.w...@arm.com] > Sent: Friday, 10 November 2023 09.40 > > On 2023/11/4 8:04 AM, Morten Brørup wrote: > > I have for a long time now wondered why the ring functions for > enqueue/dequeue of 64-bit objects supports unaligned addr

Re: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32

2023-11-10 Thread Ruifeng Wang
On 2023/11/4 8:04 AM, Morten Brørup wrote: I have for a long time now wondered why the ring functions for enqueue/dequeue of 64-bit objects supports unaligned addresses, and now I finally found the patch introducing it. From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Phil Yang Sent: Mo

RE: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32

2023-11-04 Thread Morten Brørup
> From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] > Sent: Saturday, 4 November 2023 17.32 > > > From: Morten Brørup > > Sent: Friday, November 3, 2023 7:04 PM > > > > I have for a long time now wondered why the ring functions for > > enqueue/dequeue of 64-bit objects supports una

RE: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32

2023-11-04 Thread Honnappa Nagarahalli
u > ; nd ; andrew.rybche...@oktetlabs.ru > Subject: RE: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32 > > I have for a long time now wondered why the ring functions for > enqueue/dequeue of 64-bit objects supports unaligned addresses, and now I > finally found the patch in

RE: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32

2023-11-03 Thread Morten Brørup
I have for a long time now wondered why the ring functions for enqueue/dequeue of 64-bit objects supports unaligned addresses, and now I finally found the patch introducing it. > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Phil Yang > Sent: Monday, 9 March 2020 18.20 > > The 32-bit arm

Re: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32

2020-03-19 Thread David Marchand
On Mon, Mar 9, 2020 at 6:20 PM Phil Yang wrote: > > The 32-bit arm machine doesn't support unaligned memory access. It > will cause a bus error on aarch32 with the custom element size ring. > > Thread 1 "test" received signal SIGBUS, Bus error. > __rte_ring_enqueue_elems_64 (n=1, obj_table=0xf5edf

[dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32

2020-03-09 Thread Phil Yang
The 32-bit arm machine doesn't support unaligned memory access. It will cause a bus error on aarch32 with the custom element size ring. Thread 1 "test" received signal SIGBUS, Bus error. __rte_ring_enqueue_elems_64 (n=1, obj_table=0xf5edfe41, prod_head=0, \ r=0xf5edfb80) at /build/dpdk/build/inclu