From patchwork Thu Nov 22 01:52:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 10693377 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 B691114BD for ; Thu, 22 Nov 2018 01:55:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A25FF2BB18 for ; Thu, 22 Nov 2018 01:55:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 966F32BBB3; Thu, 22 Nov 2018 01:55:53 +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 450712BB18 for ; Thu, 22 Nov 2018 01:55:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403907AbeKVMcc (ORCPT ); Thu, 22 Nov 2018 07:32:32 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:33545 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403897AbeKVMcb (ORCPT ); Thu, 22 Nov 2018 07:32:31 -0500 Received: by mail-qt1-f195.google.com with SMTP id l11so6006145qtp.0 for ; Wed, 21 Nov 2018 17:55:28 -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=yi+83lbDblZvbXPQbq7ZeugGAkOASemcPW1GqEcxWA4=; b=yQPVVobvCBmtDsu0VzzDYZ8ElDKZl6XiVAs6b69QZLVKhj0cHpOwW1bW1y8k94hE/e UlbVjjgJRVgeNBF/m5ICFHbnUHj0K8ZhMF86qJ90TrOQnag0eFl4gRJ8N3finYIvEibU KOLM0Km+ZfV5bOqcaZOvO0JXH8tCTMkMSlR4VuMWmdTZAhRZm7LZVUO9IKELNQV5dFB/ TGSsV8LqxIyykINyaGrGToRKT/i+3vBlcNtK3l7Swox5TfkyoFXl4+VrqXhl07xdTPWN nXfcfe3GsVKU/f5MTjSH7fs83bxWeKXzLaeMdG78sAigJAz2abaT3uZ1jE7aTcvzJbKM b06g== 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=yi+83lbDblZvbXPQbq7ZeugGAkOASemcPW1GqEcxWA4=; b=s0BNtcDfRjMGlB9NGKUaCQBVHTz+fz+ktE3twpcMTTJvCGfdo+RfwELAWbNVm8coh9 ssUa4shD2bNfCnOkAO0DLhhPldWpj6GXE0K8xw+5Y5pR/DY27Um4h9DJcA7QvLCpBM3+ gTOemYQfMFNTqc+/Ssh38DFmrJ4sbOLjlKMboPUvkJo94hpGyWm1/2xSTLToPqpJpGKZ IZyuIPDWgc6t9wJuJEZwKaeEfnuFnCSovtii4bjwrD7Dobue79dbxV7nBwOAPPrFJpPC F4tSxt4I9l2jvOl2VXhuZAWBKM4+3rMBN4+cr0e0SkakOTAGANWkujVissdfqbG66eQ6 SyZA== X-Gm-Message-State: AGRZ1gIGsHslB8jNlNm0D6hNQRQchGOmJUmemDm0xn5nC9NrCruED8hs l0cclGTQlf4dXT26p+Da0bW9Rw== X-Google-Smtp-Source: AJdET5eL6mvcb/us0bH+XrmTgUPc1BaATQCGAt52H00E79htcNF0WOfrPjucOShYxhw2Eb/47tN+hw== X-Received: by 2002:ac8:1b4d:: with SMTP id p13mr8179731qtk.56.1542851727567; Wed, 21 Nov 2018 17:55:27 -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.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 17:55:27 -0800 (PST) From: Jonathan Marek To: freedreno@lists.freedesktop.org Cc: Chris.Healy@zii.aero, festevam@gmail.com, Rob Clark , David Airlie , Sean Paul , Rajesh Yadav , Steve Kowalik , 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 2/9] drm/msm/mdp4: allocate blank_cursor_no with MSM_BO_SCANOUT flag Date: Wed, 21 Nov 2018 20:52:28 -0500 Message-Id: <20181122015237.14534-2-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 For allocation in contiguous memory when the GPU has MMU but not mdp4. Signed-off-by: Jonathan Marek --- drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c b/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c index 8f765f284d11..484d2fc2f415 100644 --- a/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c +++ b/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c @@ -534,7 +534,7 @@ struct msm_kms *mdp4_kms_init(struct drm_device *dev) goto fail; } - mdp4_kms->blank_cursor_bo = msm_gem_new(dev, SZ_16K, MSM_BO_WC); + mdp4_kms->blank_cursor_bo = msm_gem_new(dev, SZ_16K, MSM_BO_WC | MSM_BO_SCANOUT); if (IS_ERR(mdp4_kms->blank_cursor_bo)) { ret = PTR_ERR(mdp4_kms->blank_cursor_bo); dev_err(dev->dev, "could not allocate blank-cursor bo: %d\n", ret);