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 851EDA0C56; Fri, 5 Nov 2021 20:05:31 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0746440DFD; Fri, 5 Nov 2021 20:05:31 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 846E040151 for ; Fri, 5 Nov 2021 20:05:29 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10159"; a="295408792" X-IronPort-AV: E=Sophos;i="5.87,212,1631602800"; d="scan'208";a="295408792" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Nov 2021 12:05:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,212,1631602800"; d="scan'208";a="502070051" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga008.jf.intel.com with ESMTP; 05 Nov 2021 12:05:24 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 5 Nov 2021 12:05:24 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 5 Nov 2021 12:05:23 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Fri, 5 Nov 2021 12:05:23 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.42) 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.2242.12; Fri, 5 Nov 2021 12:05:23 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UfYDZApTgFEfIAazF6sRdjHK+ujp9gplfx5tl/kkRwPgZN3ChMfrP2fXmqKdfRRbcvqnUz0SbjModg69mBdMkn4tZ7+awhfdWofVr0y61wbSShMsEQdPaJCC22B4G34Fl+dHChYzzaNphV1nHf87MQVKuwufxMxLL8VEkPeDk8ZZETgRVVfJtJrzd9KkhmiqCZD/u4k9f7elxDN1U6aDo3b/Hukzx4llfz15kjSeMMSTe07VNpG9TFFQcpFzlPbT7tPTfc2yizoFBt/Z7EFbjEdOtK1+PdISRbdnFJR5GMIAYwvPo0HAJUTnHjAplg2jtehUkiNHgPj8Puytw1LSyA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=I3wJujwJC7vq3V/b3iW6rgZJH4el0T/KdFCieU22bcg=; b=faAdgGEBPLf7NyHf8vemXgc/QUFufw3TK8DVfMCIdgfwH4LACUvMFrfXSdthXNiWTrM7mBq0Lw1PB+1ApDf9NtsottUIOwBwdtaV+DFrcHbwPvd6eBkvUIehp5qLJw4a+S+tBjslWKzCVbLAMKTXqesbmKTTZ9fXa9930UfFRGducLRd5hSgPwmzhjZ/PqudD/v346I7uSXf/me9Dmx5SReCRvpym2RUGWUKvz2hh1EXHqAZcoDfg8jtBE2dc9du25AgpOm55i6WEVbFwau3s/25Q0e9ygEynA6tjw+ASfsdKhTaTwperqPVPVwsNwlMf1WzNZa0oIWYgyzJFbMnLw== 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=I3wJujwJC7vq3V/b3iW6rgZJH4el0T/KdFCieU22bcg=; b=kh2MCttlhGd15dyRn+yE5WHd61b070Tbp/gsQJmlkjgM/oErCjpCI0LdbyM1QB0q0ntC15ISp6/7TFRc0OO1iMGSxFojv9VGdKSQ9iF0jmrMDA+Bv6K/zDvXwtyRhpPNSChtlPunayyxiOQGWgVkKA//SZ017gh6GmYDNk1TaOY= Authentication-Results: oktetlabs.ru; dkim=none (message not signed) header.d=none;oktetlabs.ru; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB4869.namprd11.prod.outlook.com (2603:10b6:510:41::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11; Fri, 5 Nov 2021 19:05:22 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c%7]) with mapi id 15.20.4669.011; Fri, 5 Nov 2021 19:05:22 +0000 Message-ID: <54c1c7a5-9093-5126-4984-c9dafa8f4cf6@intel.com> Date: Fri, 5 Nov 2021 19:05:15 +0000 Content-Language: en-US To: Andrew Rybchenko , Viacheslav Galaktionov CC: Ivan Malov , Thomas Monjalon , David Marchand , References: <20211105083333.1960017-1-andrew.rybchenko@oktetlabs.ru> <20211105083333.1960017-5-andrew.rybchenko@oktetlabs.ru> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20211105083333.1960017-5-andrew.rybchenko@oktetlabs.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO3P123CA0013.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:ba::18) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 Received: from [192.168.0.206] (37.228.236.146) by LO3P123CA0013.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:ba::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Fri, 5 Nov 2021 19:05:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ac1e70c8-8223-4256-a4e0-08d9a08f3761 X-MS-TrafficTypeDiagnostic: PH0PR11MB4869: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3826; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OLYtHTa82+otGxx5h1I+EplhJnGS+fptTNQ37IDNnCwdTRrn39xFBKC5BcuPVZIkdP9eujw7WjaACNc1TfN25bL9VY/yhtJmzbLyIDG7E8lqhO7wg/Y/G9q+jZY/wNOk1LlcHq/9N5dN9Fw3zxzxGcLaXi1lJ2rKEAixXbDyLEzciFjd1QyGjYfCI6EzejjpM8r7M++/qzCNj6t2f3FE/v6WLCVxXg+ARBIAKQrX1nxcuY+BMDVrS3QxYj+ZAUzY7b4IMyA8ZQGBPLoNXlTsNEEsxapzeHspH6jM3aEv2oLpO2NmH0KYaHLDF1JfOI/V9uhLlMX6VOa0YhrfZfK59LIa529NjplFA4oykfuqCDpwmJuH/9k2o6UAHpU+r9Z/m+z67iUmLfF55md9KubZQ29AmFvPZlq57t7TiI/J5hGNvv7WJhmKxepLXNDASPWDzg3nLdelLkScjxkj6DAqY+PynMKezTBONTm5pD7+CFlkyNFchr+w/rHAh+qVAC4KL5D5gQWYgv56eK6pX4ZACG8jKQOjUMeyr4oE2UHahBt931cHfS2V86x86B2FrRYa5IXVj/V305ITXi/KoDEDpIAjdwXltonF3eeKmcp1+EJxB9GwlmD07Hp+BZD1PcqiK3oikeCTfgDqUfXCvJcW94HVLrqnr1FwiR7vDFkjWrr7ldQu3N7rkITssbK1PzjXlY7S6lQx2+MrZnW7qcJa/w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(2906002)(53546011)(36756003)(83380400001)(6486002)(31686004)(54906003)(8936002)(66556008)(66476007)(86362001)(66946007)(508600001)(44832011)(26005)(186003)(31696002)(82960400001)(2616005)(956004)(5660300002)(4326008)(316002)(8676002)(16576012)(4744005)(110136005)(38100700002)(6666004)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VjdRbEpiNHJwcnZNT2hvWFRabHJJYnFJV29FcjRhWDdYamptSitFV2QyMFRG?= =?utf-8?B?c0JiTTBPczVwdUIwNkswdFhqZFgvUVp4Nk5VOHd4bGpmcTBEdWMzQSttdjBu?= =?utf-8?B?S3M2MVlkcE85SUx0N3pZSG9xdDY1b2Qxa2RXTnpTUkFqSjJLNnBUVjdYUVcw?= =?utf-8?B?NHdnNEg2TGlYMXBUaW14R0l5V1drdHFJMnkyOWthUXNDSk94ZWRuZnUvVnMr?= =?utf-8?B?WXVGYTFoSnBUelIyU2FYR2RUMFVESkNjSnFEUTNFU0FPUTUvT3pSUzQ1VHcw?= =?utf-8?B?TFJBcEwrbkUyVnhrOVlFUjJnQ1VrWXdpVkF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?B?a1ZiUy8xUHZQSmU3Rk1yZHJFdlBRd21wZWRSUE1qYjIzSlZaQ2xvZ1ZKUklC?= =?utf-8?Q?Mju/IVMe37S9/5Duqsb1Hf0=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: ac1e70c8-8223-4256-a4e0-08d9a08f3761 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2021 19:05:22.2217 (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: GYeo06knqe/SWjCqdCH7pl4Rd00GsKICrSX8ePaB6Su7ci+N6f5iPnmsXOelsBoj2NzavRODlTA7QdWv2UtGsw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4869 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 4/4] net/sfc: support regioned NIC DMA memory mapping type 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 Sender: "dev" On 11/5/2021 8:33 AM, Andrew Rybchenko wrote: > From: Viacheslav Galaktionov > > DMA on SN1022 SoC requires extra mapping of the memory via MCDI. > The mapping is expensive on datapath, so make it a build-time option. > Usage of build-time option is acceptable since it is required in > very specific case only. > Not really sure if it is acceptable. The change does not look trivial, it touches in many areas with ifdef blocks, cluttering the code. Even it is in datapath, it should be possible to have another datapath function that is only set for the specific device, even perhaps by automatically detecting the device, not needing a compile or runtime flag. > Signed-off-by: Viacheslav Galaktionov > Signed-off-by: Andrew Rybchenko > Reviewed-by: Ivan Malov <...>