Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751697AbaF3E7D (ORCPT ); Mon, 30 Jun 2014 00:59:03 -0400 Received: from mail-bn1lp0141.outbound.protection.outlook.com ([207.46.163.141]:26213 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750815AbaF3E7C (ORCPT ); Mon, 30 Jun 2014 00:59:02 -0400 From: "Bharat.Bhushan@freescale.com" To: Scott Wood CC: Greg Kroah-Hartman , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Subject: RE: [RESEND PATCH] memory: Freescale CoreNet Coherency Fabric error reporting driver Thread-Topic: [RESEND PATCH] memory: Freescale CoreNet Coherency Fabric error reporting driver Thread-Index: AQHPfFZ5AO8lYHxFT069YHO6X2X6YptgmrRggACUZICAAAVDUIAAAe4AgCgMmMA= Date: Mon, 30 Jun 2014 04:58:57 +0000 Message-ID: <806516468c994e638fc9214b0e5a7b9f@DM2PR03MB574.namprd03.prod.outlook.com> References: <20140530222743.GA6918@home.buserror.net> <967d9a5e0f7e4d0a8f5e7ec6b8e88ff2@BLUPR03MB566.namprd03.prod.outlook.com> <1401900111.6603.325.camel@snotra.buserror.net> <35f1762b80694ba4835cd7902a2faa0a@BLUPR03MB566.namprd03.prod.outlook.com> <1401901656.6603.327.camel@snotra.buserror.net> In-Reply-To: <1401901656.6603.327.camel@snotra.buserror.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.88.169.1] x-microsoft-antispam: BCL:0;PCL:0;RULEID: x-forefront-prvs: 0258E7CCD4 x-forefront-antispam-report: SFV:NSPM;SFS:(6009001)(377454003)(51704005)(13464003)(377424004)(24454002)(199002)(189002)(95666004)(101416001)(74662001)(107046002)(66066001)(83072002)(85306003)(31966008)(76576001)(81542001)(74502001)(81342001)(99396002)(99286002)(105586002)(19580395003)(106116001)(20776003)(83322001)(19580405001)(33646001)(74316001)(86362001)(92566001)(80022001)(21056001)(64706001)(106356001)(76482001)(77982001)(54356999)(76176999)(2656002)(85852003)(50986999)(4396001)(46102001)(87936001)(79102001)(24736002);DIR:OUT;SFP:;SCL:1;SRVR:DM2PR03MB397;H:DM2PR03MB574.namprd03.prod.outlook.com;FPR:;MLV:sfv;PTR:InfoNoRecords;MX:1;LANG:en; Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: freescale.com 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 s5U4xAkZ009260 > -----Original Message----- > From: Wood Scott-B07421 > Sent: Wednesday, June 04, 2014 10:38 PM > To: Bhushan Bharat-R65777 > Cc: Greg Kroah-Hartman; linuxppc-dev@lists.ozlabs.org; linux- > kernel@vger.kernel.org > Subject: Re: [RESEND PATCH] memory: Freescale CoreNet Coherency Fabric error > reporting driver > > On Wed, 2014-06-04 at 12:04 -0500, Bhushan Bharat-R65777 wrote: > > > > > -----Original Message----- > > > From: Wood Scott-B07421 > > > Sent: Wednesday, June 04, 2014 10:12 PM > > > To: Bhushan Bharat-R65777 > > > Cc: Greg Kroah-Hartman; linuxppc-dev@lists.ozlabs.org; linux- > > > kernel@vger.kernel.org > > > Subject: Re: [RESEND PATCH] memory: Freescale CoreNet Coherency > > > Fabric error reporting driver > > > > > > On Wed, 2014-06-04 at 03:17 -0500, Bhushan Bharat-R65777 wrote: > > > > > +static int ccf_remove(struct platform_device *pdev) { > > > > > + struct ccf_private *ccf = dev_get_drvdata(&pdev->dev); > > > > > + > > > > > + switch (ccf->info->version) { > > > > > + case CCF1: > > > > > + iowrite32be(0, &ccf->err_regs->errdis); > > > > > + break; > > > > > + > > > > > + case CCF2: > > > > > + iowrite32be(0, &ccf->err_regs->errinten); > > > > > > > > Do you think it is same to disable detection bits in ccf->err_regs- > >errdis? > > > > > > Disabling the interrupt is what we're aiming for here, but ccf1 > > > doesn't provide a way to do that separate from disabling detection. > > > > What I wanted to say that do we also need to disable detection (set > > ERRDET_LAE | ERRDET_CV bits in errdis) apart from clearing errinten on > > ccf2 ? > > I don't think we "need" to. You could argue that we should for consistency, > though I think there's value in errors continuing to be detected even without > the driver (e.g. can dump the registers in a debugger). Yes this comment was for consistency. Also IIUC, the state which is left when the driver is removed is not default reset behavior. If we want errors to be detected then should not we have a sysfs interface? Thanks -Bharat > > -Scott > ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?