From patchwork Wed Sep 25 16:18:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 11161083 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6631614DB for ; Wed, 25 Sep 2019 16:18:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4468221D7C for ; Wed, 25 Sep 2019 16:18:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="sTdQlW45" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502071AbfIYQSp (ORCPT ); Wed, 25 Sep 2019 12:18:45 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:59771 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502053AbfIYQSo (ORCPT ); Wed, 25 Sep 2019 12:18:44 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190925161842euoutp01a5135e000ff11360a8a7072d4c92ff58~Hur6RDouq0306003060euoutp019 for ; Wed, 25 Sep 2019 16:18:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190925161842euoutp01a5135e000ff11360a8a7072d4c92ff58~Hur6RDouq0306003060euoutp019 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1569428322; bh=GJ2JYe91tiktd/VxnZuJnaG+1pIfLSV9zQO8Jvu5d3A=; h=From:To:Cc:Subject:Date:References:From; b=sTdQlW45/ezR4mctqAgDPOc4sOPtpkLqcIU9J/dZAw8rYzQ6OGG5mRrvE6MXUHyQJ FnPmsF78n260I5CVHMQujbYfSNPdI35Pys1MbwIYoleGy2TIp0ly9Q6nYmT0HxY01O 2Qdsfc/BHcicuSnbr3sqaIitfyna5i4n6+zh3EOE= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190925161842eucas1p18415a023b311015917339ade86f44d2b~Hur52uevd1835318353eucas1p1s; Wed, 25 Sep 2019 16:18:42 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 2F.EC.04469.2639B8D5; Wed, 25 Sep 2019 17:18:42 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190925161841eucas1p12b3b798020b3493e9a4804d98b422f17~Hur5W1Hmf1838118381eucas1p1k; Wed, 25 Sep 2019 16:18:41 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190925161841eusmtrp1d4c1091df9e457d14fbdaabc0a0e93d0~Hur5Vv2fv0531705317eusmtrp1k; Wed, 25 Sep 2019 16:18:41 +0000 (GMT) X-AuditID: cbfec7f2-569ff70000001175-2e-5d8b93629b61 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 1E.14.04166.1639B8D5; Wed, 25 Sep 2019 17:18:41 +0100 (BST) Received: from AMDC3778.digital.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190925161841eusmtip1e43577fed3704a1419143924fac90f79~Hur4priT50494304943eusmtip1K; Wed, 25 Sep 2019 16:18:41 +0000 (GMT) From: Lukasz Luba To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: b.zolnierkie@samsung.com, krzk@kernel.org, kgene@kernel.org, mark.rutland@arm.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, robh+dt@kernel.org, willy.mh.wolff.ml@gmail.com, Lukasz Luba Subject: [PATCH 0/3] Exynos5 DMC interrupt mode Date: Wed, 25 Sep 2019 18:18:10 +0200 Message-Id: <20190925161813.21117-1-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA0WSe0iTURjGO9/d1eJzWp5MbQy6k5eoOFBURsL+yIggKUV06pdabto+tSyj WVZrXhZKabIuWqbM5WWK2LxfSkVtmqJhCZpRWLMgbSVF5vys/vu9z/O85zwHDoNLikl3JlaV yKlVijgZJSJqn89Zt0XkZoT63rrugqryK0g0MvuBRPc7XpBIP/kJR1ZrJY36LttoNKrxQObJ YRINWgwUmsnqACjf2oShJx1jNCoeGcDQ67RSCl1t7KBRu+06iexdb8F+Z7npngnInxaM0XKz 8QYlr350Sd76uQGTZ9cYgXzG7HWEDhbtieLiYpM5tc/ecFGMsTGHTugVnbO32nANmGZ0gGYg uwNqxTogYiRsKYCP+/txYZgFMKfIQgjDDIAztXO0DjCLC7l9AYJeAqD5jp76tzE83Uw4QhTr DeuMZ3TAiXFlHwJobw92ZHC2FoPjRjvpMFxYH3hlJA13MMGuh6Y5C+ZgMbsPZnZpFhmy62BZ ZctiJciaaWhuMhCCcRD+asnGBXaBHztraIE9YE9u5lKGh5qsQiBwKpzU313K7IbtnQOkoyjO boYVFh9B9ofNuS2k8MiV8NW0s0PGFzCnNg8XZDHUXpMI6U2wJrN/qeVqWGK6vXS4HDZMVS0W k7Ch8H3+G+wm8Cr4f9cDAIzAjUvildEc76fiznrzCiWfpIr2joxXmsHC5+n53fm1Dnx7GdEG WAbIVohbgjJCJaQimU9RtgHI4DJXcYGHLlQijlKknOfU8WHqpDiObwNrGULmJr6wbDxEwkYr ErnTHJfAqf+6GOPkrgGi/Iryn/FF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AC8i8PpkgIAAA== X-CMS-MailID: 20190925161841eucas1p12b3b798020b3493e9a4804d98b422f17 X-Msg-Generator: CA X-RootMTR: 20190925161841eucas1p12b3b798020b3493e9a4804d98b422f17 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190925161841eucas1p12b3b798020b3493e9a4804d98b422f17 References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi all, This is a patch set for the Exynos5 Dynamic Memory Controller driver which could be found in Krzysztof's tree [1]. It is on top of a merge of the two branches [1][2]. It adds interrupt mode which does not relay on devfreq polling. Instead of checking the device state by the framework, driver uses local performance events counters which could trigger interrupt when overflow. Thanks to this approach the driver avoids issues present in devfreq framework, when default polling check does not occur. The algorithm calculates 'busy_time' and 'total_time' needed for devfreq governors (simple_ondemand) based on requests transactions traffic. Regards, Lukasz Luba [1] https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git/log/?h=for-v5.4-5.5/memory-samsung-dmc [2] https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git/log/?h=for-v5.4-5.5/memory-samsung-dmc-dt Lukasz Luba (3): ARM: dts: exynos: Add interrupt to DMC controller in Exynos5422 ARM: dts: exynos: map 0x10000 SFR instead of 0x100 in DMC Exynos5422 memory: samsung: exynos5422-dmc: Add support for interrupt from performance counters arch/arm/boot/dts/exynos5420.dtsi | 4 +- drivers/memory/samsung/exynos5422-dmc.c | 297 ++++++++++++++++++++++-- 2 files changed, 275 insertions(+), 26 deletions(-)