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 10399A04DB; Fri, 16 Oct 2020 04:13:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E1C8A1E99A; Fri, 16 Oct 2020 04:13:37 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 8FE5D1E994 for ; Fri, 16 Oct 2020 04:13:35 +0200 (CEST) IronPort-SDR: AK3SiPM3KdKc/z7be8rsZEsAwH0u4F/Ei1Ao4oBSnUfgmiOarmMssvMqFVlb3UUEwEskprlT0G SbhWtYo+BIGQ== X-IronPort-AV: E=McAfee;i="6000,8403,9775"; a="163032270" X-IronPort-AV: E=Sophos;i="5.77,381,1596524400"; d="scan'208";a="163032270" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2020 19:13:32 -0700 IronPort-SDR: Ar37DC2Fw9SGsnMZ+BeRtqu6LsBl1nmqJWTJbkhDHKOlWPxO5/15TY/imdZkUB29B05kDaReQb kQ106CZZUaTw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,381,1596524400"; d="scan'208";a="357217227" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by FMSMGA003.fm.intel.com with ESMTP; 15 Oct 2020 19:13:31 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 15 Oct 2020 19:13:31 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 15 Oct 2020 19:13:31 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.52) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Thu, 15 Oct 2020 19:13:30 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XjQDg2MAogssugmr3fdakqH0aHDRf2THW79O0ucsQQMOIoxG1z6Q3tAIkHuP+kaUWSJoQloI/p6hUAVo0QKXywyPCzqGi7v4Cw0Z3+WPYE1vfaRQArd9SB7nHtQpKqp6jae0dZVBRIc1sOXwj3MJmzNWD7vZk69KuR3l+qfe/26WWH2EO1DZryLgr9FLAQwwIrnoeCw3OmpZkAGL27YuxGlv35GOnn8rvjV2NMdu0gL5iPDX7ryGUasE+fYhGYEYwXF5Vj4o6pNDp2l1XoHEGShEPkoAkuDHxxlgd2/keZcce8VPPo0txUHvwQvvLo1VAkD8UTu7VkyMvz28Ry21uQ== 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=/F46enfMXM5MHCfHHiekrGu42v7jqxz9dfKaVZtXXBs=; b=KppjeTUOZhVb5Tx0/iMugmg2cP3l/t+NESPpe0Rg79UpPX1tcxIm9Boh4eelBXRuEXjAbd9u35eyolASdTg4KUlcExBquZXDDgAxMqJaEA6BGAZ0IFr7Hq6ThDTz9sn9oUyFqIvLgFVvhv/qGKcGrbEU51sn/uwvIk7Ik33mb5MPO949nqoSV3UKSBMyFHR23xRuAa77LIFEIvGVmtfAfksClIWYcXCJK3k+VJ8uYojvTkJWPmT6lVzli5lvH7FIVcqQrXq+Fg1gKsCLalam0IfG+pcwTNgUIJRe8lzF2C68ZgTqfUVvqAwrj6K1SAKTNvVCI93BR8CQ/m7UMQiAig== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/F46enfMXM5MHCfHHiekrGu42v7jqxz9dfKaVZtXXBs=; b=Voplz5zXqM4nrD+8Q3+HvoZslXrxVdTc2HlxtlBWQZoKzLWMZMg4tmMRB6B27XPKAVWCzSrINWwXdHXR3J/wsA4JjqonxXEdzoNVySShSRWm2uje/eQAXHdOQPZcYvunLtiOGdeYW7InCExMdbOdf2BT9jsRHdnMdfJCVdudS5g= Received: from BN7PR11MB2818.namprd11.prod.outlook.com (2603:10b6:406:ad::23) by BN6PR1101MB2260.namprd11.prod.outlook.com (2603:10b6:405:53::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.25; Fri, 16 Oct 2020 02:13:25 +0000 Received: from BN7PR11MB2818.namprd11.prod.outlook.com ([fe80::4c19:a25:68d2:b359]) by BN7PR11MB2818.namprd11.prod.outlook.com ([fe80::4c19:a25:68d2:b359%7]) with mapi id 15.20.3477.024; Fri, 16 Oct 2020 02:13:24 +0000 From: "Han, YingyaX" To: "Richardson, Bruce" , "dev@dpdk.org" CC: "Ananyev, Konstantin" , "Tu, Lijuan" Thread-Topic: [PATCH] build: fix memcpy behaviour regression Thread-Index: AQHWoKdBGDlXi6Hdj0aQSKuSWORb6KmZgHhA Date: Fri, 16 Oct 2020 02:13:24 +0000 Message-ID: References: <20201012145148.290451-1-bruce.richardson@intel.com> In-Reply-To: <20201012145148.290451-1-bruce.richardson@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.193] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: faa51fe0-4bac-46fb-c88e-08d871791036 x-ms-traffictypediagnostic: BN6PR1101MB2260: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kX3WS4OZBeHu0kw+22HKFvkcwdyth2BUWh6mRlbnfMbIdldZ52X+3qFzbV43HakTBB1Sv2+Ucjtf+vhRDDkdRG9dcB4oQjLXeHTRLgypoedJDWsaa5gx/OFRmK1/k4KuXmscKpuLTLN/uuDipxuDPqhKYv7N8RMu7ueeuINl9P/WJkPB8wHogIvEJryQab0ZK+ZjlzpeOTQOUsG8CyZd9a0bp9zj86QYArnnTRkLVwE8HFFhvXPQ7bjZMM3VQrSGY8a1fXY1sgxSiU1ZwdfwBHL86pwEO/DkEetWHUSoQs+G3zLneOwbce2FFPQoQu9nEcX9NB94zCoYAxFj2n1yKg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR11MB2818.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(39860400002)(346002)(376002)(366004)(83380400001)(478600001)(316002)(66446008)(64756008)(66556008)(66476007)(54906003)(110136005)(66946007)(76116006)(8936002)(2906002)(71200400001)(8676002)(4326008)(55016002)(33656002)(9686003)(186003)(4744005)(6506007)(26005)(53546011)(86362001)(7696005)(5660300002)(107886003)(52536014); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: H39F2fqUIrl8vD+7sXbVYIV/AJg3ObvFsFKp6D7Hghl8xJzQQbSx41HFa2L1vMJ2A1NjS5Mba00vDmjAyLGhoP9b7X8531ZVBWUGDzcWpuu0NfTIPBfYnFzUuF+NZOz1Npmp462TIzVp4jhAZiPnXWTsllUCVh2xbiKMruXFBPwykzsShyyLElYweisYFfzn7vQXf77nEPI/pADjDXMPU4b4srQ4BQDCi2WxR41dynRKVN6fVZ/LGIKUFfM68eINEhzeMz/VPVdA3/6Y8ADH2p8nttVglNHM9vKwYU9tCHsA/VA3moc/595sD45b2l4GPGNf4bUF/UnIDm6frx9t4CZlYGh1+2aLbPMqyK52pimbohOPuS9unjqWrxo7enqvPTSwLavf+m6RMT+84tGHUbTZ6u1BSqWJce+KJF4ZH5SAjXTAcEj3dSnPj8NIQoKoJr0HQSmFSYn3h/7TwLNHskMPUTzkBN7G00GnCJi+4hhhH9X20mdB3i43rlLJBq+vS9rVdkULu0wBpVvWVrigas/ep/MvAibXgoHpBGjrzUbiQ3C5yLsZJZ5IWYE149tWU19kXF46urNLZRdF5RO8hgZtweww/tm28Xhkp0rOfbMAaGD52JTq0EQzXZ24ljKpc/vw3AdkjNxWxp+JRCBt7A== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN7PR11MB2818.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: faa51fe0-4bac-46fb-c88e-08d871791036 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Oct 2020 02:13:24.9242 (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: wd0844Tkv5uzl7w9p7nCDcpTmXyB5/AKuZEmos/ajCzLhqY/VCiA3cvbGiiZZVDG5PfUq4FFia0O2gQtOc5LGw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1101MB2260 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] build: fix memcpy behaviour regression 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" Tested-by: Han, Yingya Best Regards, Yingya -----Original Message----- From: Richardson, Bruce =20 Sent: Monday, October 12, 2020 10:52 PM To: dev@dpdk.org Cc: Han, YingyaX ; Ananyev, Konstantin ; Tu, Lijuan ; Richardson, Bruce Subject: [PATCH] build: fix memcpy behaviour regression When testing on some x86 platforms, code compiled with meson was observed r= unning at a different power-license level to that compiled with make. This = is due to the fact that meson auto-detects the instruction sets available o= n the system and enabled AVX512 rte_memcpy when AVX512 was available, while= on make, a build time AVX-512 flag needed to be explicitly set to enable t= hat AVX512 rte_memcpy code path. In the absense of runtime path selection for rte_memcpy - which is complica= ted by it being a static inline function in a header file - we can fix this= behaviour regression by similarly having a build-time option which must be= set to enable the AVX-512 memcpy path.