Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3794502ybi; Sun, 2 Jun 2019 23:50:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWbzoINoIVlxq1ijbR2xeVDvII8A4QSiQSCWrfsNAWYWjluoyRWSLBHdmIIcBF//eV9BSc X-Received: by 2002:a62:6507:: with SMTP id z7mr29782515pfb.225.1559544600008; Sun, 02 Jun 2019 23:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559544600; cv=none; d=google.com; s=arc-20160816; b=XiAfgg/njOmrF683h6Psdjtzk1h0MKN+3m+j0OPVR91Eo3KwsUgnp5/v02T7bmZdqs 6jJJAev7FvzOIg4kYXAnCt5qGzYAC4KdEdfsFuRv/Y3/ZLQ12kodL8q1039eha08Vszf fD0xdgLpYKH0T/esrucwUrvO1rbBVAbwJSIx6MW8EWVBDN1hbLz+U5wAc/rNWuNPxlqj P7R7VDcLQmTxJ19z9HMQsMC636WPxmE2qOUDMDNYO+ED6cZnd3fsQr5gkdNW5PE950cz pb67SnWfTA3ZTrH8OojerZTwDthUhxpraD57imbup7ZhHNSkblA/mStM/t0b8k5w1Kfo oQVw== 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=KpZnCIA8UlYfgOrnLRr2wIBeku9OLfvXjzAze2dgHnI=; b=LxwsKw7DY5muqX3cfBoksTLFiX86qFUTVl4aM3ZogMcLos1sHr+OPau54xK1VVa61b lTrghliVj7y9/lK3EHa8Px+GLfZTfOT40yIPDgdgBi/hOmoup70JhnKWS9h4LaevRbit VPbjQ07agrKbFHaiTm0QRt8bhp/KfImKHSp2xzHo9xmCXblLIY67Ts2u7zOGMdoHW2kd 1STU+SpYy+Zfms3PFHbwKhG1iBEr8VDLucqIpr/oDvWNP+s5yZw75+XiiT2Rots2lsNO HanVVUJg5jsEZ46KM4VM+/NMP/sg+elKwKkG9HDQrAIF0rbp+aEtvGE/f/1QZ8h2jd69 z4qQ== 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 n9si14650543pfe.59.2019.06.02.23.49.44; Sun, 02 Jun 2019 23:49:59 -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 S1727261AbfFCGre (ORCPT + 99 others); Mon, 3 Jun 2019 02:47:34 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:57202 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726896AbfFCGre (ORCPT ); Mon, 3 Jun 2019 02:47:34 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08230136|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.104506-0.0122054-0.883288;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03292;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=2;RT=2;SR=0;TI=SMTPD_---.EglZ6gu_1559544451; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.EglZ6gu_1559544451) by smtp.aliyun-inc.com(10.147.40.2); Mon, 03 Jun 2019 14:47:31 +0800 From: Mao Han To: linux-kernel@vger.kernel.org Cc: Mao Han Subject: [PATCH V3 0/6] csky: Add pmu hardware sampling support Date: Mon, 3 Jun 2019 14:46:19 +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 v2: - update dt-binding(csky pmu use rising edge interrupt) - use cpuhp_setup_state to enable irq(fix irq enable on smp) Changes since v1: - do not update hpcr when event type is invalid(fix option --all-kernel/--all-user) Guo Ren (1): csky: Fixup some error count in 810 & 860. Mao Han (5): 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 csky: Fix perf record in kernel/user space Documentation/devicetree/bindings/csky/pmu.txt | 38 +++ arch/csky/kernel/perf_event.c | 427 +++++++++++++++++++++++-- 2 files changed, 444 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/csky/pmu.txt -- 2.7.4