Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1721180imm; Fri, 6 Jul 2018 05:26:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfpOOf6MUnf5baWtkgY2SN5LGCV/JpG6D7mcxKP32rTC5R2YW93LJtkFilohZndWqVW+Mhe X-Received: by 2002:a17:902:44a4:: with SMTP id l33-v6mr10143828pld.134.1530880006588; Fri, 06 Jul 2018 05:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530880006; cv=none; d=google.com; s=arc-20160816; b=eeMKaOxEAErp2jVCIMGWMJcFXwomCh+ObEAFbEaIq3Fv8uqlBEy3HexYn7Hljaf039 Q+LmaMoHxaKOIsn8MemCcVOjinq6duUc9/rLCzncL6ILGNvJ/GbeZAFwIzU00sIV4C9o 5sjObhbEC/iEcUvyjmuLxF5gftmNJ6IvZ0vXvYRQFtD/ChVwh1+Bcv2cp1DpRT7wHkOG 9QsrnrlU29Xy+tCx1lMVUV1fkWqQqbzSyx7Dyg0O5JAfIPlkkGAJ4oh8pRBhjDn+JREy kbFDBf8k4YSQcR98lJz+AEBsYFxn4hnJptF+uup348Pl82EJeC4b1WBF3nHR8Doy5bNB xQOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=ssr8m5nv48NPtoGV6fBOaDdgSiBQr1lS0neTH8wjkgY=; b=CWFlejKVBbae5GZi95GKOq6ZyWcwvsMMlNc5kgCbfg5p4HMVjpUI60ObqyKcRp5Vf5 aRTPdkBTj2kafQbdZpxOsYbQ7mGT+TOLBT1zxC3Af6VQcyoZXqodOh+bM/fLTKRjtkmV bJDlmKvSFyoMW4xpTrQS3yLNDaSWCAU8+350hshhI7IUJZBmqzCtOr0VZoyHMeG1b0HQ xe2o/JHqZg1etL4ydBtGxQ9euoRlLlqi/LDdpU3qwasdujPzg9ZDebLYVohJiRMhRjMl ICVtfcQ+kA2fxJvuiz6kE/yBL2ACi8uXZkRyQhXP6APjmchP6wb0u3sfEBuwsvyVuU2h vFfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=q8jOSudY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b74-v6si8720607pfd.273.2018.07.06.05.26.31; Fri, 06 Jul 2018 05:26:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=q8jOSudY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932724AbeGFMZx (ORCPT + 99 others); Fri, 6 Jul 2018 08:25:53 -0400 Received: from mail-eopbgr40055.outbound.protection.outlook.com ([40.107.4.55]:48245 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753611AbeGFMZv (ORCPT ); Fri, 6 Jul 2018 08:25:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ssr8m5nv48NPtoGV6fBOaDdgSiBQr1lS0neTH8wjkgY=; b=q8jOSudYFhIpTFhFlICofz8fAPfc60zxJyyYjTSi5J81YKedfMmfX+33vl7l1mrFrMW2obNIOxWyXqshdAfGW4c4J2KriicLnp+QpD6C6QKAPzNB4bccjwwwG21mYVFjm7ZIJf8PWOl6Z8LYjSIn8XGffLwyygVW0rk3mZigPIg= Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com (52.134.3.153) by VI1SPR01MB325.eurprd04.prod.outlook.com (10.165.198.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.18; Fri, 6 Jul 2018 12:25:48 +0000 Received: from VI1PR0402MB3485.eurprd04.prod.outlook.com ([fe80::197e:c4f9:bb4d:e560]) by VI1PR0402MB3485.eurprd04.prod.outlook.com ([fe80::197e:c4f9:bb4d:e560%2]) with mapi id 15.20.0906.027; Fri, 6 Jul 2018 12:25:48 +0000 From: Horia Geanta To: Roy Pledge , "devel@driverdev.osuosl.org" , "linux-arm-kernel@lists.infradead.org" , "gregkh@linuxfoundation.org" , Leo Li , Ioana Ciocoi Radulescu CC: Laurentiu Tudor , "linux-kernel@vger.kernel.org" , "arnd@arndb.de" , "catalin.marinas@arm.com" , "robin.murphy@arm.com" Subject: Re: [PATCH 0/2] staging/fsl-mc/bus: Move DPIO from staging to drivers/soc/fsl Thread-Topic: [PATCH 0/2] staging/fsl-mc/bus: Move DPIO from staging to drivers/soc/fsl Thread-Index: AQHUFJgt6LCNXmuqP0KWKGxjabTg8Q== Date: Fri, 6 Jul 2018 12:25:48 +0000 Message-ID: References: <20180705194113.16256-1-roy.pledge@nxp.com> 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=horia.geanta@nxp.com; x-originating-ip: [86.34.165.90] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1SPR01MB325;7:+0JHHfr0oQKVxSSAlD9u8ZTzGlmbzzquBG9btA9NGopecY+IG10Npt8L1TeLTzSgoWEuyHIXXx/dLYt3gYxkZLjh/D/nZdlot98D/D4jJjEmZe4OkCgvEa+AjEfdtn70l8sQqialiEWIUrSvgviwaA7xMZOD9KppdQ20Bp3hFzvKCDZB6bAcIfl3WqNjtxACruJyKV460lnJmuiv1HkWnfc3ch/FP2i70qHbJAi9gt+kR1jHr63PYD2jVFySyYF6 x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 2db6545b-31ab-45c0-0aa3-08d5e33b9b25 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(2017052603328)(7153060)(7193020);SRVR:VI1SPR01MB325; x-ms-traffictypediagnostic: VI1SPR01MB325: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231291)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:VI1SPR01MB325;BCL:0;PCL:0;RULEID:;SRVR:VI1SPR01MB325; x-forefront-prvs: 0725D9E8D0 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(346002)(376002)(366004)(39860400002)(136003)(199004)(189003)(97736004)(229853002)(53936002)(486006)(44832011)(6246003)(81156014)(256004)(99286004)(478600001)(81166006)(6116002)(6436002)(476003)(3846002)(8676002)(446003)(55016002)(316002)(110136005)(25786009)(9686003)(14444005)(4326008)(68736007)(33656002)(7736002)(102836004)(54906003)(53546011)(6506007)(305945005)(8936002)(2900100001)(5250100002)(7696005)(26005)(2906002)(6636002)(66066001)(76176011)(74316002)(2501003)(5660300001)(575784001)(86362001)(106356001)(14454004)(2201001)(105586002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1SPR01MB325;H:VI1PR0402MB3485.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: UHrM9dnKhVTHtBUXkigd1bzFnIK5q4iWaDgL51zi+XUa/XVuWMQ2ICKv8HKs0JTC7b3IszNEDYvrdxaFcahiN1+EK/vISiv9bAGVal5g4wFZtNMgwCcy42hd6DJxDpZD2hyW+xLBUz6Q+icKWI/ojmoHxj12VfGGs1KfyKLuqIcGbLejvU9VIB9JQc/PWnVFkB8aog7dktZREY9/zPZYJ4nT9pm7Tqa8vxQw4NlE5SKgtsKiSeT3HH1z5/PGyDPWQecVGRYM3xby5TC2sR0MBbe9Y/VBhClQl0Ksks3rFF1lOYsmkxFU3b8Fd741naV9dixynK/Zf1k2W9j+6vI8RHun4bSbHhzrOhSALaHgYuc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2db6545b-31ab-45c0-0aa3-08d5e33b9b25 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jul 2018 12:25:48.6858 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1SPR01MB325 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/5/2018 10:41 PM, Roy Pledge wrote:=0A= > Move the NXP DPIO (Datapath I/O driver) from the staging/fsl-mc/bus/dpio= =0A= > directory to the drivers/soc/fsl directory.=0A= > =0A= > The DPIO driver enables access to the Queue and Buffer Managemer (QBMAN)= =0A= > hardware of NXP DPAA2 devices. This is a prerequiste for moving the DPAA2= =0A= > Ethernet device driver from the staging directory.=0A= > =0A= Roy, Ioana,=0A= =0A= Would it be ok to add the following patch on top of the series?=0A= It's a dependency for dpseci object.=0A= If not added now I fear it won't be accepted until dpaa2-ethernet=0A= moves out of staging, thus gating dpseci upstreaming.=0A= =0A= Thanks,=0A= Horia=0A= =0A= --->8---=0A= Previous commits:=0A= 6e2387e8f19ed ("staging: fsl-dpaa2/eth: Add Freescale DPAA2 Ethernet driver= ")=0A= 39163c0ce0f48 ("staging: fsl-dpaa2/eth: Errors checking update")=0A= added bits that are not specific to the WRIOP accelerator.=0A= =0A= Move these where they belong (in DPIO) such that other accelerators=0A= can make use of them.=0A= =0A= Signed-off-by: Horia Geant=E3 =0A= ---=0A= drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 4 ++--=0A= drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h | 18 +++++-------------=0A= drivers/staging/fsl-mc/include/dpaa2-fd.h | 12 ++++++++++++=0A= 3 files changed, 19 insertions(+), 15 deletions(-)=0A= =0A= diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/stagi= ng/fsl-dpaa2/ethernet/dpaa2-eth.c=0A= index 396371728aa1..d5f0ac5c2d1f 100644=0A= --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c=0A= +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c=0A= @@ -455,7 +455,7 @@ static int build_sg_fd(struct dpaa2_eth_priv *priv,=0A= dpaa2_fd_set_format(fd, dpaa2_fd_sg);=0A= dpaa2_fd_set_addr(fd, addr);=0A= dpaa2_fd_set_len(fd, skb->len);=0A= - dpaa2_fd_set_ctrl(fd, DPAA2_FD_CTRL_PTA | DPAA2_FD_CTRL_PTV1);=0A= + dpaa2_fd_set_ctrl(fd, FD_CTRL_PTA | FD_CTRL_PTV1);=0A= =0A= if (priv->tx_tstamp && skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP)=0A= enable_tx_tstamp(fd, sgt_buf);=0A= @@ -508,7 +508,7 @@ static int build_single_fd(struct dpaa2_eth_priv *priv,= =0A= dpaa2_fd_set_offset(fd, (u16)(skb->data - buffer_start));=0A= dpaa2_fd_set_len(fd, skb->len);=0A= dpaa2_fd_set_format(fd, dpaa2_fd_single);=0A= - dpaa2_fd_set_ctrl(fd, DPAA2_FD_CTRL_PTA | DPAA2_FD_CTRL_PTV1);=0A= + dpaa2_fd_set_ctrl(fd, FD_CTRL_PTA | FD_CTRL_PTV1);=0A= =0A= if (priv->tx_tstamp && skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP)=0A= enable_tx_tstamp(fd, buffer_start);=0A= diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h b/drivers/stagi= ng/fsl-dpaa2/ethernet/dpaa2-eth.h=0A= index 905a4e6be8fa..9269cb05a84b 100644=0A= --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h=0A= +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h=0A= @@ -124,21 +124,13 @@ struct dpaa2_eth_swa {=0A= #define DPAA2_FD_FRC_FAICFDV 0x0400=0A= =0A= /* Error bits in FD CTRL */=0A= -#define DPAA2_FD_CTRL_UFD 0x00000004=0A= -#define DPAA2_FD_CTRL_SBE 0x00000008=0A= -#define DPAA2_FD_CTRL_FSE 0x00000020=0A= -#define DPAA2_FD_CTRL_FAERR 0x00000040=0A= -=0A= -#define DPAA2_FD_RX_ERR_MASK (DPAA2_FD_CTRL_SBE | \=0A= - DPAA2_FD_CTRL_FAERR)=0A= -#define DPAA2_FD_TX_ERR_MASK (DPAA2_FD_CTRL_UFD | \=0A= - DPAA2_FD_CTRL_SBE | \=0A= - DPAA2_FD_CTRL_FSE | \=0A= - DPAA2_FD_CTRL_FAERR)=0A= +#define DPAA2_FD_RX_ERR_MASK (FD_CTRL_SBE | FD_CTRL_FAERR)=0A= +#define DPAA2_FD_TX_ERR_MASK (FD_CTRL_UFD | \=0A= + FD_CTRL_SBE | \=0A= + FD_CTRL_FSE | \=0A= + FD_CTRL_FAERR)=0A= =0A= /* Annotation bits in FD CTRL */=0A= -#define DPAA2_FD_CTRL_PTA 0x00800000=0A= -#define DPAA2_FD_CTRL_PTV1 0x00400000=0A= #define DPAA2_FD_CTRL_ASAL 0x00020000 /* ASAL =3D 128B */=0A= =0A= /* Frame annotation status */=0A= diff --git a/drivers/staging/fsl-mc/include/dpaa2-fd.h b/drivers/staging/fs= l-mc/include/dpaa2-fd.h=0A= index b55b89ba4eda..2576abaa7779 100644=0A= --- a/drivers/staging/fsl-mc/include/dpaa2-fd.h=0A= +++ b/drivers/staging/fsl-mc/include/dpaa2-fd.h=0A= @@ -67,6 +67,18 @@ struct dpaa2_fd {=0A= #define SG_FINAL_FLAG_MASK 0x1=0A= #define SG_FINAL_FLAG_SHIFT 15=0A= =0A= +/* Error bits in FD CTRL */=0A= +#define FD_CTRL_ERR_MASK 0x000000FF=0A= +#define FD_CTRL_UFD 0x00000004=0A= +#define FD_CTRL_SBE 0x00000008=0A= +#define FD_CTRL_FLC 0x00000010=0A= +#define FD_CTRL_FSE 0x00000020=0A= +#define FD_CTRL_FAERR 0x00000040=0A= +=0A= +/* Annotation bits in FD CTRL */=0A= +#define FD_CTRL_PTA 0x00800000=0A= +#define FD_CTRL_PTV1 0x00400000=0A= +=0A= enum dpaa2_fd_format {=0A= dpaa2_fd_single =3D 0,=0A= dpaa2_fd_list,=0A= -- =0A= 2.16.2=0A=