Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp364941rdb; Fri, 17 Nov 2023 00:33:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3mQ59PHnyzD7L7fOiRuJgl385U/zqBQMwnrwJubD6Aw41LO70Wo/3AaICZoO18jtMuqgt X-Received: by 2002:a05:6808:168d:b0:3a6:f622:70f1 with SMTP id bb13-20020a056808168d00b003a6f62270f1mr20595397oib.57.1700210011361; Fri, 17 Nov 2023 00:33:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700210011; cv=none; d=google.com; s=arc-20160816; b=AjYQTJf0RkShjZhzmF9sKRX86gTzxSik2gnJb3IJS3fNUWHsuvng09lemcLVo6cqwa a3OYlzc6e67vJi/0FmtSOvUsINVb7dxKXQkUVtjxBUesTc37OUzrIjT4mcflA4o/HmMH u3Ko/9z7gVzy89jCUfpEpHCPEkDbtCaOCG6K5WBKak6QSDzXTnN48xo7bInlN4MHKmGr TpgmwIZaPEq2Gx8OzAK05bUNWHI33EDld/GIH9C9pIcd4ypToH+S6tA8vi757AXbXrn6 mPJ95ptjo7QkJsMoH/cXwRWoYRnJ8v2Q7Zb7aRFxggt+27zhb9VMa0kc22fCDvQWAO3m /zPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IS2YBdbjmzjIBMsfoZ5OwKkkUvklIBT3B3PmkUXk7v4=; fh=slJUkv4U5VZ1E2feMVjNkL0T7+qWKF4H1PugMrr7ebQ=; b=VoKUyFQpYuvlVOT1Ia0MdnMBIZf0hgNbVSKg7o+TZe1L3JjiXrz1DWeyPwOhnc6BEN TuId8GNaw2Zb25qJXuPUTy3/hdppCsdMM3mUvYKlYsfD5FI10gpXIm836dDbH2wRYlcH zzqTl9edHyucbzWTq8APDfWlUU/YyCaX2EK8tXFSgAxUJl5F9vWlwElPRkv8Yc0tb0Xa G+KJFIpz+MSxYBT7GXoTLPEBm/LjHyrZ1k6mlDpziHUZ3D0hsBrfkRbLcVwCIUHWqwjB 4UT4i4q0mO26GCmgiBojdgQcS7xBKdcmdCnAubl2bMtf+2oIMdZJ290hv9Wo0piFiZky a80A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SU3UIyeb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id s133-20020a632c8b000000b005b8f19be073si1479411pgs.416.2023.11.17.00.33.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 00:33:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SU3UIyeb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8CFFD8096BB1; Fri, 17 Nov 2023 00:33:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230316AbjKQIdT (ORCPT + 99 others); Fri, 17 Nov 2023 03:33:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbjKQIdS (ORCPT ); Fri, 17 Nov 2023 03:33:18 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12B30B0; Fri, 17 Nov 2023 00:33:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700209995; x=1731745995; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=LadFFOa9cUtU7ECOTPF5KVOGh+N1azQgLZ4EmevYVpc=; b=SU3UIyebWj6jGxHRvX05dBpekQ3zEExgY9zDPj9Cza05QwwJa/uFxuKk Xu0VPEg53DQ9vX3zskiOb7rCVhXDKlL96mIrpWuuaCgdTJD4v4IF15/E1 uEiLLzSYU+0Vmj0NGR5RdHW0DMVZdlShBQXsOWHBDLJzgNqTzL84Nx0zx sYhfnC8BRaHYSaIlESiNxNuS/5Z2eVnltb9N/h1nOSvo/qaqJlh+GXDWm qRkTBBJKgopU5+5yuChI7WzHWU+yXkGOVSyYpR1Lir8efG2XT0Z2YTARd aRP6b2gCmHTlYdCQR5FaWUdi8E5XYrspDa1lqYb7R25jBQLULBhm4pE5z g==; X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="422355776" X-IronPort-AV: E=Sophos;i="6.04,206,1695711600"; d="scan'208";a="422355776" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2023 00:33:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,206,1695711600"; d="scan'208";a="13846915" Received: from jpoulsen-mobl.ger.corp.intel.com (HELO [10.249.254.136]) ([10.249.254.136]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2023 00:33:11 -0800 Message-ID: Date: Fri, 17 Nov 2023 09:33:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v4] Documentation/gpu: VM_BIND locking document Content-Language: en-US To: Bagas Sanjaya , intel-xe@lists.freedesktop.org Cc: Rodrigo Vivi , Matthew Brost , Danilo Krummrich , Joonas Lahtinen , Oak Zeng , Daniel Vetter , Maarten Lankhorst , Francois Dugast , Boris Brezillon , Linux DRI Development , Linux Kernel Mailing List , Linux Documentation References: <20231115124937.6740-1-thomas.hellstrom@linux.intel.com> From: =?UTF-8?Q?Thomas_Hellstr=c3=b6m?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 17 Nov 2023 00:33:28 -0800 (PST) Hi, On 11/16/23 14:13, Bagas Sanjaya wrote: > On Wed, Nov 15, 2023 at 01:49:37PM +0100, Thomas Hellström wrote: >> +TODO: Pointer to the gpuvm code implementation if this iteration and > "... implementation of this iteration ..." > >> +Using a MMU notifier for device DMA (and other methods) is described in >> +`this document >> +`_. > You can use internal linking instead: > > ---- >8 ---- > diff --git a/Documentation/core-api/pin_user_pages.rst b/Documentation/core-api/pin_user_pages.rst > index d3c1f6d8c0e0ec..6b5f7e6e7155fb 100644 > --- a/Documentation/core-api/pin_user_pages.rst > +++ b/Documentation/core-api/pin_user_pages.rst > @@ -153,6 +153,8 @@ NOTE: Some pages, such as DAX pages, cannot be pinned with longterm pins. That's > because DAX pages do not have a separate page cache, and so "pinning" implies > locking down file system blocks, which is not (yet) supported in that way. > > +.. _mmu-notifier-registration-case: > + > CASE 3: MMU notifier registration, with or without page faulting hardware > ------------------------------------------------------------------------- > Device drivers can pin pages via get_user_pages*(), and register for mmu > diff --git a/Documentation/gpu/drm-vm-bind-locking.rst b/Documentation/gpu/drm-vm-bind-locking.rst > index bc701157cb3414..08b6a47a6e592f 100644 > --- a/Documentation/gpu/drm-vm-bind-locking.rst > +++ b/Documentation/gpu/drm-vm-bind-locking.rst > @@ -366,8 +366,7 @@ need to care about, but so far it has proven difficult to exclude > certain notifications. > > Using a MMU notifier for device DMA (and other methods) is described in > -`this document > -`_. > +:ref:`pin_user_pages() documentation `. > > Now the method of obtaining struct page references using > get_user_pages() unfortunately can't be used under a dma_resv lock > > Thanks. > Thanks. I'll take a look at doing this as well. Thomas