Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp186234rbe; Wed, 28 Feb 2024 17:05:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWT2ZYuhjIYiXh5pO//Q2iYFc4KHuND7Tu9+5bAXv69o34xf6lLfI3UA/J72Chjewwfuj3uMmtkAOAP8Ck8DVdaCAZ/mdM+0ZxNsQ/8Og== X-Google-Smtp-Source: AGHT+IFVMRxlvv5jTHYMxn2WQVsZkNwuA78VboLrrZTJoe9MGH63mxz7j6xbdslWDB1ara6ISIVR X-Received: by 2002:ac8:5fca:0:b0:42e:b4a6:ad95 with SMTP id k10-20020ac85fca000000b0042eb4a6ad95mr698648qta.33.1709168751929; Wed, 28 Feb 2024 17:05:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709168751; cv=pass; d=google.com; s=arc-20160816; b=DIFPATFqxYH2a6B+MbkLMAXBYWCc5fRf+tFr8VK9cr0xejNcQBQ2bJeAj6Au7jLwJo 4YcaTDoV+Q4DOoqACVBv1UzB0XX8+0oPZTYMGLxXWP26hMr/uHGU7HWXvAPu7Zpv9PVD NPRBGyTQc0WqVbFxryzp3Em01tNO4O3Zw/PjykOsto0aasf0le3FwDbRFAb4ZJO5d+sX kjdcXItBZ3jqogBMXVV/cVzKlPdK8d2M48FBJkwjfQ98flsVhlABGyYDgSFbr3pH6vry 4Py01ZlTt3tNDsel4Jpgp9QHSulVlkq58O9EeEEuuPprx5K4YgI1A3+wfmJr/1SAQ3VT ko8A== ARC-Message-Signature: i=2; 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=GLy+8VlwwjDgbFB2RXfd5pFPLlTjZXh8WK6dInm8wBw=; fh=2UJ1ru1CfPmwTFXv+fS+OCzBZpHoTquuD5sZ29e5B6U=; b=Mp7P7DaWgXdnF+njIJv9LS+dJ9HCUdbVhB9VDSVfKTs1+5vNmUyHzjWXdb2chzaZ+e OD+BLyeGHvNzqdmXqRTsANcwWjkeDpM4BL4NmTIe1Sgyd/oHCwG+Hj4kTAWQMbiEAs6i Gu3uUDgXEhC6w/mowm+EBP8prdQkBPnT+FkpYGsuU79yvgNbIR7lu1wDzsPiv19wpBoA h91aJGOjxmPskM4rElqRboYYNXAru8ydZ6QApE+26oy+vR8VBkkC7yPnY9erJf1BmRa/ t8oQVnRYH1yx3vyC1zxz/vYECAsi/pKBcrPKDjtOxn3Bl234EzTpy/3TQfgG3EIZjKn2 mOJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=bgMFZF6y; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-85969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85969-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 q11-20020ac8450b000000b0042e8139c8afsi369721qtn.194.2024.02.28.17.05.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 17:05:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85969-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=bgMFZF6y; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-85969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85969-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 076951C23D28 for ; Thu, 29 Feb 2024 01:05:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 601004503F; Thu, 29 Feb 2024 01:01:49 +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="bgMFZF6y" Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 C9D224438A for ; Thu, 29 Feb 2024 01:01:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709168508; cv=none; b=IKNK/XyNpwK03BZF++5BdoLxs0T9WZ84jD5L4A5g1d5+PkyfkWRpYfKQxXe1OaE6kQXZJLgWWWpaFX7jbL1YunkWmqYJn/P/4LXNQPvx5+1OEM/2owvfUXqSMzbzWjYmvRwKhJa7Jj0qrSrsqaBF4+meePfNLlWg+8sytUAjyhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709168508; c=relaxed/simple; bh=hew4y+I2ZwxnUWJiiBDPEFX0UFTuwMtFtu+Jm5jVN7k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=s5YXU/2HQzd3vImksvvfIexQDPBpBEi5gw5TUhdaL1dWN01+AI+ycmFiQ30CQwWs9KOSJn5skl5JU9QAmAlCA4f0nUQlr8Exw1Sxu1Sbu+TbJzxyWiQ9UMq1di41zQ+LgO4FxwSOVXFJGe8HKXiymGJe/sUIkSTFbmgmMOSSQF0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=bgMFZF6y; arc=none smtp.client-ip=209.85.210.181 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-pf1-f181.google.com with SMTP id d2e1a72fcca58-6e4560664b5so259403b3a.1 for ; Wed, 28 Feb 2024 17:01:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1709168505; x=1709773305; 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=GLy+8VlwwjDgbFB2RXfd5pFPLlTjZXh8WK6dInm8wBw=; b=bgMFZF6yxUuK1LBakJg/M+If2xOwW2CZM5IqgXM6FFo0Wo44shRo1J78vOBKGVN5gp NiYiZRk90b0f75g/Ps/R4wCFNmlodDPbwESPQntaLcv/72U1qq5sCTZ0uaym+adJQaKM xTQJ6/LgSp8jvM7rEYvNUqqFFLOiNpT+nHTf2Jxq6ZQUM6oIvxTsBa8zNx5ZVxhy1Tsj u+/lPqFInfTg8FAKPDoCIRtsDt0wSHDt+5SC/4cLFS7TOAvwAfBNU278rgw+MjQVVP+/ jFuhFLNOTZmIXcwuwta/RtAUPGNlp51rivm0E4DmfYuhLealQ1r1vOSi4S1FK2I90eUu EVKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709168505; x=1709773305; 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=GLy+8VlwwjDgbFB2RXfd5pFPLlTjZXh8WK6dInm8wBw=; b=iNVV6Z+wUkwXa8NH4aUcdWJFoWLx9q77Nb716N3U+Va4ab7XTjpgOZZ5wUiIjPx863 a9m5KUgwiKgkJ7muEjTkpEEsewAVOKgoykhOaJEvz5LdsToptGS4UexwKv8WcZArTwq+ QLE36KfHvfsfdSGWBNGOMJ3+LMG4puf4yqyP+TMNQmkwoPMEHlHnLdHF/rMfIEp0BbIU cKTbNqJJBqcigokqsPCNU2mMatahVbFnfQ0Bwo9J5f5toyvAhG44yag+W7YnWdancNqD U5VyJC8JiEmxhOsFf0AWqqXqIDzCOuULqZnFVBURyed5XGI1Ex3p2qu0cdMYQHeK2ta9 9GHQ== X-Gm-Message-State: AOJu0Yz7bjidsIAbCRaYKpRI468N3LCbUzBBaDEwAXqsnI2P1FNLCrhX kxiMHY+bU5yhyqxMAtJXL05jg8JwIWfZXp8+BGMLtzNkdFqlptNQdiS4agvrgmsb5Rp7JaseZCL 2 X-Received: by 2002:a05:6a20:9e4b:b0:1a0:e819:877b with SMTP id mt11-20020a056a209e4b00b001a0e819877bmr1342746pzb.9.1709168505252; Wed, 28 Feb 2024 17:01:45 -0800 (PST) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id j14-20020a170902da8e00b001dc8d6a9d40sm78043plx.144.2024.02.28.17.01.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 17:01:44 -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 , Icenowy Zheng , kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Rutland , Palmer Dabbelt , Paolo Bonzini , Paul Walmsley , Shuah Khan , Will Deacon Subject: [PATCH v4 02/15] RISC-V: Add FIRMWARE_READ_HI definition Date: Wed, 28 Feb 2024 17:01:17 -0800 Message-Id: <20240229010130.1380926-3-atishp@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240229010130.1380926-1-atishp@rivosinc.com> References: <20240229010130.1380926-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 6e68f8dff76b..ef8311dafb91 100644 --- a/arch/riscv/include/asm/sbi.h +++ b/arch/riscv/include/asm/sbi.h @@ -131,6 +131,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