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 044E3A04BC; Fri, 9 Oct 2020 20:18:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7098A1C435; Fri, 9 Oct 2020 20:18:32 +0200 (CEST) Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) by dpdk.org (Postfix) with ESMTP id EB8F11C2F5 for ; Fri, 9 Oct 2020 20:18:30 +0200 (CEST) Received: by mail-qk1-f193.google.com with SMTP id y198so11579041qka.0 for ; Fri, 09 Oct 2020 11:18:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Mjw/YE6/Q1/nTh0lQaQyIdilsjdPwpsNKMWaWclAYMs=; b=mcx8bevxNLrAxq3gHZiQpLSzNflkCOKIJ+uJxYZ+KPv3hTDMC2BAm45dIl8LyuU8jI dt5FW8nrUrxhX2UmogSbF7KXs++R4X8KEr5WasBR+0BN3+Z8MH9F78+ZUKKnYQgIBrRJ DyGj9rUThcxdjYOgrXAa7CENcFcbgUOZWHqjsHHB3dihskf+YVow5f8r9m7jShhda3Db Tqu4DtSkIHcOO/PVymmkhaCcZD1mkYvh7uzJABvhtRYT8FgqdNlRzOIeqk/BZRwd24dZ h4B5WQ3hAI1vpSrQgS1XRobuCCxwMOG8b0rTysXY73EPHPfkH7Dl89OxMgoN0J7V2P7R vIHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Mjw/YE6/Q1/nTh0lQaQyIdilsjdPwpsNKMWaWclAYMs=; b=jRl8MuzMh9bvV/egHvi8BrWEEqrR0z3A2l+YelcKAjOkpjp9xc81UNecyzoTbMyJGC zKlEFDfkwq+lAUrOLPX0JOS9h7+SxYsaJIUQnODmRbUkBItRjvXCvoo24FnhVkX1/t3j lopAd47SsVXyFHgBf640LhpYYEV7bvThRiILb6DwXyGKcG6yt7j1YVGfHUJU3u3Lhz0Q GakqKZTFRJdE4riUAwCvVX5To4zXeFg1bt1LM0y0VMi3d1dIysD2UnhY79bgbx7mlzvJ r1JDOTmRE8t1fZAR063b0z/DH4QEVeWKEI+tmr+LLRebHYutBqPdYNSl8+mMOR2S7N2R GD0w== X-Gm-Message-State: AOAM533fxxIFP15CwYBF9WAUewFK8V3vsTnbmRhUzHEjU/iLX/bpkdh5 qJnbrC0GitbqCqiWsDYMJPudiPHzcgyF65wv/NI= X-Google-Smtp-Source: ABdhPJx+AnZINbM+5uHDSI3ysEYcedD6uZE7c/CoajIBsL2zVQrCDiBFe6uydrWhBQMU95phj7FXiI7YXldTSr0gL/Y= X-Received: by 2002:ae9:e8d3:: with SMTP id a202mr14914282qkg.293.1602267509393; Fri, 09 Oct 2020 11:18:29 -0700 (PDT) MIME-Version: 1.0 References: <20201006053021.134706-1-radhac@marvell.com> In-Reply-To: From: Radha Mohan Date: Fri, 9 Oct 2020 11:18:18 -0700 Message-ID: To: Satha Koteswara Rao Kottidi , Thomas Monjalon , dev@dpdk.org, David Marchand Cc: Radha Chintakuntla , Jerin Jacob Kollanukkaran , Satananda Burla Content-Type: text/plain; charset="UTF-8" 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" On Wed, Oct 7, 2020 at 10:33 AM Satha Koteswara Rao Kottidi wrote: > > > > -----Original Message----- > From: Radha Mohan Chintakuntla > 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 non-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/octeontx2_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 += 4; > hdr->s.fport = 0; > hdr->s.lport = 0; > + if (ctx->xtype != DPI_XTYPE_INTERNAL_ONLY) > + hdr->s.lport = ctx->pem_id; > > /* 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/octeontx2_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; > > struct dpi_cring_data_s *c_ring; > }; > -- > 2.24.1 > > Acked-by: Satha Rao David/Thomas, Could you please pick this series for main. regards, Radha Mohan