Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1606403rdb; Thu, 7 Dec 2023 04:12:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgu52jzizUL7m+CzQ4QvyWH5dZecsqqtTqoU1a1qBXbc8KsR83PVaI1u2Rujr3bFQmCQC4 X-Received: by 2002:a05:6a20:6a04:b0:18f:fcc5:4c4f with SMTP id p4-20020a056a206a0400b0018ffcc54c4fmr1047700pzk.40.1701951170725; Thu, 07 Dec 2023 04:12:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701951170; cv=none; d=google.com; s=arc-20160816; b=s7fX0b3a2iu+1qCOhiDppo1AfrTOrOCBTEoYyZYbCm6RxlhvCpEfmdEuhVMDutbBYV JTr9/GanbVJgtnjXLKmhNeudzx60qqMthiD9MYLu+xxhqhSVnV9pUonk1lPS4tRzCMuo Q0V8wf6RhZ+2/7VRaGqcGu03buxw9Jm1UTR+ZeEg24DGwTXPYxiVPBxYmPUfm5ynJLNY rJG8UIJHLRalS42WM2nRLeier61A5bmZtnv9hWO7geaRWyQ7NEgW+eVKXOYRM24kaZCD G0N2uUai1Q1Jqc7nxjdc0Re7c3MnswpWLPIm9EelxBrjguWmrRei450AMpwVKvjUKvDD RVTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mQGUfncFvBJxrQZdXpd5jW2E61AVbe+hxppBdbMut4Y=; fh=fAP4wR4+b5xKHHBxYiAwn8VIqfOS0ydsoC5bpB/PMWw=; b=X6l3qy04bgg+VJeV2noZCqQNzDtZarJf9H1XsEHkJc/q1+szFEIcZ2BY/iIVru6mSD Vlbn+6HFqilxMSBDD/EB3AcnaGEfqfDbiyqD1WR90lOmKEIwM2PirFilv5a45gx55scN ieNkccZD6uUHtZhKJ/HoYfvqma+HjEKzaQ6nGAqp3EXosdQUNDAiaIdGxgG5Hm/7Crrz /l1cfCjpIpkbxVdqfIxixLHwTh+w+Sb2D8zC70mxgny5pHHTL0qqaRSsvRgAHKTkRr2g 6ibY5J5/wxWdw0mNA9xbZmZVTHzNJDwegDVTk4Mp1lxq5J+A74DglwxJAM0uhpUt7Yuw EzVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="lWwdoA/9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id z5-20020a62d105000000b006ce56664fd5si1120323pfg.157.2023.12.07.04.12.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 04:12:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="lWwdoA/9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 19D5E808BE7C; Thu, 7 Dec 2023 04:12:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232488AbjLGMMd (ORCPT + 99 others); Thu, 7 Dec 2023 07:12:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232186AbjLGMMc (ORCPT ); Thu, 7 Dec 2023 07:12:32 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83DB7CA; Thu, 7 Dec 2023 04:12:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1701951158; x=1733487158; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=HUdSIX8FoylL7nOf/wJzJkkU/Ybmn3rRb/4PMgZXUHU=; b=lWwdoA/9smlUWJM/gWPYauCfbklKRNhV81yDL6bMqrdrSO47xaqH7+z6 /ib7YVjylOL17zEa30/cacwhKtR6uDg1Zg1yNzBYNTlnQPrhUqnYoRNP2 hZYnTBBysrkmHxx7jo87tuq0tc6awMbgKzEHZ7YskPZN64KhggRM51VYu ouys+fTeRx7Yg+2j+DptJSUNuTN+2Us9PZqhwWLfdfwwd8+wo59LqLnUB Y07Kjh9KPnuHAorSy7Xn5lIpHzIw6V+rjHscopm3xu+4OorhGAEM/a92X bU+2cSWLKVCLf7fSA75DcYp2fsHkMQAbr20KgJL+hahsdC3W4DNEX2604 Q==; X-CSE-ConnectionGUID: qtDtQC/MR0SMM/C1i87NvA== X-CSE-MsgGUID: s22SpVhHSQ68I8AV5gRHvg== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="asc'?scan'208";a="13245727" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 07 Dec 2023 05:12:37 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 7 Dec 2023 05:12:21 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 7 Dec 2023 05:12:18 -0700 Date: Thu, 7 Dec 2023 12:11:48 +0000 From: Conor Dooley To: Atish Patra CC: , Alexandre Ghiti , Andrew Jones , Anup Patel , Atish Patra , Guo Ren , Icenowy Zheng , , , , Mark Rutland , Palmer Dabbelt , Paul Walmsley , Will Deacon Subject: Re: [RFC 3/9] RISC-V: Add FIRMWARE_READ_HI definition Message-ID: <20231207-jailbreak-kinsman-7353788a9a40@wendy> References: <20231205024310.1593100-1-atishp@rivosinc.com> <20231205024310.1593100-4-atishp@rivosinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bcU5bmCaFN29LsCy" Content-Disposition: inline In-Reply-To: <20231205024310.1593100-4-atishp@rivosinc.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 07 Dec 2023 04:12:48 -0800 (PST) --bcU5bmCaFN29LsCy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 04, 2023 at 06:43:04PM -0800, 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. This definition here is quite a lot less specific than that in 11/1 of the spec. I don't think that really matters much in reality since we only support exactly one XLEN where that is the case. Acked-by: Conor Dooley Cheers, Conor. > Add the definition for that function. >=20 > Signed-off-by: Atish Patra > --- > arch/riscv/include/asm/sbi.h | 1 + > 1 file changed, 1 insertion(+) >=20 > 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, > }; > =20 > union sbi_pmu_ctr_info { > --=20 > 2.34.1 >=20 --bcU5bmCaFN29LsCy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZXG2hAAKCRB4tDGHoIJi 0u82AQDwi9UWn/9J92nmBoN8G2OQGiug9IR7IXTBPPHlWTNSfAD/QYb6iHZA/FQG jX9pKcuUfaQ3vFjOevTwuCQy563jmAo= =tIJW -----END PGP SIGNATURE----- --bcU5bmCaFN29LsCy--