Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932980AbbGJU6H (ORCPT ); Fri, 10 Jul 2015 16:58:07 -0400 Received: from mail-bl2on0129.outbound.protection.outlook.com ([65.55.169.129]:11136 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754253AbbGJU55 (ORCPT ); Fri, 10 Jul 2015 16:57:57 -0400 X-Greylist: delayed 88540 seconds by postgrey-1.27 at vger.kernel.org; Fri, 10 Jul 2015 16:57:56 EDT From: Roy Pledge To: Scott Wood , Paul Bolle CC: "linuxppc-dev@lists.ozlabs.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 02/11] soc/fsl: Introduce DPAA BMan device management driver Thread-Topic: [PATCH 02/11] soc/fsl: Introduce DPAA BMan device management driver Thread-Index: AQHQuohY2rDMKNe3ZkWysPaDcXIDnp3UlB8AgABj0YCAADhSYA== Date: Fri, 10 Jul 2015 20:57:53 +0000 Message-ID: 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> In-Reply-To: <1436549595.2658.159.camel@freescale.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freescale.com; dkim=none (message not signed) header.d=none; x-originating-ip: [192.88.168.50] x-microsoft-exchange-diagnostics: 1;BLUPR03MB1476;5:+8QejVkVt+YTI5SxvKKw+6hiYyJlHW9Y07K3UkF/z6jjIsmF5nAcsaWU1nSAxIKvchdB2EgMkjVDZbQhtVRhE2kL5otxr9kQ/wrT3zNLr6nhLCxUfQov/6pirSIL7p6nLollo1a++NTl5oJMoHpCDw==;24:GUd4dQBBh7wThGjWZK9tLvbjjeDPiJIE5kYzCtJ52Yhkdm3cxe+O26oVep+sqS7chHkMiJWT3yP4rtPIfPKcRrD7uTSB9VPte7cZScpFXzk=;20:zZ1VyWj6XXmbA7OsX93oSYEHHNYF7djr7JcuTtv/Jn9sc7HiFNkUWwVCg9h2KlQ4KiF1CKVOnee50cd+FK/qLg== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1476; 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:BLUPR03MB1476;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1476; x-forefront-prvs: 06339BAE63 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(377424004)(2950100001)(5003600100002)(189998001)(62966003)(77096005)(2900100001)(5002640100001)(86362001)(102836002)(46102003)(5001770100001)(76576001)(93886004)(77156002)(2656002)(33656002)(87936001)(66066001)(5001960100002)(40100003)(99286002)(106116001)(122556002)(74316001)(50986999)(54356999)(76176999)(92566002);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR03MB1476;H:BN3PR0301MB1267.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jul 2015 20:57:53.8837 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1476 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id t6AKwDqD010598 Content-Length: 1001 Lines: 19 > > 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. ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?