From patchwork Wed Nov 14 22:24:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 10683187 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 A5A0B13B5 for ; Wed, 14 Nov 2018 22:27:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98A3E27F85 for ; Wed, 14 Nov 2018 22:27:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C3C82BE9E; Wed, 14 Nov 2018 22:27:38 +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 099D127F85 for ; Wed, 14 Nov 2018 22:27:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388375AbeKOIcl (ORCPT ); Thu, 15 Nov 2018 03:32:41 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:44021 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389471AbeKOIck (ORCPT ); Thu, 15 Nov 2018 03:32:40 -0500 Received: by mail-qk1-f194.google.com with SMTP id r71so28755660qkr.10 for ; Wed, 14 Nov 2018 14:27:35 -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=OrJHM/Pk8nNRHKzhds3wxUeU/H5h1M3HZSy17Is6AbJIVqqtY2HsB0mc/O3vjEyH3X ku0orbLLoyn2jN5CZqyB4HkwVOShckp9N4JC/+WF+gX46kCwZTCeRrzfKxvPqsW+XrPA 4X/NDNtG4byqacTa5V4Z9RohtEWHTEnNufoUNofUGZDPASC+7um3/NMEY1hqczxbx+FP MMBe5kLgB78vcczZ2Fu89VYDv2sw7GsznoAPcD1uEj53AXBjSA3Ydpb49mP7ozs6iRkO T3VmmOa+U+0ZKC9st+3OLLBaQTKK7Zpr/8dqbOfxrBsCkbHsB1HPpqdTBENT5h3vAnhw Kizw== 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=JBHSN9Vay+Jd5L/TOisAfXts0aIFSVENkDWWzqzlhtyjqwTqsTOdkq+xJmXbr8N9tU zd1P2NIr9uB3W5ePS9XC0EdN2ZosNX0gp9LbGwhq19UDXjYtU1KjM+p22NtIr5ecG7Dg NNqZ3yCcEmhHwyplHI6nDo0p2TK5VRlwxmhd6InA/3K945jnQvTpfZeftU4wIMYHvAoJ YdA1NlbaNNKbYLpjCZv6cW11dxjJ2AUNahRgj/XOmOBylgmZjhTQzNuD4m6cgI3Om3WK uXYzhJGCMzexbewpfJjJdt+wsipyn6BS4rGwjnBqXVQDPmiokjSflKZIAAr0WWIXyJCT swbA== X-Gm-Message-State: AGRZ1gJjO+lRr5L01Ymv8aryskN+jfi97inSusaRTas6rniLEPdoIl4E d9/6BaC5F1JelrS+uY2YXcoHlA== X-Google-Smtp-Source: AJdET5eNPCpIGGtL7x6ndEVRA1r9wHQ5sO1csWatKdUH8OhoKU/Y2Uw30ferncCu2LHDiawq1dFq/Q== X-Received: by 2002:ac8:66c7:: with SMTP id m7mr3626847qtp.114.1542234454883; Wed, 14 Nov 2018 14:27:34 -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.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 14:27:34 -0800 (PST) From: Jonathan Marek To: freedreno@lists.freedesktop.org Cc: Rob Clark , David Airlie , Sean Paul , Steve Kowalik , Rajesh Yadav , 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 2/9] drm/msm/mdp4: allocate blank_cursor_no with MSM_BO_SCANOUT flag Date: Wed, 14 Nov 2018 17:24:09 -0500 Message-Id: <20181114222418.15960-2-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 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);