lkml.org 
[lkml]   [2021]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v3 10/20] nvme-pci: convert to using dma_map_sgtable()
    From
    Date
    Logan,

    On 9/17/2021 2:40 AM, Logan Gunthorpe wrote:
    > The dma_map operations now support P2PDMA pages directly. So remove
    > the calls to pci_p2pdma_[un]map_sg_attrs() and replace them with calls
    > to dma_map_sgtable().
    >
    > dma_map_sgtable() returns more complete error codes than dma_map_sg()
    > and allows differentiating EREMOTEIO errors in case an unsupported
    > P2PDMA transfer is requested. When this happens, return BLK_STS_TARGET
    > so the request isn't retried.
    >
    > Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
    > ---
    > drivers/nvme/host/pci.c | 69 +++++++++++++++++------------------------
    > 1 file changed, 29 insertions(+), 40 deletions(-)

    Looks good,

    Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>


    \
     
     \ /
      Last update: 2021-10-06 00:30    [W:3.043 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site