From patchwork Fri Jun 10 12:12:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juha-Pekka Heikkila X-Patchwork-Id: 12877541 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C1D8BC433EF for ; Fri, 10 Jun 2022 12:12:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2E61D10EEEA; Fri, 10 Jun 2022 12:12:12 +0000 (UTC) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5CF0910ED7A for ; Fri, 10 Jun 2022 12:12:10 +0000 (UTC) Received: by mail-lf1-x12d.google.com with SMTP id a29so14007162lfk.2 for ; Fri, 10 Jun 2022 05:12:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=pS2ld4gDxW5ixgcryyaX0ZX1VmMQk9uuoSuteSPW/FM=; b=Nm5GXzG4mNzXLB+TZpkFUszHf0plsABbToUUtJRzoW0lUnKuUX7lAStjMAuYz7IF3p r6EMVcOiOtlWOQHlMOhAI5coBIgOPoAWaU3p39G19X4DCG0HBVNOMSYuxZ053KQ/1dZn tmdaK0CzXw1+YZP+75w6SmXvtqBCaL7hGZWz+Za6ltGwlxMyjOWDfwfpGA6aVS1Cud1u 5xHbNq2/ZJL+rqMSwRMT9Cy1LQ4Cmuq91A1M2MmIXCvq84lqE3wZphoeA8kCRNCpsxqd q9aXBo7vAXhg+tKddTph/g6SzUNZObHT0TP7Kq53Mr+31gA6lPLlLcZZuF4ktIx3nAuA abrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=pS2ld4gDxW5ixgcryyaX0ZX1VmMQk9uuoSuteSPW/FM=; b=5+g/BFrLkKHvGP8uIJSVTdyAStVtd2c6eMH11+u65ylL1LBORR/5L34l8xHRCEVTq+ qYEZteAHIlj0TgqKuCyfnKvWNOGiQCkFXM77JfK+twJcx6EsblS33SOYwB5Bobe/LSPi 5kQk6sqfHH6C24iDZJNJqgo8fUn83g+e5U1q0jiHBO+xsLZiqQj5PORI4OK9zOXFnbKN PrluFzf6RgibEtyYKO0GxEB6yL1tvjN/DkguVR+9F6g4kJP2Gbht1REP21RqbRsIDw9T xRHDMlwQPbFaj7YMrRl48ukia8Gl3PNhJchgSUk4z4YREEYHgbVBVrDLTqLrQZR9oKj5 O+Hw== X-Gm-Message-State: AOAM533ZcvwP0zxorJwwIu4P6oGJ/9xN+RafPgt9CcYj4awp6uVdLiIs jsUWHnOITYMisICSy9d95VWmbr0LKEyNhA== X-Google-Smtp-Source: ABdhPJxYH+DOFhuqVNzzD4PFbNiraW+S8oFP7yUJUaNvToWoqUSRxGPYxa5h/Vyp+k3dmGTbQInOGQ== X-Received: by 2002:a19:dc57:0:b0:479:5300:4e0e with SMTP id f23-20020a19dc57000000b0047953004e0emr14639109lfj.236.1654863128002; Fri, 10 Jun 2022 05:12:08 -0700 (PDT) Received: from localhost.localdomain (d547nd2hqr-rv74hs34-4.rev.dnainternet.fi. [2001:14bb:ce:36b1:d8cd:77dd:1de0:cfbe]) by smtp.gmail.com with ESMTPSA id p4-20020a056512312400b0047255d211f7sm4673185lfd.294.2022.06.10.05.12.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 05:12:07 -0700 (PDT) From: Juha-Pekka Heikkila To: intel-gfx@lists.freedesktop.org Date: Fri, 10 Jun 2022 15:12:03 +0300 Message-Id: <20220610121205.29645-1-juhapekka.heikkila@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 1/3] drm/i915/display: Add smem fallback allocation for dpt X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Add fallback smem allocation for dpt if stolen memory allocation failed. Signed-off-by: Juha-Pekka Heikkila Reviewed-by: Matthew Auld --- drivers/gpu/drm/i915/display/intel_dpt.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dpt.c b/drivers/gpu/drm/i915/display/intel_dpt.c index fb0e7e79e0cd..ac587647e1f5 100644 --- a/drivers/gpu/drm/i915/display/intel_dpt.c +++ b/drivers/gpu/drm/i915/display/intel_dpt.c @@ -4,6 +4,7 @@ */ #include "gem/i915_gem_domain.h" +#include "gem/i915_gem_internal.h" #include "gt/gen8_ppgtt.h" #include "i915_drv.h" @@ -127,8 +128,12 @@ struct i915_vma *intel_dpt_pin(struct i915_address_space *vm) struct i915_vma *vma; void __iomem *iomem; struct i915_gem_ww_ctx ww; + u64 pin_flags = 0; int err; + if (i915_gem_object_is_stolen(dpt->obj)) + pin_flags |= PIN_MAPPABLE; + wakeref = intel_runtime_pm_get(&i915->runtime_pm); atomic_inc(&i915->gpu_error.pending_fb_pin); @@ -138,7 +143,7 @@ struct i915_vma *intel_dpt_pin(struct i915_address_space *vm) continue; vma = i915_gem_object_ggtt_pin_ww(dpt->obj, &ww, NULL, 0, 4096, - HAS_LMEM(i915) ? 0 : PIN_MAPPABLE); + pin_flags); if (IS_ERR(vma)) { err = PTR_ERR(vma); continue; @@ -248,10 +253,13 @@ intel_dpt_create(struct intel_framebuffer *fb) size = round_up(size * sizeof(gen8_pte_t), I915_GTT_PAGE_SIZE); - if (HAS_LMEM(i915)) - dpt_obj = i915_gem_object_create_lmem(i915, size, I915_BO_ALLOC_CONTIGUOUS); - else + dpt_obj = i915_gem_object_create_lmem(i915, size, I915_BO_ALLOC_CONTIGUOUS); + if (IS_ERR(dpt_obj) && i915_ggtt_has_aperture(to_gt(i915)->ggtt)) dpt_obj = i915_gem_object_create_stolen(i915, size); + if (IS_ERR(dpt_obj) && !HAS_LMEM(i915)) { + drm_dbg_kms(&i915->drm, "Allocating dpt from smem\n"); + dpt_obj = i915_gem_object_create_internal(i915, size); + } if (IS_ERR(dpt_obj)) return ERR_CAST(dpt_obj); From patchwork Fri Jun 10 12:12:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juha-Pekka Heikkila X-Patchwork-Id: 12877540 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 334C2C433EF for ; Fri, 10 Jun 2022 12:12:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A2ACB10ED7A; Fri, 10 Jun 2022 12:12:11 +0000 (UTC) Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 29C3110ED7A for ; Fri, 10 Jun 2022 12:12:11 +0000 (UTC) Received: by mail-lf1-x12b.google.com with SMTP id s6so42484012lfo.13 for ; Fri, 10 Jun 2022 05:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=KT6cck/kWymIrCddjs6TpOEiyDjQDhp7iDeCminoD0Y=; b=Q16LdQm8tq93cln24rtq8oZyQ0NzVPQN2v3Tu9/8ZYe60xfYPsiv55fKTOqLn3ob7f 4sYgFfrCiFIIuXWcHGyUoKvl9VnOX50wF5oDvHOkfV0+vPHoNZLx89kjrxNWo+8b3gIO Qr7WdaGa3/FW3CChPIl/PVDmUEkFuGdQIX2JhLIsn26dlw+W2XATVUhNO4YKj17BXP9L nCGfXPEJz73AXhlUgRhIl89y7PRI4NMXi0GrY1xV3euhig2lgntWqn/2ZZW62GDyTkJt dXf/lI/YWP6szSsgluFQXSC2DgLszbBA+dZuV5PlUHqsEK4cFpXD4C28O75PEix+cVgM ErBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KT6cck/kWymIrCddjs6TpOEiyDjQDhp7iDeCminoD0Y=; b=CuboPSBN/valbGf9TZfj8ZFaGwajJ0fcBlXupRbTmReT/RfL4MkMin0si0PZdXQyVu 85N063flYhiHcKW0eZTOG7BXy4MCuPa9j6owgm8YDJ4mbgUE0TlYOMupCEr53M59QMUP lnfSAXGzpySUHUuLOnaoDZji5+IRBYakJlXWH9FXp8+FQX01nIC3aniBy/U6cNPID3Nq DTie10pJ9+bfmVs1Y3TaMcjUuyGATLLWZJvgsC9tKTRGfA3oFAxd9HhuKar486aJS3ud wuC7VTVaR9JUsvfNuIAj2Cj/PDR62Y1jM1qiIwSbXgnN4dzIXH/XZtjeqYF/rMCr9DYm YoiQ== X-Gm-Message-State: AOAM5316n2XmgA4sh6nj49ZLhUsqKSD8t3nuc2jP0CQt9pq4quUUgBtL QKUhqMDJkcJ6K4cTWRhqOIuMvhHeKGJgaQ== X-Google-Smtp-Source: ABdhPJwXBo1LMFU+UnUVYZlrbQaKtlAO9Ngyy5dMcDiT609Y4WpvL9BKfQEZ8Tpyg/PHofCuB+yHPQ== X-Received: by 2002:a05:6512:1327:b0:478:e9b2:731d with SMTP id x39-20020a056512132700b00478e9b2731dmr37551724lfu.633.1654863129041; Fri, 10 Jun 2022 05:12:09 -0700 (PDT) Received: from localhost.localdomain (d547nd2hqr-rv74hs34-4.rev.dnainternet.fi. [2001:14bb:ce:36b1:d8cd:77dd:1de0:cfbe]) by smtp.gmail.com with ESMTPSA id p4-20020a056512312400b0047255d211f7sm4673185lfd.294.2022.06.10.05.12.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 05:12:08 -0700 (PDT) From: Juha-Pekka Heikkila To: intel-gfx@lists.freedesktop.org Date: Fri, 10 Jun 2022 15:12:04 +0300 Message-Id: <20220610121205.29645-2-juhapekka.heikkila@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20220610121205.29645-1-juhapekka.heikkila@gmail.com> References: <20220610121205.29645-1-juhapekka.heikkila@gmail.com> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 2/3] drm/i915: Fix i915_vma_pin_iomap() X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: CQ Tang Display might allocate a smem object and call i915_vma_pin_iomap(), the existing code will fail. This fix was suggested by Chris P Wilson, that we pin the smem with i915_gem_object_pin_map_unlocked(). v2 (jheikkil): Change i915_gem_object_pin_map_unlocked to i915_gem_object_pin_map Signed-off-by: CQ Tang Signed-off-by: Juha-Pekka Heikkila Cc: Chris Wilson Cc: Jari Tahvanainen Reviewed-by: Matthew Auld --- drivers/gpu/drm/i915/i915_vma.c | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_vma.c b/drivers/gpu/drm/i915/i915_vma.c index 0bffb70b3c5f..7753337ff9fb 100644 --- a/drivers/gpu/drm/i915/i915_vma.c +++ b/drivers/gpu/drm/i915/i915_vma.c @@ -551,13 +551,6 @@ void __iomem *i915_vma_pin_iomap(struct i915_vma *vma) if (WARN_ON_ONCE(vma->obj->flags & I915_BO_ALLOC_GPU_ONLY)) return IOMEM_ERR_PTR(-EINVAL); - if (!i915_gem_object_is_lmem(vma->obj)) { - if (GEM_WARN_ON(!i915_vma_is_map_and_fenceable(vma))) { - err = -ENODEV; - goto err; - } - } - GEM_BUG_ON(!i915_vma_is_ggtt(vma)); GEM_BUG_ON(!i915_vma_is_bound(vma, I915_VMA_GLOBAL_BIND)); GEM_BUG_ON(i915_vma_verify_bind_complete(vma)); @@ -573,17 +566,30 @@ void __iomem *i915_vma_pin_iomap(struct i915_vma *vma) if (i915_gem_object_is_lmem(vma->obj)) ptr = i915_gem_object_lmem_io_map(vma->obj, 0, vma->obj->base.size); - else + else if (i915_vma_is_map_and_fenceable(vma)) ptr = io_mapping_map_wc(&i915_vm_to_ggtt(vma->vm)->iomap, vma->node.start, vma->node.size); + else { + ptr = (void __iomem *) + i915_gem_object_pin_map(vma->obj, I915_MAP_WC); + if (IS_ERR(ptr)) { + err = PTR_ERR(ptr); + goto err; + } + ptr = page_pack_bits(ptr, 1); + } + if (ptr == NULL) { err = -ENOMEM; goto err; } if (unlikely(cmpxchg(&vma->iomap, NULL, ptr))) { - io_mapping_unmap(ptr); + if (page_unmask_bits(ptr)) + __i915_gem_object_release_map(vma->obj); + else + io_mapping_unmap(ptr); ptr = vma->iomap; } } @@ -597,7 +603,7 @@ void __iomem *i915_vma_pin_iomap(struct i915_vma *vma) i915_vma_set_ggtt_write(vma); /* NB Access through the GTT requires the device to be awake. */ - return ptr; + return page_mask_bits(ptr); err_unpin: __i915_vma_unpin(vma); @@ -615,6 +621,8 @@ void i915_vma_unpin_iomap(struct i915_vma *vma) { GEM_BUG_ON(vma->iomap == NULL); + /* XXX We keep the mapping until __i915_vma_unbind()/evict() */ + i915_vma_flush_writes(vma); i915_vma_unpin_fence(vma); @@ -1763,7 +1771,10 @@ static void __i915_vma_iounmap(struct i915_vma *vma) if (vma->iomap == NULL) return; - io_mapping_unmap(vma->iomap); + if (page_unmask_bits(vma->iomap)) + __i915_gem_object_release_map(vma->obj); + else + io_mapping_unmap(vma->iomap); vma->iomap = NULL; } From patchwork Fri Jun 10 12:12:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juha-Pekka Heikkila X-Patchwork-Id: 12877542 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E512BC43334 for ; Fri, 10 Jun 2022 12:12:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9881D10EEEF; Fri, 10 Jun 2022 12:12:14 +0000 (UTC) Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by gabe.freedesktop.org (Postfix) with ESMTPS id 600C610EEEC for ; Fri, 10 Jun 2022 12:12:12 +0000 (UTC) Received: by mail-lj1-x236.google.com with SMTP id g2so584380ljk.5 for ; Fri, 10 Jun 2022 05:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=LTVUZS9Ollla//7EqLyM6173DwHAqmVCMi1znVPh9v8=; b=aMNh7db2uLG7LB0ahxuRD/m1dSihCbCJpsX7uIQdp3qRj4K+dNATNS7uHme9mOZ0WH /V3uSV8u8tyZMMg9mQ7AtU/WC91oN8iHUM+cseJCQgeQzype7tqKDZbWKyfQdBRAlI6b 27rzR0WlpuH9AxJugK1gQv96xNRfn+r3GeWUNQ0bvDUSFd93NJE+eoEhBRHWrx+UUjPa uNidmpnprWCV9FIfi8+BuydLcLvD9yuHBrsMCbl6eswDMKYxAEMCKtyhtrbGPTCDIWgF QG1jk50+7Eb7qr7J0pvkp7patl68iLzFeEmg0NAo2SVY8RGZwI3hFXKhOA36ULdqJowQ yC2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LTVUZS9Ollla//7EqLyM6173DwHAqmVCMi1znVPh9v8=; b=rdl6PsQ2PbRQZZMakgAk1KFPus+4LD2UlX1JlqSbpLjBdhKW71licBKg0RthNK9lcN ZdxvQRpmuZQQT+JA7t6D5CDiv0KZaIeH7Bv8UEr17gFwO2Ba77NuvS+CNQPtT0P6RZcw QGdMuAqmaQjsJKtnpuhZ8QoSHflRjuXXVC35RQPN/ZUja9410Ws0Gtdu3FAGLBi2XVEu ryNl2MGkUCCMlLejVJ0/VgOn99gf1OLnLkIK2oUzQ/nfk9Oh4rSv8sNOvXgSgr6YM0LA QimXfETwWlb+NzFUK8cbS1VxrGUXR+hSQNcr49HtQsxrp36Br+q7vqVH3QUFRcLzPtDP KvmA== X-Gm-Message-State: AOAM533Odk0hSQr/ZFK9MKqUhFF3nY+n+MRFZNyOEHDlAzhRO9W+Dauc QTr1lfF7pmgHPQnlbQJp4iYT6DdvdxzBcw== X-Google-Smtp-Source: ABdhPJyejzlWGoq4Crt05xCwSwF6bpleUlen46KErXtUEDDoIhFVws4P45d/hUXgBhhZH7xWD7U+Zg== X-Received: by 2002:a2e:9584:0:b0:255:829e:590a with SMTP id w4-20020a2e9584000000b00255829e590amr18186730ljh.170.1654863130370; Fri, 10 Jun 2022 05:12:10 -0700 (PDT) Received: from localhost.localdomain (d547nd2hqr-rv74hs34-4.rev.dnainternet.fi. [2001:14bb:ce:36b1:d8cd:77dd:1de0:cfbe]) by smtp.gmail.com with ESMTPSA id p4-20020a056512312400b0047255d211f7sm4673185lfd.294.2022.06.10.05.12.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 05:12:09 -0700 (PDT) From: Juha-Pekka Heikkila To: intel-gfx@lists.freedesktop.org Date: Fri, 10 Jun 2022 15:12:05 +0300 Message-Id: <20220610121205.29645-3-juhapekka.heikkila@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20220610121205.29645-1-juhapekka.heikkila@gmail.com> References: <20220610121205.29645-1-juhapekka.heikkila@gmail.com> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 3/3] drm/i915: don't leak lmem mapping in vma_evict X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Don't leak lmem mapping in vma_evict, move __i915_vma_iounmap outside i915_vma_is_map_and_fenceable Signed-off-by: Juha-Pekka Heikkila Reviewed-by: Matthew Auld --- drivers/gpu/drm/i915/i915_vma.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_vma.c b/drivers/gpu/drm/i915/i915_vma.c index 7753337ff9fb..bda37616221f 100644 --- a/drivers/gpu/drm/i915/i915_vma.c +++ b/drivers/gpu/drm/i915/i915_vma.c @@ -1918,9 +1918,11 @@ struct dma_fence *__i915_vma_evict(struct i915_vma *vma, bool async) /* release the fence reg _after_ flushing */ i915_vma_revoke_fence(vma); - __i915_vma_iounmap(vma); clear_bit(I915_VMA_CAN_FENCE_BIT, __i915_vma_flags(vma)); } + + __i915_vma_iounmap(vma); + GEM_BUG_ON(vma->fence); GEM_BUG_ON(i915_vma_has_userfault(vma));