Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4865510ybi; Mon, 3 Jun 2019 19:26:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCpBWLXRxOs2O5l5hXMBKVIqo3wSawaSDJ8jbGtj4IgQNn5GqWGQCUBiIt4RhYx9nVNQnL X-Received: by 2002:a17:902:108a:: with SMTP id c10mr33306855pla.48.1559615199228; Mon, 03 Jun 2019 19:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559615199; cv=none; d=google.com; s=arc-20160816; b=QToT+C9aC7PVT9HU3iA5PsaHJREZiSh8BalHJPysFpYKZ5fP1RYoJmJzdQFkqufH2J guHu+81ufWsCXfEm8xfxJRzVkLaBwF7dfKZDHtFZoJo5bRpUK1WNj3wpM8iB8uAqd2xM guLUPwjXnLG/QLgd9acKZVo8b/Z4TToeST2L0SBnyg9qHkqzggUEQeFiLCw6HJPtP0yq Fm4d4Gvm2BwrY2dW7n6lcNnODnNQ91Cuh4VMaTGBMaa9A/pYzdJ0CzfC+4+ubBH0Kq8r /5RzBIRIB0+pIGQ8UXFbgSwGmK2Gh0sW8g9xRLQ7ZK3sJA+SLoh6ttsWj3B4LlNawJBV w0Bg== 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=ltdreiddpb3tEqL0JK6JNFm8I/IIHEx5b6uyspJIewM=; b=Uh9zUQDQJGhtoD/td6di7GO+3OKQgAn2kxFBrsQJM9qiq79yFbyIr0zbVyQ0GYupje 2s2vkK88UwWNlbBrs1GEIdRefQKvu2tOfyozs1LtH9sAaYB7sqtEWwjTV2gC9yFW0RL0 7LSixudQA3/km5744nUMHAekCx/fpWUED7NYDaIUuYyyW0tE8PyTxU0ok+fKOWFL+TFJ PPEYYJEOuXqTbecFDktgdoU+jEaoZWcJfEFYEn+ciQ9u4EXFVfcoO8Wji9U5hblehjlE ECEri9CitMH2vDUiM7XDAObM+9C5xmbK0HUFHcsR5cpO0nmc50FmfsSfQ5Orey2Q3iYu NDKQ== 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 t188si20475421pgc.228.2019.06.03.19.26.21; Mon, 03 Jun 2019 19:26:39 -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 S1726541AbfFDCZI (ORCPT + 99 others); Mon, 3 Jun 2019 22:25:08 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:35009 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726245AbfFDCZI (ORCPT ); Mon, 3 Jun 2019 22:25:08 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07855518|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.0986686-0.0125057-0.888826;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03278;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=4;RT=4;SR=0;TI=SMTPD_---.Eh6dKEu_1559615105; Received: from localhost(mailfrom:han_mao@c-sky.com fp:SMTPD_---.Eh6dKEu_1559615105) by smtp.aliyun-inc.com(10.147.42.197); Tue, 04 Jun 2019 10:25:05 +0800 From: Mao Han To: linux-kernel@vger.kernel.org Cc: Mao Han , linux-csky@vger.kernel.org, Guo Ren Subject: [PATCH V4 0/6] csky: Add pmu hardware sampling support Date: Tue, 4 Jun 2019 10:23:54 +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 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 | 424 +++++++++++++++++++++++-- 2 files changed, 441 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/csky/pmu.txt -- 2.7.4