Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5255735ybi; Tue, 4 Jun 2019 03:57:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyE6oQvakE98HOd4DAHvRJF10YDB3u5yP3Uwuu+9AmNumCD9hKdT9rkx8Y+AA8BWMGlw3w1 X-Received: by 2002:aa7:8b4d:: with SMTP id i13mr38347484pfd.233.1559645862421; Tue, 04 Jun 2019 03:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559645862; cv=none; d=google.com; s=arc-20160816; b=dkflueFbKn/m7fUR5A07sPqdB9jgDAbTDuRLdq1YxGGiO+6rFK3cVm1JG/itSn2XzG vxL8sGXWgwudtDlZHmH7XwZO1oCsQvcj3H9p3ceDqArtpaSn1S2zYOuAFcPrkoFbSGII sYTyaH2xQLmC2mbwcrDabXEp/MUKXcy6do0aPnsCIwS9OEQXczi6uTUrkQbsdxwYTKRe chse+zP9knNXWLqIQpFK1sNPPYrmwXzwSs3S7sFw/vVd+teCuTIGrs2QGBOa4hmQJUL2 HPKZndxa3Rsd6E0c1l1DF7s7YlC42D12c2cVpV9eA1Zc9aujSR0lx8Dp618lKN6A8V4D tsJg== 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=v8fC5k6PeEx8OH14E+MKyED9ftm7e0M4wAWE1jAjL6w=; b=PdNyXxaepVwVN5G0jAjoCACiFy+Ab3k3ZQ8Td4XTzl/BWHJFwIinmsb9eqbkRhIfpp FhsJKyT1nG82kWElQPf+P554ZMzO01RAHSHglZtljyQ6hyx2oXg+KVNVvZCx1UUcK5tL LXhR91HKj92tK/nKZjfNcNks69QscnmlDI4amIptIHg5wpVt1IKRZMsjN1/g+aRpsyUh C5fzNlwnSw0vY2WEHkrSK7NtY1t6zR8KObyvSS8tDQQHYDkJNaQqcMA+h/igtI7RNPwN fVMI8YHfXhVWY5X/sO4w7WLKI5ogLjAbX2R6T96efdnyrQxudvTCf597vRFIEfkK4kjf w0IQ== 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 s17si1232242pjp.26.2019.06.04.03.57.25; Tue, 04 Jun 2019 03:57:42 -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 S1727488AbfFDK4H (ORCPT + 99 others); Tue, 4 Jun 2019 06:56:07 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:43221 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727353AbfFDK4H (ORCPT ); Tue, 4 Jun 2019 06:56:07 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.0782919|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.102947-0.0128022-0.88425;FP=0|0|0|0|0|-1|-1|-1;HT=e01l07391;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=4;RT=4;SR=0;TI=SMTPD_---.EhJTrBQ_1559645764; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.EhJTrBQ_1559645764) by smtp.aliyun-inc.com(10.147.40.7); Tue, 04 Jun 2019 18:56:04 +0800 From: Mao Han To: linux-kernel@vger.kernel.org Cc: Mao Han , linux-csky@vger.kernel.org, Guo Ren Subject: [PATCH V5 0/6] csky: Add pmu hardware sampling support Date: Tue, 4 Jun 2019 18:54:43 +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. Cc: Guo Ren Changes since v4: - remove some function hook registration Changes since v3: - change reg-io-width to count-width - use macro sign_extend64 - update commit log 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 count-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 | 422 +++++++++++++++++++++++-- 2 files changed, 425 insertions(+), 35 deletions(-) create mode 100644 Documentation/devicetree/bindings/csky/pmu.txt -- 2.7.4