Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8273779ybn; Tue, 1 Oct 2019 05:58:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjjma0eBRkICFJXE85j9l0A42w6KgG0u8yOzxMRP/+TT2WzAl84epIhl0y9U1+mMLoY4Kf X-Received: by 2002:a05:6402:128c:: with SMTP id w12mr25187113edv.158.1569934709872; Tue, 01 Oct 2019 05:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569934709; cv=none; d=google.com; s=arc-20160816; b=KvuRYY588bUtQSaFdMd4/SfOrLr//Jeci17iyw/e/TVwAwKO9BM1QqRUm3iHpQ2xmW s0wHc96uBeZI5RfOMf4zFjCT3Ifc+XZWEZr7fE/g368bxdES6xHfh7/0N/NNZK10MEvn ntTOo7d85F+A2d5X0WxK+MYKQIP9grNpPDp3vhn3L4vfJ4K3EmKATdacNv2QA+n97kmW QTG8VDt/3PZ0+fTHQZ1CKuNyiKkXeG4/iDCj1FZuRYt6IW3XckSQOFIDJl1/FMa7lzor 3e0s4oWRfBjy1DNlZyRd0U1vd0m99E4JYR6MQMhNgYYo5L7Me09GeA7j5uQrSH+WhzvM i75A== 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=6fXN0I8y0ZNzn54kQADv6X+qpXd/5P7SQSR8WSIWw/8=; b=Cop849Bnc8evo6IstTCoVYqCywRke58MvKwoQl9rl0vabMCXRGpoDHVGS0F3hetOI/ yESe7sMgDVUJuZpll8FAXg8tHUo2mlGDf0XDx+glljbkvssqVHvRQ0rcu9ITrYgPZ4VN I4iNG7fPsfUG+qeH/Ls/y7C/mx9SnCPqWV+gw0zD+mSPEbtC+Gc7hzEdU6xNai3rueHx 03KrfaiqASiyIyNe6uenSPjXfl26iJNa/Hq75sHpew5KBV7ZTpfavgldAqRTyxVJNmJS 3/zvj6S1AAlLUkyBKCtxF44qWgmtgYrDgTtd86AR5mUmYfquspDGacWKaX6b+7FMjHNU ykpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=LgD+U1V7; 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 dv24si8868503ejb.60.2019.10.01.05.58.03; Tue, 01 Oct 2019 05:58:29 -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=LgD+U1V7; 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 S2388140AbfJAMyr (ORCPT + 99 others); Tue, 1 Oct 2019 08:54:47 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:36759 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731525AbfJAMyr (ORCPT ); Tue, 1 Oct 2019 08:54:47 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20191001125445euoutp0220f72cd4f0506b690eea49fed8cdb5fa~JhxinrO0l2297222972euoutp02O for ; Tue, 1 Oct 2019 12:54:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20191001125445euoutp0220f72cd4f0506b690eea49fed8cdb5fa~JhxinrO0l2297222972euoutp02O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1569934485; bh=6fXN0I8y0ZNzn54kQADv6X+qpXd/5P7SQSR8WSIWw/8=; h=From:To:Cc:Subject:Date:References:From; b=LgD+U1V7WbHJbVwqyyjWyG5f7Vc/lJR7l5OsNL/3bnd+C7OF58bJ0ndA4kTKmkxq8 1EnKwySVenZhbF7DVWHkBIOrNIbYvzxDKH101Hsk8DCG+zTDBEBK9Sx3fFEZ9LeKcQ 3U/i8Ra8KENtsDli1nUH+RCxkpOs0IOOHQaqmLgA= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20191001125444eucas1p29f1e305772507fe5b01f5e6047a09cd5~JhxiRwXqh2021120211eucas1p2j; Tue, 1 Oct 2019 12:54:44 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 3F.EB.04309.49C439D5; Tue, 1 Oct 2019 13:54:44 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20191001125444eucas1p1c31d1492ed64a9417486f471b97eae8c~Jhxh1ILKG2273622736eucas1p1T; Tue, 1 Oct 2019 12:54:44 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20191001125444eusmtrp1ae92808de1be854f4db3ddb3dac4b765~Jhxh0NMab1469914699eusmtrp1h; Tue, 1 Oct 2019 12:54:44 +0000 (GMT) X-AuditID: cbfec7f4-afbff700000010d5-65-5d934c9467ae Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id B4.6D.04166.49C439D5; Tue, 1 Oct 2019 13:54:44 +0100 (BST) Received: from AMDC3778.digital.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20191001125443eusmtip1d879ff60059480646f1dd029e9917ff0~JhxhFhv_M2520025200eusmtip1V; Tue, 1 Oct 2019 12:54:43 +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 v2 0/4] Exynos5 DMC interrupt mode Date: Tue, 1 Oct 2019 14:54:32 +0200 Message-Id: <20191001125436.24086-1-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA0WSeUgUURzHezM7h1sb42r5UjNaELJIUypeKJlgNaCJCPWHB7nlpNJ67ai1 HWiHebDesZllpRbqth6tYmpeqalguVrgkYiWRXgklGaZYjmN4X+f9z3e78fj0bi8iLCmwyNj OXWkUqUgpZLazkXT3tveuUH7nqfYo2d5lQQanP9CoIcdvQTKnJjGkclURaE312co9D7RFhkn Bgj0ruE+iebSOwDKMzVjqLxjlEJPBvsxNHKtlERJTR0Uap9JJtBC90dwxJw1PDAAtj5/lGKN +lSSrX6cwL6cbcTYjBo9YOeMdr6Uv9QthFOFx3Nqp8PB0jDtiz4y+rPs4k+dNBEYNqYBmobM fpjS5JgGpLScKQVworWXSANmq4d5AGsKA0VjDsCBxmFSMITCWH0FJholAGb/uLveyGlxFm4l GUdYp48RZEumGMCFdn8hjzO1GBzXL/zLWzAusLd56B9LGHtY9H0JE1jGuMPizjEgDtsBn1a1 4kIZMhUUnMy4iYmGJ6z6nUGIbAGnumookW1hT65WIjIPE9ML1y66AicyC9YyrrC9q58QFsUZ B1jZ4CTKHnCg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D 4GCMkEB6YklqdmpqQWoRTB8TB6dUA6Py8t6wtXGFaYE/gmSKz+vKsm5TuT0tx9zH5eKLXpag zFl/TKUCqkQ3KgkdCC5ZPIM/KW739u6LSpb133nZxMSuPviZlrM3vu/KibS/1QmXPFTKD3zb ulX9xaOTJ65adGzYWcv00s/IxuZ7msShxzOalB2nBhg0vwtaabrv2LzQ9869mQ2t7EosxRmJ hlrMRcWJAEoWVZORAgAA X-CMS-MailID: 20191001125444eucas1p1c31d1492ed64a9417486f471b97eae8c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20191001125444eucas1p1c31d1492ed64a9417486f471b97eae8c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20191001125444eucas1p1c31d1492ed64a9417486f471b97eae8c 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 v2 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 event 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. Changes: v2: changes suggested by Krzysztof - added interrupt line for the channel 1 - added desription for bindings with interrupt lines - fixed fallback path in probe function - added comments, blank lines, removed unneeded dev_dbg() in irq handler 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 (4): dt-bindings: memory-controllers: Add Exynos5422 DMC interrupts description 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 .../memory-controllers/exynos5422-dmc.txt | 10 + arch/arm/boot/dts/exynos5420.dtsi | 5 +- drivers/memory/samsung/exynos5422-dmc.c | 345 ++++++++++++++++-- 3 files changed, 334 insertions(+), 26 deletions(-) -- 2.17.1