Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2846673pxm; Mon, 28 Feb 2022 07:11:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJye/Gg9jiApMmzc4itYyfoBFOn5E54lYtmXztE783MmXXxMwOQPk8fploRUNYc/xokw40i+ X-Received: by 2002:a17:907:9719:b0:6d1:8c46:678d with SMTP id jg25-20020a170907971900b006d18c46678dmr15448091ejc.168.1646061117749; Mon, 28 Feb 2022 07:11:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646061117; cv=none; d=google.com; s=arc-20160816; b=Z/y0OfSRp1F/KpGPFPBFlVs6Ms2z7j8hvqMUEo8dws6CB5RUGFChxdbF36NRk7mgFc H/g/oDhO8JWlD9C3rHbg/+WHjsfg6dpKJu8mMV33NEG+ZgA/j7oR2Kz+sLL/99aS/8vJ 66Zqm1bvKI/zAdY9ySxNe54OaM2eGXsken+1LaIAjK3NqcCy4Hu6ewC2SG/ad+Vhx9yi PN/nc+VGyfOZM+h4hQ3yIYOH4sGGB+E1QI9qiShMZUR/eGkEpzK6qPuGJJajnR3WxQkk Orctf/atnho4B7qYEoZ/I2UFpOZFf00WarolkDq9AGBW4YxaNCDZnpf5z5E3wCtQdSnD VDhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Y+tfmzsAwXlzwGA/68yHJ/dxS4HEgSBaoMff0gqNFjw=; b=upH50qPZIYz3O6YkgKJ6XB4n8sEiAoirPZDIkwoVNJ5er1OjnzXdxJknthv5ofz62Z dOxCMbCO8EQIsFXl0Yz0EihPttjgZy8JE5stB/8wUsfeJ0xjm6a+sjR0vHVVmoVBprPb 1sXJpCF/14KCU3B8wNbeGGti8AIpMiN4ogKvt8vEY5aVSb4MPq4ava8TTUfhevgpmbPK +5skdsc79k1LQet/tJu5mXSROdWpR/PRo1MnQZ/Js1D6KUjivA/KzYAfffCixs48AVkC rJluU50r3INGnnPz4QVnaDy895zm54Gd260fnvYsE+ZMAd3cNH/mwSSpsqpG0c0E/W9V 3DnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b="XLm9GW/k"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g4-20020a17090669c400b006cfea60027bsi6331955ejs.903.2022.02.28.07.11.32; Mon, 28 Feb 2022 07:11:57 -0800 (PST) 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=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b="XLm9GW/k"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233805AbiB1NKy (ORCPT + 99 others); Mon, 28 Feb 2022 08:10:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229701AbiB1NKy (ORCPT ); Mon, 28 Feb 2022 08:10:54 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BCA97804F for ; Mon, 28 Feb 2022 05:10:15 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id s1so15338524wrg.10 for ; Mon, 28 Feb 2022 05:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y+tfmzsAwXlzwGA/68yHJ/dxS4HEgSBaoMff0gqNFjw=; b=XLm9GW/kvlSiLN8LraAP1WxOyk/8vHRHY+CejJ+XDoLmis0woM7v0Txmy7NBB5WddD UeU3mP2QK6Ahu1W/QcU02gdUZhZor8BeG6DUULAKiVpgdstxhIrjZKZ5jLk8P66gudcP KNYGyvvPcbELGHGcx8beJtj8UfDT12pNqeIJ2eBaH7+aQM/PkolEoEhaXu5Q5huCFcyS u3n+aJIu90mB0gHTsqTdgoEuWN0Sw8zPAeV8uFoz9tpQZr6J9ipAOFjrShB5rCzaFzDE r8ha7JiYIRd6fPWb5LCKWb7N1if9SnODnwGIA4/QV5AWLSFFTc8Cfhl3jwWnTSZ6RhTd LzEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y+tfmzsAwXlzwGA/68yHJ/dxS4HEgSBaoMff0gqNFjw=; b=GROqCx6ccAyQ9UVSxNRTO5y82PZdFVnyU1ybyXokkNWfFhkAoAVNsI8y+lntmSYSND zqMRPQ+C3EKj8KCcsDvyltKg8FM++k/a3W+FsFWWliZ+zBSQT4wLCTl6WDjrm4rQlOLh 6Z9C29MwVEYZldyIiT7EbtECcpdL6NFaHM5dyb3jcRLHNBpJ6AmRvaggf2UmwGXtMwjc +XymQaIJjgC+5VhZu4O/PVSV8y1yDKk0QRVbz9C444KK9IgDy5jtp6oK5C8jwcPAL1P2 kpbxpPgz4uhWFm4JeJwc1Lb+Zdi0Cx32EiOgfbrU+X5AEusx4W2HzMQaQRojuKeM7G7P a9KA== X-Gm-Message-State: AOAM531gf4F/Qtp0hSLqIpHL5GwIWnKZftP50l+8hXyBIpSxavug9rvx Ak8IAGhPh/Y1vNzhaK7abylDj75y0jvVrCaTD1kl4A== X-Received: by 2002:a5d:64a8:0:b0:1ef:f99c:8c12 with SMTP id m8-20020a5d64a8000000b001eff99c8c12mr780480wrp.214.1646053813809; Mon, 28 Feb 2022 05:10:13 -0800 (PST) MIME-Version: 1.0 References: <20220216052110.1053665-1-mchitale@ventanamicro.com> <20220216052110.1053665-2-mchitale@ventanamicro.com> In-Reply-To: <20220216052110.1053665-2-mchitale@ventanamicro.com> From: Anup Patel Date: Mon, 28 Feb 2022 18:39:44 +0530 Message-ID: Subject: Re: [RFC PATCH 1/2] riscv: enum for svinval extension To: Mayuresh Chitale Cc: Palmer Dabbelt , Albert Ou , Paul Walmsley , Atish Patra , linux-riscv , "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, 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 On Wed, Feb 16, 2022 at 10:51 AM Mayuresh Chitale wrote: > > Similar to the other ISA extensions, this patch enables > callers to check for the presence for the svinval extension. > > Signed-off-by: Mayuresh Chitale Please update riscv_fill_hwcap() in arch/riscv/kernel/cpufeature.c to probe Svinval extension. Regards, Anup > --- > arch/riscv/include/asm/hwcap.h | 1 + > arch/riscv/kernel/cpu.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h > index 691fc9c8099b..bbff7cb279ea 100644 > --- a/arch/riscv/include/asm/hwcap.h > +++ b/arch/riscv/include/asm/hwcap.h > @@ -51,6 +51,7 @@ extern unsigned long elf_hwcap; > * available logical extension id. > */ > enum riscv_isa_ext_id { > + RISCV_ISA_EXT_SVINVAL = RISCV_ISA_EXT_BASE, > RISCV_ISA_EXT_ID_MAX = RISCV_ISA_EXT_MAX, > }; > > diff --git a/arch/riscv/kernel/cpu.c b/arch/riscv/kernel/cpu.c > index ced7e5be8641..ff0613f8cc39 100644 > --- a/arch/riscv/kernel/cpu.c > +++ b/arch/riscv/kernel/cpu.c > @@ -71,6 +71,7 @@ int riscv_of_parent_hartid(struct device_node *node) > } > > static struct riscv_isa_ext_data isa_ext_arr[] = { > + __RISCV_ISA_EXT_DATA(svinval, RISCV_ISA_EXT_SVINVAL), > __RISCV_ISA_EXT_DATA("", RISCV_ISA_EXT_MAX), > }; > > -- > 2.25.1 >