From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 94578A0548; Mon, 14 Jun 2021 08:34:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0BC1A4003F; Mon, 14 Jun 2021 08:34:30 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id AD3AC4003E for ; Mon, 14 Jun 2021 08:34:28 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15E6K9ER031588; Sun, 13 Jun 2021 23:34:27 -0700 Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2045.outbound.protection.outlook.com [104.47.66.45]) by mx0b-0016f401.pphosted.com with ESMTP id 394veqdh1m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 13 Jun 2021 23:34:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EvugjDpVpccSu+7M/9SgknOt96tOkafgz9OERaoGtYheqKqC3mobx3VuHOR3F+siuVDKBikXEmbe5H8uRsgAp9GJTls5BbbHIGzTHcg5qmc6ZAKQ8r0j3jBygfR/5V8o4EfpFKMBT5C2kPHYPufxt+QCn/8Q4jMaWDPbbKSsKw4KUVVfiUHHZPdN0j8j/efPG5LdSiVMXXLvgNzCBepUDsbGR3gzopWwn3DK1ePKNOootDFkMxJuk3WrTW8Mz/5Mhbm8ZAMZ5cHZEoM+Nu3Hbc3kPfKbYOb11kYb857rm4F6UcKZibitCoyJwU2ArQWlJttihBhK9yDOLFBdq6S5Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ImiUdTBr3Gw/GM+vpIl2UPlN9hs0UdcAtbab39BMZXM=; b=nRRYUUsFM/66FZ5pIXLZfVsPUGRQ315XACThxoPDEbQ+CoD6Ox0mXQNfN+9oHSzxf/YsHnj/KePksYkYWweJti3lmyvAMGYkG8hm9wlxEaELxLfAkwu/7R+OhfWdXhjZih43tx7lxHFCrY8Gk1+gcA8zsxMZsCKfZ9m//23ta+qw/nlTcShUJsyL6NDosKZcVzbIENmYTJs6rl9l7z8JJ+jQZ+JOWKdqUXiFJgyv3zkMwgbHp/BVVHH1QK9UXyHprUMT5bROEHJforTDWilJtcXu6h0VoKl41jUdweZJxnd7VeXGK5GL8bYJY4WQzHSw6mSkvGO8UXl0sKRV5Qn2dQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ImiUdTBr3Gw/GM+vpIl2UPlN9hs0UdcAtbab39BMZXM=; b=P2znSIgGa9U5qZwZdah2IeMYxLdD0G12LtFZ+GcFmA3CiqiIHdqXobqoTCrjxM8B9AZKkc3lcxJA26yAyWffUHjyLw3myprOC8hoQX3+P7tDMqJQC7DNae9iS0tJSw/bNQk4KcE5/zxB1bnMDm29QciDYOUtwqRQWDs7gvuJbt8= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO1PR18MB4618.namprd18.prod.outlook.com (2603:10b6:303:e1::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Mon, 14 Jun 2021 06:34:24 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::7d67:6d21:1714:c816]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::7d67:6d21:1714:c816%2]) with mapi id 15.20.4219.025; Mon, 14 Jun 2021 06:34:23 +0000 From: Akhil Goyal To: Anoob Joseph , Thomas Monjalon CC: Anoob Joseph , Jerin Jacob Kollanukkaran , Ankur Dwivedi , Tejasree Kondoj , "dev@dpdk.org" , Archana Muniganti , Vidya Sagar Velumuri Thread-Topic: [PATCH 02/11] common/cnxk: add CPT dev config routines Thread-Index: AQHXV8frowl9O/gEa0GSRS10Nn+BfKsTG/kg Date: Mon, 14 Jun 2021 06:34:23 +0000 Message-ID: References: <1622649385-22652-1-git-send-email-anoobj@marvell.com> <1622649385-22652-3-git-send-email-anoobj@marvell.com> In-Reply-To: <1622649385-22652-3-git-send-email-anoobj@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [122.162.4.46] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 31ab5542-a13b-4d15-0aa6-08d92efe7331 x-ms-traffictypediagnostic: CO1PR18MB4618: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: GRVnFehgiUf1aGuLNWuJy5OnOHF65OQgUCU7MgQGCuf9/mPk/+/Z9GskBuRiUmkmoy3/ZNr7Ovg999LHOBLHph8CzNYzQgb+S4ajBqj3IwZu6/fx59mZsYd7FcrCDz3WeJ4oTMLvsMM6usDQ2/EBqS0U+vkep6jJdXQxKfMijGUWMBYkAio2psvnW2uqWZYIc7uGR3+YC1vIRDr1kgigS4FwunQrs/QxDJtX0cP+LqxFfA72eNxPf2J5j7+BImQ5d4vQMxExGh0pyWFcTCSHXZEg6HW+sAYjr9fYs/cGpmW1W+nvhcWIlHEMXhFfDPlCruXjxq+4bbLKkCWvSloSiONPVMdVdnV50SkXMbDg7w3Kd04mLItIiq6gjqD1TBmwBLeMi+JSux44wblzWSZJSaj7I2j2JCc08tmcA+6tyoS/fTwoHX7le5nWM16ZmC3bCkJ88/QvMyq+Rfj1yx+RakFz6SmvT6iovVJlcYGpHdQ9UY2l6NdYaJkh5gn8myktCM2xCmyu0P1bjUUE3aBnHdGJPdirj0Dm0/ZLe19wKL8QKOaE4S6r8/ZtPfYSVVRoE0MZ2zBf2YtidXBHnY5ykA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(366004)(136003)(39850400004)(396003)(38100700002)(9686003)(5660300002)(8936002)(66946007)(2906002)(122000001)(71200400001)(55016002)(76116006)(52536014)(66476007)(64756008)(66446008)(66556008)(316002)(33656002)(7696005)(86362001)(8676002)(6506007)(54906003)(110136005)(26005)(4326008)(478600001)(107886003)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?rTJ7aycp14vs1/zu1Cop3s814bPHbaVkSQe6MEk1SUi726pIuRAbQP3SQvjG?= =?us-ascii?Q?6X+Oxxn2OQDJryIfQG+xPyBdvBu+Q5/6GJU4fUkjPhOEYgBIbGcJbmPTwG+U?= =?us-ascii?Q?BXB8F+JiOfUCeEmGP9h6VoxVgWPswsguZoj9OZkr+PKNCeS5UeKzsUr2Ef8X?= =?us-ascii?Q?SOpup1uhZpOKjae1F+lSJnnaUen3xHHrpGJ2Lb4/WlxsuZU5Bds6tLThNMsl?= =?us-ascii?Q?OcFDPNHTm6R0TTA2xdIQ8M0xSapHAyZOM6Hnp4B3qrJc4ZAoxmQMq7LpGPdS?= =?us-ascii?Q?WtTOwnAj9IMaolB50VliNA4DMyyQkACK0QMtiHUf3YPRuMr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Bqyj/Xy1OW3z0w1nDrTwxOndiz2ilo9Qqr?= =?us-ascii?Q?XJh7LP5eVTJA//P+RFpsXDsU47SdlSLVUhzBX6O05Nb7lnxZA97hLVRl0K9s?= =?us-ascii?Q?CJE=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 31ab5542-a13b-4d15-0aa6-08d92efe7331 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2021 06:34:23.6500 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nAZH1G5l+V5qb7jsnYY7o9fvrCq0OkU1v8OWIxKZS4cj2Rqyp7womr25M2j8GnaAxrSVgr4/ol5czZdTTSnaQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR18MB4618 X-Proofpoint-GUID: l1t2SKFGhXzaX9bArb07u3jDoM9dTiVO X-Proofpoint-ORIG-GUID: l1t2SKFGhXzaX9bArb07u3jDoM9dTiVO X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-06-13_11:2021-06-11, 2021-06-13 signatures=0 Subject: Re: [dpdk-dev] [PATCH 02/11] common/cnxk: add CPT dev config routines X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > diff --git a/drivers/common/cnxk/roc_cpt_priv.h > b/drivers/common/cnxk/roc_cpt_priv.h > new file mode 100644 > index 0000000..8cb2dbd > --- /dev/null > +++ b/drivers/common/cnxk/roc_cpt_priv.h > @@ -0,0 +1,28 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(C) 2021 Marvell. > + */ > + > +#ifndef _ROC_CPT_PRIV_H_ > +#define _ROC_CPT_PRIV_H_ > + > +/* Set number of number of hystbits to 6. Fix typo Set number of hystbits to 6. > + * This will trigger the FC writes whenever > + * number of outstanding commands in the queue > + * becomes multiple of 32. > + */ > +#define CPT_FC_NUM_HYST_BITS 6 > + > +struct cpt { > + struct plt_pci_device *pci_dev; > + struct dev dev; dev is very generic name for a struct, can we make it roc_dev? > + uint16_t lf_msix_off[ROC_CPT_MAX_LFS]; > + uint8_t lf_blkaddr[ROC_CPT_MAX_LFS]; > +} __plt_cache_aligned; > + > +static inline struct cpt * > +roc_cpt_to_cpt_priv(struct roc_cpt *roc_cpt) > +{ > + return (struct cpt *)&roc_cpt->reserved[0]; > +} > + > +#endif /* _ROC_CPT_PRIV_H_ */