From patchwork Tue Jun 7 12:03:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 69501 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1939323qgf; Tue, 7 Jun 2016 05:03:51 -0700 (PDT) X-Received: by 10.98.103.220 with SMTP id t89mr30995716pfj.125.1465301031498; Tue, 07 Jun 2016 05:03:51 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gk6si3047272pac.121.2016.06.07.05.03.51; Tue, 07 Jun 2016 05:03:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754102AbcFGMDt (ORCPT + 4 others); Tue, 7 Jun 2016 08:03:49 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:27080 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753109AbcFGMDs (ORCPT ); Tue, 7 Jun 2016 08:03:48 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O8E0010FHI87N70@mailout2.w1.samsung.com>; Tue, 07 Jun 2016 13:03:44 +0100 (BST) X-AuditID: cbfec7f5-f792a6d000001302-3a-5756b8202f7c Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 7D.E7.04866.028B6575; Tue, 7 Jun 2016 13:03:44 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O8E00AITHI5JS00@eusync2.samsung.com>; Tue, 07 Jun 2016 13:03:44 +0100 (BST) From: Marek Szyprowski To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Kamil Debski , Kukjin Kim , Krzysztof Kozlowski , Javier Martinez Canillas , Bartlomiej Zolnierkiewicz Subject: [PATCH 1/3] ARM: dts: exynos: replace hardcoded reserved memory ranges with auto-allocated ones Date: Tue, 07 Jun 2016 14:03:36 +0200 Message-id: <1465301018-9671-1-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <2241b7f4-4565-d17b-10f3-5c27cd9985da@osg.samsung.com> References: <2241b7f4-4565-d17b-10f3-5c27cd9985da@osg.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJLMWRmVeSWpSXmKPExsVy+t/xK7oKO8LCDbofiFpsnLGe1eLN2zVM Fj9eX2CzeP3C0KL/8Wtmi54NW1ktZpzfx2Sx9shddovDb9pZHTg9Nq3qZPPY0n+X3aNvyypG j8+b5AJYorhsUlJzMstSi/TtErgy/s24xFpwj6vize0X7A2M9zi6GDk5JARMJGZNfskMYYtJ XLi3nq2LkYtDSGApo8SbUxcZIZwmJoklhy6ygVSxCRhKdL3tArNFBJwkFs76yw5SxCxwiEni y8lPTCAJYYEsiWfL/4PZLAKqEmeebWAFsXkF3CVezLvAArFOTuL/yxVgNZwCzhLXJ24As4WA hs5ZspZlAiPvAkaGVYyiqaXJBcVJ6blGesWJucWleel6yfm5mxghAfZ1B+PSY1aHGAU4GJV4 eHd8CQ0XYk0sK67MPcQowcGsJMKbsDYsXIg3JbGyKrUoP76oNCe1+BCjNAeLkjjvzF3vQ4QE 0hNLUrNTUwtSi2CyTBycUg2Malve9l9YtPYls4T427j5zIbKE0/VbPyXHijyznPHnQj+IvGb ce4smzTW2CqI60/q+b3i6ZzD8yyiGS40Puo4uUR21t4XD9csjJxy9ou5wZuVEW+c7T7c6Fg7 c2eH7IOTXtv/2jVP6qnim+uQp7a7yFRnTY4dA0uY1ZZrM4rWfGrLn/+iZcG8mUosxRmJhlrM RcWJAF8VbvksAgAA Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Generic reserved memory regions bindings allow to automatically allocate region of given parameters (alignment and size), so use this feature instead of the hardcoded values, which had no dependency on the real hardware. This patch also increases "left" region from 8MiB to 16MiB to make the codec really usable with nowadays steams (with 8MiB reserved region it was not even possible to decode 480p H264 video). Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) -- 1.9.2 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi b/arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi index c4d063a..da3ced9 100644 --- a/arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi +++ b/arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi @@ -14,16 +14,18 @@ #size-cells = <1>; ranges; - mfc_left: region@51000000 { + mfc_left: region_mfc_left { compatible = "shared-dma-pool"; no-map; - reg = <0x51000000 0x800000>; + size = <0x1000000>; + alignment = <0x100000>; }; - mfc_right: region@43000000 { + mfc_right: region_mfc_right { compatible = "shared-dma-pool"; no-map; - reg = <0x43000000 0x800000>; + size = <0x800000>; + alignment = <0x100000>; }; }; };