From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0084.outbound.protection.outlook.com [104.47.41.84]) by dpdk.org (Postfix) with ESMTP id D44A71B2C9; Thu, 18 Jan 2018 14:45:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=307cc4ckCaTF5n4t2l+5b6ZpggW7AnXUXs+43eWHTEc=; b=ghKzA+9JZ0xKpIQXVCiENv84IhtDigvfxipWHFu57+ZNq1iuISbu3sdnjOCp+8B2hcnF1oYn3ju5q9fbq0pq8bYBkCabQNI9Z0/nMyo6wt9/RIqrvEruLMzzc97+88jFlcwfcdOZ+KuFwbXKlozPWn0MM/X2mzZjSY5m99jbU7Y= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Thu, 18 Jan 2018 13:45:23 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com Cc: dev@dpdk.org, Pavan Nikhilesh , stable@dpdk.org Date: Thu, 18 Jan 2018 19:14:33 +0530 Message-Id: <20180118134433.20997-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: CO2PR07CA0056.namprd07.prod.outlook.com (10.174.192.24) To CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e744ccbe-cc0f-4225-75ae-08d55e79ba32 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:CY4PR07MB3464; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 3:shGB6v39nX3uo6iF8q+4kXRhKGoE6ba/yr2zrdqjTW2X5A8LqW4Hjg2mORc3/tDK/Bw6x8BrZJAuiqbxPiexF4EsCk9wSt/uaDsTt1iFCJ6ejgw35WvqlNwCjx3Q7qpHZt5ATpK7+HXdWoVMvu64/vyaGNPXOFmCQPVr1OJ1qmRFy0NKE68zre8MTJC/MIzd7CNbT2/Bx9iKJcBJ2GTv/SxIiPNmKTpRD/BgYly1yrYWQacxfCOMYE69mdUuDFWo; 25:gkd9pkTg2ClZ+tMB3ffiF8MyybjJKsGC4tacQQNAbOk7uGH3TVWhEKj6DD5ZxJZAkHjk3+c+7JxZ6gwl5C+eYJhHnGDVMxPc5uaZEGnxAYHv33vz3kRWjLH+/SGKchFTmx8Fh8rc0yPydW+pAEYEycYPNjh6Zte6zwUoXAedtCWY48SVNR6oj2EvI5kH5oWXTjXmk4bwGn4HrHJGlMVPDYjWG4FBu6FrMgs2e+4fKPdMPQQxvs6HzELQGcNTL8I57TvMQnez/pXnGVXUZUxvztqdWj6urfDD7ctX30xO4Khqq6gYMePXK8WUCpvZg/BGXUU0wegKPx1mUoJb44U+wA==; 31:sT27UB9m4TTiCPBDrui299LZOJ4RcokJC761h8PRiVJErHhpYLjTd3typxtHqyo2oP4p1aBAdWbBDYHkVD1cLvF5ySvRySj7F05wugWVuU/elw+yvZTmuD837vlVFCXAfAiDG2XjSPAd8HUGvoEYQji/jWzouUDMSyzDrYBVnFwo8AJ0IrunrFetSU1L+PbAwwmsK/Y/AOpa2kzBRs5BuiWfuP0j5RUtxKvLRPfJz/U= X-MS-TrafficTypeDiagnostic: CY4PR07MB3464: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 20:PoDI+1nfjmRwtDVEs22o82z9iJkRMB1qhjTz0qO8Y9F5uB/HEoMtepPF5sqYI/EG4QpAjsnSJJe8My0EsN98sO/QxAov0F7uM2nLo/IWgMbxzlQRlRDZYYYg2BixCdt8OmgspDNXk+THfJwvP4fr8DuQ8Uoz1mBnyojuAU17MVKwBM0ZSu9c8zJ7EH3Js/wbS4dVIxzsdV/A/aPi+ezaj4PAH8CvRCarOSszQ8E/l+x20P7bNERidSCm2XHOrgESxXSu98wZAiYeoneKTaJSk8Co2R7wRfcQlOiQMvTFcqwqtoJtwkAuxkcslBOufWAFIXsrWcutdZ1Z9MMGgMeJXu8rlLibnhLcwGK88VsAB6yVpYp19a5yWfPwnVVNa124ln0HFIGIVIEHjDfat2rHxLKL2yTQCODoBiFCmAB7iF/Jm/hCxzmj6zN697t4WUTIPY/rhZmDXW8/8wmbSuilZxjI1GX3C4BPPxC0+oFLMeTaSthoi1umMLgir9tA33ZatQhCkKhJHmvhnh8kOVKlqSYA6WEyhJKPIRLrFRP6dbWqEtB2WsIP4dFAy27qdaP7ZkjTeWWOq1sXlkbWBc2nBv9JGqa7SzZm5VcGCnizRx4=; 4:2Nh9ar4X9mn7WtMcv6rqlEWdHpzZHV5pwVMVuV8pAOHhslYGPsNvWTROjw2kZyTOM9TC3IK/bFlSt0F1sIPaVuX3/hyChun730a3+TBq/BknFeROSdMnCBhvCoP2PbM+zI/il2W1D9dSMww/CnPuv3vmI+91TdNT0q9ALGpVxtM13czeOv4IMf6xv72Npi6EfDfPja9BTWhpu/BkCyW82kdM+gSXVuyqjRe9bs1hWOYF7FFRpc06HASp+wiSrMBzFAnQrNJfxqdUDrO7EN3WfA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(93006095)(3231023)(2400062)(944501161)(10201501046)(6041268)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:CY4PR07MB3464; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR07MB3464; X-Forefront-PRVS: 05568D1FF7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(346002)(39860400002)(396003)(39380400002)(189003)(199004)(85306007)(478600001)(316002)(386003)(16526018)(6666003)(6506007)(6636002)(53936002)(52116002)(6486002)(51416003)(6512007)(36756003)(106356001)(53416004)(16586007)(105586002)(59450400001)(97736004)(3846002)(1076002)(7736002)(6116002)(305945005)(5660300001)(47776003)(2906002)(66066001)(69596002)(25786009)(450100002)(4326008)(5009440100003)(81166006)(50226002)(8936002)(68736007)(48376002)(50466002)(42882006)(8676002)(81156014)(72206003)(26005)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3464; H:Pavan-LT.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3464; 23:9lYJ1trYqgFqW4Xnp/E+fgsv/ame7/170QW3s9Z/6?= =?us-ascii?Q?k6EwZSQBzduPC5H/AYTCZDNX5GAJ8MqO/NIpgqCu5He2wsxW6/HX4I8+YnOF?= =?us-ascii?Q?Wkv0eVHBpkig21neA1QVWhhrNrh9pJ6orEtRZ7+WWdaNJTwfvF9aJSlPh08V?= =?us-ascii?Q?SytS8+cT1ogwmYiJ8LR67xbzlrZRplgD5kLWheXdZgk38/i75d7aE/5KKsUA?= =?us-ascii?Q?YybttRbly71dyHqen1730o4PAIj/QtC1SeczJygdqGh4NxFmBysKg+fGa/sg?= =?us-ascii?Q?z0HLqJGKqxgSv+fQu6U2YyuWQ1U+UAE0EH8GnvXi97YX6Fp/gLSjw7uPgwF+?= =?us-ascii?Q?MngJ3C+7zWUjb6apvrRIZ694BnBsf9Igamlwvfg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?4OjexFxHqr6xkv8+sw=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 6:0fzyITQoRDa7pgDuqqgyJ8VjAK0Ey3uu8BzvRaxWOb05+RJmyFAcwExzpzlkJTIimntYAxcZ/5wUz/SxmCjYCNIo9IjtVMg07t57BFOYI2vIcA0TxIAD6ju9cwp2EZDeX/IA84bC3Bo/tcWjzv8Ru4uz5NQL/NIS6Nu2kfWP40QOSEcp87kmv615gmiKoiKVqYV37eRs9TnS3ZRQ7oNuG7jlhg0nm4/9hYwBDhZc25wxRAnzSZJbiP9l919EYt6y4pc4gcPsRQZK+W0VUfwlEN9UCzLjnYl9GPi3PS+wi6y/YIbAACzlyDNW1wim7c0tZrNbn5uGsK95tVohOdgMp7OZ5i8gRNrKMQ2kXLpfoiI=; 5:XDoIN7E9moB39RRK55As9Y4SrHoV2Bt07IHU3rlxvSCwxFVqA4Y5TEZQri5aBeVgTEr7jPWNhLZN2sgYQICMDQpCLda/qpuNYAgSEogxjf8GZIjsIC3NHvry8fRsgAOiWQKMdPyKPKgBrmJ1m8m12Pi1hjTwKdMnFOBiasa69Sw=; 24:IpAYJSjPTbiN3yllyoQELPJnnkftM5eL906vrtw9rTTmg3LzGfkDhrioNkDDPimdnSeI8R79St+LuLlHdyAL/Yct4+n3c5o0CC/qB/z0Fow=; 7:OACxF0wI6BTIr9Zsk1gO8tiO9BJT9txlFD0ycmTtJIHhGc/4ap8kTb69uH8FrOeNkbQ00pzzQkzTbmUZSzivtu1t5rRGD/yBt7MDmrZbf1ErLnU6fuwdsrD5LhmpxFmHyiHWsyMK3kNsBRIhCCdAwBmLhloPUnGUCSeKBj8s1GgcR5h8gulv3wYOkUip8bxCjz/tiueZH9K+TAcZ17L7JOSnR72AZusgAolOAebg9CsgnUjSA1Ozm6jZhYrjlrBI SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2018 13:45:23.4153 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e744ccbe-cc0f-4225-75ae-08d55e79ba32 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3464 Subject: [dpdk-dev] [PATCH] mempool/octeontx: fix natural alignment being optimized out 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: , X-List-Received-Date: Thu, 18 Jan 2018 13:45:27 -0000 The mbox messages are naturally aligned and in some cases compiler optimization might disregard natural alignment. Use volatile key word to force compiler to disable optimizing and maintain alignment. Fixes: aecb8e093b52 ("event/octeontx: introduce specialized mbox message copy") Cc: stable@dpdk.org Signed-off-by: Pavan Nikhilesh --- drivers/mempool/octeontx/octeontx_mbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mempool/octeontx/octeontx_mbox.c b/drivers/mempool/octeontx/octeontx_mbox.c index 640a58d3d..c89f4f513 100644 --- a/drivers/mempool/octeontx/octeontx_mbox.c +++ b/drivers/mempool/octeontx/octeontx_mbox.c @@ -61,7 +61,7 @@ struct mbox_ram_hdr { }; static inline void -mbox_msgcpy(uint8_t *d, const uint8_t *s, uint16_t size) +mbox_msgcpy(volatile uint8_t *d, volatile const uint8_t *s, uint16_t size) { uint16_t i; -- 2.15.1