Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1294797rdd; Wed, 10 Jan 2024 15:15:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHd/Tj/dtDlPn3OglvbxBay1REuEtri15XcZiUT486vkR23fl0X3o259XTnyG6Bgtk+8Qcs X-Received: by 2002:a05:620a:46ab:b0:783:3f8e:b437 with SMTP id bq43-20020a05620a46ab00b007833f8eb437mr75326qkb.0.1704928534036; Wed, 10 Jan 2024 15:15:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704928534; cv=none; d=google.com; s=arc-20160816; b=OzPK5HHp8pNc4ljN6E9IeoqxLLNeRLEh4XmoIzFZ+6HU0y57tECpM42RMgvrH0Ezfj +vzcIIjvPFgOH/eWacyp6OLyYNFgjynI/ryrMKC97oD177XtEgci4FIF0wx/JOJP+eM/ 5tBYp3fUNy5/pyHKwFkeoQF4fi3kWdw3GnVNRU9pN7/AT2VSxTRzu3ME54cbiF7P5nXM /Lcy03KQ1cff/V31NKrkyJTZwknryN+5WiJ/nnN4VLIk1y5Nvh/3b07VjRdSarsZOILZ 4FvhIn+jEFIE5BHcqpJ3vc7ZVTtVY5qArVedwk99pHmxxro0eD05EgTI9oYKUnu4vg+x W46g== 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=GUONBiPXFlfMAlwlN34bAK0Q/sgEvcY22ARTS56U1VU=; b=EQ3EIGEp5U7mwSYb0BikQPK1JkWOrlSN1nAa3xM1KIPF3sVqEMnGeXBpxZH4eYBaiB hT4kHYFUjOgYvDsAdcV404CoxlU+S1IQdGqBGM/FF+ntzq5lcB5zHxUP6RFsKLjaWlAC M8UJ8k2evYoYt+OhG1nmg53rL8Qm7p1NWEzyJQxqREhOtSEv//xAtaiWsfHgv2G4QUm+ L0ZsINE9KSCvkoZE/hTVc4gj+EnYfTsZ0YR1vzA9kFfFmVocDyOmWyvbgtl0nqsEx9eS VM79XQqWw7Vk7lzQCinnfON8SOJE7+t/FtBmd/LQEaHjetzujzFLT1MAwi53o+T64K0+ 15Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=0F98St71; spf=pass (google.com: domain of linux-kernel+bounces-22878-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22878-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b6-20020a05620a126600b0077dcd9b09cesi4746735qkl.522.2024.01.10.15.15.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 15:15:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22878-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=0F98St71; spf=pass (google.com: domain of linux-kernel+bounces-22878-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22878-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C8F571C20E2A for ; Wed, 10 Jan 2024 23:15:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29D2351005; Wed, 10 Jan 2024 23:14:45 +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="0F98St71" Received: from mail-il1-f175.google.com (mail-il1-f175.google.com [209.85.166.175]) (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 078894F8BD for ; Wed, 10 Jan 2024 23:14:42 +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-il1-f175.google.com with SMTP id e9e14a558f8ab-3608bdb484fso11499145ab.1 for ; Wed, 10 Jan 2024 15:14:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1704928481; x=1705533281; 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=0F98St71ILMisMGT6EsMyuiC5F0vqPN8co9EpR+2OW/piJMMgnwqKDyTXQHYHIzK2C HswkcuSfpjy3Wj5Mgr7M0NoQpCETx2nT23lVUUpxPyc7KuzJlyxuNAcrasniF3F4SaSQ TOCJxYujAlZc5mFSnH0Wspziv4eLUAbNJo5SZylut+rVOBVyJ5OAobJ0F9po9XoNP4Cg JwKFqYoVGdFlSq/Py1mAGtVKgIqfBPx/enXVr9gXvS0CozeWsFk8a42FpCYBaOCR5YgY HZm1VOilzaD5i/v3hbCYs+C42qiryFfKI0yBgeuQy861Aju4fIY+V7Ye5/F1AyTIiIf6 yrWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704928481; x=1705533281; 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=dZr090ycuX2KSzGySiBwkWl1QO6tDvZYwhK9dUwHHjaSfrHKgGM/5Row1OjJh0FXn5 ZP+e9bZs9H6VF950o5Sn2+AIITB3G+RZBbPguYp813WBMAbMtqR0E1cs6V+hEzIYmzBe E79iHqU0Zh84SKFhnMCy9EX62/kiDUyQlnr8xfV8SH1xbJUJYHdBMoR0T3SyzlizcGWN SDv0i+o3DWu9zYFwF/a1X6v++WysubAxmAq5avLXwQ7C22V9aOsAHF1q2SqJuWX1mCdu ofJsrgVrJtj4ON7/xDKCybH5DEt7SkJ/OnAzxoUorYTuugd3VQj7Upfw2IqBDW2Fdxe4 DIbQ== X-Gm-Message-State: AOJu0YwZSSbM7kHZDVk2aYZqkgHvVoUuQq8GGTAPz0NAypsmypd2ZdSm dBfDQX2BgI6SQUJa9hPDrIOCdtk6rr/Vw9tCrQ2GJ3jqN80= X-Received: by 2002:a05:6e02:180b:b0:360:7947:f14f with SMTP id a11-20020a056e02180b00b003607947f14fmr650893ilv.17.1704928481341; Wed, 10 Jan 2024 15:14:41 -0800 (PST) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id co13-20020a0566383e0d00b0046e3b925818sm1185503jab.37.2024.01.10.15.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 15:14:41 -0800 (PST) From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Conor Dooley , Anup Patel , Alexandre Ghiti , Andrew Jones , Atish Patra , Guo Ren , Icenowy Zheng , kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Rutland , Palmer Dabbelt , Paul Walmsley , Will Deacon , Vladimir Isaev Subject: [v3 02/10] RISC-V: Add FIRMWARE_READ_HI definition Date: Wed, 10 Jan 2024 15:13:51 -0800 Message-Id: <20240110231359.1239367-3-atishp@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240110231359.1239367-1-atishp@rivosinc.com> References: <20240110231359.1239367-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