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: 10693373 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 5B8BB16B1 for ; Thu, 22 Nov 2018 01:55:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46C9A2BB18 for ; Thu, 22 Nov 2018 01:55:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3AAA92BBB3; Thu, 22 Nov 2018 01:55:43 +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 E355C2BB18 for ; Thu, 22 Nov 2018 01:55:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403946AbeKVMcg (ORCPT ); Thu, 22 Nov 2018 07:32:36 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:33932 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403924AbeKVMcf (ORCPT ); Thu, 22 Nov 2018 07:32:35 -0500 Received: by mail-qt1-f193.google.com with SMTP id r14so5978313qtp.1 for ; Wed, 21 Nov 2018 17:55:32 -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=oe9AT6rM4yAzR35iQBUdSrgauRUEMNnM+R2uphrp4/LW+8p0Yl8TKmjO4e1asyDkMF UtJYn4es/17JP5WZJsV+IZzGqN9uSuxjwmLiTBCl5yenhSBrMHffnv1GyZEd+cSuBLKt qA9hK0lM8aeJc3tIc+rXHeRzfaC2xj/3XGiaoLeRHLJs1lRbmgb4QqqLunSS77wFHzTn 7Mu0gQqqssl1omCS+gK7C3d9LqBb5Ff98WzbJNp3gSprNXSdFhDzYILRCDrvxC+stlMs 26NsWG734q0eSF2i9Sv3dn2opeSMHSEVaOUsyJm6sEeZSji9kr4l6EuDsAvKKBPQGlxw sczA== 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=QiGELg0QISHn2ClXivKnunERfH4OpQX43miYiXFMu/BBtCbz6gpVNhHEZmbjKPDlYs tNiA6HMIMgK4HFbzDY/4tvWzd1W2A1vcGU5CSrK8jqGd0ZQeS2tD7XuEnoPsPXNThRDd 6VubrmygVE0fXHsFhVDSa81cUkVBW+oJKVe5wYu4QrqJ1vkrIvq6DmY6NrXK9jA8VI07 WhTHk8qo/TG1gUv0Zd5DZ4Lb6AzVy8CNLPtaFcL9Ab8pdRbIiUTWqx8qzan3b6/HLyNi dkOW8sp1xZNeQfhLQXWR/mWtyhsSyL7udSF4ngFkxvb6W1dfb2UeakUn4pJCnyyNtflk abqQ== X-Gm-Message-State: AGRZ1gJ94RA4KvPAtqXRZDX5D/5mkTK3F+yeku2YduICeHvBzy9U3nWL v5e11IqYgGUrSvrHsg1KYPf77g== 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 Cc: Chris.Healy@zii.aero, festevam@gmail.com, 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 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> 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);