Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp962499lqt; Fri, 19 Apr 2024 16:48:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+APUsho2wiDNeGgZHNyFTj9u3BHswK6TnRUImyZwr5uDneeiLjj5jO7Mp0cdPFmp4rCV6TAHhxAhkq+ulH5+7aiFdrSWxCwhIDBjWtw== X-Google-Smtp-Source: AGHT+IFBWbiFbMoK0FNjxAiZ52xmdQ11zH2gZRRS8zO+TGc5+0DTeaXd50YDc9EQddGQs0Vf+rDa X-Received: by 2002:a17:903:2284:b0:1e2:a5b3:e5 with SMTP id b4-20020a170903228400b001e2a5b300e5mr4993931plh.32.1713570508926; Fri, 19 Apr 2024 16:48:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713570508; cv=pass; d=google.com; s=arc-20160816; b=T+dsslSb695CCtYTvDB+/ZdW6nC7ZIYNZBTujiHfyyd6BhHx2WdEhgkef/riqz64UK H62NzPyCKXsCh0yuJTRwFZREfsf7Ygr1nyKIX/9uRIU95OqYSwtfHWHnrlni1eW9QyRU RMVH9ISrYzc0MQRkp7phygkSHbale6ZhKKwwBQDtObwSKOVye/k3SevHzijKHJ17Jthn pFfy+7UZqr9ym5adzNOVOdJOyfQiu0Uys7RwzOXh21wBDvH4tE5A1SPDTnKUojO0pwXU CbO0dFGM7QKbPZp2LoM0ICjh7U6+C1bDnsGqzBH+CLXHSqlwkQZjVQO8DGr2gsYMiU1U 7gOA== 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=2nwzSC0mjOXawHhzlfTnID2LKW7HdSbdpZLlPlBet3o=; fh=y6gqgWJeJP6HKhbti0D9Jvc7jsedKKpay5+jojvtVAg=; b=OXij5Nkw3XR0VxcBL0PV7+fqzV6Gn9G4SDtoMTw4kMtiAFlF0O3CFRit/86I3Y52rY KTYtq+PzLjy1Fq0zCQI6WSSP0FgTHha15tyUxGfjz6zKLeg2R/sj9FVwCs73T29gs5kM Bm+sCdLDTs1QKVMnSsFOpH0gtbt0lww8yvyE9lGSMZZ5cB4ciqLArmIFjH8OxKaxHqa7 /J//cwccgiWrVOvoA134Q8iPTQYBOAOSefc0c9CWNK2+q0PLo005/7IUTz3+834pURMn hN6Awwj0Lann73K4vDW3L5F18ZFs2hJu1kp+oUHoTkT6SBwN5fg+Rgv2t7DKLhNVrclp bBzA==; 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=3Zr3c5i7; 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-152025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152025-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 o5-20020a170903210500b001e0a08bbe43si3816698ple.519.2024.04.19.16.48.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 16:48:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152025-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=3Zr3c5i7; 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-152025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152025-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 938F1281A8B for ; Fri, 19 Apr 2024 23:48:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F5B71420B6; Fri, 19 Apr 2024 23:47:51 +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="3Zr3c5i7" Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 4920513E050 for ; Fri, 19 Apr 2024 23:47:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713570470; cv=none; b=IRKu2rARTLnidGo/igOXZz9lrLE19ILrOBR7It7h+ENkZPRm/GH8DsGTJwLXegVY0tdZhafqxD2A3kHMpvH9fPGi+YjK0X7NhJGvTpwX3fmILHGKYSFw3XWnjPvlmylYK7/bhMtUJ5Tjww0Nesj9FkU9EN03dSeIqwpA69cxd0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713570470; c=relaxed/simple; bh=tjU5YEqQieqMxVoH/UAjG6llZvkwIlIrjBWxORyGdm4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=isK/ZaiepE2Cw+lAvtJ8z2jR6USzqjHDGYYA9MjGSxy63L0DvxCShrBaaZYKQhT9K0HtCezBpZ1u3aRL7jbN5DBpZAU6hL+0g2ASCmRB0qkktpKRd2mPwZ7e/l5XVQ0Xnz2jIZeuLLvMfIlCLzQGDYuiPcH98Djo1z8BYgJMaNE= 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=3Zr3c5i7; arc=none smtp.client-ip=209.85.214.174 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-pl1-f174.google.com with SMTP id d9443c01a7336-1e3e84a302eso19965795ad.0 for ; Fri, 19 Apr 2024 16:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1713570468; x=1714175268; 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=2nwzSC0mjOXawHhzlfTnID2LKW7HdSbdpZLlPlBet3o=; b=3Zr3c5i7nVZN0Ti7su9Ph+Li+ANuSySAVwmBUEFdEoWoFWbMtays2OkGU7a5a8/jqE gImPDbjMJolFBbxqCFzH23DPlugsv1V3kKGGNBU1/Zqxl+jtRvkz5b7FGbD8YGGC2XUH lI9Tu93BLPmNqGaOB07/YPWznkMlqPVK7OIA8Bw0Q1VnzLwde+X29DcGqQEJLQ3yeaUO F83SoqxjtzOx2Mufd/j5bpoIcP0brk3KGUdSGMBErgXvE3GOHbAxXq6YoSnQXK0PWFtJ try35npmFRunG/KyaMod+gcNxMRBUCVwwqTwO4CiR/XqGC84eBPZCk5SCLdQksrvBJuJ sGQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713570468; x=1714175268; 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=2nwzSC0mjOXawHhzlfTnID2LKW7HdSbdpZLlPlBet3o=; b=Txfx1ZwT964L8a6mtBnSzPuIwU2C9XZQjddvmNlqwiJphB/TUX3UIbJC8XMdtIgl+q 2uZuNgSGt0UKKt+4u98AVyJnA67HZpWlJSSQO/Ip+BoSg6Uy1FEaMuDt/B2vtI/zWnRe SzEXi76XPvLXyEl9aMvRSHeMld/aghs/vduQMbVb8ErT2auxt0s0RxVxXsKllvhHq4OT CKY3+6Pv7CC4CvYI7wayeOkaIIgZYExCwte2eCZOGy9AXdjz3JDZpAQxeDYyoSFR04oc w+YwjOBVlwwAV4kH4osCTD+ypGVafQpCtiPcQ+Sdy0JJjkvydFr4NrddsBlIiML9vvuo aRAg== X-Gm-Message-State: AOJu0YyWJd84Y71URize00pS8ZzHhMxVnIOqSp5XYbqE4GKzyfnQpJYh t1kf8IiUtSC/zpQQLAB2lKJGLV2ZPCxTA7m+yEizW3R6LWGo1pmvhRKvul8F1co2dCLn0ZVm5rN h X-Received: by 2002:a17:903:120f:b0:1e4:200e:9c2b with SMTP id l15-20020a170903120f00b001e4200e9c2bmr4072621plh.21.1713570468267; Fri, 19 Apr 2024 16:47:48 -0700 (PDT) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id w17-20020a170902d11100b001e42f215f33sm3924017plw.85.2024.04.19.16.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 16:47:47 -0700 (PDT) From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Andrew Jones , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Conor Dooley , Anup Patel , Ajay Kaher , Albert Ou , Alexandre Ghiti , samuel.holland@sifive.com, Juergen Gross , 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 , virtualization@lists.linux.dev, Will Deacon , x86@kernel.org Subject: [PATCH v8 02/24] RISC-V: Add FIRMWARE_READ_HI definition Date: Sat, 20 Apr 2024 08:17:18 -0700 Message-Id: <20240420151741.962500-3-atishp@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240420151741.962500-1-atishp@rivosinc.com> References: <20240420151741.962500-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-Type: text/plain; charset=UTF-8 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. Reviewed-by: Andrew Jones Reviewed-by: Clément Léger 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