From patchwork Wed Mar 20 13:50:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10861757 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 089981390 for ; Wed, 20 Mar 2019 13:50:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0B4328A99 for ; Wed, 20 Mar 2019 13:50:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE85B29B6F; Wed, 20 Mar 2019 13:50:56 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 A7CF0291C2 for ; Wed, 20 Mar 2019 13:50:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726303AbfCTNuz (ORCPT ); Wed, 20 Mar 2019 09:50:55 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:47215 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbfCTNuz (ORCPT ); Wed, 20 Mar 2019 09:50:55 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190320135052euoutp027c7c7476ddd68cc5a3e92dacabd4e294~Nrv4YVXEh0688606886euoutp02T; Wed, 20 Mar 2019 13:50:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190320135052euoutp027c7c7476ddd68cc5a3e92dacabd4e294~Nrv4YVXEh0688606886euoutp02T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1553089852; bh=E0j63O+Skb9OmMTLUgbLqXjkUKAlWs/ffIvWP0oo8jA=; h=From:To:Cc:Subject:Date:References:From; b=he9cvuPOuX6B9aBpwT9kUd8wNCBFOqS+dwgOnv4ZfhcwjKuwvaxmlvRNUxUWqYhv/ sD94GpiaSkEUUGBHvRilrGzl1SIx7KKijPVv9hNevFarwUB2l85ZXA2afNI4tkieoy wBRRcKK13G/UZsymxkiPYvHhG4ldh3vfH0hFFtGY= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190320135051eucas1p1844e4f6819f69ebe22b6038c2fe6ec5b~Nrv3W8ZaP0957309573eucas1p18; Wed, 20 Mar 2019 13:50:51 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 28.59.04806.B35429C5; Wed, 20 Mar 2019 13:50:51 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190320135051eucas1p19ce9f7ed28f72e43d331cae838915ed8~Nrv20KjbI0401404014eucas1p1W; Wed, 20 Mar 2019 13:50:51 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-a4-5c92453b5b04 Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 22.41.04128.A35429C5; Wed, 20 Mar 2019 13:50:50 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0POO00JSJ3SMYJ50@eusync4.samsung.com>; Wed, 20 Mar 2019 13:50:50 +0000 (GMT) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Inki Dae , Seung-Woo Kim , Bartlomiej Zolnierkiewicz , Andrzej Hajda , Chanwoo Choi Subject: [PATCH] ARM: dts: exynos: Increase minimal value of the Exynos4 mem buses to 160MHz Date: Wed, 20 Mar 2019 14:50:40 +0100 Message-id: <20190320135040.1433-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupikeLIzCtJLcpLzFFi42LZduznOV1r10kxBtffKljcWneO1WLjjPWs Fte/PGe1uPL1PZvFpPsTWCxmnN/HZLH2yF12ixmTX7I5cHjc7z7O5NG3ZRWjx+dNcgHMUVw2 Kak5mWWpRfp2CVwZL+d3sRSckq54eP0RSwPjUvEuRk4OCQETieZl3xhBbCGBFYwS+//5dzFy AdmfGSVeLL7ABlN0+uofRojEMkaJVZ/WsEA4DUwSk7ZcZAepYhMwlOh62wXWISLgJtF0eCYr iM0s8J9RYu8c+S5GDg5hgTiJzkUBIGEWAVWJZ9dWgJXzCthIdJ6cxA6xTF5i9YYDzCDzJQSe sko8v9DPCpFwkZiwoB2qSEbi8uRuFoiiZkaJh+fWskM4PYwSl5tmMEJUWUscPn4R6go+iUnb pjODXCEhwCvR0SYEUeIhcevrbLCwkECsxM5nThMYxRcwMqxiFE8tLc5NTy02zkst1ytOzC0u zUvXS87P3cQIjKHT/45/3cG470/SIUYBDkYlHt4Ih0kxQqyJZcWVuYcYJTiYlUR4I5SAQrwp iZVVqUX58UWlOanFhxilOViUxHmrGR5ECwmkJ5akZqemFqQWwWSZODilGhj7pu649fZTQ2rh 04ytfF1LPn1Pv5X++15e64UHeTefr404dH7dXaFYEbHEX3ZZ3NwZAtYRQRZmPaWH7KUWqXh+ Cum59LNP6Kds5eauB9w2HF/cUmXq+NjEFv3UbCq8f7B+evLsvm0vkmpmPOubXbzxzO1k/50X jql374+ZWRm2U87849vjzrpKLMUZiYZazEXFiQDebiX9nQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFJMWRmVeSWpSXmKPExsVy+t/xa7pWrpNiDHZNtrK4te4cq8XGGetZ La5/ec5qceXrezaLSfcnsFjMOL+PyWLtkbvsFjMmv2Rz4PC4332cyaNvyypGj8+b5AKYo7hs UlJzMstSi/TtErgyXs7vYik4JV3x8PojlgbGpeJdjJwcEgImEqev/mHsYuTiEBJYwiixvnkT G4TTxCSx48AKdpAqNgFDia63XWwgtoiAm0TT4ZmsIEXMAv8ZJZoW7QFyODiEBeIkOhcFgNSw CKhKPLu2AqyeV8BGovPkJHaIbfISqzccYJ7AyLWAkWEVo0hqaXFuem6xkV5xYm5xaV66XnJ+ 7iZGYAhsO/Zzyw7GrnfBhxgFOBiVeHgXmEyKEWJNLCuuzD3EKMHBrCTCG6EEFOJNSaysSi3K jy8qzUktPsQozcGiJM573qAySkggPbEkNTs1tSC1CCbLxMEp1cB41nzXdpHEiY+mBxv/0g05 nbOMveGgQVrXCo0M5wWNmTs7ctfme/33uvJj48QvV8/GOwVF/Xvka+t8funi/7H90ep7jDx6 bwdtYdt7sO+qr0Wm6pWyP5+DO/Zu38CyZINlp9i/HUdvqbCyynE97FcQFBDv3J74WHrFpE1L CmNqNyvFnrv96/kvJZbijERDLeai4kQATpAjPv0BAAA= X-CMS-MailID: 20190320135051eucas1p19ce9f7ed28f72e43d331cae838915ed8 CMS-TYPE: 201P X-CMS-RootMailID: 20190320135051eucas1p19ce9f7ed28f72e43d331cae838915ed8 References: 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 On Exynos 4, the 'DMC' and 'leftbus' buses feed the internal buses of the TV display subsystem and the Exynos Mixer hardware modules. When those buses are set below 160MHz, Exynos Mixer is not able to properly handle two XRGB display planes at FullHD-60MHz. DMA underrun happens, which in turn might result in reading data out of the configured buffer, what causes IOMMU page fault and kernel panic. This change fixes the following IOMMU fault, observed, when 2 Mixer planes were enabled: exynos-sysmmu 12e20000.sysmmu: 12c10000.mixer: PAGE FAULT occurred at 0x20fe9000 ------------[ cut here ]------------ kernel BUG at drivers/iommu/exynos-iommu.c:450! Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.1.0-rc1-next-20190320-dirty #5628 Hardware name: SAMSUNG EXYNOS (Flattened Device Tree) PC is at exynos_sysmmu_irq+0x1c8/0x244 LR is at lock_is_held_type+0x80/0x100 ... Process swapper/0 (pid: 0, stack limit = 0xf4b67ceb) Stack: (0xc1001e18 to 0xc1002000) ... [] (exynos_sysmmu_irq) from [] (__handle_irq_event_percpu+0x98/0x470) [] (__handle_irq_event_percpu) from [] (handle_irq_event_percpu+0x1c/0x58) [] (handle_irq_event_percpu) from [] (handle_irq_event+0x38/0x5c) [] (handle_irq_event) from [] (handle_level_irq+0xc0/0x134) [] (handle_level_irq) from [] (generic_handle_irq+0x18/0x28) [] (generic_handle_irq) from [] (combiner_handle_cascade_irq+0x84/0xd4) [] (combiner_handle_cascade_irq) from [] (generic_handle_irq+0x18/0x28) [] (generic_handle_irq) from [] (__handle_domain_irq+0x6c/0xe4) [] (__handle_domain_irq) from [] (gic_handle_irq+0x54/0xa0) [] (gic_handle_irq) from [] (__irq_svc+0x70/0xb0) Exception stack(0xc1001f28 to 0xc1001f70) ... [] (__irq_svc) from [] (arch_cpu_idle+0x20/0x44) [] (arch_cpu_idle) from [] (do_idle+0x154/0x284) [] (do_idle) from [] (cpu_startup_entry+0x18/0x1c) [] (cpu_startup_entry) from [] (start_kernel+0x408/0x490) Code: e7923103 e59f206c ebfdaa09 eaffffd8 (e7f001f2) ---[ end trace f8c3df0ee70697ef ]--- Kernel panic - not syncing: Fatal exception in interrupt Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4412.dtsi | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/arch/arm/boot/dts/exynos4412.dtsi b/arch/arm/boot/dts/exynos4412.dtsi index e5c041ec0756..f01c57cc895e 100644 --- a/arch/arm/boot/dts/exynos4412.dtsi +++ b/arch/arm/boot/dts/exynos4412.dtsi @@ -413,14 +413,6 @@ compatible = "operating-points-v2"; opp-shared; - opp-100000000 { - opp-hz = /bits/ 64 <100000000>; - opp-microvolt = <900000>; - }; - opp-134000000 { - opp-hz = /bits/ 64 <134000000>; - opp-microvolt = <900000>; - }; opp-160000000 { opp-hz = /bits/ 64 <160000000>; opp-microvolt = <900000>; @@ -506,14 +498,6 @@ compatible = "operating-points-v2"; opp-shared; - opp-100000000 { - opp-hz = /bits/ 64 <100000000>; - opp-microvolt = <900000>; - }; - opp-134000000 { - opp-hz = /bits/ 64 <134000000>; - opp-microvolt = <925000>; - }; opp-160000000 { opp-hz = /bits/ 64 <160000000>; opp-microvolt = <950000>;