Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2137345imw; Wed, 6 Jul 2022 00:13:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s3jbs6lFw6XFkqEj2RscSu2cCgDOE0araLYefjG2t4ryeCd7i93QdGBOuDxuri46Q/KS0C X-Received: by 2002:a17:906:6a1b:b0:726:a3b8:bb7e with SMTP id qw27-20020a1709066a1b00b00726a3b8bb7emr37436346ejc.367.1657091621083; Wed, 06 Jul 2022 00:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657091621; cv=none; d=google.com; s=arc-20160816; b=Mc7obiC50d7lgRrhF4W9lVRhFJE77Hm59DSb0qg+cu7f8e+/qd39HGw7bdrj2g1lEo LA28/m0FBy1qovJbN+Xz7EHmodg17C1UyOmmrTQ7R4Cc+L8jiIfbfvVJuFp9EbaW7K2j 8mrsZAWO8N1fhhIRryjB4hsratPmYxHVkgDv+kBDdT71YT9e29/XunOg3UvJVbtt4iW/ vncDwHcIogTqNQoAqoWAyrhad1MIMDo2BsMBNo0aec3kVA2fQIJ8LQBlhksrLEwvSB6N IEySbNJ5poAkH17rww6Cj2gneaXP6Lp2ku+KRZuV9iKye73j2qinSYFfvBZat9j5HOV+ aEXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=U7HTFOsPYHoY2+jtInKvQNIromPx7OWzOgUegE3v3Nk=; b=hlM1cg8BQA3UIo/OyCHJNFGiHXZ5mv0uaMYSUG+TcA2Z6NcSiZmuh9Y/Tl8tiCFRPX 2rrnnKwah2xkgNkBBC10E2CvCJW3ipEhhCoXJ5qx3ue0Qo2/v6h+Yk+4e6MBKG19QYaS RDHB4jQxZmIH91HZBDxu8g0G7TtEDNZI10CkvvRZXzPq1rD/fAurV41hM4kBNqWV/n12 OnuYTSSIm4WKkhrIQt8qY4C4CVs6Yi2l6xiCQuhFXL75RgZDmxgC/dZ7RefuxWlxP6k4 hZDJKIjVBFjJdpjm9j96IVTugxuf/t7p3U1F4vABrxSIdelUtXUk2S7E2reKxGMmX63k 3GgQ== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz17-20020a1709077d9100b0072629ece5e2si8408141ejc.61.2022.07.06.00.13.15; Wed, 06 Jul 2022 00:13:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230233AbiGFGvf (ORCPT + 99 others); Wed, 6 Jul 2022 02:51:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiGFGvd (ORCPT ); Wed, 6 Jul 2022 02:51:33 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4D5614D0B; Tue, 5 Jul 2022 23:51:32 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 79E0F67373; Wed, 6 Jul 2022 08:51:27 +0200 (CEST) Date: Wed, 6 Jul 2022 08:51:27 +0200 From: Christoph Hellwig To: Logan Gunthorpe Cc: Greg Kroah-Hartman , Christoph Hellwig , Jason 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, iommu@lists.linux-foundation.org, Stephen Bates , Dan Williams , Christian =?iso-8859-1?Q?K=F6nig?= , John Hubbard , 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 , Bjorn Helgaas Subject: Re: [PATCH v7 20/21] PCI/P2PDMA: Introduce pci_mmap_p2pmem() Message-ID: <20220706065127.GA27132@lst.de> References: <20220705135102.GE23621@ziepe.ca> <20220705161240.GB13721@lst.de> <20220705164315.GB14484@lst.de> <20220705165039.GB14566@lst.de> <1bd43ef7-0403-bd25-087c-d54d5af677e4@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, 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 Tue, Jul 05, 2022 at 12:16:45PM -0600, Logan Gunthorpe wrote: > The current version does it through a char device, but that requires > creating a simple_fs and anon_inode for teardown on driver removal, plus > a bunch of hooks through the driver that exposes it (NVMe, in this case) > to set this all up. > > Christoph is suggesting a sysfs interface which could potentially avoid > the anon_inode and all of the extra hooks. It has some significant > benefits and maybe some small downsides, but I wouldn't describe it as > horrid. Yeah, I don't think is is horrible, it fits in with the resource files for the BARs, and solves a lot of problems. Greg, can you explain what would be so bad about it?