From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 16EDAA0583; Thu, 19 Mar 2020 16:56:28 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7981AF94; Thu, 19 Mar 2020 16:56:26 +0100 (CET) Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by dpdk.org (Postfix) with ESMTP id B5722F90 for ; Thu, 19 Mar 2020 16:56:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584633385; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+TrAVIUbErgjg05rwk4kGdUH2/4TT6ndKhCOWh23LCg=; b=DttEla4qEK1V/ocH+vrb7CZ+Nx+Oky1Ipiw+EyKWGgBAWlMZSlOdy3datJqUHhhY9zqslp 7XUkVmlYjHmzkxKULzDI49NEYWaIrT/I/wcUitw+dOV9K2DObhglnbZgQrfGRmaomUmI9F k/eT53KnuYTdg5MVE5sJjBWEJ3cHNB4= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-235-kJWZNZzLN0Sc-85SIw3m9A-1; Thu, 19 Mar 2020 11:56:23 -0400 X-MC-Unique: kJWZNZzLN0Sc-85SIw3m9A-1 Received: by mail-vk1-f198.google.com with SMTP id t206so959598vke.22 for ; Thu, 19 Mar 2020 08:56:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N7k96Tw/MBYI1BeAJqWEp6x+AZk79hYiscCwwPdg2Ss=; b=Z1kja8CCIeipY3Eoh1ti5ZEQ6Jh92eAujRg7SHcBd8Wn6YGHzu09zp2+knOvWbnEpY sc6dr/CTQ7PBx+9586idmdFAHT/3aCo9fa+8oLHdKamdBS07sBrCHPbMrzEUG875e6+s FhqAcwBEOzj49nBgr8MbN/5PX00bgzVtxgSDjSdCio0F/dQ5g4mOTcIYhQ5GkuG6tSIg l06MSwtsXG50cg8wm2QRLp0o529m8Sn5gA0rgHEoxvR9om+CtnjPUol2umt+DVHeLEzs SL1nbZ6BrIsaYHJjaLYaNdjduWX2Vob/gCirn6svUTgZkbEgKTVLMSALog5pqW1P1fxz j22g== X-Gm-Message-State: ANhLgQ07dK+WPKFgtpNZOFy4Q4UDnhwULstxw2wdw1YO2EpjPkCeMtzi naFWoeoI68c1kDQ0Dj1iW8GPfYM/FOq4rGidZoWs7ZMPExIPARitvRNjTT5OUW4FDdjbhF8dOO5 2a6pO0s9KPso5sLRSo5c= X-Received: by 2002:a67:905:: with SMTP id 5mr2674062vsj.105.1584633383124; Thu, 19 Mar 2020 08:56:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvgzu3k9kAfEKh7wFDfvgEOCwnmoEDjP/bwLnWUHq3mecQibAgajCoXAcaDxVt9/OwHM/KUoNA+/vgYM8rRjLk= X-Received: by 2002:a67:905:: with SMTP id 5mr2674039vsj.105.1584633382860; Thu, 19 Mar 2020 08:56:22 -0700 (PDT) MIME-Version: 1.0 References: <1583774395-10233-1-git-send-email-phil.yang@arm.com> In-Reply-To: <1583774395-10233-1-git-send-email-phil.yang@arm.com> From: David Marchand Date: Thu, 19 Mar 2020 16:56:11 +0100 Message-ID: To: Phil Yang Cc: Honnappa Nagarahalli , dev , Olivier Matz , Dharmik Thakkar , Gavin Hu , "Ruifeng Wang (Arm Technology China)" , nd X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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=3D1, obj_table=3D0xf5edfe41, prod_head=3D0= , \ > r=3D0xf5edfb80) at /build/dpdk/build/include/rte_ring_elem.h:177 > 177 ring[idx++] =3D obj[i++]; > > Fixes: cc4b218790f6 ("ring: support configurable element size") > > Signed-off-by: Phil Yang > Reviewed-by: Ruifeng Wang > Reviewed-by: Honnappa Nagarahalli Applied, thanks. --=20 David Marchand