Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp187667lqe; Thu, 4 Apr 2024 03:58:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXXYj53etJNOadW6HZgy8po6kvsvAdQH30sTljlq0OpzbJpi7nzMcI0ylhxOGRrb9+NzSznRcBbBGIwMpNM19SMigAWlObgV/P6hTNtfA== X-Google-Smtp-Source: AGHT+IEDWlwBzdX030+gYI33TifJgfx8dX7C7KXtYmYOEBkDBPXqYTYptJ301nOB7ETf2e1E9eNl X-Received: by 2002:a05:6214:226f:b0:699:2293:92ba with SMTP id gs15-20020a056214226f00b00699229392bamr2232654qvb.61.1712228298108; Thu, 04 Apr 2024 03:58:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712228298; cv=pass; d=google.com; s=arc-20160816; b=ikwNj35ZH7qThKi0to6M+ZFxFyiGiOUzJAYcnWmBIWiSkfRegATvErfMX42nmdotXe IquUQdpJi0UHpjbnavbeWkKeKMZBZnYjKfWVLPW0063tvrpJxsVkotr0K/vZS6XiD66u XI2yzxW3kg3AZzVXMdLeyGQ0KSHd1CfZN0xvMQFTmJMFvmV7n2bnnLbizHXUsFaAKx17 zamUc5RUNaR25kWR7H2FNxN22Jt7a95Q3UYDZyewMgHPcpPV+bIPMqYfSC6YNxe3YF+k GIwBXHZ2TXBJYLLTr3u9vmJJq3kEu+ndtWz79KdLU4kYbuANnchN/K8es/RU1sAeowQO thgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NfiVdFmLV4FF6ye93fatZUexM6Nb9SSia8q2nnOXyFw=; fh=q4G1CkHo+2Oq1ZAn9PGAqA9MYbnmlt1G3gly5zl1yeg=; b=BY00S7YTTL+7waOV6fzEhmj+QD5NSG83wfbhdYDNSitqBC/4tq6+6v+0P1O3enXQcr GzWFsOE02rZ8hAWufIkK1GeJKZgbkDdqesD1oEbfmw9NMWlutCkJZQthk6vYiHHnwNfE Ymwfy5dSYLMoWYl2fQ0Lmbsw7wKpFi8W8JPdEye68m9BB8V4LOKi0d+WZyB+lq1QEUKs pfjH4JjajLkVAZNGeiXeioYdtyUSK+krM731DMTjP+wO8rAymqQIBMh6WO9I9Q1jqmoT WMPMtvPn2t9BdPsAb7tlk7aAzcThY2hd0hMESaK5beU+aJEVilYHga1I9rOtgVCYjSN8 eMoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=EgFKUwWD; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-131269-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131269-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 eh19-20020a056214187300b0069920eaa9e1si4697396qvb.434.2024.04.04.03.58.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 03:58:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131269-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=@ventanamicro.com header.s=google header.b=EgFKUwWD; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-131269-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131269-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 C45671C26202 for ; Thu, 4 Apr 2024 10:57:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2796381AB5; Thu, 4 Apr 2024 10:57:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="EgFKUwWD" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 8CEFF7FBC6 for ; Thu, 4 Apr 2024 10:57:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712228259; cv=none; b=jCOuCooiACcCTREfDbtJZ59693nwPbVC54mkfMZjttUlPQlOOoR6RQY/A7sUG0HCuKx5j0ZRh3cvh0El8fN0abAoBXI1UuIit5CUjNDAz6a3bmRUJGoItG5GGyWyR/ruOXpz8RQjl0MOHjRByqfHJvl7wwgec7j+vmds+58ovy4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712228259; c=relaxed/simple; bh=ABMMBOx08NYLaWVA70cAng/zCf9URmS/qE7QPN7wSqc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eNBb6XcctNxExz33Ru3EMvb7JfFBSuM4TwiGyWutoUer8CkmYoyEFRUtJj4WdDJik5bTWVUGXtDP8pwslfna8zldYXegpedvObZpS8YM6qrzotVx/4zMDbsxsE+m8mTX3Z081CJUHUxd3h4e+p3Vi3C1/jKPg2NrUEsuJR68TDE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=EgFKUwWD; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4162b7f18b6so1960975e9.3 for ; Thu, 04 Apr 2024 03:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1712228256; x=1712833056; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=NfiVdFmLV4FF6ye93fatZUexM6Nb9SSia8q2nnOXyFw=; b=EgFKUwWDPVNDePk/KXf2czFbxvz3kBg4zZ7zoKDoZVVN5AvanvPgdUHT32+tk/YJAO r7r9qy7Phbk17MM0W5paRwknCcj9U4TJmKvGBQ2L1yJBYrKAHyTaLcDwdmYEwamUhPqg zrBhGcQayyfh98mfPyAwwmChPyyLoQI0t+ULGAUHioLbMaeV5JZcTqd3QA179+pf8N/S YSCPi1eWcDF0lqhIL/RHBQUBP9rdAARzSBFPZHbeZJV+Jeo2cTxo0ba7YLEfDjygrYsz VCiX6KNPyZqQ67T5dy7FnAb3DlKIWY72GWKSnXircdOxslVpE7u5qp8E77AprsYt/w88 ni3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712228256; x=1712833056; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NfiVdFmLV4FF6ye93fatZUexM6Nb9SSia8q2nnOXyFw=; b=Li9mIdhA1dZv23ftXMqlX66+GDwysAHQW2VbiuB3LBlptcIpRkwbLiB8hSK/5sJVOu YxbM/XFnsJAREPWr1EMkgKUnWMHQaVa7+22RDH42ouy8a7r+rAwRDRqh7oEXuqgMqmP2 hukDEmJBc391bn+Hz2WkDh0sJfxkIDy/3fXf3aN3kdM65BI43SxW2JmLZGgrEo0HazVE MTVM55WwdiBv9p5wHro8BXpjpHeHszl5iHoKzX+8PAkak/dzCgr4k+/Q5I4My3zKqELU dbmnCaKxSX4iUxynk0+mE0+PVVI6ZASP+KTdRaoVrtbZGQERW8C+uFJYw0m1rQsMR/m6 p+eA== X-Gm-Message-State: AOJu0YxTH9rWnMPuLQ43ZLQ8SaqDDkJbR9RfL+tpDNIq+6disdVDHUDj MyGn/HeM2Emq/VTTNH6WBb7jPELxAwKEsccy04k1eEyH7acame2U6UJwf1yeIK0fM9KdKH/0Jsc w X-Received: by 2002:a5d:51cf:0:b0:343:9fec:eb35 with SMTP id n15-20020a5d51cf000000b003439feceb35mr1526223wrv.24.1712228256052; Thu, 04 Apr 2024 03:57:36 -0700 (PDT) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id bo15-20020a056000068f00b003434c6d9916sm11436771wrb.110.2024.04.04.03.57.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 03:57:35 -0700 (PDT) Date: Thu, 4 Apr 2024 12:57:34 +0200 From: Andrew Jones To: Atish Patra Cc: linux-kernel@vger.kernel.org, =?utf-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , Conor Dooley , Anup Patel , Ajay Kaher , Alexandre Ghiti , Alexey Makhalov , 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, VMware PV-Drivers Reviewers , Will Deacon , x86@kernel.org Subject: Re: [PATCH v5 02/22] RISC-V: Add FIRMWARE_READ_HI definition Message-ID: <20240404-6fc14e149cd82bb0ee8f088c@orel> References: <20240403080452.1007601-1-atishp@rivosinc.com> <20240403080452.1007601-3-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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240403080452.1007601-3-atishp@rivosinc.com> On Wed, Apr 03, 2024 at 01:04:31AM -0700, Atish Patra wrote: > 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: 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 > Reviewed-by: Andrew Jones