Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp895066rdg; Fri, 13 Oct 2023 04:43:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHq7xwQvK9Z+OQWG5FxLWbVykb6LAuwsi2bPmcY8RtGS5vptxeVQst8vWX+IHfMlA1ThAwS X-Received: by 2002:a05:6a20:948d:b0:15d:ae4a:9a72 with SMTP id hs13-20020a056a20948d00b0015dae4a9a72mr21321499pzb.61.1697197410952; Fri, 13 Oct 2023 04:43:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697197410; cv=none; d=google.com; s=arc-20160816; b=DZE1Y2I0YGL4AGf96viEFZAmcqLb51K8ujOQjGTYjDBtuq77++2tk23k+W01J5yCMq gWOCFwE8qdp1qSwWhktlUz0alTJoqDfH9SMaKT6KLfcKgTvgADlXzF7S4DILBPTNsDPG WbMbELmlMr6sGVd8nnAscxjyfbje8foIfwS/qsKOVzgdtHkQ6RtW7ORjJ1Q9g1e3oeaz baZMLQBBomJcwcDPcbjdBuJ2s2Q2zkeX/lPc+zfFEfKdqqpGoC2LUPSplPNAQfTY1rXB 9xU0X7RiHIAH/IVvdIYrpvPNtPkYPhAfsJePYra4i16Z16QXWLNYL7cIdj3xr0WfAVFQ Whbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:organization:references:in-reply-to:date :cc:to:from:subject:message-id:dkim-signature; bh=cjQSuHkESKDK2+Dz14D9uSHBfQx2LBLIX5g/nIepDKI=; fh=htvIroZrbKeU2x4AOko0NW3x9xa19Yggb7QfVOG/ARs=; b=YbsmUqw/7pYV7yC80vJDT4vTSp0OdryAxsBFMPU7PnDsuM5xKjrUBlpGyx1yFP6e0f BY//rAN6H0ZEuBe4FALQqYSalJwAOnZc7E+QeectBNDb2NLnZQUTx5rsUbsWfs5dnZOV Q4MTJ+SMb0XRb5F4ayJHsBtYDn7yoj5USVD/OHecKoJGNUqqzESaB3u+kARfcOy0Hvgb PLoIJe229+r71LHiR0L7sjDBsQF8HxjBeBsr4Dd1u0l3PZDpuwSGCOy7kcPPIpeMzv/3 0erwTMoyECi0LkHUSKU1Q7EfNM+t6beHBs9yo5HmCHoIJ2YWVEt3SgMarbwmaGVeR7L4 u8Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QCRC5oux; 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 u9-20020a170902bf4900b001c755810f80si4184585pls.28.2023.10.13.04.43.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 04:43:30 -0700 (PDT) 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=QCRC5oux; 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 0FCBE839D9F7; Fri, 13 Oct 2023 04:43:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230512AbjJMLnS (ORCPT + 99 others); Fri, 13 Oct 2023 07:43:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230357AbjJMLnR (ORCPT ); Fri, 13 Oct 2023 07:43:17 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66064BD for ; Fri, 13 Oct 2023 04:43:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697197396; x=1728733396; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=cjQSuHkESKDK2+Dz14D9uSHBfQx2LBLIX5g/nIepDKI=; b=QCRC5ouxSvDWXGZBcRGmv1rRu0ifCDAw+Hv23USJ72WI7yODCQFFiTs0 LOpNAy+o+aTbjxTbKJwyTTgT1QflxADA6bhn4hHcb6bW/zO719xnYRuK3 jP6gIBIfI4vKCYEE1RhljXd3GeBah5QaPaCRXJPCu7959f3MRSBToD/Qf i+3gj5pJevv3Qwng1Q4DohEXToYaVOJOmHXOWNw7Z+FT+MXMR+hgolmYV DqsOsG/XdLr1W3vrXKwrAQskDDc3ML9lmd+LZbkaV5ADPSDRcEn3SF9N3 sw0iJJwKZiFCHQ4YT0UNRCMWxYOo0giYWyxWfq0XNbmQQa7WUqjaOdBSU g==; X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="375511978" X-IronPort-AV: E=Sophos;i="6.03,222,1694761200"; d="scan'208";a="375511978" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2023 04:43:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="784127858" X-IronPort-AV: E=Sophos;i="6.03,222,1694761200"; d="scan'208";a="784127858" Received: from dstacken-mobl1.ger.corp.intel.com (HELO [10.249.254.172]) ([10.249.254.172]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2023 04:43:12 -0700 Message-ID: <6876d2cddd0a32bb77f2bc5ef206f06107cef8e3.camel@linux.intel.com> Subject: Re: [PATCH drm-misc-next v6 2/6] drm/gpuvm: add drm_gpuvm_flags to drm_gpuvm From: Thomas =?ISO-8859-1?Q?Hellstr=F6m?= To: Danilo Krummrich , airlied@gmail.com, daniel@ffwll.ch, matthew.brost@intel.com, sarah.walker@imgtec.com, donald.robson@imgtec.com, boris.brezillon@collabora.com, christian.koenig@amd.com, faith@gfxstrand.net Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org Date: Fri, 13 Oct 2023 13:43:09 +0200 In-Reply-To: <20231008233212.13815-3-dakr@redhat.com> References: <20231008233212.13815-1-dakr@redhat.com> <20231008233212.13815-3-dakr@redhat.com> Organization: Intel Sweden AB, Registration Number: 556189-6027 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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, 13 Oct 2023 04:43:28 -0700 (PDT) T24gTW9uLCAyMDIzLTEwLTA5IGF0IDAxOjMyICswMjAwLCBEYW5pbG8gS3J1bW1yaWNoIHdyb3Rl Ogo+IEludHJvZHVjZSBmbGFncyBmb3Igc3RydWN0IGRybV9ncHV2bSwgdGhpcyByZXF1aXJlZCBi eSBzdWJzZXF1ZW50Cj4gY29tbWl0cy4KPiAKPiBTaWduZWQ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