From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0064.outbound.protection.outlook.com [104.47.33.64]) by dpdk.org (Postfix) with ESMTP id 729FF1AEF0 for ; Tue, 19 Sep 2017 15:26:39 +0200 (CEST) Received: from BN3PR03CA0109.namprd03.prod.outlook.com (10.174.66.27) by BN6PR03MB2689.namprd03.prod.outlook.com (10.173.144.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Tue, 19 Sep 2017 13:26:38 +0000 Received: from BN1BFFO11FD045.protection.gbl (2a01:111:f400:7c10::1:112) by BN3PR03CA0109.outlook.office365.com (2603:10b6:400:4::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.8 via Frontend Transport; Tue, 19 Sep 2017 13:26:38 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD045.mail.protection.outlook.com (10.58.145.0) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.35.14 via Frontend Transport; Tue, 19 Sep 2017 13:26:37 +0000 Received: from [10.232.14.39] ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v8JDQZed028797; Tue, 19 Sep 2017 06:26:36 -0700 To: Ferruh Yigit CC: , References: <20170823141213.25476-1-shreyansh.jain@nxp.com> <20170909112132.13936-1-shreyansh.jain@nxp.com> <20170909112132.13936-5-shreyansh.jain@nxp.com> <01df3c65-e7dc-b2b8-a188-dd88018010dc@intel.com> From: Shreyansh Jain Message-ID: Date: Tue, 19 Sep 2017 19:07:33 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <01df3c65-e7dc-b2b8-a188-dd88018010dc@intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131503011979758523; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(376002)(346002)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(3190300001)(339900001)(24454002)(377454003)(199003)(189002)(77096006)(6246003)(189998001)(68736007)(4326008)(54906002)(31686004)(36756003)(53936002)(356003)(81156014)(229853002)(230700001)(105606002)(305945005)(81166006)(8936002)(498600001)(8676002)(23676002)(65806001)(65956001)(2906002)(53546010)(33646002)(104016004)(86362001)(76176999)(85426001)(64126003)(106466001)(6666003)(93886005)(47776003)(316002)(5660300001)(83506001)(97736004)(54356999)(6916009)(50986999)(31696002)(2950100002)(8656003)(50466002)(58126008)(65826007); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2689; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD045; 1:rACZ0jn5PjR7O1Ce3EQhhVoghQukDXPudHjFNdaY8ryGcD5YWkpUuB5NI+Zgv3IK1Zxk76y+Q8E52YlJqiRIb6k+4Ep1XGoV1m/bJR9UvybE4bP2Nc4Xa7bHkTofawdh X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1b61b9ce-8c21-46c2-2a5c-08d4ff620e67 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN6PR03MB2689; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 3:9J2yrcTuSXSPDkxWfGHY+7Wsnqfz2GMaWLd8r/Ovk/JWpz+2RGDJkOcf8HzQLd3y2Hv6QJW6mF4P2NDSOwSx88iKexBxqBSDRkTrmBvab7fPHVA3+0f7EwqxXBNRUhY12JGzp8GDt5lnGNACWQwBgQuf+ktSGLNGJ0eSG9CvuXv9KLCMtNE8IOKf9gpxIBf7cQ9+IBKoX98Gm+UZJTwMmEOtfg11XL301mkcRSCn8CARmgH7rGHEctroxH1Bs0BMCvXUL05NtlWFhBD87J5vqQcFh0KIx+wYCpMf8zm9kS7EjZrbjF+3K0K+Et4Ps9u0EaOZ4jtBwS/0IsgEcSFKXFeIykERvwSkZIo6u+oTARU=; 25:nWvKVNIaNNhSBvwkFF1VbFJI2epu8jRMGXh0CWu7XdL3iaX701SgTmTqK0mse4x41CBOZslXWiOz0Qygk0n5i8ijH5y1ugi8njSp3/U68XbcLyyXMMKCFj92+8Nf7tSWc6q46xxNLww1S6h05dp02oq4vvFKj3HbxaZszxsvVEtjDAaiIM+lPPwrXmi7KjeawmRIVXsRAf4K8EFyzyI/pcwRZhaIt0K6NSmFU3Jw9uL46z/QxrOqWhgIxYOBpfoIiixKHsW2PawUT9HRR3aGUh3D1HLEqkZNdxxXG2v9C9qYrmhWle3ZJvvzuSQ6wdUvHuFR9n7U9rRQfOXJYPye4g== X-MS-TrafficTypeDiagnostic: BN6PR03MB2689: X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 31:krIJmOmbTuiqsJf1AQQLlkyTLYb14F7Uk0Zmv8SPIQu8zga2c0FvK0vl7mF46h6ycjaluUJrlXSnCfGhMV6nhr4BJU4KllGdZkxF/M23AG7au1zevwYjLtEZKoYORI01QMoopQJPukY/aDp8GE5UaMONRfQYksDSUsH2p13VqlaE55nuTMAQ5XFrmknFwfkJ5dyaw0KFQJjNGdayjdXW1EiTn6un8iWG7YsIQXj2FyY=; 4:xIftQJ1t4JNdNQKdf6m5oExlIGoN6LL2W8sMhdZjM2Z8L69AD7PBvRsscbI/ZBCJjCRyyoWZx4hjC8AspP7O03ZUuVOg97bMqBzZLhJauAfKxJIgYFvF/TlA2lXQLCZKZ6kXRkr60ojkI2Q8XPc+Plk6ppoJwC1wj+uW3KfihhGFT/N5OZVCNWhHPTZFP37b5cD8Ww2lI3IznP/C8FXIrxfa4PSo778C0p+evkOtgxdm8JsCIC6u3MXdOcrhaWHzJPULG9QVYdCK9OSC14lNY9Cvl8qOTVs6ibR5HV5qjzk= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6055026)(6096035)(20161123565025)(20161123556025)(20161123563025)(20161123561025)(20161123559100)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB2689; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB2689; X-Forefront-PRVS: 04359FAD81 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjAzTUIyNjg5OzIzOjgvZ1QwWThFR1FDYmNNMXByem9zWVN3OW9W?= =?utf-8?B?akFVQ0U1V2E0ZkNKV0lYQXU5empKTzZ3dTlDaVVtVzlBUFo3aWFDRzFORl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Pa0xCSkdjZXhmd0d2bmpKNlphZlpidEo0bzNFeXVw?= =?utf-8?Q?wnKExfKtBhuUyf7qTF+CWOsac4KWOg=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 6:tClmEgo/GlAq2KXLO6kl8XDEqfWYs1Zx3tU9bVaha/jus7x64v3tO/T5WBEr8Ot6tm4tiadzUCrx7EovE6YrGT/7BfPbGTBg656Y7AW6caUvLTRFeSy3Awfj+ac7kvFVlwfiQh43npGnhW0sK0jMz1u2CQRPEj827PLB4ylrkkSSJnpEYkrluyoPqH/YhusfC0hMCOJnVwQotTv/ptDvWBAfr2xAYE8TcHr6WKXSuUTjphdCF9dhakVzF2MPfLMx1JhCtC1gHg3wy78yjiNEXNsYamhAeQGGpihOIjPDQrK4un7bVrEmqtGIUBM/T8HKA0OpVP7InybIPfqYWfq2UQ==; 5:nq2swGRxUSh/fxM4aJAew3WbNbtpFbEcVdQK5GaogYmB6rSkyVQEm0EKpl1ozT6A8zjQqhYuUYDFnYwNZrmjaqIHXzj93vPs4mz9ARGDU7WYGOilGaP2yoKtnWodw1aDZmlXdFoSJQQ4TYqvo3mwYw==; 24:FW7XfloF4UMP+brj2TSlnMwAzZo8VXy1vVubrqYyXvmzZsCKK69eK3EHFisdqBV4d5fBbGcptdLqPStGEwzQ1H7vqa8LWd3fA7vQv9ZpAUo=; 7:weurI/ZAYX0LuG3PTWDJe5Kh1L/g/XAn3vxlAo8yJkwfm/OaZi/HQL6OvDp5z3syQghG1VmaHfgb+tCf22ud+YaMcFyypMx39GSXNHa4Oy/Ek8vmoFHPX5uRlIZ2GlpdJ9wx884o3wuTj9XNCIhXGkxlSZiHvs1XkNpNZvzK5JgtfyH5yuDPRebibL/CX6ERrnkrKSK/+WskA6eSTccPCZnqJw0jPLuWsM7BCFECrB8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2017 13:26:37.8042 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2689 Subject: Re: [dpdk-dev] [PATCH v4 04/41] bus/dpaa: add OF parser for device scanning 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: Tue, 19 Sep 2017 13:26:39 -0000 On Monday 18 September 2017 08:19 PM, Ferruh Yigit wrote: > On 9/9/2017 12:20 PM, Shreyansh Jain wrote: >> This layer is used by Bus driver's scan function. Devices are parsed >> using OF parser and added to DPAA device list. > > So this is device tree parser in DPDK. Do we really want this, and as > long as DPDK target the bare metal why not get device information from > Linux, as done in other cases? As of now I don't prefer to modify the internal framework as much as possible as this is stable DPDK DPAA driver. There is indeed a planned transition from OF to /sys/ parsing, but it is still in pipeline. You see a blocking issue if we go incremental here? That would be probably more of replacing this file with another /sys parser without much changes to the DPDK glue code. > >> >> Signed-off-by: Geoff Thorpe >> Signed-off-by: Shreyansh Jain >> --- >> drivers/bus/dpaa/Makefile | 7 + >> drivers/bus/dpaa/base/fman/of.c | 576 ++++++++++++++++++++++++++++++++++++++++ >> drivers/bus/dpaa/include/of.h | 190 +++++++++++++ >> 3 files changed, 773 insertions(+) >> create mode 100644 drivers/bus/dpaa/base/fman/of.c >> create mode 100644 drivers/bus/dpaa/include/of.h >> > > <...> > >