Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5169043pxb; Tue, 28 Sep 2021 12:00:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ+/aWAeBsBgkZ6m0bHhWit2aItCJl3dSG0aYC95QZgXmdfkXXUo80MH3KHKrlUg1cEJpL X-Received: by 2002:a17:907:d09:: with SMTP id gn9mr8613940ejc.447.1632855650793; Tue, 28 Sep 2021 12:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632855650; cv=none; d=google.com; s=arc-20160816; b=TykZifvfIA38TGx30vRJ0ZkAr8dON3PtHmkJDkFiEcmD4zaKOHsaHPEtmlHweEPL/P rnJxGJglckm/YnGs3n3QsZ3ENUVuzLBX9er+DXAA53BvJ0UCBaJB5P/xVX7OP6QDP7Sr nPpub1TPFb/OwRANzDmelFnVV+OSItfB0RTrDTHqndSjq0wC+UgIJRB76tsWPIP4tdfW Q6edUjm+PuhTQWlnnLfaAnyXeCFjxE6+f0mTQViIzMkcsOCByai+LdJV3xxJE17sp5wi wSIl7iQLuTXZXnD4a7Th+vxabTd79z9ki64lPlO+YMVyGnW6ilsQhgDQ2M/MF2l/K0KY +TsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oHaryRFi/fpZmucH1uQxicsHfaWcwCrvG9TbLYxvHTw=; b=WCVpdyEFXHMRxKKuv/aqbwBWjMuEq8hk68dPDi4xVTbNodZFLUMw/KvrL69q8OYriQ mBGKDYXxZKui+UrMuN+UwAO9Eeuv2/38q8gYAD5RrFnS0VLYQ6csCVhq2gli5lihRCB5 /hOY5v6auDjTSRAU4Od0l/Xnx6F1WNciQQ/S5hkd3fyb8bR/IYxpExvGArZ+QX2Rwyd0 0eT0Hjv8oUpZpz6KAm2Qv9Y04nEsy2pmn+DpRQsms3NYxvrDeK+Eq1e2kXzJTYYq+9pV sqQPjiOzQBu/JbCSI/myeUFBlkT7DeACdkdzR+jHDGRGb06g71V6bLuNKxZhZHpD63Dr 3HMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Jx2GOuLq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si12758731edr.410.2021.09.28.12.00.25; Tue, 28 Sep 2021 12:00:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Jx2GOuLq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242353AbhI1S7j (ORCPT + 99 others); Tue, 28 Sep 2021 14:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242372AbhI1S7h (ORCPT ); Tue, 28 Sep 2021 14:59:37 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17AACC061746 for ; Tue, 28 Sep 2021 11:57:58 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id lb1-20020a17090b4a4100b001993f863df2so3571927pjb.5 for ; Tue, 28 Sep 2021 11:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=oHaryRFi/fpZmucH1uQxicsHfaWcwCrvG9TbLYxvHTw=; b=Jx2GOuLqIF/s/mi2Zrk/xAaRKuyWPWZHCfm+XwkC1Yr0Dv0vjM+OfZQXVIMiJLsjmt UrV/wXbA0S/kA8NHbPEFpp1dbqLg5YihHJ0daxdbRmoiYipdrvH9aE1GR+5dg2ru+RLb D9RlleKhxyRZz7x683IeC5JDgX+RCiwr9h+iGzv5av3RkyBoFDWC4oGW5kDI8NZqd+wU GG0wiVbU0tcwD2OsUIWVh8MXHIcG0Qmyu9kG4Cl/ZJH0N5wnluQLcxjz6xhITElaiUL1 soubsWJ2CeaU97V7PVulKA29iDPu0PVzaYdGQFsHPsL8RlHji5XVx44zUSja9oX1iGFJ ehCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oHaryRFi/fpZmucH1uQxicsHfaWcwCrvG9TbLYxvHTw=; b=mdaPC7iOBUU1S/BNDjkoeP7IRn9jqbCEge3QS3fF+3P/LAQjXEQB31GWnFiLQkGoij VJslGVEbp3WIjDmkTZwCX0xfP9ZXBA44VBlWGjSIYXlqzrdl46kV13mj/QwPNY8AN9dy i38F1XTRPQrsLsL48qiWuAZiyXaocC53rZ+4x+tALx/S3mOcBcnZaxlVpJGBUftcvFaa Yej4GH244UTnuxDuRU7EHdmNCXGiAeJYaazUUcVaom3jpW/lgCWvc31RZCReabYxPwvZ Mxeu3eNHtunGUZTlf0M1g9N1pDQOyO6/nMntVt/GiCfc67DWU56BwEKkYJGCH56bJXM1 akkA== X-Gm-Message-State: AOAM531js5eAPKL97vMCFMILDXqhx/QW8FPyauJUcUHFYyVAR08qd9Tp u53Xl7G1EajeegoTXXKC7inpRQ== X-Received: by 2002:a17:902:a604:b029:12c:dda2:30c4 with SMTP id u4-20020a170902a604b029012cdda230c4mr6060505plq.73.1632855477627; Tue, 28 Sep 2021 11:57:57 -0700 (PDT) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id o20sm22682349pgd.31.2021.09.28.11.57.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 11:57:57 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1mVIId-007FjO-20; Tue, 28 Sep 2021 15:57:55 -0300 Date: Tue, 28 Sep 2021 15:57:55 -0300 From: Jason Gunthorpe To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Stephen Bates , Christoph Hellwig , Dan Williams , Christian =?utf-8?B?S8O2bmln?= , John Hubbard , Don Dutile , Matthew Wilcox , Daniel Vetter , Jakowski Andrzej , Minturn Dave B , Jason Ekstrand , Dave Hansen , Xiong Jianxin , Bjorn Helgaas , Ira Weiny , Robin Murphy , Martin Oliveira , Chaitanya Kulkarni Subject: Re: [PATCH v3 05/20] dma-mapping: allow EREMOTEIO return code for P2PDMA transfers Message-ID: <20210928185755.GM3544071@ziepe.ca> References: <20210916234100.122368-1-logang@deltatee.com> <20210916234100.122368-6-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210916234100.122368-6-logang@deltatee.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 16, 2021 at 05:40:45PM -0600, Logan Gunthorpe wrote: > Add EREMOTEIO error return to dma_map_sgtable() which will be used > by .map_sg() implementations that detect P2PDMA pages that the > underlying DMA device cannot access. > > Signed-off-by: Logan Gunthorpe > --- > kernel/dma/mapping.c | 16 +++++++++------- > 1 file changed, 9 insertions(+), 7 deletions(-) Reviewed-by: Jason Gunthorpe Jason