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 C639C45713; Thu, 1 Aug 2024 14:44:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B28AC42E49; Thu, 1 Aug 2024 14:44:01 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id AFDCB42E44 for ; Thu, 1 Aug 2024 14:43:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1722516240; x=1754052240; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=x1RrPp23MkHXD1lwg2UQJ7Zbvu6czkpiG+aQM0Ie8cQ=; b=bndTwsQNIoLZfcyOkBQTjaSZA0eJjm/GsNMib36rJJcYmG4hrlqujOBs 7I18Hr2aiQNdIJxLd3EmoXjn00TaJrdRhhu1xM8+aFY3y3DY35Ti5x7Xl x861o09l27Xd6IsvH1fFi9gM15QGiZgp3+B+ANYaSla7+pueASnQdFPfg 0qbF+OOxLbvoxHmj0Tw+RQSDjfLbGVRoGQdgPXvUnlqx7teQOw+OMX70N qxOUtDoJO4aBxdrgoAd/rxItBU4g8O3gfOr78HPtBibyL+fEKkgmcIGsw S6NWQA1KLlobfL1fpMn0cCew1f833UgYcmJt1Bc5MxvbrVi6WZpg1DTo5 A==; X-CSE-ConnectionGUID: smZnnarzTICCzQaFPVDKvg== X-CSE-MsgGUID: pCYooak0QwynwMJmf2z8tg== X-IronPort-AV: E=McAfee;i="6700,10204,11150"; a="37931161" X-IronPort-AV: E=Sophos;i="6.09,254,1716274800"; d="scan'208,217";a="37931161" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2024 05:43:58 -0700 X-CSE-ConnectionGUID: aNqKPO2bTY2fGXBsByFPsQ== X-CSE-MsgGUID: U+JZSOPuSC6KQ8Qn2F1W3g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,254,1716274800"; d="scan'208,217";a="55804535" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orviesa008.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 01 Aug 2024 05:43:59 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 1 Aug 2024 05:43:58 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 1 Aug 2024 05:43:57 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Thu, 1 Aug 2024 05:43:57 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.176) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 1 Aug 2024 05:43:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qnfLpIg2LBCly4viBnpCXgf4Px2lotxWVOxsN0ZGIILzzR8pBjy1YdJirAOKYzaBb2N87gLHsxg4nyz3eQC41QrYhkj0++o6E/TBKNdy5auvrP7vYEwHGFwHzg6bH6E2Yrf/hEI8NgzmGBNT3iHivgRVJD+xEgGOLOLq5/taxKQsr9HxFw+0jbn8clFPouYJIHDBNe7eGd672bsfU6+j53NPNSmUUCG3Hbv6kMBZIdvVBl5sVvD1KfH52NcfIdTG3A+GWNpJIC2bN1ZLjLa3F8N1/MREn7KZDb4gkS7MMJ8/LLdG1hRrG8/f0R/BaXILdBC8sSFvcjMxQN8EzhhIzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oAfHZKLWDtumLDo9XSizwXXq1/UjCxQu1BfTHx+MdnM=; b=pv9NR/V+PVfYEfnrkm/5c8Fms6AuhjNVkuxV+5EF8kHReAjBsjn8v8TvKbYhM+ovV0hPdJh8vhqS+LnaQLp8uM2RNReVakgTnGMz3TGXfENaNHT7ocpM+az5e+Y4zS5AU2NWeH1mNiJYM2WRtJL8OTdKn17u97kc0IPcLurH4WqYxIDmSOP75Pp4iHRN2EwySNAVEPdrIMMaIMXtcU/eKQsUVkqyHgvwHFPJw0ndZdQw/t3RRH3U6TTYWA7MR+TAn+fm67TZiTaZZLYCNHp0w3YdhplUQM6yDLLMb7MZ2RrQxjs3U3Uu6PI5N6ou9gsTpUnAhvvIt5zi4TPyB1E5YQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from PH8PR11MB6803.namprd11.prod.outlook.com (2603:10b6:510:1cb::12) by MW4PR11MB6981.namprd11.prod.outlook.com (2603:10b6:303:229::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Thu, 1 Aug 2024 12:43:55 +0000 Received: from PH8PR11MB6803.namprd11.prod.outlook.com ([fe80::8680:ff9f:997:18b4]) by PH8PR11MB6803.namprd11.prod.outlook.com ([fe80::8680:ff9f:997:18b4%5]) with mapi id 15.20.7807.026; Thu, 1 Aug 2024 12:43:55 +0000 From: "Van Haaren, Harry" To: Chengwen Feng , "thomas@monjalon.net" , "dev@dpdk.org" CC: "wangchenxingyu@huawei.com" , "pbhagavatula@marvell.com" Subject: Re: [PATCH] examples/eventdev: fix segment fault with generic pipeline Thread-Topic: [PATCH] examples/eventdev: fix segment fault with generic pipeline Thread-Index: AQHa5AQqzz05hc83w0C9q1fCsDA4b7ISVqKy Date: Thu, 1 Aug 2024 12:43:55 +0000 Message-ID: References: <20240801111120.5380-1-fengchengwen@huawei.com> In-Reply-To: <20240801111120.5380-1-fengchengwen@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH8PR11MB6803:EE_|MW4PR11MB6981:EE_ x-ms-office365-filtering-correlation-id: c6244fa8-74ab-4fc8-5c1c-08dcb2279b4e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?Q?QvF8kmU6rgdCDw6dTnFYteECnr4WmVGxjp+xQXq7jJhK1lYVcE5zRryZsO?= =?iso-8859-1?Q?lrKtws7/8qmHbriszaL2+t99NQXQeilP9RCOQoNV4lDRV+LXcliy9qIdEX?= =?iso-8859-1?Q?KCMMEL0NOI9TGcd1E5HxNQyG40G5Ysfc6pre03ScDcEpePKxaZ5TfiFkWv?= =?iso-8859-1?Q?xEgG6sRxVswhytG4epwPHo05WhWCI3+zvyMuaSdCF/jQ5FhRVw1XhNX8zz?= =?iso-8859-1?Q?CkmN+G0hToVt1z1GswKlDg+03S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8859-1?Q?TEE0qhI5OPv/CRVbxWO/jqt9+OCBC2K5iLhNmZMSosp/OisFML7ZUQmLb3?= =?iso-8859-1?Q?BOGeH5kUzXKJGlnuYV9abdz3pKIxyAi8CVNbwNGYgYh5V7o5aMU2QOEVJC?= =?iso-8859-1?Q?PNSyNC078M3HDHDzhIQKSx2ktx1iXa8Dlr/hWD8PZ8OQY+LjevvyXYBpOI?= =?iso-8859-1?Q?3HFlHfx7bf5o3Wl/o2sqcChahCyDEKGCzG71EMbFjIC2UksqLAMBY3CisQ?= =?iso-8859-1?Q?91AWg5BlXVJoMQZeCfTzOlNEzEcJMdW3hMAh/cdt1yFCiuEngM8FFxFMNk?= =?iso-8859-1?Q?4Sy2bq9Sz99q4tbBusE2GOLtX49WFjNqPnHqdw=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH8PR11MB6803.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?GGp9nFq+zkoxtZNxxu1ZOEGlX6nAOclE9q2zXIWqbezSNrEdan+ogpW0fT?= =?iso-8859-1?Q?dg2Cn0Yia9A+A3Vwb4mREvlCRwOOwhmztwssY+cYoTjkMmu7MmKIjcH/3Q?= =?iso-8859-1?Q?8xpbngqW36B2IQdmVufKo73TMAnrMxACrUyLspTFOBlRwSAUS9VjnW8srt?= =?iso-8859-1?Q?5MUJM6svV3AoxjMGtOKYEpdf7Cg5lOskFiciULH0QK/BGgs0HZLLC6XbR8?= =?iso-8859-1?Q?ZQAt/Qd1PAhml0qn9ecGJOcPOfgcXsplgMsSjZ1DlnTmzvaW/z2Xu0zduO?= =?iso-8859-1?Q?ViyAZRNNTTJCZGLb1LshFSwwgO38d4QtJcI1dfLsNDQ1jNbhxStmprD5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Bw+bgoVZV8jiEEm7DwmKvV?= =?iso-8859-1?Q?w5zO3kneYluBtQ+rxTgNQar801Tu1UV+3IKNUCQCJHi09tkq+Eu5/+SDmz?= =?iso-8859-1?Q?ratgTerhYVQmxX2uvbfhr3H40Yi3WOWiEjA7wwfBQo5ifjfte5JhPfIyMs?= =?iso-8859-1?Q?Txk3qjbipGwE/ezVd7l/vR4hvw12042ewwZYe8lSvpm8IviEmQyAzl325z?= =?iso-8859-1?Q?H2Edd6bMOinOstTfjNr1XkFsE9vJrrPVh8ritda5BtuM3OmTiyCcOMYryT?= =?iso-8859-1?Q?Wz+GqDSxpfBHMreKXAEddcc80/k1xW8TtV+BVfyRjAMAFtsRcpb2CmBwxk?= =?iso-8859-1?Q?xHLdtw4tE8pWOO9LXufugjDwr+8Ru8KEXM3KcX7iQmBOHZWlOAAOL/0oJN?= =?iso-8859-1?Q?EgL2PJaY0qb36Ble5v1jKQDUWp4UNSMFT2ACbmnPu0FGUkJithSzag/w?= =?iso-8859-1?Q?=3D=3D?= Content-Type: multipart/alternative; boundary="_000_PH8PR11MB6803836AD11FF619F5B36117D7B22PH8PR11MB6803namp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH8PR11MB6803.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6244fa8-74ab-4fc8-5c1c-08dcb2279b4e X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Aug 2024 12:43:55.8286 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 2j22w3ph+hNeQQ69aMmAO/DLIFm4zuzPQpbPGdVU5VQrzm9oPlpSI2oeN7E/3NgmmnPWhln7LK73KmIkxO7Yfb5J8Gn8bwU8BmS019rXuOE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR11MB6981 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --_000_PH8PR11MB6803836AD11FF619F5B36117D7B22PH8PR11MB6803namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > From: Chengwen Feng > Sent: Thursday, August 1, 2024 12:11 PM > To: thomas@monjalon.net ; dev@dpdk.org > Cc: Van Haaren, Harry ; wangchenxingyu@huawei= .com > Subject: [PATCH] examples/eventdev: fix segment fault with generic pipeli= ne > > There was a segmentation fault when executing eventdev_pipeline with > command [1] with ConnectX-5 NIC card: > > 0x000000000079208c in rte_eth_tx_buffer (tx_pkt=3D0x16f8ed300, buffer=3D0= x100, queue_id=3D11, port_id=3D0) at ../lib/ethdev/rte_ethdev.h:6636 > txa_service_tx (txa=3D0x17b19d080, ev=3D0xffffffffe500, n=3D4) at ../lib/= eventdev/rte_event_eth_tx_adapter.c:631 > 0x0000000000792234 in txa_service_func (args=3D0x17b19d080) at ../lib/eve= ntdev/rte_event_eth_tx_adapter.c:666 > 0x00000000008b0784 in service_runner_do_callback (s=3D0x17fffe100, cs=3D0= x17ffb5f80, service_idx=3D2) at ../lib/eal/common/rte_service.c:405 > 0x00000000008b0ad8 in service_run (i=3D2, cs=3D0x17ffb5f80, service_mask= =3D18446744073709551615, s=3D0x17fffe100, serialize_mt_unsafe=3D0) > at ../lib/eal/common/rte_service.c:441 > 0x00000000008b0c68 in rte_service_run_iter_on_app_lcore (id=3D2, serializ= e_mt_unsafe=3D0) at ../lib/eal/common/rte_service.c:477 > 0x000000000057bcc4 in schedule_devices (lcore_id=3D0) at ../examples/even= tdev_pipeline/pipeline_common.h:138 > 0x000000000057ca94 in worker_generic_burst (arg=3D0x17b131e80) at ../exam= ples/eventdev_pipeline/pipeline_worker_generic.c:83 > 0x00000000005794a8 in main (argc=3D11, argv=3D0xfffffffff470) at ../examp= les/eventdev_pipeline/main.c:449 > > The root cause is that the queue_id (11) is invalid, the queue_id comes > from mbuf.hash.txadapter.txq which may pre-write by NIC driver when > receiving packets (e.g. pre-write mbuf.hash.fdir.hi field). Good bug report, thanks for the detailed info on hash.fdir.hi union-ed with= txadapter fields. I don't have the specific HW to test, so code review only. I don't recall the TXQ quantities etc (been a number of years since I worke= d on this code...!) so I'll +CC Pavan who reworked the logic around generic workers & eventdev = stages, and might recall? > Because this example only enabled one ethdev queue, so fixes it by reset > txq to zero in the first worker stage. > > [1] dpdk-eventdev_pipeline -l 0-48 --vdev event_sw0 -- -r1 -t1 -e1 -w ff0= -s5 -n0 -c32 -W1000 -D > When launch eventdev_pipeline with command [1], event_sw > > Fixes: 81fb40f95c82 ("examples/eventdev: add generic worker pipeline") > Cc: stable@dpdk.org > > Signed-off-by: Chengwen Feng > Reported-by: Chenxingyu Wang Generally the change looks fine - I'll wait a few days for Pavan's input, a= nd otherwise review & Ack assuming no issues found. Thanks for the patch! -Harry --_000_PH8PR11MB6803836AD11FF619F5B36117D7B22PH8PR11MB6803namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
> From: Chengwen Feng <fengchengwen@huawei.com>
> Sent: Thursday, August 1, 2024 12:11 PM
> To: thomas@monjalon.net <thomas@monjalon.net>; dev@dpdk.org <= dev@dpdk.org>
> Cc: Van Haaren, Harry <harry.van.haaren@intel.com>; wangchenxing= yu@huawei.com <wangchenxingyu@huawei.com>
> Subject: [PATCH] examples/eventdev: fix segment fault with generic pip= eline
>  
> There was a segmentation fault when executing eventdev_pipeline with
> command [1] with ConnectX-5 NIC card:
>
> 0x000000000079208c in rte_eth_tx_buffer (tx_pkt=3D0x16f8ed300, buffer= =3D0x100, queue_id=3D11, port_id=3D0) at ../lib/ethdev/rte_ethdev.h:6636
> txa_service_tx (txa=3D0x17b19d080, ev=3D0xffffffffe500, n=3D4) at ../l= ib/eventdev/rte_event_eth_tx_adapter.c:631
> 0x0000000000792234 in txa_service_func (args=3D0x17b19d080) at ../lib/= eventdev/rte_event_eth_tx_adapter.c:666
> 0x00000000008b0784 in service_runner_do_callback (s=3D0x17fffe100, cs= =3D0x17ffb5f80, service_idx=3D2) at ../lib/eal/common/rte_service.c:405
> 0x00000000008b0ad8 in service_run (i=3D2, cs=3D0x17ffb5f80, service_ma= sk=3D18446744073709551615, s=3D0x17fffe100, serialize_mt_unsafe=3D0)
>     at ../lib/eal/common/rte_service.c:441
> 0x00000000008b0c68 in rte_service_run_iter_on_app_lcore (id=3D2, seria= lize_mt_unsafe=3D0) at ../lib/eal/common/rte_service.c:477
> 0x000000000057bcc4 in schedule_devices (lcore_id=3D0) at ../examples/e= ventdev_pipeline/pipeline_common.h:138
> 0x000000000057ca94 in worker_generic_burst (arg=3D0x17b131e80) at ../e= xamples/eventdev_pipeline/pipeline_worker_generic.c:83
> 0x00000000005794a8 in main (argc=3D11, argv=3D0xfffffffff470) at ../ex= amples/eventdev_pipeline/main.c:449
>
> The root cause is that the queue_id (11) is invalid, the queue_id come= s
> from mbuf.hash.txadapter.txq which may pre-write by NIC driver when
> receiving packets (e.g. pre-write mbuf.hash.fdir.hi field).

Good bug report, thanks for the detailed info on hash.fdir.hi union-ed with= txadapter fields.
I don't have the specific HW to test, so code review only.

I don't recall the TXQ quantities etc (been a number of years since I worke= d on this code...!)
so I'll +CC Pavan who reworked the logic around generic workers & event= dev stages, and might recall?

> Because this example only enabled one ethdev queue, so fixes it by res= et
> txq to zero in the first worker stage.
>
> [1] dpdk-eventdev_pipeline -l 0-48 --vdev event_sw0 -- -r1 -t1 -e1 -w = ff0 -s5 -n0 -c32 -W1000 -D
> When launch eventdev_pipeline with command [1],  event_sw
>
> Fixes: 81fb40f95c82 ("examples/eventdev: add generic worker pipel= ine")
> Cc: stable@dpdk.org
>
> Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
> Reported-by: Chenxingyu Wang <wangchenxingyu@huawei.com>

Generally the change looks fine - I'll wait a few days for Pavan's input, a= nd otherwise review & Ack assuming no issues found.

Thanks for the patch! -Harry
--_000_PH8PR11MB6803836AD11FF619F5B36117D7B22PH8PR11MB6803namp_--