From patchwork Wed Nov 14 22:24:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 10683189 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 6BEAC13B5 for ; Wed, 14 Nov 2018 22:27:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DCD827F85 for ; Wed, 14 Nov 2018 22:27:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 51A5C2BE9E; Wed, 14 Nov 2018 22:27:46 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA9C027F85 for ; Wed, 14 Nov 2018 22:27:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389505AbeKOIcp (ORCPT ); Thu, 15 Nov 2018 03:32:45 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:37517 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389298AbeKOIcp (ORCPT ); Thu, 15 Nov 2018 03:32:45 -0500 Received: by mail-qk1-f194.google.com with SMTP id 131so28781895qkd.4 for ; Wed, 14 Nov 2018 14:27:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek-ca.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ku7VxA8FM86Lma6NsAxIOdj6TL4xUq0CE5op1FFIL2A=; b=o/DgfAEjE/kA84QId1mMA4V9JgV6pkEX/kd0AjGIOXihm8vEcDvaR8SqRBsGUrwnYl 44Aj2nuWoJHekUsd1yvGPsOYvJF1tSx976bTCPld7ihVKgWGpN17eEUrjA0QUMpdOMO8 Il3TVT8A/Z/0MNN1hkDo12/jvSymj+a7hlgwEbbXvg2aVBIGIkvL1mfFuCEyt1JejJOH UCH/+VFVEQ9acVg8bDxP6zKzfQh2l5e2JJJ8I0opCRnrWoExWaUZ/rpuKYypTlYabrBS hU0X9x5Cx0ie+LepoYyG7G1I7a6Af/Sx4WNOBQC8cIWfHpFSq09ZHbxqFlk96wEm7dPt R32g== 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=HCPjpqPXIglpmt60NvNEEJj9byYu4rlDpKAoONKag+IouZHcFL2yLP0oLKVlDCFHrK sV3VM5hu/Xk5BVYSpiGCDtEieD5+U9mzZNSWeosJoH7D1FMBwetWg3W8vfewPU5AjwEX RjMLUZTuqlW+qmVmcV3ulpAL5AMFSH9x+Mhnw7L+tKXCPOMd87xsqM/PTkKuFJTdYJcF P8s5p4GToXC8JIjdKYytCo2nl25tTjw19X5lgHLaxNk09nN6jxqwEUphm+zireP8eu9A LBM+fWq0TNdTP4a0R92GSGyGpj8DQjuf0d7K3fKh009Y381xUx6ye/aCOMxRidhBA9O5 93ng== X-Gm-Message-State: AGRZ1gLnE37p7uf1Y2wRF3VbcqF13HZIYmd1Rgm0CpUFqKcxgeT3e64T U9G7VrHyExHnvracgLh79P8+kA== X-Google-Smtp-Source: AJdET5cDIMBh+0P2Ef6R3pYpaRq45vsTwRqsBsc5J/Tff14rT8XZnetqjqTHp7kf5dNd4SnaMjjIXg== X-Received: by 2002:a0c:981b:: with SMTP id c27mr3949195qvd.184.1542234459427; Wed, 14 Nov 2018 14:27:39 -0800 (PST) Received: from localhost.localdomain (modemcable014.247-57-74.mc.videotron.ca. [74.57.247.14]) by smtp.gmail.com with ESMTPSA id 24sm24067595qkp.65.2018.11.14.14.27.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 14:27:38 -0800 (PST) From: Jonathan Marek To: freedreno@lists.freedesktop.org Cc: Rob Clark , David Airlie , linux-arm-msm@vger.kernel.org (open list:DRM DRIVER FOR MSM ADRENO GPU), dri-devel@lists.freedesktop.org (open list:DRM DRIVER FOR MSM ADRENO GPU), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 4/9] drm/msm: use contiguous vram for MSM_BO_SCANOUT when possible Date: Wed, 14 Nov 2018 17:24:11 -0500 Message-Id: <20181114222418.15960-4-jonathan@marek.ca> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181114222418.15960-1-jonathan@marek.ca> References: <20181114222418.15960-1-jonathan@marek.ca> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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);