Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp164984lqb; Tue, 16 Apr 2024 11:46:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWLk3eDNKdQxL6TvzDBBEaol7J5QrMWAn5v7IkRzC3HakZQNo/mVubD3pQWTw+igWrTY98u2F3Ia71Fl1YCnmFrr/Y8LPTksgTaLSxT1g== X-Google-Smtp-Source: AGHT+IHRCDAgO7GMUBKKmQFYYJo8rMqUF0h1TYPpwyBWLfk+bNJaV1lsdv7fusdzUHhLRwJ/JI7O X-Received: by 2002:a05:6a00:a0e:b0:6eb:1ea:52ed with SMTP id p14-20020a056a000a0e00b006eb01ea52edmr14792945pfh.1.1713293159884; Tue, 16 Apr 2024 11:45:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713293159; cv=pass; d=google.com; s=arc-20160816; b=MMni0UCPy8S6fp7q1m1xPI06pBby/AYAz7LrkeitIP96ya1sp+8pzMztkS+YHXt2Zo Y0HwPSyDmLu98WDm/L3Fw9O6lGB6rcLtGqkR5vpy8o0O8iNBssTi5NL7B3RtcrkS+wPU nu9DR4dIsLc+1tv4CFMeas4lLQ004eN7HabI7TUwvTTjLUgVWN1orzPDA7KnzhlNECj/ Tfp0kzh0qiFWDmWE/2AggXFMTdPBPIYtnzZF748RoP+VjD5U4kjKhR5/6Fuh6UWMULiM 2oKNAMv37cWTyCYSzZ+qJQnpX8+brd5/mN1gbKHSrzs6LxO0GHBSDr3Ef/EKjhpFm5p7 v6QA== 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=qAR/8aLjInl9GjSyknR1k2cSb0dmGHbHRC6hC0XMesM=; b=GoyYGis5xaqop3XJvXBr+OZP37BaiePlKxjVF4ESeUi4hCf7mwt1tpB3sM5TZYwMwL 5fXpV9COYtXn66Nfqr5uFsBAEkKI7Ur8pXlx8F6Eiw6zUcUuHf3mJeNgGG+iML1v+HXG pEVrVmQ821rpFevweeOA7+/xegmxxtejlwiIcgHFemRu8pSjsXLSd40x3j3jnsC2u6bP uMGLTzire+B2aiO2t53SLsjqY1fNIk8mW2UBmmMabfRQMVT9SP+BB92yadzxiuUIP8lv 1VZjVE7ahZCLYR0YxHGDF0OyWuO87prw3Io6YC+3yaWNBmoqtci5mkHko2Hho3iIu5YM UkGg==; 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=utrstbRr; 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-147401-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147401-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i186-20020a639dc3000000b005e85aa0e44esi9799395pgd.434.2024.04.16.11.45.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 11:45:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147401-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=utrstbRr; 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-147401-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147401-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 97685B234A8 for ; Tue, 16 Apr 2024 18:45:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C76491384B1; Tue, 16 Apr 2024 18:44:47 +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="utrstbRr" Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (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 B83D9137920 for ; Tue, 16 Apr 2024 18:44:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713293087; cv=none; b=TmlXwUKG53TDDQkHHa8Ks4BpKv8fn3PdOZhj+MBgFGKysV3G81iK5vcUvNLXp4pNiMkMYGjdK7eDkUmC4Sg2vDeuSg73u0kD8h0wza4LmSfNQwkfj/i3m/wfrT11FFytDdinYpcXJxF0xcJqoFOjJZp+ZOQ4aIJuUeNaCuAydBA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713293087; c=relaxed/simple; bh=tjU5YEqQieqMxVoH/UAjG6llZvkwIlIrjBWxORyGdm4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=h3r1tNFFNTmw6vJgvwVrqPdL152xdlx9MxL3EcxmKbVQb8I1NLZiOa4By3239FuBxg1neEdSKBAvs6jsamhHMV8yqXok8KYqp0LltoNKfzaxmmCsHvhcfqGLwSVXAyibJ9LniGmO1512iNUJhM3AB6YB2zW3eAanJi1TCPhei7A= 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=utrstbRr; arc=none smtp.client-ip=209.85.216.41 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-pj1-f41.google.com with SMTP id 98e67ed59e1d1-2a87bd53dc3so2071931a91.2 for ; Tue, 16 Apr 2024 11:44:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1713293084; x=1713897884; 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=utrstbRrMjRRChhLFVweOitbaGiAHu9BN399M6mQ43R7/NSkrgveJU3xJXgO4vQaKn ndPp5i9j/h9Ku9haCS/419zxpUZFqIqcRiIcBjZg7WRWCXzltRd4lLhHoQUc0VE/fT5a T2jUqlApgJcLfwjD8/qAOsd4o56XGKpfTTDR+7aZJvnr9iKjgFqEhRbD2JNfmlQ7nYD7 iZvwLiIgVHOI/hB2hZovs7Xyq/0Fp5rToGFuXGSHtpqsDSxYWwVv+YnWurZkcjwhL2dr oeXrQQM7F5BMh0FpFnvpzHRM2C0boNpcV+P3C/QZFdiFgEdylg15M40xE/t0YwfhXNw8 o94Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713293084; x=1713897884; 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=p7/1egwV81yVUDAvdNEKCOWXgpUcgsnkhWUNPKvreD6T/0PKQjBbchNjR0n/0jSNkT LfPrgKAf0FEuq0pCs8LD11kUkt3CEziQ8MUkkAVjtUmgDlKTcAJBmptnVJvV5wic/+nC yBci9DUSdrGvHtNrx5faFk2rcb05ZuGOylhHgnaywcJfH2/gy9SN0G5Hrbsfta2oB+Gq AwjdQkZJA6CKUCXVhH3+014QDq15ICeYq6sxP+AIw5JwJPFP/W0QoaN6svYrc2B4cYhH rpXhCWyZf8P5eST8iZ7j8EnX4NPt5zNLwfbtbcTMBScC7OPQM6kpZEipJ9bfyhzytfI8 Scmg== X-Gm-Message-State: AOJu0YwZZhX3kQgNLH7whvgbfOMzIxVlOL10/e30kRY6SdiAK2cfhH9D LRjL5hxgHYu/9bv/J+1avoFAT2JQ5JpIplsJ9LkJtey3NBGzwnw4NQS3UKzNXDslRx40B66NUMk e X-Received: by 2002:a17:90a:b00d:b0:2a7:8794:bd9d with SMTP id x13-20020a17090ab00d00b002a78794bd9dmr7689700pjq.39.1713293084173; Tue, 16 Apr 2024 11:44:44 -0700 (PDT) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id o19-20020a17090aac1300b002a269828bb8sm8883645pjq.40.2024.04.16.11.44.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 11:44:43 -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 , 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 v7 02/24] RISC-V: Add FIRMWARE_READ_HI definition Date: Tue, 16 Apr 2024 11:43:59 -0700 Message-Id: <20240416184421.3693802-3-atishp@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240416184421.3693802-1-atishp@rivosinc.com> References: <20240416184421.3693802-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