Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4943358rdh; Wed, 29 Nov 2023 15:50:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQ4UAKhT+VptSGP9Ubj0J9exGAUXC9LMWSbKcdEuFR9cr4XaMIU1MdoUalC499FnJgePHL X-Received: by 2002:a17:902:c142:b0:1cc:569b:1df4 with SMTP id 2-20020a170902c14200b001cc569b1df4mr19889879plj.1.1701301815325; Wed, 29 Nov 2023 15:50:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701301815; cv=none; d=google.com; s=arc-20160816; b=g6GbIQ8LlxKRBJj4ioEW3XUzXTiYcBZQqqVCtkhbiZOsRQ+31YBaF0XHn3+dybfpnJ k9ZW8mwQIGi3fXUsJXpc02cqb+ZQvU+SyKrzqrcPglUK2BpYYWtzZIZmhZ17JBByMoKS sgP8WWQbMxU9AJW2dolvrQdN1zl/oxS6BAheRgmqujCZASerypIEktdP3AA42FaLhT9j UYIvA+XD6q/7Iivq+eNvYg5PizEzVA12TEqRTAEHj6/Zy5oRxvcDCyBfq2/U8UvFxdKX 1sWIhhcMjm8JJBL6PkmHlbooTv4SSjKzIP71mdxDO4pbzwSZuqBKVn3+PxojdwBcj11F YgWA== 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=sTOVcypQtVTFXZLfWHCe+N3Q12yUhXgQHc0UVNtkCoA=; fh=cINxvvbb+OBYcrAIY74VQ/xm8mesFmYy1KUxazeLJ/4=; b=I7k4AeZXq6FfVSIJrCVwpjhPVBaoBgCUWJrMtGxsdj81pTrauB8fSduweJTF12MIxy FSDXaTwIfsgzFmUjIjZmPZBQYnKpMFJcuFuVSql9ofty1yrp+chCNzcPRK+IrJ66zXHp ZX0NKqadD/gWBSaYFDbzUJ705coR1PzJfNZC02/JmJ3Qc88Vu5kPTjjL4tUJhq/NBC/w TsU9WIaWBkec8ZzL/0LHw/XNyXjXy2iqHjwTzszvHw31EFugnf4SvK1S9evUL0kt6ofh zctMRGuduVx183G7IzKRGHRVIgFwxSIWHeXMKw+VhsiW5P2UL+cBrHp+QziLE503IGyz sfjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b=JC4miItv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id f9-20020a170902ce8900b001d0087bbf19si3585138plg.440.2023.11.29.15.50.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 15:50:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b=JC4miItv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id ACC19812E379; Mon, 27 Nov 2023 06:38:20 -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 S233381AbjK0OiE (ORCPT + 99 others); Mon, 27 Nov 2023 09:38:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233770AbjK0Ohr (ORCPT ); Mon, 27 Nov 2023 09:37:47 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72A34D4C for ; Mon, 27 Nov 2023 06:37:09 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1cfb3ee8bc7so16483325ad.1 for ; Mon, 27 Nov 2023 06:37:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1701095829; x=1701700629; 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=sTOVcypQtVTFXZLfWHCe+N3Q12yUhXgQHc0UVNtkCoA=; b=JC4miItvz+NNVDj+y3lT1yhmxlqFLhlRLgpxdSIpZq/XysiB9qs8kFDJqLnWKKEdvA zTvAixW8G1yrdu/1zfm3ED6XUuHXwts5h9rGRNpJ/CHg7UQ2DEILf9VMJ2VCaDCPxngA Xgev0L4WZg3F59EWaXc4iVfrmyRrTXhVT3Hhv3su9y6EKaH7GTQEDjq0UnqlU50YrS8z v3fYwnkEgYfRiqmO+9SwlyVvApjfNTvdnBUuLife6k24ENvxJHIl7TVGArrzHOaD0dsm NDkj3oK53dtUvsHi3aAHAwUuQs1qz1WJl8FfVBgRLnLa+e1NHGz9lLnIB0GguYYkpG1M Kopg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701095829; x=1701700629; 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=sTOVcypQtVTFXZLfWHCe+N3Q12yUhXgQHc0UVNtkCoA=; b=oCx1u5Y4Yqm4G5XJUuAtJcqtYIjG7aghjQDtvKRIvxTQc13FQaTRXXJlYELTCHzATy rBhWNmFghIlRstDBDgBX0oVDj/s+d5DH9Y95sVPuqUX5wV5d+dP/ZjKokVAImlm60sHX /yYA8VHvNsBtHzixDHExxZ1KcUlP7AlnOJomvU+VebIVAMQPnMoCOtt4jxm+cjJZ0HqH 4I9jjAGgmI1amPpSZDQLaTGECp6ZjvdlLsa6G3NG1Ug8usDCZanM/X/yqkvgTwBvagtw Lto3ARBgsEqSpWTBuhnC2tbJd1V0QLRIACsmdGIaZHktFquSiCvKUFZo4lm5bX4PTzfb J0gA== X-Gm-Message-State: AOJu0YyWXNcQhh6RWoYLaFi7YKaJxIbdHKXoa/QKO7PbJ8aOc4r+V7FE 10GgS+OOVsYvNTD7We3xjJYb9dfr/TtHd2xLiNR/3w== X-Received: by 2002:a17:90b:1b07:b0:285:9d0d:7e3 with SMTP id nu7-20020a17090b1b0700b002859d0d07e3mr10951786pjb.38.1701095828964; Mon, 27 Nov 2023 06:37:08 -0800 (PST) MIME-Version: 1.0 References: <20231124072142.2786653-1-christoph.muellner@vrull.eu> <20231124072142.2786653-3-christoph.muellner@vrull.eu> <2de6d526-918b-44f6-b26a-a0f30c42c5b3@sifive.com> In-Reply-To: <2de6d526-918b-44f6-b26a-a0f30c42c5b3@sifive.com> From: =?UTF-8?Q?Christoph_M=C3=BCllner?= Date: Mon, 27 Nov 2023 15:36:57 +0100 Message-ID: Subject: Re: [RFC PATCH 2/5] RISC-V: Expose Ssdtso via hwprobe API To: Samuel Holland Cc: linux-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Palmer Dabbelt , Paul Walmsley , Albert Ou , Andrew Morton , Shuah Khan , Jonathan Corbet , Anup Patel , Philipp Tomsich , Andrew Jones , Guo Ren , Daniel Henrique Barboza , Conor Dooley , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Alan Stern , Andrea Parri , Will Deacon , Daniel Lustig , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=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]); Mon, 27 Nov 2023 06:38:20 -0800 (PST) On Mon, Nov 27, 2023 at 3:32=E2=80=AFPM Samuel Holland wrote: > > Hi Christoph, > > On 2023-11-24 1:21 AM, Christoph Muellner wrote: > > From: Christoph M=C3=BCllner > > > > This patch adds Ssdtso to the list of extensions which > > are announced to user-space using te hwprobe API. > > > > Signed-off-by: Christoph M=C3=BCllner > > --- > > Documentation/arch/riscv/hwprobe.rst | 3 +++ > > arch/riscv/include/uapi/asm/hwprobe.h | 1 + > > arch/riscv/kernel/sys_riscv.c | 1 + > > 3 files changed, 5 insertions(+) > > > > diff --git a/Documentation/arch/riscv/hwprobe.rst b/Documentation/arch/= riscv/hwprobe.rst > > index 7b2384de471f..8de3349e0ca2 100644 > > --- a/Documentation/arch/riscv/hwprobe.rst > > +++ b/Documentation/arch/riscv/hwprobe.rst > > @@ -80,6 +80,9 @@ The following keys are defined: > > * :c:macro:`RISCV_HWPROBE_EXT_ZICBOZ`: The Zicboz extension is suppo= rted, as > > ratified in commit 3dd606f ("Create cmobase-v1.0.pdf") of riscv= -CMOs. > > > > + * :c:macro:`RISCV_HWPROBE_EXT_ZICBOZ`: The Ssdtso extension is suppo= rted, as > > Should be RISCV_HWPROBE_EXT_SSDTSO. Thanks for reporting! I've fixed this now as well in the github branch: https://github.com/cmuellner/linux/tree/ssdtso BR Christoph > > Regards, > Samuel > > > + in version v1.0-draft2 of the corresponding extension. > > + > > * :c:macro:`RISCV_HWPROBE_KEY_CPUPERF_0`: A bitmask that contains perf= ormance > > information about the selected set of processors. > > > > diff --git a/arch/riscv/include/uapi/asm/hwprobe.h b/arch/riscv/include= /uapi/asm/hwprobe.h > > index b659ffcfcdb4..ed450c64e6b2 100644 > > --- a/arch/riscv/include/uapi/asm/hwprobe.h > > +++ b/arch/riscv/include/uapi/asm/hwprobe.h > > @@ -30,6 +30,7 @@ struct riscv_hwprobe { > > #define RISCV_HWPROBE_EXT_ZBB (1 << 4) > > #define RISCV_HWPROBE_EXT_ZBS (1 << 5) > > #define RISCV_HWPROBE_EXT_ZICBOZ (1 << 6) > > +#define RISCV_HWPROBE_EXT_SSDTSO (1 << 7) > > #define RISCV_HWPROBE_KEY_CPUPERF_0 5 > > #define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0) > > #define RISCV_HWPROBE_MISALIGNED_EMULATED (1 << 0) > > diff --git a/arch/riscv/kernel/sys_riscv.c b/arch/riscv/kernel/sys_risc= v.c > > index c712037dbe10..c654f43b9699 100644 > > --- a/arch/riscv/kernel/sys_riscv.c > > +++ b/arch/riscv/kernel/sys_riscv.c > > @@ -162,6 +162,7 @@ static void hwprobe_isa_ext0(struct riscv_hwprobe *= pair, > > EXT_KEY(ZBB); > > EXT_KEY(ZBS); > > EXT_KEY(ZICBOZ); > > + EXT_KEY(SSDTSO); > > #undef EXT_KEY > > } > > >