Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2908277rdh; Wed, 27 Sep 2023 17:26:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG22Gv9fIrVbJrqTTdXHCigp5H8d76TR+Bozsr498Ke9Q72wrMrlkfhjLsmAmytoNM5f0Ez X-Received: by 2002:a17:902:d88d:b0:1c7:31b6:241b with SMTP id b13-20020a170902d88d00b001c731b6241bmr1267570plz.7.1695860788977; Wed, 27 Sep 2023 17:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695860788; cv=none; d=google.com; s=arc-20160816; b=OHQAXjMQZSH+GoAl/vQZepdrZ+dJy8pEqXLTS0jJEP8e3OQElFKY31AwA+swJQQhOl gr0E3sbKkLKcESfKEw7fk6dQnNodIB7CB++PziJqiEpj6UstFVYW2zE9slBoXoFTZgek CsLiAI4cgVqgIwE01s/lvxrE3umZ2j3PpSlEy+EwZGoAdOng1eiZGulxue6SovpDgxtT sq7Z2iv94IqKwxrg1p2+Nqdxh7rTOioG0tzFxSs/MbedbqI5lMDSCgcVPOvwdsa3Im7p 3N+WaBxROeieEDRSyco47pdY/nulaUUq+gSquGV7iP7pxQkixoWLGoICxKZ+trHP7ndq Bf9g== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=l6cdl+aga/6XxqqAgUUx1HZQLiVlXgz3gMJOL8B3acE=; fh=vO1516PEHokAbyyfxwRRDTceIanfPscfN8tzRPZWR7o=; b=V2mQsxawlpN6hFrYkhJvTcgpmCgsUtuDzFUN2hhmU+p3dvO9My5tK2lNGFeJwwuPop FA66uen2rHUfCCEiLSjAyh7iE3Hr7p4kjvIOVfscDz/MMIy/yskOBW90z/iG1FIU22JN 0kmMCz7YTV4gDJK9Roq+vTfztVC+gjcyjhhLDsjdnr6lusOZjlto7d+TbVqk/vS9MqLq 4+vYjwph3D0ineyz3TCuOPPp44gM0IX1eP7y070kgDzp9BOR0V9PYQeGwAmT8bEqL9M7 VURsUu7tzyxgGWmVfSCO26Y1Nr/Mv9wz9RGYxMAFf3ZU+SoLjlrggqFpD+BtD3lX0KKZ tG6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HdQ6xiO7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id e8-20020a170902cf4800b001bde9e8a29fsi15272381plg.183.2023.09.27.17.26.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 17:26:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HdQ6xiO7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 84F18824775A; Wed, 27 Sep 2023 10:00:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229502AbjI0RAH (ORCPT + 99 others); Wed, 27 Sep 2023 13:00:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbjI0RAG (ORCPT ); Wed, 27 Sep 2023 13:00:06 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5992591 for ; Wed, 27 Sep 2023 09:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695833960; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l6cdl+aga/6XxqqAgUUx1HZQLiVlXgz3gMJOL8B3acE=; b=HdQ6xiO7z9n8o1/sxK8VCuLkngE4xlgn1rolGUStqKH3BFmqQcQUd/NfZaC9XooVRJCHr2 ZyyCNL8cMsvx9Z7dygUIQbwCGm0tZl25nzqY90KRNYICtTKt/OKgT6zx2yLp26SKaitsy5 xlr7vS1Ns6Z59UCWqdWG0XUIYkBR594= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-391-ozbHUqZrNyC6HgfkRzyyyw-1; Wed, 27 Sep 2023 12:59:18 -0400 X-MC-Unique: ozbHUqZrNyC6HgfkRzyyyw-1 Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-533ca50404bso7001700a12.2 for ; Wed, 27 Sep 2023 09:59:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695833956; x=1696438756; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=l6cdl+aga/6XxqqAgUUx1HZQLiVlXgz3gMJOL8B3acE=; b=ulI1wOW7XP9EYouRa1mbFkNCdb3qNccpQxr8Ig0NwKQMECvAJ9ZXAxV0J/EgBr9njj QTaWsExYFpnOhPMHt4NZGFKWUd6hdIWlNp0j3DP8V/GxLYy8oX0qt1JQXvlWCG9Gnjm3 4+VSo0KZut3AKErRXLfZL6EKbPTa684qcPw8OtmPZR/c3QJM2+E4fp7F9N4ouR93oj94 AEV28GnZTo9240e6BnnYtkE11v+kg5omTsU/00cWBLkMgggm3p+4K0Ge/Ts2lKFBZCf1 9CDllLJPKKJgwf1vsXDxvVnzTDaTmw109u4l9WOwhJvGsvaKVGeABE9GJ8eKMeSmKzxX NsGg== X-Gm-Message-State: AOJu0Ywb6HzzBk5l4x91W9hTlOuGnkKNQ8HQ/XsY2hYaxRcLw86mHA1s lpDD54PfTVS/sSjimVftoCAhTiwxGqD7m3coN/3/grQkeiKf9DBQZ1GbBtvPmgp4u/gfswqcVgZ nY5bSsRWoIxGLSRJcAGGB+/EH X-Received: by 2002:aa7:d0d8:0:b0:530:a0a9:ee36 with SMTP id u24-20020aa7d0d8000000b00530a0a9ee36mr2095711edo.38.1695833956677; Wed, 27 Sep 2023 09:59:16 -0700 (PDT) X-Received: by 2002:aa7:d0d8:0:b0:530:a0a9:ee36 with SMTP id u24-20020aa7d0d8000000b00530a0a9ee36mr2095696edo.38.1695833956385; Wed, 27 Sep 2023 09:59:16 -0700 (PDT) Received: from ?IPV6:2a02:810d:4b3f:de9c:642:1aff:fe31:a15c? ([2a02:810d:4b3f:de9c:642:1aff:fe31:a15c]) by smtp.gmail.com with ESMTPSA id s3-20020a056402014300b0052595b17fd4sm8315439edu.26.2023.09.27.09.59.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Sep 2023 09:59:15 -0700 (PDT) Message-ID: Date: Wed, 27 Sep 2023 18:59:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH drm-misc-next v4 7/8] drm/gpuvm: generalize dma_resv/extobj handling and GEM validation Content-Language: en-US To: Boris Brezillon Cc: airlied@gmail.com, daniel@ffwll.ch, matthew.brost@intel.com, thomas.hellstrom@linux.intel.com, sarah.walker@imgtec.com, donald.robson@imgtec.com, christian.koenig@amd.com, faith.ekstrand@collabora.com, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20230920144343.64830-1-dakr@redhat.com> <20230920144343.64830-8-dakr@redhat.com> <20230922134548.7ede67c0@collabora.com> From: Danilo Krummrich Organization: RedHat In-Reply-To: <20230922134548.7ede67c0@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 27 Sep 2023 10:00:10 -0700 (PDT) On 9/22/23 13:45, Boris Brezillon wrote: > On Wed, 20 Sep 2023 16:42:40 +0200 > Danilo Krummrich wrote: > >> + /** >> + * @DRM_GPUVM_RESV_PROTECTED: GPUVM is protected externally by the >> + * GPUVM's &dma_resv lock > > I think we need to be more specific, and list the fields/operations > that need to be externally protected when DRM_GPUVM_RESV_PROTECTED is > set. I agree, we should probably keep a list somewhere. However, there are also lockdep asserts where a lock is required to be held. > >> + */ >> + DRM_GPUVM_RESV_PROTECTED = (1 << 0), >