Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp234887rdf; Tue, 21 Nov 2023 00:42:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKsREMk8/0xnZzUHWUb55mgnD9d8rvCCdbmbwEM4KLDFIFym1Dvfn+uexkTvNB6dr5ahzg X-Received: by 2002:a05:6a21:1692:b0:188:2770:4076 with SMTP id np18-20020a056a21169200b0018827704076mr8587948pzb.7.1700556137042; Tue, 21 Nov 2023 00:42:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700556137; cv=none; d=google.com; s=arc-20160816; b=XAySeD01t7nZIA086NQOmyM5JfN/NKy+eofbsi/tD4ZZWD3olxHhDyjn2gaRtlfDYF tH7/A/pyrKeaE/g2kK6RT6pRRHYpF+AyPvIQYv3owsEj4bqMhv3729Q22Vl98wJ674dc pukAPsXF8SgsIOoj0u8WdLJa4dfzG0C93P/MQN2Erzuxut0tsXZUx/+kW/n+RmyYpeTw PcRdnkN6sA5QJbcVvljHRJD9A4ErrO29kawdvzzU3xjRcRuxEJpKSwn1t+vFBphMbs+E QiGqAy1Gu2QMuYOxxeMK3mlw/lKakrl1TeLVStrrwAGTC2Ag9y/r141K86P+LM3Mhn0B NZTg== 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=HEYovKwoe754oquTcwqD6olxDhg5TTgIr47JlzQCmJ4=; fh=rulRKOQ0P/PKbkosnWL3syh46PhEXiIa1DZGNw7XGRQ=; b=YMznuRdrFMqD1HSq0tnTHyzcFx2Yx6GY+fMnK4fU31JXSAjMIZY38fwLmT6GorBdb3 3M2WgeGCAtgyee2knhiB7LkMj2CupBbmy/Fpds9HR8UUgDbFS8ETvPrYG5QxeWMbMdmq C3/5ot5wznQ6sRHmjmov5PnYRKspnXCFXbjvv2WU+ybOxG7mBjx0Wa31i3Wu5YOWeBTS a+t7yG90hQAF+eyjbIUL+u5wGI6r91tfBjpOfU2LBfW1zVc9LM+mj2FomSgwXLpJhpb2 qRvT4MuRTU74zhhDEE+UWvbJqRRzdbB42K1vQaHqB4tD1DVVnZY85IhxCeN+8eSEEbG0 4QkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=J+RilHsp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id p17-20020a17090adf9100b002847b85bbeasi6526305pjv.150.2023.11.21.00.42.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 00:42:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=J+RilHsp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 6C0CA80BE605; Tue, 21 Nov 2023 00:42:14 -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 S229481AbjKUImG (ORCPT + 99 others); Tue, 21 Nov 2023 03:42:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjKUImF (ORCPT ); Tue, 21 Nov 2023 03:42:05 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDB77AC for ; Tue, 21 Nov 2023 00:42:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700556122; x=1732092122; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=0MNGK9YZBkizi/IsudxxJh25bd58QtBgiGdEbXBMtCg=; b=J+RilHspHi/6OALf1d4LlTmMieueaIwdotdPRCYG67Eq/kYQuJb0MT8o e0n0xZRrJkGYb+vLQj5o9ShpMFGlcbD7bdHalhJiRz/tQNX99tZuc2slc ExDRwJcWnM2dddfITT6XJLUBQIJnrcTg+LXLjrM96QmXJR24UM89UXIqE DMjvnFv0tkm/C6JTAtriSkuw5SXf7RYU1tpKeWDSPGQrQDzCKFNQVYPGW kcxAHwnYym8G/lBHlgoDopVPdzQvYgeDJlA3x4wYRm0sU4IilSA9ZxDsU 9rqabHwyO765RHGxPbxPvote/edZuZekUb85sm1yA+dI95mVyy0s6+n7/ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="4919760" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="4919760" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 00:42:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="770192525" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="770192525" Received: from hasifnax-mobl1.gar.corp.intel.com (HELO [10.249.254.143]) ([10.249.254.143]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 00:41:57 -0800 Message-ID: Date: Tue, 21 Nov 2023 09:41:55 +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: Boris Brezillon Cc: intel-xe@lists.freedesktop.org, Rodrigo Vivi , Matthew Brost , Danilo Krummrich , Joonas Lahtinen , Oak Zeng , Daniel Vetter , Maarten Lankhorst , Francois Dugast , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20231115124937.6740-1-thomas.hellstrom@linux.intel.com> <20231116104851.114bdb08@collabora.com> <0850281b667c4b88163dab60737dbc945ad742fd.camel@linux.intel.com> <20231116142707.044aeec2@collabora.com> <656d5f890de7ba3af05616122a9bd399badd35bc.camel@linux.intel.com> <20231116154708.148ce241@collabora.com> From: =?UTF-8?Q?Thomas_Hellstr=c3=b6m?= In-Reply-To: <20231116154708.148ce241@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 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 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]); Tue, 21 Nov 2023 00:42:14 -0800 (PST) Hi, Boris On 11/16/23 15:47, Boris Brezillon wrote: > On Thu, 16 Nov 2023 14:53:50 +0100 > Thomas Hellström wrote: > >> On Thu, 2023-11-16 at 14:27 +0100, Boris Brezillon wrote: >>> On Thu, 16 Nov 2023 12:48:45 +0100 >>> Thomas Hellström wrote: >>> >>>> Hi, Boris, >>>> >>>> Thanks for reviewing. Some comments below: >>>> I'm going to send out an updated version today with I think all of Danilo's comments and must of yours addressed. While I added more references to GPUVM, mainly as code examples and explanations, I've intentionally left out the "This is a driver lock and this is a gpvum lock distinction", The reason is twofold. First I think that when we get userptr into gpvum, gpuvm needs to be aware of most if not all locks. Second, since this document is an implementation guideline and gpuvm is an implementation it makes more sense to me to add pointers from the GPUVM documentation to the VM_BIND locking guideline, and that could be a task to be looked at after merging this together with implementing the userptr stuff. The most important thing at this point is that the document doesn't conflict in any way with the gpuvm implementation, and I've fixed those parts where I missed the separate lock protecting the GEM object's vm_bo list that you pointed out. I strongly think this is the right way to go but if you disagree to the point where you're not willing to provide an ack or R-B, let me know and we can look at adding what's missing. Thanks, Thomas