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: 160694 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp316134jan; Wed, 20 Mar 2019 06:50:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHJc2Jd5+R7YDh7PztzqT7ei2Uc8kld2esahZz2Teq0JkbhgHmaEp0qHSAfz3MffLou09F X-Received: by 2002:a65:4806:: with SMTP id h6mr7530850pgs.408.1553089855937; Wed, 20 Mar 2019 06:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553089855; cv=none; d=google.com; s=arc-20160816; b=RqQioJSz5XxlbSho/Vd4f17eeDCPsk8lPjgaU7l9AZVvKcS0QyDMfYZnguGJLKXz4C aQdIFbo9DirmdbNQDq7FXsPIeeH2AnjD2bCPiWSqrL5BM0ANo6n0BHm20yXTpsEobv3n NTWWkxXBYnn1T7ufeN3Vj0Xm/fOa7oOEC9U9lByHO/iOjHLyya/Xx0o/lSmz1OHe4ddQ mFWd3i8J6LTRVUiRXKOmXNPsijFLEC3XmJzf0gqo9hYpSDAdGhbCHPXRGXY2cRNglU41 /drT4YWQpUMBcvsRMoyO8dZbtPlI24cAeoPNgjhB/Yv0y3opJxZ6Jd2kAH1L2wQsdfWu 44/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=E0j63O+Skb9OmMTLUgbLqXjkUKAlWs/ffIvWP0oo8jA=; b=oER+jVvbo0GHZ7DXlqFfdAScCyP4ALeFz7Do9plNZiOsQ0RSu4GWSnuNbc/vN43qRV F0FOnKJoPWcz8aMuZtWEzNvYc8XrBOKiH50N5shAlQvxa/K4WQXYxEbwr1C/yHikk7jA FKlqMVwSymiQsHIC2BQIkvBAwAE8ArjNGyXi+eDFLSklgy5yxZOHdlvdWg6tVQxJa7UT /zuz8zyPW5QTT6EirT/diOy7xakX7qPWy/9F9KBnkiNzzugCUgnh2IVEVGvjBoikAm4U 731B4kimnoMtp6NJj8+r+TBoeeaQG00qt57flv91JiO43q5H0NAuwJOggHpA3KK8QBM8 t28w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=he9cvuPO; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9si1860366plo.216.2019.03.20.06.50.55; Wed, 20 Mar 2019 06:50:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=he9cvuPO; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726303AbfCTNuz (ORCPT + 3 others); 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 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(-) -- 2.17.1 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>;