From patchwork Tue Mar 21 15:25:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9636885 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 75E6B602D6 for ; Tue, 21 Mar 2017 15:26:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 605FC2840E for ; Tue, 21 Mar 2017 15:26:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 558382841F; Tue, 21 Mar 2017 15:26:48 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 2334E2840E for ; Tue, 21 Mar 2017 15:26:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4529B8994A; Tue, 21 Mar 2017 15:26:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x22e.google.com (mail-wr0-x22e.google.com [IPv6:2a00:1450:400c:c0c::22e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 863B26E72D for ; Tue, 21 Mar 2017 15:26:04 +0000 (UTC) Received: by mail-wr0-x22e.google.com with SMTP id l37so114351383wrc.1 for ; Tue, 21 Mar 2017 08:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gF+pDZuom63Y71znF/n5vXpmxC4WzEuPTg4rNpBMwIA=; b=TIW/ryTRE6BTH8tgnjAuPuaP4hYMn44U2cWvcfbiKjpaBS9P95R/2OtyS7xmAyADll LRuA+5UjuMaN0eG8iQyTTmziLFV3zJUzNJie7lcR/2tY4P9cQoKFGA8JZthqJ+UvHScU AJBqj0pnE6ukgMz7+Yc5rWz9bXimYz035HErrLo2Wwpm0V+rQ5Jf0bW93WUIOGQCxFTS UdY9DmWW+KAO5ZO/lQZ2j2nRnmF3XuhJrSSU1eu0BKjr18tFY2lEp1r+uDbvq6PAyNme 8ps7jorz1f+TT2AtCSKXMkVE7rjKMRW7tUfxXMsLoZ4KLEXDCo8xXQ+p0zpGTO8tdbal Y3Kw== 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=gF+pDZuom63Y71znF/n5vXpmxC4WzEuPTg4rNpBMwIA=; b=GZvitwdxtx11fidsm4aLT75SKUgsVz1jODipTyjRrU5Ma+j2qer0kGVHO8JV70hTIG RlSAcpf52IEADB8KnZHXhvmrOTT9tBSyd2vUiUS+7y9WI3XA0IQGVkJWQ8ARaet3VAGF CZkiY+QolMFBtejDlOGuAfJw+HLY6WjSLzrDEj33nabl5QttFjwZoy7Qppp94sASl5lI 4doehr2QR5H6Uy0rlShJtGqoZM9dpObQf7Qkp07DX6FEwOVhLmsdEM3k9Vz2W/U5bC7k QDxlUCM33uqrDmiNYZkRpUVwA9ktQ7QA+jMZbqVu+y/CbywVfI4liJUcs+thTyS4ELvQ 2keQ== X-Gm-Message-State: AFeK/H10CQdA7PJZdr1VL9deQlGi8Bvp7jSkRHh6yARjr6fY3mDlsfhAWhs/pA5U6TOcMkVH X-Received: by 10.223.183.46 with SMTP id l46mr31653933wre.89.1490109963197; Tue, 21 Mar 2017 08:26:03 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id b13sm18088890wmf.6.2017.03.21.08.26.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Mar 2017 08:26:02 -0700 (PDT) From: Neil Armstrong To: airlied@linux.ie Subject: [PATCH v2 08/13] ARM64: dts: meson-gx: Add shared CMA dma memory pool Date: Tue, 21 Mar 2017 16:25:45 +0100 Message-Id: <1490109950-21421-9-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490109950-21421-1-git-send-email-narmstrong@baylibre.com> References: <1490109950-21421-1-git-send-email-narmstrong@baylibre.com> Cc: devicetree@vger.kernel.org, Neil Armstrong , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The HDMI modes needs more CMA memory to be reserved at boot-time. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi index 5d995f7..94c6f95 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi @@ -71,6 +71,14 @@ reg = <0x0 0x10000000 0x0 0x200000>; no-map; }; + + linux,cma { + compatible = "shared-dma-pool"; + reusable; + size = <0x0 0xbc00000>; + alignment = <0x0 0x400000>; + linux,cma-default; + }; }; cpus {