From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59922C38145 for ; Wed, 7 Sep 2022 12:07:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229720AbiIGMHU (ORCPT ); Wed, 7 Sep 2022 08:07:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiIGMHT (ORCPT ); Wed, 7 Sep 2022 08:07:19 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B85B12C11B; Wed, 7 Sep 2022 05:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=FjhohLdrRh9xpRQPVS0aHusJU1Ni6J6xZeu0FQRmyX4=; b=asnYOPXbmCEhbqBDW7KarVLBU/ PTNtLB+5pIHAXlKZNUVzxCeGMbpIzVscPJhEG5iHxpFKdYjIPaGIiaSX6IgbXZyQZ27R/BmJ9pol7 +qmtmai0Wj5Q8ZzO2SoE2+oYYwmL9a2O1eQG2nSgz9rL/AgzMr1j8iC1988Z8+QamWo8OJ6FWGxGC MqXD6o1no5UOmjGdokf1cGJ1UjKwddlSpGENRL/WRBhVLrVqpUp0GC0klpRisLuJAWsF5F2etfCZw T2vwEOj1xffqPbx59GcybwkSZvjTCaV2akgYOLQBS08lwLmjrP4bGq7X/EtvqDDOiGmc/gVy1JdMD AicOLcaQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVtpp-005xb9-W5; Wed, 07 Sep 2022 12:07:13 +0000 Date: Wed, 7 Sep 2022 05:07:13 -0700 From: Christoph Hellwig To: Oded Gabbay Cc: Jason Gunthorpe , Christian =?iso-8859-1?Q?K=F6nig?= , Christoph Hellwig , Alex Williamson , Cornelia Huck , Maling list - DRI developers , KVM list , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Linux Media Mailing List , Sumit Semwal , Daniel Vetter , Leon Romanovsky , linux-rdma , Maor Gottlieb Subject: Re: [PATCH v2 4/4] vfio/pci: Allow MMIO regions to be exported through dma-buf Message-ID: References: <0-v2-472615b3877e+28f7-vfio_dma_buf_jgg@nvidia.com> <4-v2-472615b3877e+28f7-vfio_dma_buf_jgg@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Tue, Sep 06, 2022 at 10:44:45PM +0300, Oded Gabbay wrote: > Regardless, it seems we can remove it from the calls to > dma_map_resource. I went over the kernel code and it seems only habana > and amdgpu (and amdkfd) are passing this property to dma_map_resource. > All other callers just pass 0. What really need to happen is a revert of that entire commit, given that dma_map_resource must not be used for PCIe P2P transactions as explained in my previous mail.