Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2866796ioo; Tue, 24 May 2022 07:43:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu84b/yLY6fw6gV46PCwIATKLM2DxvCONbizXjUOOkPFA0IEVHF+2pM1Lck8tgmnPj1pTy X-Received: by 2002:aa7:c2d4:0:b0:42a:a9a6:e73c with SMTP id m20-20020aa7c2d4000000b0042aa9a6e73cmr29343071edp.115.1653403384895; Tue, 24 May 2022 07:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653403384; cv=none; d=google.com; s=arc-20160816; b=pvML9P/uqrktBRm1SL51kJI4vP1us4D5YO23e8cyQMShn5h+OTuT7mAlBKcCKyWuun VNqZFDHWyrvQO4wkbRfXw38rTcjguEOo0P+chmTY0RyJ0/4Ei0JHir5GEHsvSr9e9XVW Tb4FZSjyki5CGJ4r2wp4ZTIG1HbnwAFdGXKH3USduBMqDP1GzazyoDjA4uRwg257ctUe mVdMjMae03SdY7wlzDij5lBhJktfEZHR3Xw34ZtH89l+8SLWyhlASxTkpZN3KxZViL6w Znf5ZGKyPUE69nHuw6YChgMmeQCFVd5amqvnWW2n9zLMsGRq3HLejuZlBVX3p0MKbtyL Nx7Q== 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=IrQKUMgGfJCg4Qp/wyG56UieXV8r90cWTrXiOz7LDck=; b=aQOYflLjVHSyYlEF0F1OCI/lvz3M7YIX7nmxEXdZnlSPocTa/5o1ao0qDNZMOd5vgg Ycf2dJ5hmRzjexTcanT9+uRttju9MvrAgM1wtxdfOGPLcZGk6kZqNJrdVJj1S1wuz09a MFax0z6VnXhqr6RWWfRK1Mi5lEjCL0VJMATLsl+JqSsYQMpweeBMSprtMRc4RUsoBczO edZRsLE8cgKb8U9538c1ldZoUeeHoNoZiQzodYK8G8g+KzBefb8MVo61rlwJMpv11/o5 +A3JQpMERGt3/G3wK9lfv/obnNUgfLv4OTRuIDG1T1lzrHfv8vdik2XW6lEwvLg86sjG CPTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=Gy4q7CN9; 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 ds1-20020a170907724100b006fefef9abd2si3198908ejc.366.2022.05.24.07.42.37; Tue, 24 May 2022 07:43:04 -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=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=Gy4q7CN9; 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 S232406AbiEXLZj (ORCPT + 99 others); Tue, 24 May 2022 07:25:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236366AbiEXLZi (ORCPT ); Tue, 24 May 2022 07:25:38 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77B997A45B for ; Tue, 24 May 2022 04:25:36 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id z15so1417303wrg.11 for ; Tue, 24 May 2022 04:25:36 -0700 (PDT) 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=IrQKUMgGfJCg4Qp/wyG56UieXV8r90cWTrXiOz7LDck=; b=Gy4q7CN99HFyXAicqG9X11IlQ+svRqwnN8b26/bIiFUYInmpSeZdUBS3liSbUIVsla wWqnBTLpRQPJXp79wdo0TnrKGBjeXoH4SAS6hOlROajnfLUnMxqS9d1aBvJMrZpmBlmU 3w5uSFppAXGa1yK8Vd3H9oCbvZcA3UMQD1EBvSxo0HYq1UPQ92+AbDrlGLPE8klvrRTs D0PRsfDlXTkRrjxnorF72umS/EPsYzL5y1oK0SJLDG+nwR3peuR7Rzkpfm12leFAYxpX clNf3Yy0i28wX0quPqA3glr021cdnZGGrEnVORu8zgPSuMm/hbUSHkuiQJqq1MJNgfSh 1N/A== 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=IrQKUMgGfJCg4Qp/wyG56UieXV8r90cWTrXiOz7LDck=; b=qMUM5aOdsyLSNm2nHAY+h65daPfMd1HiSv66QHOGv6NzmWhahuDEjY0D588dKLHDb1 OBqZZ5E65voSGj9kzQPhPl8cTDE3C/FQFNiWi7Z9mcogx3dGfJuLGRgrAfN6tiLiQb/B kDuGx0FOEWztlow/cVu79vdfb3Rtr6m1Wx8nHhI4NuF7bYKR87nOeLrmrM0YtsI9lHEY DbSTdwgPhfdJ9dooQaDLnbVmwiL9OlISLgPGqZZoOZiE2hfUbbAEjFdq9F36cFlEejQY gdEbgHtr5s91aG1KdETS376XMoVEKWdJcNYUb7C4wPTacYJkDu9ETi4RmihR4Tr+rQet ZQ2w== X-Gm-Message-State: AOAM531ofLD8li0u5r9xvr45NdKOO1f19/s6k9RA0lYBaQbXx83Q2ln9 91qoA1lB4QpLjtlmCUgn5DIRNkTPWVMcpEdxEWMZChMCjhN+UWOD X-Received: by 2002:a05:6000:1f18:b0:20f:e61b:520e with SMTP id bv24-20020a0560001f1800b0020fe61b520emr6372906wrb.214.1653391534839; Tue, 24 May 2022 04:25:34 -0700 (PDT) MIME-Version: 1.0 References: <20220426185245.281182-1-atishp@rivosinc.com> <20220426185245.281182-3-atishp@rivosinc.com> In-Reply-To: <20220426185245.281182-3-atishp@rivosinc.com> From: Anup Patel Date: Tue, 24 May 2022 16:55:23 +0530 Message-ID: Subject: Re: [PATCH v3 2/4] RISC-V: Enable sstc extension parsing from DT To: Atish Patra Cc: "linux-kernel@vger.kernel.org List" , Atish Patra , Damien Le Moal , DTML , Jisheng Zhang , Krzysztof Kozlowski , KVM General , "open list:KERNEL VIRTUAL MACHINE FOR RISC-V (KVM/riscv)" , linux-riscv , Palmer Dabbelt , Paul Walmsley , Rob Herring 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=unavailable 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, Apr 27, 2022 at 12:23 AM Atish Patra wrote: > > The ISA extension framework now allows parsing any multi-letter > ISA extension. > > Enable that for sstc extension. > > Signed-off-by: Atish Patra Looks good to me. Reviewed-by: Anup Patel Regards, Anup > --- > arch/riscv/include/asm/hwcap.h | 1 + > arch/riscv/kernel/cpu.c | 1 + > arch/riscv/kernel/cpufeature.c | 1 + > 3 files changed, 3 insertions(+) > > diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h > index 0734e42f74f2..25915eb60d61 100644 > --- a/arch/riscv/include/asm/hwcap.h > +++ b/arch/riscv/include/asm/hwcap.h > @@ -52,6 +52,7 @@ extern unsigned long elf_hwcap; > */ > enum riscv_isa_ext_id { > RISCV_ISA_EXT_SSCOFPMF = RISCV_ISA_EXT_BASE, > + RISCV_ISA_EXT_SSTC, > RISCV_ISA_EXT_ID_MAX = RISCV_ISA_EXT_MAX, > }; > > diff --git a/arch/riscv/kernel/cpu.c b/arch/riscv/kernel/cpu.c > index ccb617791e56..ca0e4c0db17e 100644 > --- a/arch/riscv/kernel/cpu.c > +++ b/arch/riscv/kernel/cpu.c > @@ -88,6 +88,7 @@ int riscv_of_parent_hartid(struct device_node *node) > */ > static struct riscv_isa_ext_data isa_ext_arr[] = { > __RISCV_ISA_EXT_DATA(sscofpmf, RISCV_ISA_EXT_SSCOFPMF), > + __RISCV_ISA_EXT_DATA(sstc, RISCV_ISA_EXT_SSTC), > __RISCV_ISA_EXT_DATA("", RISCV_ISA_EXT_MAX), > }; > > diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c > index 1b2d42d7f589..a214537c22f1 100644 > --- a/arch/riscv/kernel/cpufeature.c > +++ b/arch/riscv/kernel/cpufeature.c > @@ -192,6 +192,7 @@ void __init riscv_fill_hwcap(void) > set_bit(*ext - 'a', this_isa); > } else { > SET_ISA_EXT_MAP("sscofpmf", RISCV_ISA_EXT_SSCOFPMF); > + SET_ISA_EXT_MAP("sstc", RISCV_ISA_EXT_SSTC); > } > #undef SET_ISA_EXT_MAP > } > -- > 2.25.1 >