Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965474AbcKLA0U (ORCPT ); Fri, 11 Nov 2016 19:26:20 -0500 Received: from mail-db5eur01on0089.outbound.protection.outlook.com ([104.47.2.89]:14432 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934500AbcKLA0S (ORCPT ); Fri, 11 Nov 2016 19:26:18 -0500 From: Stuart Yoder To: Ruxandra Ioana Radulescu , "gregkh@linuxfoundation.org" CC: German Rivera , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" , "agraf@suse.de" , "arnd@arndb.de" , Leo Li , Roy Pledge , Haiying Wang Subject: RE: [PATCH 7/9] bus: fsl-mc: dpio: add the DPAA2 DPIO service interface Thread-Topic: [PATCH 7/9] bus: fsl-mc: dpio: add the DPAA2 DPIO service interface Thread-Index: AQHSK6SWqPs9lCe8r0WaY7CuiHZX+6DHaHfwgAGTcUCACZ8u0A== Date: Sat, 12 Nov 2016 00:10:31 +0000 Message-ID: References: <1477058509-12547-1-git-send-email-stuart.yoder@nxp.com> <1477058509-12547-8-git-send-email-stuart.yoder@nxp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=stuart.yoder@nxp.com; x-originating-ip: [162.203.173.167] x-microsoft-exchange-diagnostics: 1;VI1PR0401MB2638;7:+SXvyuUBqwtisofidOdiIBAHfouSy//Z3vDfe5mnCvnbRezmPEcesr3Ah2JgFDjr0dQsqJy2TwU8DpsCAyBkKJP1f3pPZ1PCQr9Eo/EL+r7KaVR5/mJRhU/I1FkxVpWxHH0JtnD5tCcK10gTuMc7HqPC5h/um9jiSCYaS+Ahj+QZJwe3Vaw9gL+1+rjlD5B/h1WufXoEu5JVgN4PY2jeW8DMORj92lCnBu4tobueeJ3I+j3llYP+FCcMqH1hYecws9PkGqFwtAUX2DaUEAiVpDbM5UuTEi5JEKJCfXqj++WMbb9uVGFwTqIiDG+J8Tm6UAdFuB46+Alj3aispTTOMljjoforP/69n48x1AU+BLk= x-ms-office365-filtering-correlation-id: dcec15ad-f39c-42a7-9b7d-08d40a90514d x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:VI1PR0401MB2638; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6045074)(6060229)(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6046074)(6061226);SRVR:VI1PR0401MB2638;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0401MB2638; x-forefront-prvs: 01244308DF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(979002)(6009001)(7916002)(189002)(199003)(93886004)(66066001)(86362001)(105586002)(101416001)(3280700002)(106356001)(76576001)(76176999)(50986999)(54356999)(106116001)(33656002)(5001770100001)(189998001)(97736004)(102836003)(68736007)(3846002)(586003)(6116002)(8936002)(74316002)(2501003)(81166006)(7736002)(8676002)(229853002)(305945005)(81156014)(87936001)(77096005)(3660700001)(9686002)(7846002)(5660300001)(122556002)(2950100002)(2906002)(7696004)(4326007)(92566002)(2900100001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB2638;H:VI1PR0401MB2638.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Nov 2016 00:10:31.8969 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2638 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 quoted-printable to 8bit by mail.home.local id uAC0QO34000627 Content-Length: 958 Lines: 30 > > +/** > > + * dpaa2_io_service_rearm() - Rearm the notification for the given DPIO > > service. > > + * @service: the given DPIO service. > > + * @ctx: the notification context. > > + * > > + * Once a FQDAN/CDAN has been produced, the corresponding FQ/channel > > is > > + * considered "disarmed". Ie. the user can issue pull dequeue operations on > > that > > + * traffic source for as long as it likes. Eventually it may wish to "rearm" > > + * that source to allow it to produce another FQDAN/CDAN, that's what this > > + * function achieves. > > + * > > + * Return 0 for success. > > + */ > > +int dpaa2_io_service_rearm(struct dpaa2_io *d, > > + struct dpaa2_io_notification_ctx *ctx) > > +{ > > + unsigned long irqflags; > > + int err; > > + > > + d = service_select(d); > > Why not select the DPIO based on ctx->desired_cpu, like in the initial > notification register? Sounds like a reasonable idea, I am going to confirm with Roy. Stuart