Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2440872ybt; Sun, 28 Jun 2020 20:21:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6Uo2SkYCuaG1vI1/y6oH0aJkKYmzyEy4tejwzX9fV7oIqjrsgUR8UP/W/OKR5BSPF/5LV X-Received: by 2002:a05:6402:a58:: with SMTP id bt24mr15797332edb.333.1593400863026; Sun, 28 Jun 2020 20:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593400863; cv=none; d=google.com; s=arc-20160816; b=xKd4HagL5P9hlX2cPGg65/Oi08tDgFbdOBwIS+LSgObKSHkEB6sEUgLBVdG2yMoXK9 MzWezn0ExsP06SIihfJW7DuHidOM9avvpcIKj9+v4bI78yY1IgdLCbusYCdLwgHfy5RJ yfya4WgFZcqqrSIucDH9KWP/Op33v3vupSL4VJyZhzUP+zNtGbA3fY/L1CqA4RZbN51L Tcm81IGgziD2hItJjuzsAPwc7MSH+FUS6wwr0A0Z7CKoLLmx5Q7JLbelQdOxixaC1tcb L2ExRc64uFrn30KH+3SpQuvmguT2v+giqMIl12nrRnGYgLuDYOPWzYGrc8emWWrCuWHo E7tQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=N7ALW83XlMpZ1UNtCe3339z3xtZN1TwIo7hbmM2+bF0=; b=Ns5OtFz4Xzl+tq1WrdD2PzJRtlLeRywB+dvZCJ3s4uNfwAvQUgZgP3ODiL8+/Enpw0 TjB3jkRWJ/VZ4iMT7FKN4quTBz5TYZKZF4q1q0K2SEnKgAveh8tCwPvXVt1lXtq9piDW cD6++rlb7BIJL5kXbPI2yM0oQQH3YeKH5DRWvAQ099oi5OKMikZXAslNmfJV/uyFY+xn PcJXX3ZIyJaoOuDuoOZGp8XNPGfTNWdR/kq8iQCGTYXEZJeKYknVUKQ+S4ibu5tvsegy rAwmYXuuBwyLcGH/TpbItqj8+2nlCa3dkO6bu3sejf3cwjoITprCI/CDjP2cfR88Smui bI+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=CtUW1G7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si1664554edx.509.2020.06.28.20.20.39; Sun, 28 Jun 2020 20:21:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=CtUW1G7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726110AbgF2DT1 (ORCPT + 99 others); Sun, 28 Jun 2020 23:19:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbgF2DTY (ORCPT ); Sun, 28 Jun 2020 23:19:24 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07DA7C03E979 for ; Sun, 28 Jun 2020 20:19:24 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id c1so138991pja.5 for ; Sun, 28 Jun 2020 20:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=N7ALW83XlMpZ1UNtCe3339z3xtZN1TwIo7hbmM2+bF0=; b=CtUW1G7rX1aMx2QF59g+J78Z94tMoXWIIVhLD2JEBHaXi7uvpEv8fC2AsCqzJZTxRC JBEfUwTsw5guLXx5y3oAiRFLzMkQM63qumKW1s/Q8XSLd4ghrTWGvoy5HtxDIIiTCIem tJ/HQ9UCOCFcjof+pojb95RYUi8143OBVYNLZYzzU8yX1BpAir30Rxi0tJsHVjXcqig+ zjBsx5ghHMkbDPex+Z59vhpzguaVWEt98LrTeLGL15jHpPAQOkcIRfYoXdjimV0iz0ax v7XTQfFQc0XwSBhrxfhVAZRB5dTmWpg0fxg38DTbmxeMaNNX0YrylLRKC6RO/su+v0Ws k0lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=N7ALW83XlMpZ1UNtCe3339z3xtZN1TwIo7hbmM2+bF0=; b=VLyFHib3mGOoixKPHzx4SalkiLoptiSpZa1IglNPKKeEOYdbEmF95s6AYqkmSagjur EpEPGnq+Mayeny+Ivn4kUbV6jqFqgDCJBmXWnGWMkIyOmLyQtYnx/6B8p0XqqhG4M+AN EKyPCZytuFJaiVPYW+Uo0/V56+iz/lbxyLYbxPolpDSjcEJIrtVPTnRq2VD8yJdOcf0W JyRDeiG5N5sAM2EJsjRt0+9SFOpfeOuE2yROXY0umyrKqH5nSnUJxUKFM5Sw5lX5/t4M 18vcv7YONEVnQzupNqyEzDW2nu+KKYF4PTmmnsinoWVy3Onkd7cNhdUFWGEt4zgtlLtJ Lzxg== X-Gm-Message-State: AOAM531wZe9eCRZm38vySjn0DK9gvFrM3w+veEWeWwEYXwZHwuXDXL8W c1jRfkzryWnY7yFrXBjOxNcaV9k2JTkLZw== X-Received: by 2002:a17:902:b496:: with SMTP id y22mr11901540plr.224.1593400763621; Sun, 28 Jun 2020 20:19:23 -0700 (PDT) Received: from hsinchu02.internal.sifive.com (114-34-229-221.HINET-IP.hinet.net. [114.34.229.221]) by smtp.gmail.com with ESMTPSA id j70sm12876254pfd.208.2020.06.28.20.19.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2020 20:19:23 -0700 (PDT) From: Zong Li To: palmer@dabbelt.com, paul.walmsley@sifive.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Zong Li Subject: [RFC PATCH 2/6] riscv: dts: sifive: Add DT support for PMU Date: Mon, 29 Jun 2020 11:19:11 +0800 Message-Id: X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add performance monitor unit DT node in SiFive Fu540 soc-specific DT file. This pmu node passes the dtbs_check verification. Signed-off-by: Zong Li --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi index 7db861053483..824351fe2a57 100644 --- a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi +++ b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi @@ -283,4 +283,17 @@ gpio: gpio@10060000 { status = "disabled"; }; }; + pmu { + compatible = "riscv,pmu"; + riscv,width-base-cntr = <64>; + riscv,width-event-cntr = <40>; + riscv,n-event-cntr = <2>; + riscv,hw-event-map = <0x0 0x0 + 0x1 0x1 + 0x3 0x0202 + 0x4 0x4000 + 0x5 0x2001>; + riscv,hw-cache-event-map = <0x010201 0x0102 + 0x010204 0x0802>; + }; }; -- 2.27.0