From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7C1EDA00BE for ; Tue, 3 May 2022 09:59:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6FF4B42820; Tue, 3 May 2022 09:59:58 +0200 (CEST) Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) by mails.dpdk.org (Postfix) with ESMTP id 0996C40691; Tue, 3 May 2022 09:59:56 +0200 (CEST) Received: by mail-io1-f46.google.com with SMTP id e15so18277775iob.3; Tue, 03 May 2022 00:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1aMP++inzssQuB7dxPZgvUVQWOo0Ydi2qKcAvjKL/Zk=; b=deH+e+lw22gycxrjEPZoK/CnXv//9ClMYn+nhLu/3qxIt/BRoBV1dE77H/uVkDn7Qg it3iusBg4xkQPGPE2fvBAq5H3X46PEu6VbVJ9Cl9/OEUXh1Evt9ZLdzlf+ke9VlWz3Uv NA/hwM+DAEQMLmaJCL/Zdmsg5/clRdh3Q0mV1WHo3bLM2RwKZuksznh78LzAQVPqgeRk nR5Sc1x4O3Z2Hb60vIprp0J6z6fYDsPsJW1Yl80lsIa+UyDV040wAct8q+SZ0Ovx/M25 spK3yTTQ7yyo6pajEgA1hWXVlXoJzqI+8C4ipO3JkF7LGs7V/Q1RhBpfVzvlOGwEORwq cQkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1aMP++inzssQuB7dxPZgvUVQWOo0Ydi2qKcAvjKL/Zk=; b=iy8vQyVZ19Uu6NnfTtX8Vr0tI8CE4yMSeMpM4o/Ta6yrgYjH+7zhw+57tzdWvPP5Ml Wmv2IVa7RPewEfJ+glciBAyWSdNmA3W4jVaDgnA3gXJilIDF9IfnSGuvLO1WGYa0dpXL JAocb/zLESdUG6U09cxflDObaQqLV7PJFHwso8VENoH0BwAnAKtLilv+unCsbv8IJNDb QYyFpRuV9JJykm3vhrtEWCpByOBTR0+7Fultty6Cv+cyRCYGdU7Tbe3WZNHoCLEJNY4W S68DCLcGsM5Q57IPSQ+wu16NlOW+Sua9As9kgWAnEVGUGtkGCyCzVaJY03ICktzUD48/ r1Vw== X-Gm-Message-State: AOAM532T85jKMXh9+Tb36rGZeeOYG1iDkUUdPohUeku82IVUKjU0yDvu k7M5DZyZLbzSEt7Ek184vzHPNPaM1KABoWLQnmU= X-Google-Smtp-Source: ABdhPJxmynpIDAWPyR0HLRJjbaw1qlfexyW5koPpI2Z30uQvUkJvgP+0BVjHkCumjbjw5cs8vGNMsy/dmpILUersvCc= X-Received: by 2002:a02:604f:0:b0:30f:e6f1:3883 with SMTP id d15-20020a02604f000000b0030fe6f13883mr6909592jaf.266.1651564795037; Tue, 03 May 2022 00:59:55 -0700 (PDT) MIME-Version: 1.0 References: <20220420063825.286183-1-psatheesh@marvell.com> In-Reply-To: <20220420063825.286183-1-psatheesh@marvell.com> From: Jerin Jacob Date: Tue, 3 May 2022 13:29:29 +0530 Message-ID: Subject: Re: [dpdk-dev] [PATCH] common/cnxk: fix unaligned access to device memory To: Satheesh Paul , Ferruh Yigit , Andrew Rybchenko Cc: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , dpdk-dev , dpdk stable Content-Type: text/plain; charset="UTF-8" X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Wed, Apr 20, 2022 at 12:08 PM wrote: > > From: Satheesh Paul > > Use mbox_memcpy() instead of memcpy() to prevent unaligned access. > > Fixes: 1f66919817e ("common/cnxk: improve MCAM entries management") > Cc: stable@dpdk.org > > Signed-off-by: Satheesh Paul Acked-by: Jerin Jacob Applied to dpdk-next-net-mrvl/for-next-net. Thanks > --- > drivers/common/cnxk/roc_npc_utils.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/common/cnxk/roc_npc_utils.c b/drivers/common/cnxk/roc_npc_utils.c > index f9768ea3cf..0d02872c8b 100644 > --- a/drivers/common/cnxk/roc_npc_utils.c > +++ b/drivers/common/cnxk/roc_npc_utils.c > @@ -582,7 +582,7 @@ npc_allocate_mcam_entry(struct mbox *mbox, int prio, > if (!rsp_cmd->count) > return -ENOSPC; > > - memcpy(rsp_local, rsp_cmd, sizeof(*rsp)); > + mbox_memcpy(rsp_local, rsp_cmd, sizeof(*rsp)); > > return 0; > } > -- > 2.25.4 >