Received: by 10.213.65.68 with SMTP id h4csp3045944imn; Mon, 2 Apr 2018 20:17:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/y3LsbJ4uezpGa+n/g/QL+0elZsWWhtN3+SclhsOmRlFqjXu2OGqeVtcr6ZmfvbfG4ps2u X-Received: by 2002:a17:902:a70f:: with SMTP id w15-v6mr12406717plq.344.1522725430863; Mon, 02 Apr 2018 20:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522725430; cv=none; d=google.com; s=arc-20160816; b=vIHwRbOvawDi5Ip6EKGlx/T0y99tvEhGLzMlO5KIsrc807f1t07B9bXUm2a3ccBfXI zOZzeXhzL8bRQpUafobWxH6syb44PMtgyan2h0AgO84tEqddd/wCIQWojlbxr9oBNDKD c36W9PwDdmcn5V/HHZgBcpETKa77nEhBhlEzBbRHVvQo9poHjLTlL4W5cS+VoO9LFwVD KJ8dN8IicElhGdKBObQPLNju5ny6AK97inMu3h5GXmKA3IU7sk/DbVUJZiX7WzPkwCdi jMob4FzwJ62uFo51ucoEkRCveNtC1YmQQfQt1s2654I/9TkQoerLbASiEZgRiIOoTQXC SSDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature :arc-authentication-results; bh=Wlsb9qewiA9+iPoqgXtBn+ROgoMH2qrDNpixsrEQvbU=; b=Yvcxwx/u4unKfribnNuYy3imOHfB83Kt+uYRRNhaoaxd5zvLyLxOUOAKmsMv9E1jT8 DErlYzA6H/3L4fV/i/FuBi85VkMTiDlmAgXQBgbAb0Z71P1Ik2ZETgcMPsG48x58Z8Tr gqlDZwjYvtpYCJhRh0cFQPYVYgKpefQgtLhKR5/MSqUxcP9eTGSHKEngrCrAeI7ZfCZA YTEsf7/TO0u8A3RoEM47V90qe2XFDNztmDkcbYBZTOf9FTI7OJx2Db4hO1eJVJlOQQv7 FO2Szpy+sSW3MNk281HogNO7UQRlff/htHAMvMbM12y9Qly3eIkID4M8FmLYqhwgu0oh /vYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=NMkAv51N; 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 n34-v6si1795684pld.603.2018.04.02.20.16.55; Mon, 02 Apr 2018 20:17:10 -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=@sifive.com header.s=google header.b=NMkAv51N; 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 S1752453AbeDCDPr (ORCPT + 99 others); Mon, 2 Apr 2018 23:15:47 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:39123 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbeDCDPp (ORCPT ); Mon, 2 Apr 2018 23:15:45 -0400 Received: by mail-pl0-f66.google.com with SMTP id s24-v6so6978508plq.6 for ; Mon, 02 Apr 2018 20:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=Wlsb9qewiA9+iPoqgXtBn+ROgoMH2qrDNpixsrEQvbU=; b=NMkAv51NEAzCUAayTYegV/WXZaHhjV+2HSF/rOx0WqKBHGj0IEnF4W9dfsYLtKRwSN 2YtFpJEt+rAco8EzkEQmmbSrShsi9nrCUkP32tkiIROn2XMXZVaPUP9GxC8wV9nCejM9 MDVuSAA6lp7ZtAyWTBQStQRegCMnUB8mXoSGahpLsY10B3TOI/DeztO2mScH55tkl/dQ CZwxNca7CXpy/lWyOn0BoDeZK9bAGjFojvkCNMBlePG4MOh3t4cZCdOt3SysqFhq317R Lspmw+Eoo1fbKsbHUj53f1YNhy4lv2DRBw9NKTMcUhN+4aZfKDcm7Pa5EyV6S3UKl7bW b/eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=Wlsb9qewiA9+iPoqgXtBn+ROgoMH2qrDNpixsrEQvbU=; b=bLA37DrinlWl9+DaG/n9SBGO/DUo+mscjXuo4m+bTY4IN0S2DJy4dnptkTkA5UZj/0 tuy+TTXNauzU7GbOBomIFlf2C6RF2VXNMXpjILOV3EiltkUU1yKsoye06K9YN7Kb7vp4 i1nzE3cCfocex8J7EMZonp2yq3WZT5HrE8EgrDO8bnDdJIIL07ZSWtDhhJ6C3hcjH6Ns ueh80hGsARAzi2TC9CBYSsi3er9pPtZE6oMjX9CatbetUmlWJyA9ymVQHeFaNHSQtAnB lefucesSPfmsL/aowxP+FU53HdSHrO6kXHq6i74wkiY2uuSKfzSa+1+n9eGCfYJr1xGK noBQ== X-Gm-Message-State: AElRT7EXOZj2O25ki7Zn/KW4KjPiWFqSdsgUvh+j4Fp7N1fklk/1wBfp 0w9QmMxVdgJLpeqzYqxLChF0gQ== X-Received: by 2002:a17:902:604f:: with SMTP id a15-v6mr12531300plt.184.1522725344968; Mon, 02 Apr 2018 20:15:44 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id k70sm2548113pga.72.2018.04.02.20.15.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Apr 2018 20:15:44 -0700 (PDT) Date: Mon, 02 Apr 2018 20:15:44 -0700 (PDT) X-Google-Original-Date: Mon, 02 Apr 2018 20:09:20 PDT (-0700) Subject: Re: [PATCH 0/2] perf: riscv: Preliminary Perf Event Support on RISC-V In-Reply-To: <1522672284-29593-1-git-send-email-alankao@andestech.com> CC: albert@sifive.com, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, sols@sifive.com, corbet@lwn.net, linux-riscv@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, alankao@andestech.com From: Palmer Dabbelt To: alankao@andestech.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 02 Apr 2018 05:31:22 PDT (-0700), alankao@andestech.com wrote: > This implements the baseline PMU for RISC-V platforms. > > To ease future PMU portings, a guide is also written, containing > perf concepts, arch porting practices and some hints. > > Changes in v2: > - Fix the bug reported by Alex, which was caused by not sufficient > initialization. Check https://lkml.org/lkml/2018/3/31/251 for the > discussion. > > Alan Kao (2): > perf: riscv: preliminary RISC-V support > perf: riscv: Add Document for Future Porting Guide > > Documentation/riscv/pmu.txt | 249 +++++++++++++++++++ > arch/riscv/Kconfig | 12 + > arch/riscv/include/asm/perf_event.h | 76 +++++- > arch/riscv/kernel/Makefile | 1 + > arch/riscv/kernel/perf_event.c | 468 ++++++++++++++++++++++++++++++++++++ > 5 files changed, 802 insertions(+), 4 deletions(-) > create mode 100644 Documentation/riscv/pmu.txt > create mode 100644 arch/riscv/kernel/perf_event.c I'm having some trouble pulling this into my tree. I think you might have another patch floating around somewhere, as I don't have any arch/riscv/include/asm/perf_event.h right now. Do you mind rebasing this on top of linux-4.16 so I can look properly? Thanks!