Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932785AbbGJRcE (ORCPT ); Fri, 10 Jul 2015 13:32:04 -0400 Received: from mail-bn1bon0143.outbound.protection.outlook.com ([157.56.111.143]:11793 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751286AbbGJRbz (ORCPT ); Fri, 10 Jul 2015 13:31:55 -0400 Authentication-Results: tiscali.nl; dkim=none (message not signed) header.d=none; Message-ID: <1436549503.2658.157.camel@freescale.com> Subject: Re: [PATCH 02/11] soc/fsl: Introduce DPAA BMan device management driver From: Scott Wood To: Paul Bolle CC: Roy Pledge , , , Date: Fri, 10 Jul 2015 12:31:43 -0500 In-Reply-To: <1436517510.20619.123.camel@tiscali.nl> References: <1436473322-21247-1-git-send-email-Roy.Pledge@freescale.com> <1436473322-21247-3-git-send-email-Roy.Pledge@freescale.com> <1436517510.20619.123.camel@tiscali.nl> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.0-fta1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Originating-IP: [2601:448:8100:f9f:12bf:48ff:fe84:c9a0] X-ClientProxiedBy: CY1PR12CA0001.namprd12.prod.outlook.com (25.160.137.11) To CY1PR03MB1485.namprd03.prod.outlook.com (25.163.17.158) X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1485;2:mMsGPOoASyjV6y5kiU2IsvRelhKn2JNx9DDC8PsZhLJnp7BPgAz8EuFDgqGIVpDu;3:9rQooY2Uh7G7T7HBotOh6fVSwY0WU2v4hxAOxKqshyXBkKhYpyQCd02hfTxCFlktnA/bpsGyHSPs/er0wh39eSyKIXufOehhB+jiUyz5HiWroP+aDQiH1BnvFro4W2G/rNQROlPzxhM2EHXSdnSEhg==;25:gJonj6dHkFoHWJDKfCrCpp45K1RwlsMZSqgfUVLRmFx2FEEMXN6tmPghyCCUcYo0XyX8jE3zBwkUjVvwyl7iXgi6l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GW8W1QxLIO7lTaqgA8Y0hyM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:CY1PR03MB1485;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1485; X-Forefront-PRVS: 06339BAE63 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(377424004)(40100003)(77156002)(122386002)(189998001)(87976001)(110136002)(5001960100002)(62966003)(46102003)(42186005)(92566002)(19580395003)(23676002)(103116003)(77096005)(50986999)(76176999)(33646002)(50466002)(86362001)(2950100001)(47776003)(36756003)(50226001)(5820100001)(3826002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR03MB1485;H:[IPv6:2601:448:8100:f9f:12bf:48ff:fe84:c9a0];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1485;23:6ger/n3vKnGTEs+1OyDIUKYNZuC8NBHsM4eMjohy5yA2qIV0xUZPkxFyA6tRgt0L3189RYkumZPzn9172sO7E1pgy3szPJ+VeN+izXx+Jw6zUqv+WLR8Clp2BcNf7Jlf8AtIvtLJUx2XnfQHj+CjBg6hq7UurvlP4ypEdIAo0pHLd1i23Snhwd9j5Bvc6Rg9uImp84woopg11jwBZL0bMXts9bVOx5eYossBpqv4+8b4Qp89//MH/51K4hGHC7X5Sd3H89hFx2ZWLOLuEfMA/St/e8YwMkiFs6pojMUl9k97eZZnbq4tEacpogfccLtA15P/fUjm5EcGRi9QElkcaaEi6ZEJ1WK2j5VNI7KTG4mSF80LoIKCcBUYUdM71YSiKOa0abIFqALSyYYXd0ZXxBRLZwhXFkfviuEt/2mQs74juIK4kjtp5UX9PlanH2iDOYbznl6FAXv6zjQ6KB54AJnYNQ4SvOxL8RORWfsn/NPJrhFZCKxSbtLdWxCqulp78KECvsmLzaY2Ph370VRNRzUXrknBPKhRh2kKIXfsoF/CL8jcOyfJFceicOUgrRvBbOHDivxemccN2epmnk2EZiiylITDavsT+QaoDtZdLNA22NwItRB8yIk33G73Qx+ZFn4rkcfid8hbCJDKNdLrsoF27lklP0kK6zzEuJfFlZQFpa2aaJ03V6QAxUXZES13vfEnayWG9O6kI0p+wA2K54MBmBhU1te4i9fQCY35eckSBWt/ZOFlmwLlhxhJYv+3z0tJD34GEtF17zEPjiWs7Cfoz84F/A0O5/BSXZP51X4=;5:4GBbFj4MqVxtRhwIOS/gkw8BUDq+65X0KgVSt8z66ywMVwGHktgMhHuQxjtqNCnaoTqTkzgpZCDYeYjoB5JWGYdl88vtdQgZ37NsxvMU1Jcz/qYj0zNY2tZmSd9QwLYOE77BIOw3Q9ogeO0AyeZpkw== X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1485;24:Jn1nZCMC42lvv5GEtKGQUF3pcoszDDDoKlnjCUQ8VZk/YJBLHFrja7Gi1J1C1Q/RlE50YOwmmF/39ezhKhOCc9rb/GSvuaArHz2Zm/42MfA=;20:AqSkMDy6eRKczLIueszVTtyeeK3rTnHDWIj3CWmwvnICErSsJSeKF7PegG4NkSh8rE7AIP+ZTostN2LS15lSQQ== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2015 17:31:51.9363 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1485 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2890 Lines: 80 On Fri, 2015-07-10 at 10:38 +0200, Paul Bolle wrote: > On do, 2015-07-09 at 16:21 -0400, Roy Pledge wrote: > > --- /dev/null > > +++ b/drivers/soc/fsl/qbman/Kconfig > > @@ -0,0 +1,33 @@ > > +menuconfig FSL_DPA > > + bool "Freescale DPAA support" > > + depends on FSL_SOC || COMPILE_TEST > > Are you sure about COMPILE_TEST? > > > + default n > > + help > > + FSL Data-Path Acceleration Architecture drivers > > + > > + These are not the actual Ethernet driver(s) > > + > > +if FSL_DPA > > [...] > > > +config FSL_BMAN > > + tristate "BMan device management" > > + default n > > + help > > + FSL DPAA BMan driver > > + > > +endif # FSL_DPA > > Because with FSL_BMAN set to 'm' testing things with > make -C ../../../.. M=$PWD bman.ko > > will not actually compile on x86_64: > > make: Entering directory '[...]' > CC [M] [...]/drivers/soc/fsl/qbman/bman.o > In file included from [...]/drivers/soc/fsl/qbman/bman_priv.h:33:0, > from [...]/drivers/soc/fsl/qbman/bman.c:31: > [...]/drivers/soc/fsl/qbman/dpaa_sys.h: In function ‘mfatb’: > [...]/drivers/soc/fsl/qbman/dpaa_sys.h:134:8: error: implicit declaration > of function ‘mfspr’ [-Werror=implicit-function-declaration] > hi = mfspr(SPRN_ATBU); > ^ > [...]/drivers/soc/fsl/qbman/dpaa_sys.h:134:14: error: ‘SPRN_ATBU’ > undeclared (first use in this function) > hi = mfspr(SPRN_ATBU); > ^ > [...]/drivers/soc/fsl/qbman/dpaa_sys.h:134:14: note: each undeclared > identifier is reported only once for each function it appears in > [...]/drivers/soc/fsl/qbman/dpaa_sys.h:135:14: error: ‘SPRN_ATBL’ > undeclared (first use in this function) > lo = mfspr(SPRN_ATBL); > ^ > [...]/drivers/soc/fsl/qbman/bman.c: In function ‘__bm_in’: > [...]/drivers/soc/fsl/qbman/bman.c:168:9: error: implicit declaration of > function ‘in_be32’ [-Werror=implicit-function-declaration] > return in_be32((void *)bm + offset); > ^ > [...]/drivers/soc/fsl/qbman/bman.c: In function ‘__bm_out’: > [...]/drivers/soc/fsl/qbman/bman.c:172:2: error: implicit declaration of > function ‘out_be32’ [-Werror=implicit-function-declaration] > out_be32((void *)bm + offset, val); These PPCisms will need to be fixed. LS1043A is an ARM chip with DPAA 1.0. > ^ > [...]/drivers/soc/fsl/qbman/bman.c: In function ‘of_fsl_bman_probe’: > [...]/drivers/soc/fsl/qbman/bman.c:463:17: error: ‘NO_IRQ’ undeclared > (first use in this function) > if (err_irq == NO_IRQ) { This isn't even a PPCism. It's just wrong. Compare to zero instead. -Scott -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/