From patchwork Thu Feb 2 15:02:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Wilson X-Patchwork-Id: 9552171 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7EDF860236 for ; Thu, 2 Feb 2017 15:03:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A04E27FAD for ; Thu, 2 Feb 2017 15:03:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EE2D2815E; Thu, 2 Feb 2017 15:03:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 22D3227FAD for ; Thu, 2 Feb 2017 15:03:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 609E96EA26; Thu, 2 Feb 2017 15:03:03 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3371D6EA22 for ; Thu, 2 Feb 2017 15:03:01 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id v77so4623994wmv.0 for ; Thu, 02 Feb 2017 07:03:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=HOZpM3ZxZ0Kdk3MQxzksZl4m2zZptYgayDoRVJYv98E=; b=DFGui/Wb+DFvTtDw2r0LC897rERHSfGGFR5UHZR4Vh01cO74Zcwml/2yTIy+PMKcjd ywmHsoEs4edy7PnS8/Z/e+TB2/mC59yh4ihRBnU5tfng2DvcJrHH85Y3ETGx8DyYJAHu 26W9+nv3omNJQmb+tKlDG38gFV0jxtDkoCwVXAXnT++cXDMsNDUFpj02MmeTjMHsVAHT PuiFUTUTz17JibAlTE/n5pKoDKfIz/qBfeBMR/G1sJPxUFfNchpbyAPqjjY+vg4snKok /I1NO8ocZXGKVmfjd7SkEJK4Bs8RIegYyoAotkdTlNvDReVP4I4nNUFLgViEzXLPN7/e sdEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=HOZpM3ZxZ0Kdk3MQxzksZl4m2zZptYgayDoRVJYv98E=; b=FGi+CX/WLcLW43+X0LcTNPb0vWj5wQhEpzxU9f4SlB2oSGVvwRmiml4Q/IWOkZzD+B GTrk8wV/MytdmH/KJ5EApA5ldDu+rJUP1jSIculkU4924zw75sIOsHpDbqDVJJDG5Tt6 KuWFLAGfA3I7fUad4ucuni8tFJ5egRmhV1i19k4Yta3XrVvBeUuv07rf6qpjBcpdB5H2 kX2iHJrz0LVWmODanecaX0ODQQe+xA+zazURQ2MHBzfKb+stw12+h0qsVnkKs76LZqLH UT5HuwAx+/1MTLRY90jFU+F4nZBrjSqoH1/hgFO2XASz+e72KYZgUlerSkVSaRtUZM4R 6GhQ== X-Gm-Message-State: AIkVDXLuyNkF5OHw0mIg5oYMil+ORgNHWaaZNarL3pFSjek8UXpSJgs08Pkzr+AlubX3dQ== X-Received: by 10.28.217.83 with SMTP id q80mr26489190wmg.58.1486047779513; Thu, 02 Feb 2017 07:02:59 -0800 (PST) Received: from haswell.alporthouse.com ([78.156.65.138]) by smtp.gmail.com with ESMTPSA id i29sm15001899wrc.25.2017.02.02.07.02.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Feb 2017 07:02:58 -0800 (PST) From: Chris Wilson To: intel-gfx@lists.freedesktop.org Date: Thu, 2 Feb 2017 15:02:37 +0000 Message-Id: <20170202150248.27860-8-chris@chris-wilson.co.uk> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170202150248.27860-1-chris@chris-wilson.co.uk> References: <20170202150248.27860-1-chris@chris-wilson.co.uk> Cc: mika.kuoppala@intel.com Subject: [Intel-gfx] [PATCH 08/19] drm/i915: Remove user-triggerable WARN for large objects X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Very large objects are expected, so don't WARN the user if they are using them! Signed-off-by: Chris Wilson Reviewed-by: Matthew Auld --- drivers/gpu/drm/i915/i915_gem_gtt.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c index 2428a5fe532e..9eaa396b7402 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c @@ -1426,10 +1426,6 @@ static int gen8_alloc_va_range_4lvl(struct i915_address_space *vm, if (ret) return ret; - WARN(bitmap_weight(new_pdps, GEN8_PML4ES_PER_PML4) > 2, - "The allocation has spanned more than 512GB. " - "It is highly likely this is incorrect."); - gen8_for_each_pml4e(pdp, pml4, start, length, pml4e) { WARN_ON(!pdp);