Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3459272ybi; Mon, 27 May 2019 00:01:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRH7HL8TENZR7ohuJP+VlJpB2rD/SguLA6duGPum/AKkTVzMSPyRHdeCI/binMdbrm1vqT X-Received: by 2002:aa7:8219:: with SMTP id k25mr42032345pfi.38.1558940473226; Mon, 27 May 2019 00:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558940473; cv=none; d=google.com; s=arc-20160816; b=tURMM1/jKzsgeFn4JL1lUYlnyQs+bDgIffiKWhR8rl2gfITmQKAul4/E2xS7NOjVDr tBEW7k5AjcTwglg6l52gGRyd5ZAWUgl+8UfwOpApcpf9yObAWLRU6J+g33t13EvNQkzb yDycpsG0j55cTIi30dvOgsNiEGd/XoZuUVe/xyY3nU82LLgaQH6XOtTwWKPMwXCRAgrD 3jGR6SFj/HRZyMevd/x/LJ25XhuHXZuiBc0WWiBk37I7LF8ZnNk6eMEBbduWODp/RTH1 FHuhH+4h3gw+7dIeKhXioKdSjuZPMa3/jkQBxRma5PHUanZ6Cneki0TfvPemphd3c0Oi Gwgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=LnKBwVF1dItC+l+JnDwUsIzBc7zetbFsFlKyasoN8hw=; b=vu4WICLnefjqP7NgevFPyoAXKbXclNM+/eqpMAQXT3JF3OiCiu4KC2N2gjoPAJbwir 8a8SHO+/ZPsfgFJ+bVzZLUv4asGUXjR211TZsLcdem0dlY1Q58eMzgbH1yqCt8+1Sggf jX+/eAwA/841tmlZxXRKG6tEYIyudKDfUcLLmSrMP6oSSw/QJVCkRwCErSsNzsPQy5xh tlHAFXSYV2Wvg0poa3sWEKy2DbVDWVnVnDE3uCMemqzRp50v/gmiqEvN7KIW5kFyCp6t MDvqyr6zeLteYk/jhgOD4DaRPnF8L6FXfM0srGxteEZq1I6RPCk++xBHIVW8lUdJLitd 2srg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i184si19849647pfb.123.2019.05.27.00.00.57; Mon, 27 May 2019 00:01:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726274AbfE0G62 (ORCPT + 99 others); Mon, 27 May 2019 02:58:28 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:57374 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725943AbfE0G62 (ORCPT ); Mon, 27 May 2019 02:58:28 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08441354|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.0549198-0.00885414-0.936226;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03303;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=4;RT=4;SR=0;TI=SMTPD_---.Edg2x71_1558940305; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.Edg2x71_1558940305) by smtp.aliyun-inc.com(10.147.41.231); Mon, 27 May 2019 14:58:25 +0800 From: Mao Han To: linux-kernel@vger.kernel.org Cc: Mao Han , Guo Ren , linux-csky@vger.kernel.org Subject: [PATCH V2 0/5] csky: Add pmu hardware sampling support Date: Mon, 27 May 2019 14:57:16 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set add hardware sampling support for csky-pmu, and also add some properties to pmu node definition. perf can record on hardware event with this patch applied. Changes since v1: - do not enable/disable irq at start/stop(may lose irq) - do not update hpcr when event type is invalid CC: Guo Ren CC: linux-csky@vger.kernel.org Guo Ren (1): csky: Fixup some error count in 810 & 860. Mao Han (4): csky: Init pmu as a device csky: Add reg-io-width property for csky pmu csky: Add pmu interrupt support dt-bindings: csky: Add csky PMU bindings Documentation/devicetree/bindings/csky/pmu.txt | 38 +++ arch/csky/kernel/perf_event.c | 407 +++++++++++++++++++++++-- 2 files changed, 424 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/csky/pmu.txt -- 2.7.4