Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6220922rwr; Tue, 9 May 2023 11:58:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7XHkci5x9KujVQ3i1iRpWZyFIMQLKFadcy7NauySpuiB55pImR+g+5CzthyJT4HpEKzZwp X-Received: by 2002:a05:6a00:244e:b0:634:7ba3:d142 with SMTP id d14-20020a056a00244e00b006347ba3d142mr19952696pfj.10.1683658723132; Tue, 09 May 2023 11:58:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683658723; cv=none; d=google.com; s=arc-20160816; b=BBdo8J13Er0L6K2X/FXMKDtS8WtI0tjB46C3uKShGOVJpDkR9G+GvN5b0WQcPhzrOE FSRTEmuK8O9jvrzFRj19o3RvySscbVc9dbDFcxnPl8LUGHetVYgT4RA5hI+SQOcGcsyu OGi0DedlCl1RTJ5DFg8TW0FeOD1xoGQ+pgGgjYe16JKcoVcz1CZG0pkb+dOcbCGxe+e6 7m+Wsk+6z/UHPoYQSRsZTx6o6lCXIQ+3ZVCES/xD2KIcym3bJ6GeFPNT/LbCVOyJtDkJ q2LDJEpzSfM985WRKtO8vlKwDrePDX02jaX+Kzkhmcq0QjERawWC1VnkoNFQ8hHcJ3Aq OmHQ== 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=jSPJg1gLHDARLlAD47sW0oZdmA4od4ZfsDas1WMomRk=; b=KBgUMotsDpVrfboUsZ5Y4IKZX6tUk/czhJUvz0/E5zNMM8SQaawk2qZ8avmdYmJeN/ Yt1/xeUslYjrSq7HYNClkUanLJ9ttJAFHXQ8z2n/INq9MdJ1VkiHEIyIainwI+hviiJ3 qdK9d7DjW81inAbuufxYbpIrsBJNfO2g09sAgUuiNc4jT4DU/YMXcX1ncMZ+hpHaYg8c 1tvXdEq9jbN1TPsDEUeGiedoiRQPvkUMUythWGvAACLOS563O9i1UF2rZTdEZrBTlvzR uSx8V/+0M3OjOTAg+H8PjMLbgJPhJeNEM6048JsdT74XsdXhIe6kyPlQ0KWuilsHq0Ed jFVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="W8ndzo/N"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 70-20020a621749000000b00643b0e26777si2946909pfx.8.2023.05.09.11.58.30; Tue, 09 May 2023 11:58:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="W8ndzo/N"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234420AbjEISeQ (ORCPT + 99 others); Tue, 9 May 2023 14:34:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234356AbjEISeO (ORCPT ); Tue, 9 May 2023 14:34:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7343F2716; Tue, 9 May 2023 11:34:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 03C84611A3; Tue, 9 May 2023 18:34:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5ED74C433EF; Tue, 9 May 2023 18:33:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683657239; bh=HJ9e9VEl0w7VA2rj0PZsLjymzP7aQa2aO0mYgN6i5ZU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W8ndzo/NHgZ73cuB8D7wJMXyyMi9eG+3Ww8xiDTLg+aqo+wfwcR1QLAOao1U7TGBC K7EuXY2AWtXYqLBCiKcf+qgVvdfnV8qXX7HEYMp4W7ZWogBYdoEzw2/9GkvaJa5Fcl ORFBGzUGBKNltFswSw9wQr2Hg8291Dcn+HxdgpUto1lYfex4cyoxN5d/qn+rf7rEyK 5ZfvKQUzCc+NS+yYqRcmOMWb9QqW9gt3PR8h708wXLRXTQmen5e8zq1X3WVBhTci1j hpIBxEW95QHgU5crpKfm0WbEkT1fxF2DVLa00T9uzA0RCNFR7NqzkyQl7N5+3FfV88 WCfKAK3cq4O8Q== Date: Tue, 9 May 2023 19:33:53 +0100 From: Conor Dooley To: Evan Green Cc: Palmer Dabbelt , Andrew Jones , Albert Ou , Andrew Bresticker , Celeste Liu , Conor Dooley , Heiko Stuebner , Jonathan Corbet , Palmer Dabbelt , Paul Walmsley , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v2 3/3] RISC-V: hwprobe: Expose Zba, Zbb, and Zbs Message-ID: <20230509-backlands-unplug-62e4837d843a@spud> References: <20230509182504.2997252-1-evan@rivosinc.com> <20230509182504.2997252-4-evan@rivosinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kjDsgYq9beFkZuRU" Content-Disposition: inline In-Reply-To: <20230509182504.2997252-4-evan@rivosinc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kjDsgYq9beFkZuRU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, May 09, 2023 at 11:25:03AM -0700, Evan Green wrote: > + if (riscv_isa_extension_available(isainfo->isa, ZBA)) > + pair->value |= RISCV_HWPROBE_EXT_ZBA; > + else > + missing |= RISCV_HWPROBE_EXT_ZBA; Part of me wonders if we should just have a macro for this, since it's just boilerplate w/ the only "variable" being the extension name. Just a thought, and we'll have plenty more cracks at changing things here, so: Reviewed-by: Conor Dooley Thanks, Conor. --kjDsgYq9beFkZuRU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZFqSEQAKCRB4tDGHoIJi 0hSEAQDCIH7muHrlaxe+6rHOQyGwsuzPXIuwwl3Icu/7bk/QVAD+LHGFXFJ1zPcN XdCeb4P9lcmKyh7eyXbBPOlO1y/GDw0= =mgNB -----END PGP SIGNATURE----- --kjDsgYq9beFkZuRU--