Received: by 10.192.165.156 with SMTP id m28csp480674imm; Tue, 17 Apr 2018 13:36:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/4YMNP1Xlfmw5yk7Oe+M6gwtRoYrtmRdXn1HK/rvNXmPnhrx+RnI+M3yrKIPD8oNQjdfqB X-Received: by 2002:a17:902:ac1:: with SMTP id 59-v6mr3417749plp.367.1523997415646; Tue, 17 Apr 2018 13:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523997415; cv=none; d=google.com; s=arc-20160816; b=b6cuz8WvW7m0Nyd2EyALg1WGZ/19eDdzcWYwQLO7jnk6Aw+S/iunse8NFJSCR09i+U FIk+VOwr8lLk4laMO0Hu9YyJEtIDAIQzUNRvOshoJXWAIkcpqdzXRRypdpBaBoAZMk8+ F+8g+aZkmlzfZZ8BEj665jRV1t0zh5VnI4ZU9aXxp71eW7bd7lyKwISI2XOYwjAqiIYm RG5U9+N3hkvgOGKfqdcn8vkeuExx3kYmjVosyAZrCPNu005Hrnq4cYy62sr8rqDDRIAA nnGaWaB+X6zB4pztWAbasQ/LHJx8IoX8YxVqAsvSo4Oaw1anFHFOl8J9KPOUapa68/z9 QZdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=bQ8mTzNsEjbdQAwiE/ZQPkZJ76/mrfHnqQZ2DnzkHW8=; b=i0OGYycm/Kq96PPli9qCxIeVe8faUz6sN/IRa/NuLxflvA666ejPrlJGSzyiHZiHrd trHlsySfgQHZcPGvwmcLXHjSfjXfsJN7DoSMnn9zbNN36XgnvSJtW7ujudWXDrP9PLhc yRP54idV1wsVzBUATDvZ1W8o5g5ePPtOwL06AALJpyzRwW49wGHS7wVyqClkR48meNqc aDnqeSXf8pHMMr3KyWAtE/x6YC0vPPRdNrcAWI6IvCtUCcaOHO2ZCgWi0trFuanfiH8N yJ3PElSuHr/JGlOgedG0WfxhyDNfVqJOHcBd2s3tQ35T8WV4hMRa+a4yMnyx80Ym0BdL Glcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Ot0NPo/w; 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 p12si1100472pgv.598.2018.04.17.13.36.40; Tue, 17 Apr 2018 13:36:55 -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=Ot0NPo/w; 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 S1752731AbeDQUfb (ORCPT + 99 others); Tue, 17 Apr 2018 16:35:31 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:43418 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752699AbeDQUf3 (ORCPT ); Tue, 17 Apr 2018 16:35:29 -0400 Received: by mail-wr0-f171.google.com with SMTP id u4so7607293wrg.10 for ; Tue, 17 Apr 2018 13:35:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bQ8mTzNsEjbdQAwiE/ZQPkZJ76/mrfHnqQZ2DnzkHW8=; b=Ot0NPo/w28NQJaAvgtevApcKh7fdhYEwheQMI7lSMffte38JQppSgJ9wisJTe8sEpI Y9uv+8HjRYrxqbeonem0DDyYlDj2oR1oDAcR0e6V4F6l7Dooeklfgd5/tRix4/FxzdgW +2nQRstyGxIKDTRwdJGp+45wb5xMH3IAgDVY7iyGrKvo7dxY4TvWxH8pq7x231lJMQfC pFekCFm4JcvjAuOk/vy9d0Jv7faPxvL74PtAYZYla/8MpU4zsMcMDY5IJ68cp+MCbqws 9DiGOessD4xv4L4eGj8LlGUN1gt78/CEG+hSQq7ExrEUgOsTLNMCdaQsychIJ6whOq1w mZOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bQ8mTzNsEjbdQAwiE/ZQPkZJ76/mrfHnqQZ2DnzkHW8=; b=mBb3YUFAUIQHm0JEXwSJugMlfYMCG7XZAMj6icq6Tj0BNZ1rPCO0osuKOUVjaUMCOF 1Q+UzRSSZPjB6JVsx9mVc5PLvDIvzND9RE8mY9XLum9qDC6N4ia6OZz/et0jmMwqRNnc JymhEFspXhCXRtfYhxnkBBaW40PoMvveynZvMIEfbJ7fCvu+kZbY1XKnGXLEiHsdo8BH w7cA5KgZ3Q0T+gl70dYHk/18txjC0oDXSC3wOJKqMEmM9uGRh73FKY5dFS0YtSstIIwQ H2ZFx4NNwRM+M5F212xXFBAeAmNecDyGTxWx0RBom/xE7o4zKrKK6xy8ABtqoOFpNndG rHKw== X-Gm-Message-State: ALQs6tDbteYEdGKaLDXKO+05p6T01l+kFdZxe9wWCWKKd+1dN4i89L9z fqF/JGSUkj+mKAKdAbRdect97cTreYzcj4GfJSLwRw== X-Received: by 10.28.220.193 with SMTP id t184mr2105419wmg.138.1523997328133; Tue, 17 Apr 2018 13:35:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.58.209 with HTTP; Tue, 17 Apr 2018 13:35:27 -0700 (PDT) In-Reply-To: <1523954340-8708-2-git-send-email-alankao@andestech.com> References: <1523954340-8708-1-git-send-email-alankao@andestech.com> <1523954340-8708-2-git-send-email-alankao@andestech.com> From: Alex Solomatnikov Date: Tue, 17 Apr 2018 13:35:27 -0700 Message-ID: Subject: Re: [PATCH v3 1/2] perf: riscv: preliminary RISC-V support To: Alan Kao Cc: Palmer Dabbelt , Albert Ou , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Jonathan Corbet , linux-riscv@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Hu , Greentime Hu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 17, 2018 at 1:38 AM, Alan Kao wrote: > +static inline void write_counter(int idx, u64 value) > +{ > + /* currently not supported */ > +} CSR writes can be emulated: https://github.com/riscv/riscv-pk/pull/98 Or at least write_counter() should have BUG() or WARN_ONCE() or something like that.