Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp148458lqg; Fri, 1 Mar 2024 00:27:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXXC/olaBhw2VAQ8YWPmFcX/RDQzYMB8i6n9AphW9XZuaqJvdFm6inxNVfJ9ZdHFXcjXfwp29x0D+CXvQRSmoGUMgaKcLUbVGVNw6sDKQ== X-Google-Smtp-Source: AGHT+IFBfXgEjKQfgN+ZjjN2f7Vtz18SGrReO6lRgPyQVuCxkzvXWSm8C62c2woYL3ELvBUFLYQ8 X-Received: by 2002:a05:620a:1648:b0:787:9e26:f6f with SMTP id c8-20020a05620a164800b007879e260f6fmr1004265qko.77.1709281675760; Fri, 01 Mar 2024 00:27:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709281675; cv=pass; d=google.com; s=arc-20160816; b=voE58T9p36mldlcdK+BgYcqFkL2IB2WJTBPPu8Qyy0Wp/5iimVJHmI5gZqwb8aFG+t 2jBdyiDgQcOPyI5/CrYSNyNL7Gjj2j2JCeiwqdcRNxdFRXBc9dd40GjYSKVPpPts5+uk podlX54LbQAZG/BCdfofgB+g8r1v/ygbaW0ZErJogSpC95t/YgFKoYWuylhXz7E34k9m X8ZYA5JNOdJa+xYCAqCisTJ+moiRhNwLXQxntHSWYfJF0QqqZcylVRL9UXdnMF4OXlR2 IfL+ammqUXn3wZUrV2EJz+ufMTySs7toDnngy373spW2TGKrUeYj4oTO3w4gwUySHgtP QiCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=u+1gYR9fNMcL6Yz70ujlHI/EnqcOVjeumCs1fZJGDkY=; fh=G1VABeKJJBK/RGK+Fkt1alhXB9c+t1tkaWf/JAic/1A=; b=AgO+M8kBek0uuid6zfvqdnpqAYdhrS8WiEOtxtc2ZFCTG0AxOjqgD7DYisj6/JEkeR XsJbXmlovJbYW9lFGLMIoOe8VyyiBseECuaJzMyvhXnjbB8OF1PVX3FgZnPTXrnMfEg4 NO0F5sBI0F5xuLA+K3pu/qk0pGrWapUNUDC6MdGRiey+nbA/qFFgewS7V27drMIVmrRp TKn5I2n6Aljb6MblUOlo/jk+RTqedIyPAtElJacYrAe5QL9zZXITrIERlJ+EJIab4TrE CtAeLCUv8InRnbjeyClnbJ01KOwder+wreMW+V2gOp0lOyYLbEBVeaG7YP2lFttDnjqV 2NZw==; 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=M81FT9RJ; 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-88077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88077-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id wl11-20020a05620a57cb00b00785ab75cfd1si3123767qkn.449.2024.03.01.00.27.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 00:27:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=M81FT9RJ; 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-88077-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88077-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 7BEE91C214A4 for ; Fri, 1 Mar 2024 08:27:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00F1F69DE4; Fri, 1 Mar 2024 08:27:46 +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="M81FT9RJ" Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (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 846C369D05 for ; Fri, 1 Mar 2024 08:27:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709281665; cv=none; b=GxBVI60ibzp8o0fl6/DAszYzx1fm59n5+FHrMImdHjli9i5fHQL8c7n6vGqCuIg1lzlLX/V+MzQYKeeralYfvbdVsdjACp+krOzEbeW0aIcUEc0fAbg0kVqp1bdxM3mAaQHF0RPysUx98rpFLckVzT9uIceYwEih2cIQX/141tM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709281665; c=relaxed/simple; bh=XqfNJZAlUlGhU0tMLlsUHrVl8hhs+fFQE6upJ67bxBM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bMkyyYyWy4aggDxel7KonTR6J+Eso8TER3TaJEkIsjOO5S4XxTKM/1zATJ2ljCddDVO4ZNtb/B2jFNT83bskKnlTIcNG9JtAZL7nnNatww9Hfe57848sbCitmSnsOg1rbp+Xv8U9hsdI2yUYmgGdq629blHq2sTJMOB8nvMRT5w= 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=M81FT9RJ; arc=none smtp.client-ip=209.85.167.176 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-oi1-f176.google.com with SMTP id 5614622812f47-3bc21303a35so577133b6e.0 for ; Fri, 01 Mar 2024 00:27:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1709281661; x=1709886461; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=u+1gYR9fNMcL6Yz70ujlHI/EnqcOVjeumCs1fZJGDkY=; b=M81FT9RJhuS9Xgc+mQidbYySp/9ztKdkjneZ+/Fya+5wAZ2jd4T5TT7PxYjUJNrVtQ 7nJ/ydMd8Lekbv9o+1sTbDzdvUa8jceAfl9NfegRUmgj0VsFOUQqjQXXsUB52qO35QwW ibxtKFAZHEe1WFrNVSAjnlYdCILBObuCHZLZ1KW03DEUl0QyLficwx7qfOz4rBYgUn17 dmNlOlW5+E+pGHMIBw1ZeX7VGsrlepDADzU0ymBY5wyb18VL3tiebKSN8LENyRDfv3Us xyM5DOCAMYwDultm2kbe4gnDu6tbxFmbn4W6aYjHEvqBtcuOwoXG5ejfvuhmh9IXBY4s f8FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709281661; x=1709886461; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=u+1gYR9fNMcL6Yz70ujlHI/EnqcOVjeumCs1fZJGDkY=; b=e8wLHizqqmWgk6MoTKZvjb8w/Qxrni9nD8sM8QzRs6WU95n5XumjTEF53POjTktIW0 1nEJPy8vTB2fC0x3XvjfYlcf7/QEEK/b90loLzTI57uvRXr6UsVPxBgywuaDRBkSyRgJ RG3Z7oIVh4B7f6ZQ7ey1pqAFeZRSkdEXM6WN5eojrTGg9erNLynfYn/6e/546AVpPveg AOUAmORmeTYdbSyYoJNXW69szFmee+GyomRmFfXo79qPcrss5fR0wrL34IebmP57cI9t UtLGnoUrrRUw/a3EprT3kimx+OGUTWFlRkYDOAbMqaw0tTSucjnafQb3Ows2CiaoccoQ Q/8A== X-Forwarded-Encrypted: i=1; AJvYcCVPe5pZvo6C9yZaeVUv9J+nhn4wuy2rC+bb72KlHp9OI5QRtmkUZtxNRZvMMwn/avPNryXTi6WOdIsb3+EB5kPD5uCxhpP5kt/xvgkI X-Gm-Message-State: AOJu0YyMiisUWsvHNq+V/33Gt01qwZTU1ZXI0XtkdfYh8CVkirQhZ29P 22lOS5mKiO2vPsdZ32BNcq+CC5hyDQlGHoh5e/p5deGpMFTg5o1fnTUCrsxYuDs= X-Received: by 2002:a05:6808:211a:b0:3c1:aa85:7ab4 with SMTP id r26-20020a056808211a00b003c1aa857ab4mr1284563oiw.3.1709281661587; Fri, 01 Mar 2024 00:27:41 -0800 (PST) Received: from ?IPV6:2a01:e0a:999:a3a0:1070:febd:b4af:e79a? ([2a01:e0a:999:a3a0:1070:febd:b4af:e79a]) by smtp.gmail.com with ESMTPSA id r7-20020aa78b87000000b006e13e202914sm2449292pfd.56.2024.03.01.00.27.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Mar 2024 00:27:40 -0800 (PST) Message-ID: <8e3003f0-ec27-47d4-9b1f-89de2afbb8b8@rivosinc.com> Date: Fri, 1 Mar 2024 09:27:30 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 02/15] RISC-V: Add FIRMWARE_READ_HI definition Content-Language: en-US To: Atish Patra , linux-kernel@vger.kernel.org Cc: Mark Rutland , linux-kselftest@vger.kernel.org, Albert Ou , Alexandre Ghiti , kvm@vger.kernel.org, Will Deacon , Anup Patel , Paul Walmsley , Conor Dooley , Paolo Bonzini , Guo Ren , kvm-riscv@lists.infradead.org, Atish Patra , Palmer Dabbelt , linux-riscv@lists.infradead.org, Shuah Khan , Andrew Jones References: <20240229010130.1380926-1-atishp@rivosinc.com> <20240229010130.1380926-3-atishp@rivosinc.com> From: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= In-Reply-To: <20240229010130.1380926-3-atishp@rivosinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 29/02/2024 02:01, 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. > > 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 { Reviewed-by: Clément Léger Thanks, Clément