From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0078.outbound.protection.outlook.com [104.47.34.78]) by dpdk.org (Postfix) with ESMTP id 6DE592BE3 for ; Sat, 13 Oct 2018 18:08:27 +0200 (CEST) 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:X-MS-Exchange-SenderADCheck; bh=4xzTz03yR4Yhs4n3ZcuHXp2AuDCR5JNJuVMKicQJoAo=; b=DwPkbXSVB6uxVOzjBA2K1spYYxNruoXSJNTuQdV9V4vkEx+FIJ18GScxgFn2KdTniUypbVq9GCtf8n2+1OAMBOf0DNBVKrSAgZmpweGZJAnjcdl3F0ilj6x2tQ4Q9BKuITaiORUqdJCq4uBiK7pNYjBZwN9aHteoTPhLDiZbkaE= Received: from ltp-pvn (115.113.156.3) by DM6PR07MB4971.namprd07.prod.outlook.com (2603:10b6:5:25::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.24; Sat, 13 Oct 2018 16:08:22 +0000 Date: Sat, 13 Oct 2018 21:38:02 +0530 From: Pavan Nikhilesh To: Shreyansh Jain , anatoly.burakov@intel.com, hemant.agrawal@nxp.com, ferruh.yigit@intel.com, thomas@monjalon.net Cc: dev@dpdk.org Message-ID: <20181013160759.GA28993@ltp-pvn> References: <20181009112548.7025-1-shreyansh.jain@nxp.com> <20181013122130.22588-1-shreyansh.jain@nxp.com> <20181013122130.22588-2-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181013122130.22588-2-shreyansh.jain@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: BM1PR01CA0097.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::13) To DM6PR07MB4971.namprd07.prod.outlook.com (2603:10b6:5:25::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d6a7cf58-02f3-46d0-cf0e-08d631261ab8 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:DM6PR07MB4971; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4971; 3:QkywZroox5TVEObNZoJfGKHuUfz7d0K1XLrfaKERTewWKST4VxFVFuQrUJnCce9urCTtCLlds6BP5J971PM4/weO13D1v0MvI4W8r8nDgfwGLZoMkv4sunkQkpiyKuObGOlcCurqlRdh9/01miNpb9z9d6xiFRiugiyZO+S0jzHyYTEM+pYA9ObQUzgUD28MJaqTrU6Csg1C5zNr0DbGamfaVQUikju8JyVU/6wytzfJPeJUE9IvTk1yvqCHaz/l; 25:pWIrWbB4uwVhYYGupRgKK2V0/U/RcoYEkkO5TTtXUYeZS9qyRewkMS+Kd5fsuovhie9kTS0QcjmpHXR1/pKkpILF2CkSMTSLmMKD8r2eqsLNX/5x4sry7UswgJFoRo99lv0lAYoEUJXv6aUWOrJSLW0TXLuYw6egu25+JgGMX+1vbjVT64jzoXTh3nToctTaV4p08L6yFpkFfk0qhTZyb6quc4Ninb8l0UksKmXXf+GM/U/EriZ6HF+9ZEZLVzziucc6l7twauwXvPJibCNvITLw8Z0Q0cjZ8f6YEh3o/K6BZwtb1jMVzwXlu7ZDLhK4o7GQ1Pn3keQfc/scudggYw==; 31:JgvsEg78b4qXDGAtEaKdnRvX0HzAqbNZFRWzkTdvAZNfxhHPRvi8R7lh+cMkEJe0huKgebBmX9ur4Nh0CYuGfYIf3rO/bTqRk2zrCSlgEhg2RHFMtnKVPEvAtuLILeMvGGy+xp/8m7oJ0uqbWRLisp+vyWx9kW6twGm4nqBt6Umxwjygh/o1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ispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(10201501046)(93006095)(149066)(150057)(6041310)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991067); SRVR:DM6PR07MB4971; BCL:0; PCL:0; RULEID:; SRVR:DM6PR07MB4971; X-Forefront-PRVS: 082465FB26 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(136003)(39860400002)(366004)(346002)(376002)(199004)(189003)(8936002)(5660300001)(16586007)(6246003)(33656002)(6496006)(52116002)(81166006)(81156014)(58126008)(316002)(8676002)(305945005)(7736002)(478600001)(97736004)(50466002)(42882007)(68736007)(23726003)(1076002)(229853002)(47776003)(106356001)(105586002)(11346002)(486006)(476003)(66066001)(6666004)(25786009)(55016002)(53936002)(2906002)(33896004)(386003)(76176011)(4326008)(55236004)(6116002)(3846002)(72206003)(26005)(16526019)(186003)(9686003)(6346003)(446003)(956004)(33716001)(18370500001)(107986001)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR07MB4971; H:ltp-pvn; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM6PR07MB4971; 23:E1xqsfWeVpcWWF27oNDxhPeJ5e/Q5GuSbC7ml3rFN?= =?us-ascii?Q?cju++mlQ48J2TV/Q+BrQuiSnkdsydlJn7Rd0ZbsAb+WBwBOnuL+u8sI1ZWWv?= =?us-ascii?Q?pzmYD0bpKqxZ77F6frD7sicVPnZNageCDlvUb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UGScDVPasfB2Xnovh0I8l/v96GTXidB4xjjeXMUJWFjbXWuaQP5mk6TcBLjRPYk0riI8AXAgDOvYaomzl19hXRzMjr+zaeGoudJkJEFSqm3EvyKaiLmdOwCLM8N8HYE55YsN1Q+DoHFM/iv+yrKjkvI4ne4sOZkAktV4jgwL+1uv1lvqNXqHAyiOY8ynDtAi/vChNrQEoK6cno5TaLjJj9zlutvgHg5GJJyf4dU6+F/3S87B+QW8xXWst0lKYMea7tPwYv+pA==; 5:RpDzOWpgsghsrLEcQvB21maCAr+sivrUxD+ZHTBgfzPZyHig7M/k4Sg+kKlGoLGyQswOoh/ZTvntuiSqDfFdRp2FmNEhMgKJigpVhAhFAm2kG/GyeRhzV9xfHTD7NdNboh5ugbRPO42LQP6thnR/j5grF3KbHR22kpah8wiTRBM=; 7:hAKdbMAZ+1DM+rbBspSyCpM6AWewzQTvKiAVQagyCKY0PqFXjICfuHZFHPNYEGWiwqQp0bKSoy6EPPOoJX5LMyo7r1/XsY4AlbRl/VvgtO1MZfpraIafZyICeBUM7n9yP+BybxyCCfE5A05NRqTOddPwpmx/JCd7HYlE0E0iPqYmP7EPC5ZACAxT/cSJ9yAnHvLAMT0/oJvwHmJoDJnzELKxqDLQ6xrA79MwpsfV2iMBLx4XvWjitM6hZCu4xo4w SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2018 16:08:22.0993 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d6a7cf58-02f3-46d0-cf0e-08d631261ab8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4971 Subject: Re: [dpdk-dev] [PATCH v3 1/5] bus/fslmc: fix physical addressing check 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: Sat, 13 Oct 2018 16:08:28 -0000 On Sat, Oct 13, 2018 at 05:51:26PM +0530, Shreyansh Jain wrote: > In case RTE_LIBRTE_DPAA2_USE_PHYS_IOVA is enabled, only supported > class is RTE_IOVA_PA. > > Fixes: f7768afac101 ("bus/fslmc: support dynamic IOVA") > Cc: hemant.agrawal@nxp.com > > Signed-off-by: Shreyansh Jain > --- > drivers/bus/fslmc/fslmc_bus.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c > index 960f55071..19e33caf1 100644 > --- a/drivers/bus/fslmc/fslmc_bus.c > +++ b/drivers/bus/fslmc/fslmc_bus.c > @@ -493,6 +493,10 @@ rte_dpaa2_get_iommu_class(void) > bool is_vfio_noiommu_enabled = 1; > bool has_iova_va; > > +#ifdef RTE_LIBRTE_DPAA2_USE_PHYS_IOVA > + return RTE_IOVA_PA; > +#endif > + I think you forgot to move it below the device list check as discussed in previous patchset? :). > if (TAILQ_EMPTY(&rte_fslmc_bus.device_list)) > return RTE_IOVA_DC; > > -- > 2.17.1 >