Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933631AbcDTMPT (ORCPT ); Wed, 20 Apr 2016 08:15:19 -0400 Received: from mail-am1on0089.outbound.protection.outlook.com ([157.56.112.89]:1824 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932117AbcDTMPR convert rfc822-to-8bit (ORCPT ); Wed, 20 Apr 2016 08:15:17 -0400 X-Greylist: delayed 2017 seconds by postgrey-1.27 at vger.kernel.org; Wed, 20 Apr 2016 08:15:17 EDT From: Horia Ioan Geanta Neag To: Stuart Yoder , Jose Rivera CC: "gregkh@linuxfoundation.org" , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" , "agraf@suse.de" , "arnd@arndb.de" , Yang-Leo Li Subject: Re: [PATCH 11/14] staging: fsl-mc: add quirk handling for dpseci objects < 4.0 Thread-Topic: [PATCH 11/14] staging: fsl-mc: add quirk handling for dpseci objects < 4.0 Thread-Index: AQHRmvmYbcYxDupWTUOfc+tVprAkvg== Date: Wed, 20 Apr 2016 11:41:37 +0000 Message-ID: References: <1460393426-16118-1-git-send-email-stuart.yoder@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [192.88.146.1] x-ms-office365-filtering-correlation-id: 3285ce37-6a03-41e9-4839-08d36910bbb8 x-microsoft-exchange-diagnostics: 1;AM2PR04MB0769;5:QCT4n03+euOqjKhohtP4Q0B90DUXLxP2zZYpz270POhPzFPqFYjtWoOwaN3pIiz4v6m8ru0z3UTuzgHEQR+cUU3qbTNgrEJW0vRbjFVMejo12t4sMOh6FnVbeOhk7HXCiIlAA4VcWTLr7XWV4L13JjuB5nhkQ2otMsPEkB3ALIOuTRi5LUtk2qQdGJEJ/+0V;24:+7sUJql1XDQUoGBzGXf3uj/MFEn8uCv6nj4DUNEcBoHj8+5bDJobo4IuzPFYn075LL55JN21BL0M21YPw5lzuLlu/VTE++PdBTVhaMpq928=;7:sbOGsH5/D2Jht5ZDR2cdrBZWR2rGjoaY+QzhGX7ri0FNgFqzCBM1pz+TN5Mj9t0ZyEr8MAP7cv4Nr3y60FyFhxgJY1dsqs+FivmKFArUyNNbI48VEYZybM64Ohy8lejeV30uK89f1W+StOo+Wkl1G3/wjePnR0h907sPhUPqBk7tUZLJt6UFa0qPJORYNLT7LU5rzgTAq0HDbn3/qdNUl/dc605Nb/nsay2M0bHwbwE= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM2PR04MB0769; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(9101521026)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026);SRVR:AM2PR04MB0769;BCL:0;PCL:0;RULEID:;SRVR:AM2PR04MB0769; x-forefront-prvs: 0918748D70 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(377454003)(24454002)(6116002)(102836003)(3846002)(586003)(33656002)(122556002)(87936001)(5001770100001)(5004730100002)(81166005)(1096002)(4326007)(86362001)(5008740100001)(5002640100001)(54356999)(106116001)(9686002)(10400500002)(1220700001)(2906002)(92566002)(76576001)(76176999)(77096005)(189998001)(50986999)(74316001)(19580405001)(5003600100002)(66066001)(19580395003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM2PR04MB0769;H:AM2PR04MB0673.eurprd04.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Apr 2016 11:41:37.7775 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0769 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1425 Lines: 43 On 4/11/2016 7:50 PM, Stuart Yoder wrote: > From: Horia Geanta > > dpseci objects < 4.0 are not coherent-- in spite of the fact > that the MC reports them to be coherent in certain versions. > Add a special case to set the no shareability flag for dpseci > objects < 4.0. > > Signed-off-by: Horia Geanta > (Stuart: reworded commit message, updated comment in patch) > Signed-off-by: Stuart Yoder Do we really need this? First upstream dpsec driver will be for dpsec >= v4.0. Thanks, Horia > --- > drivers/staging/fsl-mc/bus/dprc-driver.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c > index 53c6e98..7fc4717 100644 > --- a/drivers/staging/fsl-mc/bus/dprc-driver.c > +++ b/drivers/staging/fsl-mc/bus/dprc-driver.c > @@ -312,6 +312,15 @@ int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev, > continue; > } > > + /* > + * add a quirk for all versions of dpsec < 4.0...none > + * are coherent regardless of what the MC reports. > + */ > + if ((strcmp(obj_desc->type, "dpseci") == 0) && > + (obj_desc->ver_major < 4)) > + obj_desc->flags |= > + DPRC_OBJ_FLAG_NO_MEM_SHAREABILITY; > + > irq_count += obj_desc->irq_count; > dev_dbg(&mc_bus_dev->dev, > "Discovered object: type %s, id %d\n", >