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 9F3FFA10DA for ; Fri, 2 Aug 2019 11:55:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 660B51C238; Fri, 2 Aug 2019 11:55:40 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 5BB271C234 for ; Fri, 2 Aug 2019 11:55:39 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x729tGK0017165; Fri, 2 Aug 2019 02:55:38 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=zr/8+MRRcPDISi2fu0Cw2M7/YXb1JjhuCcbpOQKcsUc=; b=AYSevqadIrhF3iDFc9eJsJC+yonV6ELDknF/I9T4MjJHC2JbKfkK4BerDoNUD7ScHLmr hJGyOzZRCm29PrO0+sUqTDGw/LqUZBM/0pRkCPqqinyKKGSpkET8WNvmIEoSEjN7oeVi 65rAdzQ3AnVMLv7YDEJXVkxG9QNld+K15dXXVgbRc4Pan9wT1dIcn8QjpTdWjvSzqqCn v0W3GtvgsibUw/CctrWVkpwiUTf/c5YPFdSn4DR0/V8hx8LwlYWgyTr5VPSCZc+hmO+p SqbT9YMCM2Rd6B5F/LRqLQcyVPmKBgBcgEBrx0dz7eaGgRHuzHKqVJD63PAMLto7cum7 XA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2u3jujqkph-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 02 Aug 2019 02:55:38 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 2 Aug 2019 02:55:37 -0700 Received: from NAM05-BY2-obe.outbound.protection.outlook.com (104.47.50.51) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Fri, 2 Aug 2019 02:55:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g722pX2IuHsYw1qN3avuLZ82Q4Yblp3HnZpaalGuD3JhHjFjKw9yzeq4Xmm2nsCtgYsfkWTaN0BeroVIcixNzx2lfJHgCIIJu9xt8aIimHBULq2HUt4oqixI2X9/WKBJQs3+UFzpyDL/23WJnmk8W0Sa94BvCciSyOtb8Txyn7IbZVpmEaFkD6of0FJ3jiJHZ+XYV3q2xQlS7Y9O18vjAv2A8ofH/Www0XgFWP/bGwmptkitB0fkjB/YLaagN9mKdeQ8FrJyT48dnclAOL/VaBGWBtTh1upD4UnNQtE4vRpTH6UvtWO/dZI9dikouidAV6UUBQN/N4FfeQhlY4qbVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zr/8+MRRcPDISi2fu0Cw2M7/YXb1JjhuCcbpOQKcsUc=; b=IJv5LD0jNtx8+tnzq30b/OSAr7pxF+F++uAKeAyHaxi6JNlB/mrCTrJAms69kRPRxq06bf3wUT0f+GRaoRn3GyTwmsPbbUH31HnvRYPqvh9ukWoPgHNUhAW0TQA66UZzCzOplezuJY4gA5o8dg6rDuGWBi4VOVDyD1PDSiFWNKVxLCDY1sHYUND5meXlV4hznuuatapgcrWmF/3HBzl1T76u0sBPfHLXTOwoDHl24U5+CnPCu59gknceciAo8vavTHxQFVVp67lW4jmaOUS1WdJbN7t3CrFSiSNLUG4CC8L8h5vb4z55K6qgxa2hHI4oJ2a+vaFzdAO8LkYQcaexGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=marvell.com;dmarc=pass action=none header.from=marvell.com;dkim=pass header.d=marvell.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zr/8+MRRcPDISi2fu0Cw2M7/YXb1JjhuCcbpOQKcsUc=; b=v+feANDEXYyZMAk1iBvdfekqs9jsRo3Dz6SLC3c2cOxtkL7LDPQ2swv8Jya2RTHs85HtrKTrev4lQyL11Zen+ii+WdP5DOH1tf/ZvytqUPPuDoZCadoG+CRLmfrw8I1V8H0kYfEIJcCswrDOzZ1f+51zrcSIshZSqu0bnymp41k= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2662.namprd18.prod.outlook.com (20.179.94.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2136.17; Fri, 2 Aug 2019 09:55:34 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::2d42:12b6:aa2e:2862]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::2d42:12b6:aa2e:2862%4]) with mapi id 15.20.2115.005; Fri, 2 Aug 2019 09:55:34 +0000 From: Jerin Jacob Kollanukkaran To: Vamsi Krishna Attunuru , "dev@dpdk.org" CC: "thomas@monjalon.net" , Vamsi Krishna Attunuru , Nithin Kumar Dabilpuram Thread-Topic: [dpdk-dev] [PATCH v3 1/1] common/octeontx2: fix unaligned mbox memory accesses Thread-Index: AQHVSP+NOiAmVh0mXUqzCOrNyC1QQ6bnnl6A Date: Fri, 2 Aug 2019 09:55:33 +0000 Message-ID: References: <20190802042006.14507-1-vattunuru@marvell.com> <20190802065716.20654-1-vattunuru@marvell.com> In-Reply-To: <20190802065716.20654-1-vattunuru@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [14.140.231.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 13217d99-ef76-4746-d985-08d7172f8ff3 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BYAPR18MB2662; x-ms-traffictypediagnostic: BYAPR18MB2662: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 011787B9DD x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(376002)(136003)(346002)(39850400004)(396003)(13464003)(189003)(199004)(55016002)(6436002)(66066001)(76176011)(5660300002)(71190400001)(71200400001)(9686003)(53936002)(74316002)(186003)(3846002)(6116002)(99286004)(14444005)(52536014)(2906002)(33656002)(66556008)(64756008)(66446008)(8676002)(81156014)(81166006)(66476007)(7696005)(66946007)(256004)(26005)(446003)(11346002)(478600001)(229853002)(486006)(476003)(14454004)(76116006)(86362001)(25786009)(53546011)(6506007)(55236004)(102836004)(316002)(107886003)(8936002)(68736007)(2501003)(110136005)(7736002)(305945005)(6246003)(4326008)(54906003); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2662; H:BYAPR18MB2424.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Ke1rTGHQ6LdphXvEbEV8IsHSWl3kGHiac+TwgG4QMMYMetMyW/OUQdleFa7/1jLwfgzR65JjdQEPRbond6Xf13VHkFYuUlId44W5VawBikWDDBvCI2hRamyKaRxhYMvTOGgCcjhyr/teWPD3aOp6D4JjYnrfZVhzsSHtgrfZESwFJOvvwUT8lu5IA8dVTzvCgNL6jlaBSMv8QRVTtyne6jVcUog1l8vQK4QQPMyHrJbVDS1npaihTtuVoBAj19kmEtcmMVLSCkdtnsCj0L0kT7SFsVWWq+qkEuoYbcx52hX+QK2Ep8Kze05qxOZ0G/CrTX/tu/myp7cfO/HOID8f00Gu5EgHZflumTafscH6qFJKnHpcukdf7eMeNKr31qebfd9XraHq6SNZZ+jVNzWGV/OkpBj7Nznhap4EpUEWHZ0= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 13217d99-ef76-4746-d985-08d7172f8ff3 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Aug 2019 09:55:34.0170 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jerinj@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2662 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-02_05:2019-07-31,2019-08-02 signatures=0 Subject: Re: [dpdk-dev] [PATCH v3 1/1] common/octeontx2: fix unaligned mbox memory accesses 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" > -----Original Message----- > From: vattunuru@marvell.com > Sent: Friday, August 2, 2019 12:27 PM > To: dev@dpdk.org > Cc: thomas@monjalon.net; Jerin Jacob Kollanukkaran ; > Vamsi Krishna Attunuru ; Nithin Kumar > Dabilpuram > Subject: [dpdk-dev] [PATCH v3 1/1] common/octeontx2: fix unaligned mbox > memory accesses >=20 > From: Vamsi Attunuru >=20 > Octeontx2 PMD's mailbox client uses device memory to send messages to > mailbox server in the admin function Linux kernel driver. > The device memory used for the mailbox communication needs to be > qualified as volatile memory type to avoid unaligned device memory > accesses because of compiler's memory access coalescing. >=20 > This patch modifies the mailbox request and responses as volatile type wh= ich > were non-volatile earlier and accessed from unaligned memory addresses > which resulted in bus errors on Fedora 30 with gcc 9.1.1. >=20 > Fixes: 2b71657c8660 ("common/octeontx2: add mbox request and response > definition") >=20 > Signed-off-by: Vamsi Attunuru > Signed-off-by: Nithin Dabilpuram Acked-by: Jerin Jacob Thomas, Could you merge this patch for rc4. It fixes the bus error with Fedora 30 = with gcc 9.1.1.