Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1687413

Re: [PATCH 02/13] mpt3sas: SGL to PRP Translation for I/Os to NVMe devices

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Suganath Prabu Subramani <suganath-prabu.subramani@broadcom.com>
Newsgroups linux.kernel
Subject Re: [PATCH 02/13] mpt3sas: SGL to PRP Translation for I/Os to NVMe devices
Date Fri, 14 Jul 2017 15:30:02 +0200
Message-ID <u38Po-413-7@gated-at.bofh.it> (permalink)
References <u1Zbr-8vM-3@gated-at.bofh.it> <u1Zbs-8vM-5@gated-at.bofh.it> <u2dep-pC-17@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=O2w7tcNT3hY/1+YIQp3WQLTW1RcmhZyIMjfpHUVB/FM=; b=dkcN6DJFBDr0CLumyblRq6F0cgMntPwjA8bMw2hfS7oxHNnPiF/JSnFTUjpd1olVlU bMxLPHHUBqbzE9WJV71MI82AmYdvBMcg+5oDkZcCegULk6esKiZKoqYGNOb1nhNk2nz5 66GYmZp0RZvpH9c/76NejQq/o+VvRGca3twbQ=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=O2w7tcNT3hY/1+YIQp3WQLTW1RcmhZyIMjfpHUVB/FM=; b=GGp6w0PMnhWSCdVRVkvFnMQoGm3TZrW80hnqcwM5fhAHb3H208iTf6BxOKyGhwXYV2 Vvi53950uOU+bl9gcFYtsNb9+7ksrhludTJVC3IEcQgeg21xzmgJRpdPkZmZQP9NyLsN kcpOEO3keeVPIP4Sc25rUWk1ORSuJ6tDuiv8ktMucYk8QoRwJ4D5uN2SE/ioZHbiRl6S fc3GtfG92LTb4hYazFSkdyaimx2M2wu9KNvFO7pvhpiHgbwr7g30DLokz9FByonfvIHS Z6C1El3sJ0Xbft7bg2kK94VYQ0uPPPstwtfp1tIDNENG1euCGfy0pcKX/8T1mLaBP6Qe 1vvw==
X-Gm-Message-State AIVw113GgFCuyTn58bnkNY0Y4EKPaU3TDMRf6+DCR3j+yeWF+cn4ktvL /YucCO8qX0mlbqi5SvZ1Ry3ARVGjteBB
X-Received by 10.223.183.36 with SMTP id l36mr4667268wre.115.1500038853882; Fri, 14 Jul 2017 06:27:33 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset="UTF-8"
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 43
Organization linux.* mail to news gateway
X-Original-Cc "JBottomley@Parallels.com" <JBottomley@parallels.com>, "jejb@kernel.org" <jejb@kernel.org>, "hch@infradead.org" <hch@infradead.org>, "martin.petersen@oracle.com" <martin.petersen@oracle.com>, "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>, "Sathya.Prakash@broadcom.com" <Sathya.Prakash@broadcom.com>, "kashyap.desai@broadcom.com" <kashyap.desai@broadcom.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "chaitra.basappa@broadcom.com" <chaitra.basappa@broadcom.com>, "sreekanth.reddy@broadcom.com" <sreekanth.reddy@broadcom.com>, "linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>
X-Original-Date Fri, 14 Jul 2017 18:57:33 +0530
X-Original-Message-ID <CA+RiK67fK5MRxm=Cg4Ymy4us2j27N3aXU1AMpOo0iHsiM_-a8g@mail.gmail.com>
X-Original-References <1499763313-7214-1-git-send-email-suganath-prabu.subramani@broadcom.com> <1499763313-7214-3-git-send-email-suganath-prabu.subramani@broadcom.com> <20170712000402.GA27718@localhost.localdomain>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1687413

Show key headers only | View raw


Hi Keith,
We have made change and submitted V2 of patch set.

Thanks,
Suganath Prabu S

On Wed, Jul 12, 2017 at 5:34 AM, Keith Busch <keith.busch@intel.com> wrote:
> On Tue, Jul 11, 2017 at 01:55:02AM -0700, Suganath Prabu S wrote:
>> +/**
>> + * _base_check_pcie_native_sgl - This function is called for PCIe end devices to
>> + * determine if the driver needs to build a native SGL.  If so, that native
>> + * SGL is built in the special contiguous buffers allocated especially for
>> + * PCIe SGL creation.  If the driver will not build a native SGL, return
>> + * TRUE and a normal IEEE SGL will be built.  Currently this routine
>> + * supports NVMe.
>> + * @ioc: per adapter object
>> + * @mpi_request: mf request pointer
>> + * @smid: system request message index
>> + * @scmd: scsi command
>> + * @pcie_device: points to the PCIe device's info
>> + *
>> + * Returns 0 if native SGL was built, 1 if no SGL was built
>> + */
>> +static int
>> +_base_check_pcie_native_sgl(struct MPT3SAS_ADAPTER *ioc,
>> +     Mpi25SCSIIORequest_t *mpi_request, u16 smid, struct scsi_cmnd *scmd,
>> +     struct _pcie_device *pcie_device)
>> +{
>
> <snip>
>
>> +     /* Return 0, indicating we built a native SGL. */
>> +     return 1;
>> +}
>
> This function doesn't return 0 ever. Not sure why it's here.
>
> Curious about your device, though, if a nvme native SGL can *not* be
> built, does the HBA firmware then buffer it in its local memory before
> sending/receiving to/from the host?
>
> And if a native SGL can be built, does the NVMe target DMA directly
> to/from host memory, giving a performance boost?

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 02/13] mpt3sas: SGL to PRP Translation for I/Os to NVMe  devices Suganath Prabu S <suganath-prabu.subramani@broadcom.com> - 2017-07-11 11:00 +0200
  Re: [PATCH 02/13] mpt3sas: SGL to PRP Translation for I/Os to NVMe  devices Keith Busch <keith.busch@intel.com> - 2017-07-11 18:20 +0200
  Re: [PATCH 02/13] mpt3sas: SGL to PRP Translation for I/Os to NVMe  devices Keith Busch <keith.busch@intel.com> - 2017-07-12 02:00 +0200
    Re: [PATCH 02/13] mpt3sas: SGL to PRP Translation for I/Os to NVMe devices Suganath Prabu Subramani <suganath-prabu.subramani@broadcom.com> - 2017-07-14 15:30 +0200
  Re: [PATCH 02/13] mpt3sas: SGL to PRP Translation for I/Os to NVMe  devices kbuild test robot <lkp@intel.com> - 2017-07-12 04:30 +0200

csiph-web