Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp372483rdb; Thu, 2 Nov 2023 06:20:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFFapRGvCeomO6sLi1w41ww5uJpKrll7QJgvoT07IVB1oEh8TN6j3wQOV4hRuBNI4HOgGW1 X-Received: by 2002:a17:903:1246:b0:1c7:495c:87e0 with SMTP id u6-20020a170903124600b001c7495c87e0mr22798406plh.37.1698931204129; Thu, 02 Nov 2023 06:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698931204; cv=none; d=google.com; s=arc-20160816; b=RgmeVuqAErI+m7R2hO+J2Urf1VSyN4P+rHayZUpwY1r2hmsjMDcD0lwaEFwhH1d7k+ 2Yq6o8/P95NQtYpHOv+UDR4+Ps4MbezOfaQeBENwb9Djd0yb9FSFUrWvAJergc6rWG5Y GqOkBdkPIl5NgNS33C9u4Goe96KN3kZsmvGbnqKQ5AxJoLotIlHB0IKWOidQO4TcL0ma QvIODi/JgWwKezc1hwC8vLUP5o6FSwLviJvcUbFJaNKef7O0CN0UhtFuzWigEfK/iSct cKsOrAE+ttiifFy5XvniI8X2tR0GHLSJrnj4na00M0ynIMn+krAl9BOG1XeJ5AbRQAJM KXJQ== 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=74BJtLzAsCxWbJvgvhbKysL0xlsclDFAgogg3ikLZaU=; fh=htvIroZrbKeU2x4AOko0NW3x9xa19Yggb7QfVOG/ARs=; b=cYGnSHnjqujiD29/u+mz///gTR0EtVdqCQOt698xxvgltOdT9Ab/Q93UjcTEnLN57J 4baIF4w/prEsdJiF8Go5ZayXI3z0gbnLTreK9r6zfWVvjAC1mm52f8pJUOKfOiJD+X5S MnxFssOQc9vk001mO0bILTDySA19zUdkL5kC/FLTVXYech/FWK2oVtKBXNUSrH2J0WEB 5IGPldCaVZP54AGc38DMm5vvNLOG7h76OuXTrDXQqcE/vfShV1ghmT+FmcNBbvf0dQRu ZHqz5aUQd61hZrIYZlQXSxWf3aqHVdIpIoeqZ3aTwXi1QlEj19arJ23xX3KcwNHb14sd 6brg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="nTRG/y+5"; 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 ku8-20020a170903288800b001c3886b091asi4815301plb.127.2023.11.02.06.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 06:20:04 -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="nTRG/y+5"; 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 341888263EB8; Thu, 2 Nov 2023 06:19:54 -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 S1344822AbjKBNTV (ORCPT + 99 others); Thu, 2 Nov 2023 09:19:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229770AbjKBNTU (ORCPT ); Thu, 2 Nov 2023 09:19:20 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FCBC134 for ; Thu, 2 Nov 2023 06:19:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698931154; x=1730467154; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=74BJtLzAsCxWbJvgvhbKysL0xlsclDFAgogg3ikLZaU=; b=nTRG/y+5kOyEVrNjMZnqNTnZKFTHQnJ0ymHf7UKrIF2KrKCPLgIpuemf 4h5LHOzcZHgktitdrG4rboAjqcazarwDzAMTEAXw8HRRFG+qo4GjKfHsH k2Ru5j50gHKXlY46d0MgVNNbASlFbKX0sM4ckrs9uznP8vVB1q5JzZrwg 9FsEyzDwjNvcDsD3ua6MAEoPoBrmBCLe2J7tEd4Bys1AZmcl5Gd2zQ0Y5 ArvJnc+H6q+AeicegbVcr9IgxLABXoszuiKjJHTk++2ohyuB5JKVK8Y08 4X4svFWHPAaqPaDsIkEwe2yCzCJawYfDPqm5wA7LD0Po2ancE4FvXDwiQ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10881"; a="453011112" X-IronPort-AV: E=Sophos;i="6.03,271,1694761200"; d="scan'208";a="453011112" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2023 06:19:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10881"; a="827133184" X-IronPort-AV: E=Sophos;i="6.03,271,1694761200"; d="scan'208";a="827133184" Received: from binsumax-mobl.gar.corp.intel.com (HELO [10.249.254.171]) ([10.249.254.171]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2023 06:19:10 -0700 Message-ID: <754fd9054f5021edaa92232d457760bcd6ac083e.camel@linux.intel.com> Subject: Re: [PATCH drm-misc-next v8 02/12] drm/gpuvm: don't always WARN in drm_gpuvm_check_overflow() 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: Thu, 02 Nov 2023 14:19:08 +0100 In-Reply-To: <20231101233113.8059-3-dakr@redhat.com> References: <20231101233113.8059-1-dakr@redhat.com> <20231101233113.8059-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=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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]); Thu, 02 Nov 2023 06:19:54 -0700 (PDT) T24gVGh1LCAyMDIzLTExLTAyIGF0IDAwOjMwICswMTAwLCBEYW5pbG8gS3J1bW1yaWNoIHdyb3Rl Ogo+IERvbid0IGFsd2F5cyBXQVJOIGluIGRybV9ncHV2bV9jaGVja19vdmVyZmxvdygpIGFuZCBz ZXBhcmF0ZSBpdCBpbnRvCj4gYQo+IGRybV9ncHV2bV9j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