Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4792676rdb; Fri, 29 Dec 2023 13:50:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqF3VwdRzlejFQ3c03gA0ziyaZFKoISYO9mY11RSTxHCAFHGhXb9loolAdV5of19XbMiV8 X-Received: by 2002:a17:90a:d302:b0:28c:bd83:cf85 with SMTP id p2-20020a17090ad30200b0028cbd83cf85mr166343pju.11.1703886651262; Fri, 29 Dec 2023 13:50:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703886651; cv=none; d=google.com; s=arc-20160816; b=BM1rKNCzqt2p6Rzybnnlox9vsN+NS6d3wkXG055Vw6FtoaWAdHO/0xSB0DR0H32XcN JCBK0+/M+NenStlBnfAvZ25eKDsApSAEXeRb6bAxp7aRKvjeLy4sJw/mq4kzQdW9cWBe 6WPAetV7+EgQnWMig+WKkNoDCCSAxwjOHvTeHkjAyQWnQYxoIratJOZSlKtZMPQrZZs8 4bym5QU71XlSIlbyxCWQB/ixjiHIOBsyBxwLlHrLGXHFJ20ZjQAsIiMANXitxiNOEpaJ Hqvu1cWGnD+iojpl4/XSJsWRq6uyozhEXzPzb/ZJenZJ1/bAK9itVKnlOVYyH28B7DpH EPNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=DpN1MW+95i3F5wasxziCwuSYEcNzMGQOQLUR8+9YpL0=; fh=qhaAmyzb9gibVuzCW6xibBVG7JzVIPMK6bpDbf4wst8=; b=dMY6X77lc0FYIdeg0WooOQXcVBpIMZyAOkRYdB0Hvj08I8ZoauyX5eJnxMMcdhcoMk 3hQNshxcL6Qalgjw8llTlTAAieJjr6PWwZEc+ZRm7PEVc2SB6dEIhorHZWoauIksseek UAKyXSUjH42EpOE0Ctg62DjNNRMa8Wmn3Y1UKahurNZBmMeg0PbD/pBpB3UjYMMXLGxn PrRF2X2sd3uR+86L6Wq9Iuo1VHitPVvuApQglKs4o2UJHCe5JOsM+tq1EJY3FSJKwLey ALOAOQm+J0BOcC0vYeOYmnZMcOFFhutZ3TxYxgG3XgyZbYeN65sU6iZOTKMgq6mCGrcp jUbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=mJ6ljrMV; spf=pass (google.com: domain of linux-kernel+bounces-13249-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13249-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id bh21-20020a17090b049500b0027cf3fd376bsi12469583pjb.28.2023.12.29.13.50.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:50:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13249-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=mJ6ljrMV; spf=pass (google.com: domain of linux-kernel+bounces-13249-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13249-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E484E281BE7 for ; Fri, 29 Dec 2023 21:50:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D7C21549B; Fri, 29 Dec 2023 21:50:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="mJ6ljrMV" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2102514A85 for ; Fri, 29 Dec 2023 21:50:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-ot1-f47.google.com with SMTP id 46e09a7af769-6dc3b219395so195249a34.0 for ; Fri, 29 Dec 2023 13:50:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1703886602; x=1704491402; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DpN1MW+95i3F5wasxziCwuSYEcNzMGQOQLUR8+9YpL0=; b=mJ6ljrMVda40JXAxwyYNXmMQg5teWjgAC/H6nnGGysjMi+WUrdU/0H4Nu9ja0XfNGZ 2E2XicSCKutq+2E3Mvl3LzmN1gK1yHQqq8hxpIV+q7MwoYrJm2bZauyw0pgGv77PGcSn NYzfieiyCeViOVFxBzlxWcyNVxLhx/CSn4jY7Aidn2+PhhKD6nGGBYBxwwBoEIfvsYb/ t7VTauAvMonfYgToyoF86mSqx1oSmqXrSP9qGHN+rISAoqR6Pro2z7SftU1slbfd774V uSaiELnO1sUMrc7Ubz5tG/cw1mF9q3qxEw1CZAzrKXZaWMgF/Q/AHUZxtdMsMse6bbz0 cD1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703886602; x=1704491402; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DpN1MW+95i3F5wasxziCwuSYEcNzMGQOQLUR8+9YpL0=; b=ZXzLXpZmRm3qMYQsBIUXjfaf+WLVMn0UiZgZrwkhdY4CPGZSEAeZl3EkCbU91sepav rPpmdCNqm58QOnpEroke7OdrK7UZgsu8aHlE93tJiTNzBQY9LtHwnrKDKnFpxsA9ILNP azBnK03weUAq/UaEilnVvcbwXjZE3Z9osiME5UwWrxLHTyauQuptTSRHXsRgEZSC72h0 KwD+yq+gqZwWw809AslC9xYVftJrUE5/lTAoSS/CVATYSmxWlejWkX79WBKMwRyP+CaQ bVNZyCrongRjELHC9j2HRqn6L8M951vgld2kNjxbwYtMzrJr/jh20r04k7lUJcrrCnYX XHvQ== X-Gm-Message-State: AOJu0Yys8TwJYbxWejNePovmb2sZxDzkgNfargwzB32/1VOtKNSJ5in5 Lq+WBJB4FbzVUebdxp1M0fxzviMBTU2FRDwQLhZDE9T26Cw= X-Received: by 2002:a9d:6f09:0:b0:6db:f8e8:758d with SMTP id n9-20020a9d6f09000000b006dbf8e8758dmr2480275otq.31.1703886602427; Fri, 29 Dec 2023 13:50:02 -0800 (PST) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id r126-20020a4a4e84000000b00594e32e4364sm1034751ooa.24.2023.12.29.13.50.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:50:02 -0800 (PST) From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Conor Dooley , Anup Patel , Albert Ou , Alexandre Ghiti , Andrew Jones , Atish Patra , Guo Ren , Heiko Stuebner , kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Rutland , Palmer Dabbelt , Paul Walmsley , Will Deacon Subject: [v2 02/10] RISC-V: Add FIRMWARE_READ_HI definition Date: Fri, 29 Dec 2023 13:49:42 -0800 Message-Id: <20231229214950.4061381-3-atishp@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231229214950.4061381-1-atishp@rivosinc.com> References: <20231229214950.4061381-1-atishp@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit SBI v2.0 added another function to SBI PMU extension to read the upper bits of a counter with width larger than XLEN. Add the definition for that function. Acked-by: Conor Dooley Reviewed-by: Anup Patel Signed-off-by: Atish Patra --- arch/riscv/include/asm/sbi.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h index b6f898c56940..914eacc6ba2e 100644 --- a/arch/riscv/include/asm/sbi.h +++ b/arch/riscv/include/asm/sbi.h @@ -122,6 +122,7 @@ enum sbi_ext_pmu_fid { SBI_EXT_PMU_COUNTER_START, SBI_EXT_PMU_COUNTER_STOP, SBI_EXT_PMU_COUNTER_FW_READ, + SBI_EXT_PMU_COUNTER_FW_READ_HI, }; union sbi_pmu_ctr_info { -- 2.34.1