From patchwork Thu Nov 22 01:52:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 10695137 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1F7D61750 for ; Fri, 23 Nov 2018 07:41:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 119522BCA5 for ; Fri, 23 Nov 2018 07:41:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05E0C2BCAB; Fri, 23 Nov 2018 07:41:57 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 BEFF42BCA5 for ; Fri, 23 Nov 2018 07:41:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A89236E456; Fri, 23 Nov 2018 07:41:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by gabe.freedesktop.org (Postfix) with ESMTPS id A9A576E321 for ; Thu, 22 Nov 2018 01:55:32 +0000 (UTC) Received: by mail-qt1-x844.google.com with SMTP id v11so5982123qtc.2 for ; Wed, 21 Nov 2018 17:55:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ku7VxA8FM86Lma6NsAxIOdj6TL4xUq0CE5op1FFIL2A=; b=PO00J8BkfPodNXSAyCB+l7c60T4E85c86c8vnmGJhNm8q2fwT73jAbHLim8Fv4lMCQ NrgJmERFHz69wkHDpY4BPRWbpywWkDDnWcHWN5YHtVPVi5a7y7n272byEijZGTXBirJo uHPtMsdc2qt0hL0eQWDLbrPqFM6Jrd7ysMHxlLebowjQQTE/hVMIPE1GFzMbfp5riWzQ J1vJaaC7mbHg5tFOVMTxio8UTbkqX+PTYH8ju0JtJdagTbnSQa+CaG06bK/AZMCKJn9o rRpXFznzyT5jhl2vdwltzX6Mc0s7kcrdIF1y4WA2H4I9JV0f2nXDG+OUGhd/7xx9UsLr AYaQ== X-Gm-Message-State: AGRZ1gJgv3P2vU1ezmnOKLqZLzz/W0tY5q8uPfvvR7cAJWXjpL81eSrf 7k8zuuIDSJD6JbGepzYM8u4seA== X-Google-Smtp-Source: AJdET5fUV0y/eTMvaufKDBHta4BbfCClRitejm8Jomr0fxjkYPrpG+jNd+LtSwVtTYRFNQmpsqtaoQ== X-Received: by 2002:ac8:43d0:: with SMTP id w16mr8304561qtn.78.1542851731980; Wed, 21 Nov 2018 17:55:31 -0800 (PST) Received: from localhost.localdomain (modemcable014.247-57-74.mc.videotron.ca. [74.57.247.14]) by smtp.gmail.com with ESMTPSA id q15sm25297721qkl.81.2018.11.21.17.55.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 17:55:31 -0800 (PST) From: Jonathan Marek To: freedreno@lists.freedesktop.org Subject: [PATCH v2 4/9] drm/msm: use contiguous vram for MSM_BO_SCANOUT when possible Date: Wed, 21 Nov 2018 20:52:30 -0500 Message-Id: <20181122015237.14534-4-jonathan@marek.ca> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181122015237.14534-1-jonathan@marek.ca> References: <20181122015237.14534-1-jonathan@marek.ca> X-Mailman-Approved-At: Fri, 23 Nov 2018 07:41:29 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , "open list:DRM DRIVER FOR MSM ADRENO GPU" , open list , "open list:DRM DRIVER FOR MSM ADRENO GPU" , Chris.Healy@zii.aero MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Makes it possible to have MMU for GPU but not display. Signed-off-by: Jonathan Marek --- drivers/gpu/drm/msm/msm_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_gem.c b/drivers/gpu/drm/msm/msm_gem.c index d97f6ecb0531..6657453a3a58 100644 --- a/drivers/gpu/drm/msm/msm_gem.c +++ b/drivers/gpu/drm/msm/msm_gem.c @@ -914,7 +914,7 @@ static struct drm_gem_object *_msm_gem_new(struct drm_device *dev, if (!iommu_present(&platform_bus_type)) use_vram = true; - else if ((flags & MSM_BO_STOLEN) && priv->vram.size) + else if ((flags & (MSM_BO_STOLEN | MSM_BO_SCANOUT)) && priv->vram.size) use_vram = true; printk("_msm_gem_new %u bytes use_vram=%u\n", size, use_vram);