Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4061516yba; Wed, 17 Apr 2019 03:52:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtekbtItzp+xrXpCVr/NvsZeELZQc9vAoGHYymAjYlgG/U0AEP0ZSdQ7PGNcMsEqUIFjtW X-Received: by 2002:a63:20f:: with SMTP id 15mr81039723pgc.90.1555498337144; Wed, 17 Apr 2019 03:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555498337; cv=none; d=google.com; s=arc-20160816; b=r+Nf2RhdIBclkVesJiNbfPpcbyBYY/B08mmvBtewlWURT/+of8zo47E3C231KJGHPE 0Cp39fHz4pDUjUqLYLjdDq24mCocbaZjRa9PLlviYeJcbe5mxAn+EHPiXS0B/6yaWJFc /alnhvT//pFSkJZYykgUcw0t6OirIArchi1Q/kvKKdhkAlRZrmHODij10CLNuPzrCGIu DWoO/LXqNE3tKdfwIXPPvFa8h07lzPz7m+9ETeEvDg4kBVbxfbYvl5pnwra6cH97xyKh MVgHRVPe0zaGcTag31WZvJemcbbQeJIBmqiwCE6EovHb524vBHCh8asdemlgVRq5T+1M dJQw== 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 :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=cUbJyeLGnZTKoG+3WUWGXKc8QHHKyKlBXZAp/zqOPx8=; b=fvUYo6wU3fW8jJBWkFYzLP83mPgeJzsAij8KAneqw2l5SJDmMBg5lvCuCSxjTd397q MQuG+uXt8tl4ZS65dT+32gK3S9c8sdfXYCgkhP92CO1cL1XS2k6bDEROB5B8pks07K0x ZwEcnEko5aIhGa9JEMTLsqHKmrdyeeFRo5mC+wraTBKkYOupUJLoXCKG8Q/GzGNjeGNY 8RPewicEOPrk6iFSRECZZb4eGM55yA/TSKn1ClLt+u2kJ3QEhWUy0b/9bor862ElxkAH LI5Ke444P+YXpazt/sKvjeu969A3T+pi0A4hyVOT9F8IpL9asfCa7vYsEj758Ti2ki8A rbZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=KxtE877R; 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 m10si50076273pgi.417.2019.04.17.03.52.01; Wed, 17 Apr 2019 03:52:17 -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=KxtE877R; 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 S1731830AbfDQKvD (ORCPT + 99 others); Wed, 17 Apr 2019 06:51:03 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:52428 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731499AbfDQKvD (ORCPT ); Wed, 17 Apr 2019 06:51:03 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190417105101euoutp02b119b97e082df3ff6189564440cd67bf~WPW1qPNyz0828908289euoutp02V for ; Wed, 17 Apr 2019 10:51:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190417105101euoutp02b119b97e082df3ff6189564440cd67bf~WPW1qPNyz0828908289euoutp02V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555498261; bh=cUbJyeLGnZTKoG+3WUWGXKc8QHHKyKlBXZAp/zqOPx8=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=KxtE877Rf1DW5jj6YuEYsAYnz371V8Nj8GmdeOd3d5yWBSXG3ME4jxXm2vE1hrnno IQhEbjhGIdEyK2DkbK7jkJn6BgQvuARhAtRPP1VdFZOWzebEsXGIiKspHrccRn9xRA 7hPOwPEsA0nrmRaqqYJdc8cWx1SMHR+7wUOnhuao= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190417105100eucas1p1674c2ba5fb088b00628d1c651f1fde88~WPW0y0HiC1190411904eucas1p1A; Wed, 17 Apr 2019 10:51:00 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 53.1B.04377.41507BC5; Wed, 17 Apr 2019 11:51:00 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190417105059eucas1p10209319ab0c5d1f72ff804124767f9a6~WPWz7zhAR1418614186eucas1p1f; Wed, 17 Apr 2019 10:50:59 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190417105059eusmtrp2f942025a37060b56e4619595b62f640c~WPWzsFq0g0265702657eusmtrp2I; Wed, 17 Apr 2019 10:50:59 +0000 (GMT) X-AuditID: cbfec7f4-12dff70000001119-98-5cb705141f09 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 88.84.04146.31507BC5; Wed, 17 Apr 2019 11:50:59 +0100 (BST) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190417105058eusmtip153fec08da9e3c3bd29b0955051f7e30f~WPWzGd-Dk0939509395eusmtip1N; Wed, 17 Apr 2019 10:50:58 +0000 (GMT) Subject: Re: [PATCH 1/3] include: dt-bindings: add Performance Monitoring Unit for Exynos To: Chanwoo Choi , 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, robh+dt@kernel.org, mark.rutland@arm.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, kgene@kernel.org From: Lukasz Luba Message-ID: Date: Wed, 17 Apr 2019 12:50:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <3fcb6dde-7ccc-4da6-5f8b-c8338edaa155@samsung.com> Content-Language: en-US Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA02SfSzUcRzH+97vfnc/5vR15+FDpnbriS30tH5bppTZ/dmalUUPh9+ccof7 eUjZolZKeUiSJE8jdhGdI51i4+aS8pSlkmioVmxxWmlKzu8s/73en8/7/f18PtuXIsT9pAsV qYpj1Cp5lFRgzW/smOveYk8+CvEuMtjQD/NrSXpw9jNJFxu6STpr7BtB9/TUCemX5yeFtHbs NUm/0hcKaFOGAdH5PS08usYwLKQrBvt49FBqlYC++NQgpNsn08i9q2XVRdVIptVcEcjqy8/J MnUaJDNp3Q6QR6x9wpmoyARG7eV7wlrRWpPNi+lyOP3sSzMvBVXYpSMrCvAOqLk6QaYja0qM qxCUlOdbxCyC1gfvLcKEoKWliFiOfP+ZZWlULkbmRy1iCkHa/d/I7JLgYMgb6V1q2ONOBBmp w0uCwAMIJmbLFt+iKAH2hCZNrDkgwgHQOHSdb2Y+3gCDTzpJMzvgIBjpqCM5jx103h5f8lj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AkWUVo0hqaXFuem6xoV5xYm5x aV66XnJ+7iZGYBxvO/Zz8w7GSxuDDzEKcDAq8fCu+Lk1Rog1say4MvcQowQHs5IIr2PKlhgh 3pTEyqrUovz4otKc1OJDjKZAz01klhJNzgemmLySeENTQ3MLS0NzY3NjMwslcd7zBpVRQgLp iSWp2ampBalFMH1MHJxSDYwT2PK7hVr0wx1K2Z6khlX11yVvy2nRDuB8tLJJ6r7AW0EmvSWb nnzTU4rexXR/kZfl2wIuT9Np0lNWPbUy0dnd6fMkTenXmepN5zsn8+YzMIvI2Tx13TR9suMD 3R/zjl6b/fzIq3A1jjX93xPrnm+oucvQWu6+fuZB3ZO8b9J23OBc1OygM1+JpTgj0VCLuag4 EQCpIeTc+QIAAA== X-CMS-MailID: 20190417105059eucas1p10209319ab0c5d1f72ff804124767f9a6 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190417074832eucas1p26eca3ed8bf754787b4860206ba542e1c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190417074832eucas1p26eca3ed8bf754787b4860206ba542e1c References: <1555487288-4777-1-git-send-email-l.luba@partner.samsung.com> <1555487288-4777-2-git-send-email-l.luba@partner.samsung.com> <3fcb6dde-7ccc-4da6-5f8b-c8338edaa155@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chanwoo, On 4/17/19 10:10 AM, Chanwoo Choi wrote: > Hi Lukasz, > > On 19. 4. 17. 오후 4:48, Lukasz Luba wrote: >> This patch add support of a new feature which can be used in DT: >> Performance Monitoring Unit with defined event data type. >> In this patch the event data types are defined for Exynos PPMU. >> The patch also updates the MAINTAINERS file accordingly. >> >> Signed-off-by: Lukasz Luba >> --- >> MAINTAINERS | 5 +++++ >> include/dt-bindings/pmu/exynos_ppmu.h | 24 ++++++++++++++++++++++++ >> 2 files changed, 29 insertions(+) >> create mode 100644 include/dt-bindings/pmu/exynos_ppmu.h >> >> diff --git a/MAINTAINERS b/MAINTAINERS >> index 3671fde..f4aac78 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -12376,6 +12376,11 @@ L: linux-scsi@vger.kernel.org >> S: Supported >> F: drivers/scsi/pm8001/ >> >> +PMU EXYNOS DT BINDINGS >> +M: Lukasz Luba >> +S: Maintained >> +F: include/dt-bindings/pmu/exynos_ppmu.h >> + > > IMHO, I'm not sure that it is right of adding one dt-binding header file > to MAINTAINERS file. If right, I'm OK. > > >> PNP SUPPORT >> M: "Rafael J. Wysocki" >> S: Maintained >> diff --git a/include/dt-bindings/pmu/exynos_ppmu.h b/include/dt-bindings/pmu/exynos_ppmu.h >> new file mode 100644 >> index 0000000..a6971eb >> --- /dev/null >> +++ b/include/dt-bindings/pmu/exynos_ppmu.h >> @@ -0,0 +1,24 @@ >> +/* SPDX-License-Identifier: GPL-2.0 */ >> +/* >> + * Samsung Exynos PPMU event types for counting in regs >> + * >> + * Copyright (c) 2019, Samsung >> + * Author: Lukasz Luba >> + */ >> + >> +#ifndef __DT_BINDINGS_PMU_EXYNOS_PPMU_H >> +#define __DT_BINDINGS_PMU_EXYNOS_PPMU_H >> + >> + >> +#define PPMU_RO_BUSY_CYCLE_CNT 0x0 >> +#define PPMU_WO_BUSY_CYCLE_CNT 0x1 >> +#define PPMU_RW_BUSY_CYCLE_CNT 0x2 >> +#define PPMU_RO_REQUEST_CNT 0x3 >> +#define PPMU_WO_REQUEST_CNT 0x4 >> +#define PPMU_RO_DATA_CNT 0x5 >> +#define PPMU_WO_DATA_CNT 0x6 >> +#define PPMU_RO_LATENCY 0x12 >> +#define PPMU_WO_LATENCY 0x16 >> +#define PPMU_V2_EVT3_RW_DATA_CNT 0x22 > > If we can select the data type for monitoring, it looks good to me. > But, when I developed the Exynos PPMU, I has not tested other data type > except for PPMU_RO_DATA_CNT and PPMU_WO_DATA_CNT. > > Do you test all data types with PPMU device? Yes, I have tested all - 1 of them on Odroid XU4 with memory controller and they work. I haven't checked the last option for Exynos5433, but it should work since it was default option in your driver. Regards, Lukasz > >> + >> +#endif >> > >