Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932926AbbGJVMx (ORCPT ); Fri, 10 Jul 2015 17:12:53 -0400 Received: from mail-by2on0148.outbound.protection.outlook.com ([207.46.100.148]:34624 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932636AbbGJVMr (ORCPT ); Fri, 10 Jul 2015 17:12:47 -0400 Authentication-Results: freescale.com; dkim=none (message not signed) header.d=none; Message-ID: <1436562732.2658.177.camel@freescale.com> Subject: Re: [PATCH 02/11] soc/fsl: Introduce DPAA BMan device management driver From: Scott Wood To: Pledge Roy-R01356 CC: Paul Bolle , "linuxppc-dev@lists.ozlabs.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Date: Fri, 10 Jul 2015 16:12:12 -0500 In-Reply-To: References: <1436473322-21247-1-git-send-email-Roy.Pledge@freescale.com> <1436473322-21247-3-git-send-email-Roy.Pledge@freescale.com> <1436528160.20619.159.camel@tiscali.nl> <1436549595.2658.159.camel@freescale.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.0-fta1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Originating-IP: [2601:448:8100:f9f:12bf:48ff:fe84:c9a0] X-ClientProxiedBy: BN4PR22CA0040.namprd22.prod.outlook.com (25.164.54.50) To BY1PR03MB1483.namprd03.prod.outlook.com (25.162.210.141) X-Microsoft-Exchange-Diagnostics: 1;BY1PR03MB1483;2:TtmH/L9R0cB/bycC96ZyXmR14KnAEA7HfgJ5+ZOUtkwCgGduMfVDy/qQ/fq8D5Mf;3:kGWf871Bkv7eK6yjWke1tUVmloutwMyziQcxjsAKc/9tC5y/p9C0hgf6HLF8xmgKDhqC8qBW0TvS+ncukIeYRjgIJyYgLXWhVFaTz6qHnAXwLP9QPxxjLlqdwmSb59Brb5teH/BxouDCT+SZsHOS+A==;25:rpE2So8HoOmsS6UVGs3O6IV2GE/nC8M+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2yKFCkwpPMLS5z+zha2j9BzSr2fjSXEgy/Qs5kZdZA0/nIZHfsxIgKwu1MCWHrHlBExxKlfnCSD/zb7Q= BY1PR03MB1483: X-MS-Exchange-Organization-RulesExecuted 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:BY1PR03MB1483;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1483; X-Forefront-PRVS: 06339BAE63 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(377424004)(86362001)(46102003)(77096005)(2950100001)(33646002)(92566002)(103116003)(36756003)(47776003)(189998001)(42186005)(93886004)(50986999)(50226001)(77156002)(76176999)(40100003)(50466002)(23676002)(62966003)(110136002)(122386002)(5001960100002)(5820100001)(87976001)(3826002)(4001450100001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR03MB1483;H:[IPv6:2601:448:8100:f9f:12bf:48ff:fe84:c9a0];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY1PR03MB1483;23:+xw4NXey2v9cZ3+uTtfA/sjXfxAom5aX8XVqbFlgTuXr5l/IxvvWLkYODP++HZnLepG4thOLqMnaZt6Jq1dFP4Cyf2YD2k6KuizEqIeQmLxo3/mU5eFEkSts+i0fS45Uq/H2oiryJpJ3BlE3+PhtX/wF8tG5J1WsxDMw8kLdIZ+2MjFf3nC8N8dP1OodciKruZYlESqGMWq3ksFaCx3KWeB7wze0ZPhHeja92n2A7HXH4QZsrW0oMPjz8A6ZQ8bbWsggE86VNBOld3Oga4bfqdyC0VlsCLVNZkA8125EDFMXfr2nfnv3ZVb8Bsr8CYUS3AZeeNkocRePBRN41KM4oPgJ2vhYu+uXvPesveNV6m3baPMSbeMIeE9uPKlFc2GrAcdFcI9dBmUrVQDniAx4LpsYVwUiKOar/9HgDt4wlyu9BlHkxjnhcshCK3Hy421dEgxx1oOTIWeKOIgHztXAOtPo5rKfLcM/O/HzKBsyDYN+7I2zt09i2bhOeLc/yrCE6gHkuOsr/fFqx38fy+NRkuUUe3Z9xi4+xeWSzsqHwnms4IDIdNMuo3nhszc+XK8Jf9z1rbWBNwlztZ/5MiHupDySb869wqiidKue5zPSgyht7qNkCY2msLv9kQchivZl5f0uM/OksZ4wxAiErA/qRdFAJhuDhrp1/xx2xqmfotFBmT6btbOSfsXoeOcqRIq9hbBee7bmG5VZiRPBAZ33Z1ZpZ+dDB49+qTGSy70BROpcqzpnGF8nzs+IJpEljuOSNGGQaiOnzdVlERl4oEb9nGe02sbjDU1R4vX2vKBmgTer1XlEz8AKKoCmJbzXHoqLlK2xPmQECTl6cTjXE3lmXA== X-Microsoft-Exchange-Diagnostics: 1;BY1PR03MB1483;5:w43QqrE8mwxz/n7BQ8ZzV8x9YxYQxeXs1MYqI/SY/GDiUwn+RMsEtN6phZ4QQXtl4S4l1BJGYXbVAREKyLvquIbzE/JplF5/i5NvO3OSuPsIPnJOUERXk6LdxJ0NYVgpqMod6G0xJzi2q1gsAAT8mA==;24:241vmqUqPq5mye/UjOw95SFhc7M3AJWuK/WHpDQbSD3X7SAbEaR6QGQ408B8JgBZQik0h6DYYvd99yHV6rY2xsRfN+/6HDdpYe5sFdK/KjE=;20:9zrEdeUE0BFUcWh+prTHlkqdP7lhkX+4YK2sa4BufEHF8pu8SULItbmRYO/uxB0KlNTCJ71+xbMqMbXfwB+HsA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2015 21:12:44.6714 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1483 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1247 Lines: 33 On Fri, 2015-07-10 at 15:57 -0500, Pledge Roy-R01356 wrote: > > > > On Fri, 2015-07-10 at 13:36 +0200, Paul Bolle wrote: > > > On do, 2015-07-09 at 16:21 -0400, Roy Pledge wrote: > > > > +#ifdef CONFIG_FSL_DPA_CHECKING > > > > +#define DPA_ASSERT(x) \ > > > > + do { \ > > > > + if (!(x)) { \ > > > > + pr_crit("ASSERT: (%s:%d) %s\n", __FILE__, > > > > __LINE__, \ > > > > + __stringify_1(x)); \ > > > > + dump_stack(); \ > > > > + panic("assertion failure"); \ > > > > > > Not my call, but why panic() here? > > > > I'm pretty sure I've complained about this before (as well as all the > > BUG_ONs). > > > Is the concern here just the call to panic()? I'm happy to change what > happens when an issue is detected but the DPA_ASSERT() calls are very > useful when testing changes to the driver and when bringing up the drivers > on new silicon variants. Use WARN_ON() or a variant thereof. -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/