From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40070.outbound.protection.outlook.com [40.107.4.70]) by dpdk.org (Postfix) with ESMTP id C7EA42E81 for ; Thu, 3 May 2018 18:06:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=NhLaSNZvZqb84vcU/IrMG7c5G/jOL+m2f7b1sm1GWt4=; b=w9P/zZj8y1495jim+wyiIXgLWtdYJt1pf8TVHfEojEtb8xGQ0nT2Y9fmduu4nbXHFfIxcmd/smKccND8HYx6XBGOMPeLC7x6BOj9MTxmC5e1Mp8U2XEdzZ3G1zj/uRHzCeG/nzQ2qaL2FdH06XIcSSlWuGXb3ZjyTcG73dg4jAc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=nipun.gupta@nxp.com; Received: from b27504-OptiPlex-790.ap.freescale.net (14.142.187.166) by HE1PR0401MB2427.eurprd04.prod.outlook.com (2603:10a6:3:25::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.23; Thu, 3 May 2018 16:06:43 +0000 From: Nipun Gupta To: thomas@monjalon.net, hemant.agrawal@nxp.com, shreyansh.jain@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Thu, 3 May 2018 21:36:05 +0530 Message-Id: <1525363570-23542-4-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525363570-23542-1-git-send-email-nipun.gupta@nxp.com> References: <1525280972-27736-1-git-send-email-nipun.gupta@nxp.com> <1525363570-23542-1-git-send-email-nipun.gupta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR01CA0105.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::21) To HE1PR0401MB2427.eurprd04.prod.outlook.com (2603:10a6:3:25::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:HE1PR0401MB2427; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 3:KP+B6SrPEKfdP6Qxi2tLE+M0nN4OBW6N5LCxpBDE3iTmDZmtWzKXWdy4QGdDqAYx5L3f1GYC+sdyxwGKhuf9twAETfZc4o9EB5e8Gvz28a5AnE5DI1RyCOTyRL34bvRdLS9bFbNgzOqMootfpGnclvl4FZCmfH5vvxazhhY5rZ1A3HSRIpWnz0xQWTuumPDTmAZyaIO0jSnv1d9tJwtRIfiwBAWbW2xHcT4xvOBy8vJVhzyIKIb4mKlvLo88j89P; 25:VQjeamXDxeHParTlsfF6aHNNbqpFXdQi9AgDaD7A/VtXhz9eWoDwodrcov3WuL6ytHWdnOISTLaIArYM3fPZH/jWW4bHMztHyK0WthaURKQzS8dKJtfs2qmQgn8J9p50rwjgSVMhJ7HuRwUTNeVNIKMM1wNeA83jijytJXJxkABNxr+vXhYTTuXDYQNKnurdWXmFsgw3T0B9C3H9Sncs0YZn9Pd3wzjCYavZ4wBd3Q+f2/CCEQoHDT7CDARBcPowxTXhhRlFIblcaQna4sUHjmZnbBCzZ/aDbZaQNeWXGeh2wUgo9WRBKOf4Y8fEYTb5KSjXQisBekOmGbh+vPwkig==; 31:a85UfZTPINZ/G0GhA0fgLkss1WokWoJOWSj7r9i6Tux6waY1z+WIqkRiCHj4XLD3sBXibQKrQpoADJfJIU5bbJKaxXvcvlv5J7hA8NYf+FlltW3+Ga4DzsaRHjvFcIEcbeJPANhglOCaEXc2nByaUBCwJE3YKRTadL1Iny5SyEE4djSZbQsqKlPEgSJJ1ruUbZMiToQsCbG0y61kdpipg6mZNPd4fbcNXHgvlDbikt4= X-MS-TrafficTypeDiagnostic: HE1PR0401MB2427: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 20:Wan0KmQGByqVBhzFekKRayGK53P2cH7vZQnNdtgRgrzhXvC8ro2B/ApG9LmlnRpFnCLi3BFuitX8YHzgmoq5zNeVYJhsa24NBpJlpr0aJhQoxex55AaQa+hYrlncBLzWPrKfum3TsYmPIGEqkrB5lTKkOkDYhxnRmUEIXktSktwOuTzdpd5kjqfz/v1AXCqXEvnbvLVDl4up71g1kAr6kbkz6VbKPtcNBYqzEWbiXc6VbqUe4Ejr/OaLtUR9nIgYmsyOFXA4iCz4Z0uwo/f+g2SCNqOPiRtIkqt+xBeQp5FwhwT2Pjp62OGel2auCkmfP7USSzkt7KNKtI0nptmGJoVfgX0bcbJD+VpmsEvz5n1JMuj/1q1Y0bktc+Fk1WobmGte5R86M5MHSZi+bxw1Lg6SIj7u6ygMsuPAzPUL5KdhAyfhTsPu+muEkah2Ughb+UUX0D+2EdTYfKkzeEUOeVTDgNCER+10R0U36AulM2XGGudJkkElSF0Gr2KlArjc; 4:0kLk/4PVs4UqbBwljT5DUPONYFqgAIqSV1+Dmul0vI6MhMU6sfnf+S1IHaQ/w9wDanqKOmb/pw018EomYG8S8W1gW3eQKJs+YALuTpRZJVzd6j7Aa2x+g72T13sq+PT+5RvjDSb/bGCpEgjyckpJZVGWNw7boXimAa6g4t6t90SUa/Y3SKLjAxbpdGNuw7O6EbkVSZe3l35goEbzOoidJBTgUu48SON6JP+K11YFm5t9287NXfV7SIUtLab0fZHXUSeDAd5e7iYqMPJ2Dnp7OyKTxqbC4hP2lL3Si72TcCV4hjI/Ti2w+PwvsYMFpj3a X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:HE1PR0401MB2427; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0401MB2427; X-Forefront-PRVS: 066153096A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(39380400002)(39860400002)(346002)(396003)(199004)(189003)(5660300001)(26005)(186003)(47776003)(16526019)(6506007)(386003)(51416003)(55236004)(52116002)(2906002)(50226002)(97736004)(486006)(105586002)(25786009)(44832011)(106356001)(575784001)(76176011)(81156014)(86362001)(68736007)(36756003)(6636002)(6512007)(2616005)(11346002)(53936002)(956004)(50466002)(7736002)(81166006)(8676002)(16586007)(6116002)(478600001)(446003)(5009440100003)(48376002)(6666003)(316002)(476003)(3846002)(305945005)(4326008)(66066001)(8936002)(6486002)(110426005)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0401MB2427; H:b27504-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0401MB2427; 23:FgO6/26E/ySAj/BlwEkP0wpGKR3YRDsvioG1GLD?= =?us-ascii?Q?EK+srDtO7gc4XmdNu3B36HvAnkrpmAD/DFekN1mlU6CDG2QCzTj5mVOHA25d?= =?us-ascii?Q?OAlMl8RB7c16Rwwg5ZEy8Vx8F8LRmQaNL4ge//XPJskscH1h7Jp5pB6m2b+1?= =?us-ascii?Q?tMFKuX+wtrEXwfkkumvR9Du1Acd3GQDTJuCw7WYURa7ZYd/rbVTF57ATkbWi?= =?us-ascii?Q?mfKY3pmED+iUVEJQXLsElXxAE7vjTi6rLYmIEYGV+CNSd/D9eYzFILjV9/+Z?= =?us-ascii?Q?8elNOTBZOvInxiSbLxmJqOUDzxfSyP2kU67nRoA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HUdQ=; 24:wEUdjRdLKB/2Pi8xclpPiXokpvUkQmqPOhN/EYDIKLjgmpR15hltGA9PvYsq5wu6ZQ1d1tkHxBHKwNvJL85maFhQFtZ7xSg5e0ssWCoCCWU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 7:36abk7a29WY5LnFf+n/XtiO3Kohlpv2ia29Z8NtDBqPc0w2U3v53hD7hWNjMX4Rp7hxis+tmjx8Iq7bHUTyB2re5YBfk9nBmoE5U7PHwpVBUKSMGTY3F1iXLrSfXU9uAt/zXXCDQkBXVJVWJG+gGbNOZLFT0iZUBp9BzPlFUsfK6zyx56XR/KhQfvtlKknjCzgaM5/WQK0eNqIp2CHAtcCr5YeKvYPq/bvtJNJZqtVbDsgdJeEXU12b6DE+/GfFV X-MS-Office365-Filtering-Correlation-Id: a418252f-c41d-40fc-4c29-08d5b10fddd2 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2018 16:06:43.2121 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a418252f-c41d-40fc-4c29-08d5b10fddd2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2427 Subject: [dpdk-dev] [PATCH RESEND v7 3/8] bus/fslmc: support scanning and probing of QDMA devices 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: Thu, 03 May 2018 16:06:46 -0000 'dpdmai' devices detected on fsl-mc bus are represented by DPAA2 QDMA devices in DPDK. Signed-off-by: Nipun Gupta Acked-by: Shreyansh Jain --- drivers/bus/fslmc/fslmc_bus.c | 2 ++ drivers/bus/fslmc/fslmc_vfio.c | 1 + drivers/bus/fslmc/rte_fslmc.h | 2 ++ 3 files changed, 5 insertions(+) diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c index 943c01b..fde5f19 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -164,6 +164,8 @@ dev->dev_type = DPAA2_CI; else if (!strncmp("dpmcp", t_ptr, 5)) dev->dev_type = DPAA2_MPORTAL; + else if (!strncmp("dpdmai", t_ptr, 6)) + dev->dev_type = DPAA2_QDMA; else dev->dev_type = DPAA2_UNKNOWN; diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index 749d92d..3800c26 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -661,6 +661,7 @@ int rte_dpaa2_intr_disable(struct rte_intr_handle *intr_handle, int index) switch (dev->dev_type) { case DPAA2_ETH: case DPAA2_CRYPTO: + case DPAA2_QDMA: ret = fslmc_process_iodevices(dev); if (ret) { DPAA2_BUS_DEBUG("Dev (%s) init failed", diff --git a/drivers/bus/fslmc/rte_fslmc.h b/drivers/bus/fslmc/rte_fslmc.h index 69d0fec..7b34368 100644 --- a/drivers/bus/fslmc/rte_fslmc.h +++ b/drivers/bus/fslmc/rte_fslmc.h @@ -61,6 +61,7 @@ enum rte_dpaa2_dev_type { DPAA2_IO, /**< DPIO type device */ DPAA2_CI, /**< DPCI type device */ DPAA2_MPORTAL, /**< DPMCP type device */ + DPAA2_QDMA, /**< DPDMAI type device */ /* Unknown device placeholder */ DPAA2_UNKNOWN, DPAA2_DEVTYPE_MAX, @@ -91,6 +92,7 @@ struct rte_dpaa2_device { union { struct rte_eth_dev *eth_dev; /**< ethernet device */ struct rte_cryptodev *cryptodev; /**< Crypto Device */ + struct rte_rawdev *rawdev; /**< Raw Device */ }; enum rte_dpaa2_dev_type dev_type; /**< Device Type */ uint16_t object_id; /**< DPAA2 Object ID */ -- 1.9.1