From patchwork Tue Jan 29 17:55:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10786709 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 BC1E013B5 for ; Tue, 29 Jan 2019 17:55:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A48DB2D5A5 for ; Tue, 29 Jan 2019 17:55:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 95D2F2D5F5; Tue, 29 Jan 2019 17:55:47 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 15C2A2D5A5 for ; Tue, 29 Jan 2019 17:55:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727198AbfA2Rzq (ORCPT ); Tue, 29 Jan 2019 12:55:46 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:48949 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728710AbfA2Rza (ORCPT ); Tue, 29 Jan 2019 12:55:30 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190129175529euoutp02bf2e698dc4c9356e99758181704f6953~_Y1LdFAbt2899228992euoutp02G for ; Tue, 29 Jan 2019 17:55:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190129175529euoutp02bf2e698dc4c9356e99758181704f6953~_Y1LdFAbt2899228992euoutp02G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548784529; bh=cwdR9PeB9U1fbRaysP0X7KBDHK6TquXGExqnRLFnqnA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LIxtvCHRAOn4hGnXHe8FuDDOmYFuIx6eQCGFqbx0PVKUUA6xEngaDYM9HVJpHR1qo dcwKeFUiRIh7o/Usx086wQHw0ZLdTARHurBjUBB8RvfCXIaJEvydBP/n8DqRePkFTH gcKNCv8FC5OsoCTyOgDQ83KBbBM3CUjZY9JbTj7o= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190129175528eucas1p1a036179675a4722aaf310c13c1d31378~_Y1KkQXhi2162921629eucas1p1z; Tue, 29 Jan 2019 17:55:28 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 5C.F7.04441.093905C5; Tue, 29 Jan 2019 17:55:28 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190129175527eucas1p291cb41ad401d4513d65a81c0a2edff88~_Y1J0stAs2848028480eucas1p21; Tue, 29 Jan 2019 17:55:27 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190129175527eusmtrp23fb98231a66fc82a7837e642359fdf47~_Y1Jl1QDR0424104241eusmtrp2d; Tue, 29 Jan 2019 17:55:27 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-1e-5c5093902657 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 58.EE.04128.F83905C5; Tue, 29 Jan 2019 17:55:27 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190129175526eusmtip131024a1d26689c55865eab43ef3e27b5~_Y1I8rKrn2139121391eusmtip13; Tue, 29 Jan 2019 17:55:26 +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 Cc: b.zolnierkie@samsung.com, krzk@kernel.org, kgene@kernel.org, cw00.choi@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, Lukasz Luba , linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 7/8] drivers: devfreq: events: add Exynos PPMU new events Date: Tue, 29 Jan 2019 18:55:13 +0100 Message-Id: <1548784514-26649-8-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548784514-26649-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJKsWRmVeSWpSXmKPExsWy7djP87oTJgfEGFybz26xccZ6VovrX56z Wsw/co7Vov/xa2aL8+c3sFucbXrDbnGrQcZi0+NrrBaXd81hs/jce4TRYsb5fUwWa4/cZbe4 3biCzeLwm3ZWBz6PTas62Tw2L6n3OPhuD5NH35ZVjB6fN8kFsEZx2aSk5mSWpRbp2yVwZRyY OIWl4DJnxdIvb9gaGNdzdDFyckgImEgcaJnJ0sXIxSEksIJRovP+PEYI5wujxIulK6Eynxkl Jlw5DeRwgLVMmpMJEV/OKPHyzQk2uI77S2+CFbEJ6EnsWFUIskJEoFrizvX9zCA1zAKTmSQW ne5mAkkIC/hIrHs1nQ3EZhFQlWhsPwxm8wp4SRw7/JAJ4j45iZvnOplBbE4Bb4mOx3cYIeKL 2CVuPAmDsF0k9i8+zQ5hC0u8Or4FypaR+L9zPtSc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VhLhNfztHyPEm5JY WZValB9fVJqTWnyI0RToqInMUqLJ+cCIzCuJNzQ1NLewNDQ3Njc2s1AS5z1vUBklJJCeWJKa nZpakFoE08fEwSnVwGjCeCOw+HjxvGKNb9et9cXdNzZtn17AJKrm9Jx1yt20OpXwuMuLW+Xt XV/mTLrh8sLYN9uf2X+2ad2UoEjbqNIk0U1Wc+qFzBUU2f7s+8L78dGOy4vMQo1OqgRvSGNM viPU/Tixu/PfxEiHM0wSU3/Pm8M7IfZ8h8mPe85TvnHVNGTwvK+oUmIpzkg01GIuKk4EACma 7fGQAgAA X-CMS-MailID: 20190129175527eucas1p291cb41ad401d4513d65a81c0a2edff88 X-Msg-Generator: CA X-RootMTR: 20190129175527eucas1p291cb41ad401d4513d65a81c0a2edff88 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190129175527eucas1p291cb41ad401d4513d65a81c0a2edff88 References: <1548784514-26649-1-git-send-email-l.luba@partner.samsung.com> 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 Define new performance events supported by Exynos5422 SoC counters. The counters are built-in in Dynamic Memory Controller and provide information regarding memory utilization. CC: Chanwoo Choi CC: MyungJoo Ham CC: Kyungmin Park CC: Kukjin Kim CC: Krzysztof Kozlowski CC: linux-pm@vger.kernel.org CC: linux-arm-kernel@lists.infradead.org CC: linux-samsung-soc@vger.kernel.org CC: linux-kernel@vger.kernel.org Signed-off-by: Lukasz Luba --- drivers/devfreq/event/exynos-ppmu.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c index c61de0b..67d6674 100644 --- a/drivers/devfreq/event/exynos-ppmu.c +++ b/drivers/devfreq/event/exynos-ppmu.c @@ -89,6 +89,12 @@ static struct __exynos_ppmu_events { PPMU_EVENT(d1-cpu), PPMU_EVENT(d1-general), PPMU_EVENT(d1-rt), + + /* For Exynos5422 SoC */ + PPMU_EVENT(dmc0_0), + PPMU_EVENT(dmc0_1), + PPMU_EVENT(dmc1_0), + PPMU_EVENT(dmc1_1), }; static int exynos_ppmu_find_ppmu_id(struct devfreq_event_dev *edev)