From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 57C86A04BA; Wed, 7 Oct 2020 19:33:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5EBEC1B67B; Wed, 7 Oct 2020 19:33:21 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 53FCA1B70E for ; Wed, 7 Oct 2020 18:43:18 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 097GfIvg027772 for ; Wed, 7 Oct 2020 09:43:17 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0220; bh=FuNmcHCejLjDfDIi5Uq3Eawd9QA4aVW3BNbRtAl1z3E=; b=emO2Wp6/SgoMAHSI7BSwrwts8HuHn7X6lYU98UtJuVjo/nAc3L5IyzIy1R+VDdtEbgaW BySOquza+UeAhJRUyn18cvOD4o656UT3YZCAvtV5UTxkOH/znQ8Wwy5kDY9HND27xzr3 7Fet4tYwyizxtsoovbchsfaAlK5tm7EqTmN7GJgoUO4mb7gOFfpnYZ2mVMe1IQ7Fpx2R NI3vgMFtBccAayNCTuiHxX9A6Eoo0Eq+wRPDvUrFq6Lmk5XV8FdX58Jn2hFMPPznIMKx J2/TucENK82E3BDSfbwvhuOCoJ4LRu9koWgTXvOPc9gZ0KWn6imlI0BQAxf96IY6QaoL BQ== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 33xpnpwm7q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 07 Oct 2020 09:43:17 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 7 Oct 2020 09:43:16 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 7 Oct 2020 09:43:16 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.55) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Wed, 7 Oct 2020 09:43:15 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cgve9nMep/h7aGgFk0hJh1HcoZAFFXyWh6gjmrDPz24NAFUDLz3s1mqA5DlOE9bWlREWoaSqd86vVoxvzZXg8KeSJRGZdZEdWoLcjMNUBkgAlgiP398DQwwaMserYB8gjmbRTtNsxT6FCU0VTADIoFWdgJksIdh7+wNoPlDVTBwquwU1sc/YedQRvh+uwc3pz/6vv382e8K0mgcFSTUhNngJtpgUIkcBvQeteujMVUWJEndxI2uCziy1EsRK8Qwyp21oF8etgTirRH/WLsSnE62MZNWOnZRgXKewHZg268K3+NaBBv4UDaGQjCylRFNTb80RyZ1xGMAGuNqaOgmNsw== 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=FuNmcHCejLjDfDIi5Uq3Eawd9QA4aVW3BNbRtAl1z3E=; b=YiPQI3B9atTj43MutuUG8aGmcl4ZhUJL3ecLLuakGfqqqV48cEcW6i84lN0CuqPLW9l/O17dR/BjktZKYpjnesiNwP1VL/cTXyCjAU0e96ydTmy37kjXjkiLwVZMQywJOVcfzcu+doK/2BPc0zuEHW/xjBUCmbQ91k8Y57v8/rHKSZ/7lFqKaU7O/DT7/i5tQ9F9IbghHtVG1oqfOVepxlwJAePVvrSCBPTZAhBAH99sC7v+uJY5c9Uix1/scw3SHSagrqOB+QiS0ZgZiS7DLMD8dndyoiwhBWuMrxWWe1BQWExa2uJY4yXQpVMfrTvCfh9gZuyRxcmnrJRFt6BMkw== 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=FuNmcHCejLjDfDIi5Uq3Eawd9QA4aVW3BNbRtAl1z3E=; b=ZK/LFycbF74WphFLEsizPAQCnbs0lFHmAAK6nlG9KKC+6gigM+OB+nr3WT0azOAwf785Da2zaWIep4qDYo8AeVyJUYgF1guWccpW5sjieppwPOZpvxzclRNuBMTsGKn1zpjd9PR4tvWE3t0OR+c7OdKaiPbDBumg2Q/r8Ll9Ldo= Received: from BYAPR18MB2918.namprd18.prod.outlook.com (2603:10b6:a03:109::32) by BYAPR18MB2408.namprd18.prod.outlook.com (2603:10b6:a03:12f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.21; Wed, 7 Oct 2020 16:43:15 +0000 Received: from BYAPR18MB2918.namprd18.prod.outlook.com ([fe80::4407:9a77:794d:32b3]) by BYAPR18MB2918.namprd18.prod.outlook.com ([fe80::4407:9a77:794d:32b3%7]) with mapi id 15.20.3433.045; Wed, 7 Oct 2020 16:43:14 +0000 From: Satha Koteswara Rao Kottidi To: Radha Chintakuntla , "dev@dpdk.org" CC: Jerin Jacob Kollanukkaran , Radha Chintakuntla , Satananda Burla Thread-Topic: [PATCH RESEND 1/2] raw/octeontx2_dma: Assign pem_id as lport for non-internal DMA Thread-Index: AQHWm6HLChADuhMuNEGH95ltM21r26mMWFUw Date: Wed, 7 Oct 2020 16:43:14 +0000 Message-ID: References: <20201006053021.134706-1-radhac@marvell.com> In-Reply-To: <20201006053021.134706-1-radhac@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [103.252.27.5] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dab264dd-087c-4705-f8c4-08d86ae01618 x-ms-traffictypediagnostic: BYAPR18MB2408: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:159; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: A/TdEz4lVTHlB3Gr5sobNsjuh16cGYz4MFTVYI5CdYCIxSbW8j05Ka1+OpQ3ecqWf8yEYYOWajyZZ8YUpuXjjRC7AJVhN0/+0Bh7CzJn443r0TWR6UpF8gb9QE1/bs3MhVAYo8crUpQceGjaxvjyRtBQp1Ad5CtLz1uNizzZloeHVGvlPQAybhN9QhFkeR26dNTu7RK0IOaFejmEla+ajuFhvGw2+04PNFUiWD294R1iAQfwNK+5g07kB+P9eyNOWbHWgWEMv8hnytpOadlgQlDU+xCwaIQduaX05D1zj7J0uKbRbS36B7d09kFvgyIGEqYSDTGuySDIn/lsZh8YNA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR18MB2918.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39850400004)(366004)(396003)(136003)(376002)(346002)(7696005)(8676002)(52536014)(33656002)(4326008)(5660300002)(9686003)(66446008)(66946007)(66476007)(8936002)(64756008)(26005)(71200400001)(76116006)(55016002)(2906002)(66556008)(86362001)(107886003)(54906003)(110136005)(53546011)(186003)(6506007)(83380400001)(316002)(478600001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: a6+bciS3il4XzQe0DRWUbOkngqBBMW7UCbz1VWS0/lZIBoMod8k3Ly10DNqIANPO/tQ2aMnXt12C46B4lwn/blVMOWgzZ9XhYSgQXEj4QEws8veLxk9U5r8ur6TIZ7r9A6emyRJD2qYM60sgXaxiZgXaxrsH/HwC+L/iTJvcE9TnrGglxIu6in9PHgudK+95TsXtrm0ZYb/kNk9V1Xcj9tSK8ZfJmTO/NrsCpfFRvLe5MmKa5WHYeCBHZGoepI6LKT+7c+8eETmHYiq+8RLgB6iVThqh2AwzaoxdFaglC/2fFje3ZiF3SWrze3DeuzFIuyFgv8IqnO7EQsd9nh3Wx4SBSpu8FdncMaPCi9geBJrGMT9NNPZpyZ9i0UwvadSZhdRLAiaU0E1CYQZ4W2b2oUwSl5GeUp7TB1yFXAM4P8sVi/yRyaWlB+OYWfQfio5iUb+1p4F3yMykhBcf8os8L7hYC2+xHtkjqxiz0rKuLRLCdb5w6hyRBeMvvIzER79zl7uDKGyAMdxhvoyt7/qFxX4Tfe03l3b+jVM/d0fBltWOVp+yO6wRvLo2XWWthwQ5cxv+Qwogo9DZCpuYqZMmEtqGnV/KpPC3jME8Jsp20WWuePuoS451wUf+VDqqYI4TQaU5HF5nY3aRrSzj3cBrDg== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR18MB2918.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dab264dd-087c-4705-f8c4-08d86ae01618 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Oct 2020 16:43:14.6590 (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: E4VC/PmrUonZm+5gt7TF+k4lmNQqt1p4gHn213OuqVCKsMrR3kYBw2NoK/GAYNPWrH3PnVEWEVeXptEyv/bwdQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2408 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-10-07_10:2020-10-07, 2020-10-07 signatures=0 X-Mailman-Approved-At: Wed, 07 Oct 2020 19:33:19 +0200 Subject: Re: [dpdk-dev] [PATCH RESEND 1/2] raw/octeontx2_dma: Assign pem_id as lport for non-internal DMA X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" -----Original Message----- From: Radha Mohan Chintakuntla =20 Sent: Tuesday, October 6, 2020 11:00 AM To: dev@dpdk.org; Satha Koteswara Rao Kottidi Cc: Jerin Jacob Kollanukkaran ; Radha Chintakuntla ; Satananda Burla Subject: [PATCH RESEND 1/2] raw/octeontx2_dma: Assign pem_id as lport for n= on-internal DMA DPI needs to know the PEM number for all external transfers. Signed-off-by: Radha Mohan Chintakuntla Reviewed-by: Satha Koteswara Rao Kottidi Reviewed-by: Satananda Burla --- drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c | 2 ++ drivers/raw/octeontx2_= dma/otx2_dpi_rawdev.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c b/drivers/raw/octe= ontx2_dma/otx2_dpi_rawdev.c index 5b496446c..a1b94ce1d 100644 --- a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c +++ b/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c @@ -201,6 +201,8 @@ otx2_dpi_rawdev_enqueue_bufs(struct rte_rawdev *dev, index +=3D 4; hdr->s.fport =3D 0; hdr->s.lport =3D 0; + if (ctx->xtype !=3D DPI_XTYPE_INTERNAL_ONLY) + hdr->s.lport =3D ctx->pem_id; =20 /* For inbound case, src pointers are last pointers. * For all other cases, src pointers are first pointers. diff --git a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.h b/drivers/raw/octe= ontx2_dma/otx2_dpi_rawdev.h index 9ebb25988..81740e84b 100644 --- a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.h +++ b/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.h @@ -140,6 +140,7 @@ struct dpi_dma_queue_ctx_s { uint16_t req_type:2; uint16_t use_lock:1; uint16_t deallocv; + uint16_t pem_id; =20 struct dpi_cring_data_s *c_ring; }; -- 2.24.1 Acked-by: Satha Rao