Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3758806rwb; Mon, 5 Sep 2022 18:30:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR7++LyfQqCnoibQ3uq7bo3VyKyQ85mutQXfENf0rZaQLoO7XIdlGqbQD/lIV+6Q+IFePIkz X-Received: by 2002:a17:907:3188:b0:741:4bf7:ec1a with SMTP id xe8-20020a170907318800b007414bf7ec1amr31657577ejb.448.1662427844994; Mon, 05 Sep 2022 18:30:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1662427844; cv=pass; d=google.com; s=arc-20160816; b=OP9i4zK2nufSACAW5g0dtrYkSY8fHzxYWTA3/wfp5ebHZLa5gG1aLxoWXwjsAAiFr7 4voi+r8Y3+KmSJdgZg5ujq2Vik6SuR+z1b+0KsRKGcSJ5B2+Yj7+jqBNTT4Nzs9P2e87 36iHLtdqpb/X4za3vuT/GT2MKN0TX1QiyjOT+lX5x1yx2ENw9HDn+yLg/TCYV7qQh7EM x7Bay+XbuZnpUpax6LDtVSp0xGIdWBjtJoC1bgJ/KBMVn4oOZJtBVAPmtPUpcWL8xX77 RiTTdQqLUvHcbRm3E47Vy7wLz4zvjCPnsnHRZNfIuovm6Kjm+dOs5Zs3C/UQYgkZOjyU 7qkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=GMpDNlqw5o73e6GlZthus7WEbl56rkoXZgYyj7uksJo=; b=q7cQ9V/A1wYVUNOTAwbjQMG4Eb2g4Y4DMS0WdBfdfBVCdlAZ0MRW8wEZaTEzVmSosd O2xeijddm4RrgetMYkMktruYFjdsWIEqXoczNQUBvAu3zz2DAgdDaz4OYWvwZYmvycFx 18pslPv5uS3wC+DvYal8vQAbsICDULyrjRzsv4nbt2oTAWc3dsARK/SWi8ol4LtutOkQ Nyny9quYWjLTEbMpmNNU+c4Znxrl4m0O8WPY05X9kMQe2iEqs4zB1yyhnqp1uTa3nsfq jW/gOlt7V4b4N9bD0eTI4ureVN2UFFt92X6xlhpT9P0Gw1p7KrDUZuE7riSyHUHk1phy dyTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=gdDrh8gF; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y38-20020a50bb29000000b0044eab56accfsi1924138ede.59.2022.09.05.18.30.20; Mon, 05 Sep 2022 18:30:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=gdDrh8gF; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232498AbiIFAsO (ORCPT + 99 others); Mon, 5 Sep 2022 20:48:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbiIFAsL (ORCPT ); Mon, 5 Sep 2022 20:48:11 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2070.outbound.protection.outlook.com [40.107.92.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93F8D69F7E; Mon, 5 Sep 2022 17:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iWuRTM4EbiOG/XmCvhbMb+Y2mO96ieQVh07d7qvTD97pL8GEylMOhac5rIXinoMZwmO3wGkRUQ0vm9xDHsyjA8df//3VqsQqUMrEmi+G/fSguLNINJJjUY1xUETTQOkZ5+YZ6da6tU6zbd1djC254KJEV1N2C3O+41whiWPrIdl4jHb5fe5cXr0AqJKwUCXVgqqXtyqojdZqsz/G4H3UFiIwUUH88n2Mmk5WsaBSsSHtHqC5S/dy/Ww9/JAjozVRTxWVKvoZa0BmKJP3Fs0VfMNFEnkNZSdwSaTHz37P6k5DKxUAIELu7NMLRINrasDXznq3xz0XSoDFSLsXC9SKDw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GMpDNlqw5o73e6GlZthus7WEbl56rkoXZgYyj7uksJo=; b=CLPTDc0bH1LqKehyqgKRNOgbrLTgsg8dyZBoTYrThk3zd3DACs5r5kp89IB7gzmT9NIFSx60ZoB3fHa884iq+8s3Iz4KdruTjgvhTmsQ5iR7VIGIt8I2kv7fcoHQdULfr8y2ZQk3CGY7e6SgXC9yOjtbpQeQTTKrs7a8cPM0uHfRNKYWsoSlnd5TRH7qKx04g7BaZ1HFwU02bLj1dEDK+FhepyIcKX9z4hPXgPs1qiwIZ3sKaKajlC1nbpsBJxJ3GzyYHaNqVEoQrfxNoYm/vr67tAey6a0qfx8I2H4bZNNK6aMXzrJL7mV9xGjfLyzfH+i3Ods/OCqIPFfJJft2dw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GMpDNlqw5o73e6GlZthus7WEbl56rkoXZgYyj7uksJo=; b=gdDrh8gF9a3ycqNEs8dSYsuouOKtIB7H6mymrZGLUsz23YproDK+BU0ZUeX5sI9v8j4i7uWVGbiRnqppcIjwdXsYmXJnOZQuqwuKX1hIpCr9oN25aXsPOSA45i0NmLynfJn45tEVCKpV+IgKEKTac8LkQq/9ZfiTQkffuYpyVUnGBeWGntupWdW7aIZ4x31aMZ5KMSpcjbxTEiHYWbP3u1ANxYxMmZYclhFeM0YPoadImv6CfypoTcg+SVBPZksg3uzsxqIXAPAJHdy4NXHU1JwI9Vik62urZ5k7TC0XW5iIKsHTHb7UEapWmakeoT+ML1GsdoaV5J3hQx6upLC7ig== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) by BY5PR12MB5015.namprd12.prod.outlook.com (2603:10b6:a03:1db::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.10; Tue, 6 Sep 2022 00:48:08 +0000 Received: from BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::508d:221c:9c9e:e1a5]) by BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::508d:221c:9c9e:e1a5%9]) with mapi id 15.20.5588.018; Tue, 6 Sep 2022 00:48:08 +0000 Message-ID: <21eda152-c2ec-26bb-92f9-507b5378cd99@nvidia.com> Date: Mon, 5 Sep 2022 17:48:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v9 5/8] block: set FOLL_PCI_P2PDMA in __bio_iov_iter_get_pages() Content-Language: en-US To: Logan Gunthorpe , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org Cc: Christoph Hellwig , Greg Kroah-Hartman , Dan Williams , Jason Gunthorpe , =?UTF-8?Q?Christian_K=c3=b6nig?= , Don Dutile , Matthew Wilcox , Daniel Vetter , Minturn Dave B , Jason Ekstrand , Dave Hansen , Xiong Jianxin , Bjorn Helgaas , Ira Weiny , Robin Murphy , Martin Oliveira , Chaitanya Kulkarni , Ralph Campbell , Stephen Bates References: <20220825152425.6296-1-logang@deltatee.com> <20220825152425.6296-6-logang@deltatee.com> From: John Hubbard In-Reply-To: <20220825152425.6296-6-logang@deltatee.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BYAPR11CA0043.namprd11.prod.outlook.com (2603:10b6:a03:80::20) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7d3d1e81-8696-4363-2973-08da8fa17766 X-MS-TrafficTypeDiagnostic: BY5PR12MB5015:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ytIbQ72IjPhe7pWQWKJrjZN7h1I5exTHVXy3jweR2lueLrR9nNtxlr9i6VmZY1VHi1OC0AJQx4V68nqmh1r7j52Qr88nLYsaQt55imuGEUlQP/ofQ+6xBlPYTELVtPMTOuH2KXpL7RGnfkZF2582A/0boy0xo4GlDTZrwA58dYmdoRf3Z4XL9tje1qhZTXDZI53OVP+hVusQmapHGQ25fgEoh93XIbyze1jE/8JpFlKfova4lc83mD0VF56E6icaoGFH2Q18ljnNMAW4AtjTcHDqBTQmQpIbvzVmgg2TsOgXa6HPIKtxUdW60+J9HYnL+HsFZBZQNr57N7VOxDVE34w7rZNCQoOgdmR+FXhqwEm0kBma1BcHnyUdLxTSs2fdclkUw5UL/SSVHBRk92Vj5GYlnBQLYiROs010aSK94ivA4Qj4+BdSelh1OJK8oxb7d97RH9//qQoap8oassT6S2cIvCNIiOVpmunOuPRFDEPLQgVOQAyJg/hJZCcmh8CEAVGN68sqQvyEH1LTiFbnRUpZRC6Fw9hAiugymzf6bPBFJPEp5UM/01wn6FwizfuCdzBcKpSpD7diKBi8p1iuJNZ+63Ks4f9+7A1brPipX0qvGgDyD0O5THabkbuCNBQDJnK2H3H5NnZmDCFf51TLFbyqHMry2gNsq6Mj/CwP6Ix+9ziisbZ00X0pTsxX3p8WZngxMFRN5EbwV0XffHuyOJ47hrHDcTnFRlOQx7SqVVe3jrHfWrqmmUMPDgIlUSatqlXY7ArsdVVQbjb1QYcGGxasAzGVEudQvE3PdZsKjG8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4130.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(376002)(136003)(346002)(396003)(366004)(39860400002)(86362001)(5660300002)(2906002)(7416002)(8936002)(38100700002)(53546011)(6486002)(6506007)(478600001)(6666004)(316002)(41300700001)(54906003)(66476007)(8676002)(66946007)(66556008)(4326008)(83380400001)(26005)(6512007)(2616005)(186003)(31696002)(31686004)(36756003)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TitZOVdrYU12dTJsbGRsUEttV1lDZmloZlQ0cndqWFFwNzhGV1pCSUNFTEpI?= =?utf-8?B?Q2IrTkFHUUJJQ2ExeGNqSG9FeHJyRDdyQkdNSmFyW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MjZZZmg4R29DcDR1N2tEb09PZFMzRlZIbDZlelp4?= =?utf-8?B?NjBrSzRqQUdIVHd5S2VRcHB0YVBtRHEyb0J3QngwZ1hyUEFrWVBIMlhXMWtN?= =?utf-8?B?MW9HdzYxVlRrbjJVd0ZOMVhhV2Z5NmhibjdQVlVhaFJyNTVvN3NEUzFmN3BR?= =?utf-8?B?Nkhzd2hWOFhySkF2OUttSGJBRCtpR3pXYXFPVkFEcEw3RXJ6RUFNWFkraEtE?= =?utf-8?Q?NvNWD9MHVI8E0H2D+YCZIp6k4?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d3d1e81-8696-4363-2973-08da8fa17766 X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2022 00:48:08.3911 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yeqdGgiUj1tx6mTzBUbr+eBXf7jRRMbCPbbpNQxl/7nR2qIaxAOwvWjID/PrzmX2WpfKOg277wev3vsb1hhqtA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB5015 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/25/22 08:24, Logan Gunthorpe wrote: > When a bio's queue supports PCI P2PDMA, set FOLL_PCI_P2PDMA for > iov_iter_get_pages_flags(). This allows PCI P2PDMA pages to be passed > from userspace and enables the O_DIRECT path in iomap based filesystems > and direct to block devices. Oh great, more O_DIRECT code paths. :) > > Signed-off-by: Logan Gunthorpe > --- > block/bio.c | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/block/bio.c b/block/bio.c > index 969607bc1f4d..ca09d79a0683 100644 > --- a/block/bio.c > +++ b/block/bio.c > @@ -1200,6 +1200,7 @@ static int __bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter) > unsigned short entries_left = bio->bi_max_vecs - bio->bi_vcnt; > struct bio_vec *bv = bio->bi_io_vec + bio->bi_vcnt; > struct page **pages = (struct page **)bv; > + unsigned int flags = 0; It would be nice to name this gup_flags, instead. > ssize_t size, left; > unsigned len, i = 0; > size_t offset, trim; > @@ -1213,6 +1214,10 @@ static int __bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter) > BUILD_BUG_ON(PAGE_PTRS_PER_BVEC < 2); > pages += entries_left * (PAGE_PTRS_PER_BVEC - 1); > > + if (bio->bi_bdev && bio->bi_bdev->bd_disk && > + blk_queue_pci_p2pdma(bio->bi_bdev->bd_disk->queue)) > + flags |= FOLL_PCI_P2PDMA; > + > /* > * Each segment in the iov is required to be a block size multiple. > * However, we may not be able to get the entire segment if it spans > @@ -1220,8 +1225,9 @@ static int __bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter) > * result to ensure the bio's total size is correct. The remainder of > * the iov data will be picked up in the next bio iteration. > */ > - size = iov_iter_get_pages2(iter, pages, UINT_MAX - bio->bi_iter.bi_size, > - nr_pages, &offset); > + size = iov_iter_get_pages_flags(iter, pages, > + UINT_MAX - bio->bi_iter.bi_size, > + nr_pages, &offset, flags); > if (unlikely(size <= 0)) > return size ? size : -EFAULT; > Looks good. After applying Christoph's tweak, and optionally the gup_flags rename as well, please feel free to add: Reviewed-by: John Hubbard thanks, -- John Hubbard NVIDIA