Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5939737rdb; Thu, 14 Dec 2023 04:17:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnwiTPGVs6O+iLJcOBibC80CZ60VCgy2ZG2LubugbIzLoGynuTjHWEw5KZI+zJy6RTuiDl X-Received: by 2002:a05:6e02:3d07:b0:35f:80ec:1451 with SMTP id db7-20020a056e023d0700b0035f80ec1451mr676340ilb.51.1702556223565; Thu, 14 Dec 2023 04:17:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702556223; cv=none; d=google.com; s=arc-20160816; b=Hbm8EVp+J9ngBB1RzX5ASkmEotjUNvSMwJM5w0XOk7kRrqKMFCqroWPXdnrLWQDG5h 71suWIy1OOcLfVNF0r8qi/NNizi5Do5oZvCdHBnU4tBDKJ5MP/wdISaF8uDjLyJmZKN9 p8wftvUduCMFDWE90D/R8LZw6D1vdwcfQYYcbfBWX+x/ioptVM6H8SKBW9G72KvigGDc ec8sEpQ9gu14VeuEDubTvHPqmqqP7anMyt1D4rbqJEV79+Nv6F3Lwdia4KBEzAdY4ueG bPbXeS9XqMynEJgdobx0hWH0gBvtWu1P8wWcnLM7WS0YOPRLH/AVlPuemoNQ0Aqa7NHS ZfdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=2tiT7wfNqaw2vJLSE5DYIhR3c6v+dX+na4nc8HEVIgQ=; fh=oOBf863YCUz5nxlCZQoxyjaLXR9Zm0DTQlRqUgQrhSo=; b=FKc2n8h0QxHe7VEpP5c+oRKoZacFrKhZzWsa1HGi40EZXoNC7R8UN9gFtKyYhFHp1t mz9+dNIRR1SZQQmpHYrd2EAB6HF/tBmMA5iJQfWRrjkF1c2Uzg5BBJiILt1jTo7/fxmv 9Ji/7uUSJhxhZj69iMMK6ED3Y6qHMl+XQeamcp/gQ71+yCb8v7HqirmvLNSl8UtKrVif YWEGyAzet6OIhkcVs6FhqFqiifqNEPT5kNaNFWLSPWuGvnQrt1CL/G0ej9oN4DtGsLie aGzOtSctfwFfA8bvP1Olr16OzCU6OvGDIZPBZQc6O0fsdZfaP9u5J+z7RxNRZUZaSTXt brHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20230601.gappssmtp.com header.s=20230601 header.b=PNL+oBMm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id cn7-20020a056a020a8700b005a0737404a7si11935298pgb.258.2023.12.14.04.17.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 04:17:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20230601.gappssmtp.com header.s=20230601 header.b=PNL+oBMm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A414B80EE7DD; Thu, 14 Dec 2023 04:16:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1572968AbjLNMQY (ORCPT + 99 others); Thu, 14 Dec 2023 07:16:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1572951AbjLNMQX (ORCPT ); Thu, 14 Dec 2023 07:16:23 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89162118 for ; Thu, 14 Dec 2023 04:16:29 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1d3536cd414so14948645ad.2 for ; Thu, 14 Dec 2023 04:16:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20230601.gappssmtp.com; s=20230601; t=1702556189; x=1703160989; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2tiT7wfNqaw2vJLSE5DYIhR3c6v+dX+na4nc8HEVIgQ=; b=PNL+oBMmA4ybqQboMcw6INWYK/fcxPF0zMNCA8vSPOyZuOEEbPqUskBN+6QjVPdmfA dBLac9j5SRDcIfvBJxtN7/A4pTYdAzulqVtgiS8TOVLehRDRS+ZdvUYU6z5hB9kdWm1W pxfxZpfLHT7cKR2sD8dlLnOLwovGg5HDZNcCCaiPaF3HcePlD+FKvz641wghA4EPoL3w 97n8lb/AvOYXoJ+5tGQBEdCWKINSHZjuz/xv+ZypR9fDidFX7K5zbNwiVH7guwMPovBn xXKC07k0jTDbuABa97QJATQtdo7CyW9VRr755E0HWB5OQPib8M7OcWgELZjY8ordvwoe Yxgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702556189; x=1703160989; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2tiT7wfNqaw2vJLSE5DYIhR3c6v+dX+na4nc8HEVIgQ=; b=uyDVc/Vcu4OFrjoFbMS69sF46gPtZ7+l+tRP8OOLsIC57H/ILJmh/2+/SE/ZHpCrq+ FQqONCq8re1INc/WhpTSeFuV/Av8T8Rg6jv4mxEIwVCyilKKHoArZN8fms9JCKPJf0kG 2HsoV+IoblvGbwS/X39C0axGafwdEU6oykmgSCkxRe2SRWzvUsicye8O0vnTfNUZdIJM IeYkHu0wq/N47DabmhjGhR+8sFEX+aTGjV/Inbx/oxDzxrIiq/mnCaigxqzHvXpcR+CR RqMW+83hGW3MFfPi5gI0vEi/3uNY5zWKGFxTAf/5iFGyugfCGdZHp64nMAU7BsP/r/P3 ecIg== X-Gm-Message-State: AOJu0YwTUV3OoGWn3KkifauxmY7/Y3q9EgWVfPSQ/TWgj2WOLn1V2LfG agmcZzB8qxPqmt4yj0thSAyp6VD0zNjvQsbBnC94Tw== X-Received: by 2002:a17:903:2351:b0:1d3:60f7:4620 with SMTP id c17-20020a170903235100b001d360f74620mr1427318plh.128.1702556188931; Thu, 14 Dec 2023 04:16:28 -0800 (PST) MIME-Version: 1.0 References: <20231205024310.1593100-1-atishp@rivosinc.com> <20231205024310.1593100-4-atishp@rivosinc.com> In-Reply-To: <20231205024310.1593100-4-atishp@rivosinc.com> From: Anup Patel Date: Thu, 14 Dec 2023 17:46:17 +0530 Message-ID: Subject: Re: [RFC 3/9] RISC-V: Add FIRMWARE_READ_HI definition To: Atish Patra Cc: linux-kernel@vger.kernel.org, Alexandre Ghiti , Andrew Jones , Atish Patra , Conor Dooley , Guo Ren , Icenowy Zheng , kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Rutland , Palmer Dabbelt , Paul Walmsley , Will Deacon Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 14 Dec 2023 04:16:42 -0800 (PST) On Tue, Dec 5, 2023 at 8:13=E2=80=AFAM Atish Patra wr= ote: > > 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. > > Signed-off-by: Atish Patra LGTM. Reviewed-by: Anup Patel Regards, Anup > --- > 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 0892f4421bc4..f3eeca79a02d 100644 > --- a/arch/riscv/include/asm/sbi.h > +++ b/arch/riscv/include/asm/sbi.h > @@ -121,6 +121,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 >