Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1821139ybn; Thu, 26 Sep 2019 02:44:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQTcmBeIV52qNto8EpCxVlT7b+9Ssnd/aotfPOkYK4w9wn2606CucI2rlo7Ig66FAVTe+M X-Received: by 2002:a05:6402:1355:: with SMTP id y21mr2482063edw.303.1569491064898; Thu, 26 Sep 2019 02:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569491064; cv=none; d=google.com; s=arc-20160816; b=TLvfFKSasEbRAejb/8Zd5brQyf/lWaPc4LTRN2Qdl1ZB/PT4CY4cvJkUqyTBlHIdya u7vBeWW+lvWG9wqPXFqcOUqmrD0HkgipWgCmDziG4bF4eZkJRLi+rfMUUDPJzVnHtIrI INzJHgggdMYEezPj60542oPVGpN1T+gX4UUdKy9ZAyEjFCPtTpEHnfjel0tSkqjMR+4G ZfMeHhpsfYXiPe5zq8zK0oESTdWqHNsHKaeMEOpV6yjvnjgBfOyMfmZxRljERySAL32o i8inIeSHVADPil6WuUS2JZa9NMnIW9M1Dm7waGoVdYKR4XeQG57ZOiohns/DtnxLUvrt Pk4g== 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=GJ2JYe91tiktd/VxnZuJnaG+1pIfLSV9zQO8Jvu5d3A=; b=lTcRWVtGTkoRwU2r5OkRZeqV208IqhB79FinbSqz+pUbmxo0YiJkPVan8z2diKLJkW sk1jf68QBVxnRFuEiIDjnF4DaQTnRbAQyrkDS0Kcg9C5OHCPkcfTmX6pPg6bz0X67UHU mwWRcE3ns9u60XRPUHKvsO1KtJpDLGzmry8W4g38avbbnm1o/w0wpNoB/C7mpt8bkWxG RBsubTkQ7O+EfgxC927MvO+sAd6MkUorpj0gszk1x1l33FpeejonjDXsyQU2NrCQ3Vmn A02Ch+5Ax/OVsfzw0NHWPRGHFH/yKDB1fzEsLgxmtL0E/KUqns4yay56LGhG2Zt26LL0 sKow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=sTdQlW45; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 t14si724783ejx.372.2019.09.26.02.44.01; Thu, 26 Sep 2019 02:44:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=sTdQlW45; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S2502110AbfIYQSp (ORCPT + 99 others); Wed, 25 Sep 2019 12:18:45 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:39222 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502050AbfIYQSo (ORCPT ); Wed, 25 Sep 2019 12:18:44 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190925161842euoutp0284b213395e28cb7bec8e23fbb6dfeeb2~Hur6Q8Y6P2008520085euoutp02G for ; Wed, 25 Sep 2019 16:18:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190925161842euoutp0284b213395e28cb7bec8e23fbb6dfeeb2~Hur6Q8Y6P2008520085euoutp02G 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 boYVFh9B9ofNuS2k8MiV8NW0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wd AgdjhATSE0tSs1NTC1KLYPqYODilGhjnWl4QdPk9Y5GnzJQFxk+laq8efT1v6d239q3izlW1 U/RzOdb/j7kRbnvcNUDv+40HEyIDfIoUrSQ7o/Krlq06MmkSl0Fd2yu9gP881fb7VE+w9H78 khfWYdTqt3W6ef3UtjgJphMLb38pCfW/HGaxW09T1VogwFB/j1nvntzit/t9Qjdf81JiKc5I NNRiLipOBAC8i8PpkgIAAA== X-CMS-MailID: 20190925161841eucas1p12b3b798020b3493e9a4804d98b422f17 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190925161841eucas1p12b3b798020b3493e9a4804d98b422f17 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190925161841eucas1p12b3b798020b3493e9a4804d98b422f17 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- 2.17.1