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: 9160961 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 BA55D60572 for ; Tue, 7 Jun 2016 12:03:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB8622793B for ; Tue, 7 Jun 2016 12:03:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A086C2823D; Tue, 7 Jun 2016 12:03:54 +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=-6.9 required=2.0 tests=BAYES_00,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 53B2F2793B for ; Tue, 7 Jun 2016 12:03:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754061AbcFGMDt (ORCPT ); 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-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Javier Martinez Canillas Tested-by: Javier Martinez Canillas --- arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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>; }; }; };