From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by sourceware.org (Postfix) with ESMTPS id 8B8DB3858293 for ; Wed, 9 Nov 2022 01:13:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8B8DB3858293 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-ej1-x635.google.com with SMTP id m22so5736857eji.10 for ; Tue, 08 Nov 2022 17:13:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EKhFus2wu6gXLK1tqR2m7RSN/K3ob0MxdauAYXcz47w=; b=R/fyaGorvxeRikHi67MWdHqS2ykmC7TlwxeG5vf1X3kmS2/NhedUXiCXRDL84iShit YEX0z3JVZzsWGoes+S+yB9hIr8ZkPNBEyVW6F69RG9nrRvqzuQgWo5T8DcNpfGa1FCzG TA8NzqzMMwgqGDT+Xs2TD7EDHPXjSOfM0pQBYpyPqDVS7+65z3rZF5WYZS6FC1Wixt8/ X8G7Cc0O4JVh3eDwQqjPBR6QFBq+9cpN6+ZL9GDSsU+2W6VtyXrqciqTMHuLPBK+GNtA SdP00VAhTpy6yFLVJgTjffMeiaoiicw9qXgLA78gTE4Vezx6gR5m4BsA1R62MO9WmFWj nrKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=EKhFus2wu6gXLK1tqR2m7RSN/K3ob0MxdauAYXcz47w=; b=I2HCdknqIoRnwNLaVJIsAcbIile18CIB7yxPte3KpQK8qW/PCqlx+vz/6k9QYFTp9p h18QeBSdh2Rlm6TXqQmN6MSSrUlTbnBId9ncYtw3fOyGc92SSlw5v9I4bzpJttJ0rdy+ cKEwFqiTlhgvcnyCmARu23nBJvyTCdDxsMWevVm3Ek4yZ90YQAoFTsB9CqIIpwJ00BHP PI3eWSXzI31EFg6rzWlVn1zeLqDCMUrjJq7Dv1j+N/URk9JF46U1ShDVcMdqZs5v2QHu xieYVXa3CuLs5v2mub0Jf7qRm8g2pAEpXJFZlgB0W7smpUXp9LEQY7oxyNTOIj6heiAs lohw== X-Gm-Message-State: ACrzQf1yIZ9qGxvo9X8mmTrF9Qd/nnsoNpkl+irZyy/rgf6sOcr59yLe uBcQcI4yW9t6r0AjWNeDjfOlmW+rDl5nYQO/d50+925FhZM= X-Google-Smtp-Source: AMsMyM6JZZIIr7rKSvl226Jkezljlt5OSuRx/8nZlhcQW5AL5oEt+s6jJ5+KJku+f4OwagEWOwuXo/49XMeEUFn5tRc= X-Received: by 2002:a17:906:3197:b0:73d:5e1a:44ac with SMTP id 23-20020a170906319700b0073d5e1a44acmr54597400ejy.512.1667956392367; Tue, 08 Nov 2022 17:13:12 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Zong Li Date: Wed, 9 Nov 2022 09:12:59 +0800 Message-ID: Subject: Re: [PATCH] riscv: Get level 3 cache's information To: Palmer Dabbelt Cc: Darius Rad , Andrew Waterman , dj@redhat.com, joseph@codesourcery.com, schwab@suse.de, libc-alpha@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Nov 2, 2022 at 10:19 AM Palmer Dabbelt wrote: > > On Tue, 01 Nov 2022 18:58:46 PDT (-0700), zong.li@sifive.com wrote: > > On Fri, Oct 21, 2022 at 3:28 PM Zong Li wrote: > >> > >> On Fri, Oct 21, 2022 at 3:23 PM Zong Li wrote: > >> > > >> > RISC-V architecture extends the cache information for level 3 cache > >> > in AUX vector in Linux v.6.1-rc1. This patch supports sysconf to get > >> > the level 3 cache information. > >> > --- > >> > sysdeps/unix/sysv/linux/riscv/sysconf.c | 7 +++++++ > >> > 1 file changed, 7 insertions(+) > >> > > >> > diff --git a/sysdeps/unix/sysv/linux/riscv/sysconf.c b/sysdeps/unix/sysv/linux/riscv/sysconf.c > >> > index b768ebf781..4772a9fc11 100644 > >> > --- a/sysdeps/unix/sysv/linux/riscv/sysconf.c > >> > +++ b/sysdeps/unix/sysv/linux/riscv/sysconf.c > >> > @@ -90,6 +90,13 @@ __sysconf (int name) > >> > return sysconf_get_cache_associativity (AT_L2_CACHEGEOMETRY); > >> > case _SC_LEVEL2_CACHE_LINESIZE: > >> > return sysconf_get_cache_linesize (AT_L2_CACHEGEOMETRY); > >> > + case _SC_LEVEL3_CACHE_SIZE: > >> > + return sysconf_get_cache_size (AT_L3_CACHESIZE); > >> > + case _SC_LEVEL3_CACHE_ASSOC: > >> > + return sysconf_get_cache_associativity (AT_L3_CACHEGEOMETRY); > >> > + case _SC_LEVEL3_CACHE_LINESIZE: > >> > + return sysconf_get_cache_linesize (AT_L3_CACHEGEOMETRY); > >> > + > >> > default: > >> > return linux_sysconf (name); > >> > } > >> > -- > >> > 2.17.1 > >> > > > > > Hi all, > > Because I didn't get any feedback here, could I know whether this > > patch is good for all? Are you all willing to help me to pick it up if > > it looks good to you? Thanks a lot :) > > Sorry, for some reason I thought I'd replied to this one. > > Reviewed-by: Palmer Dabbelt > Acked-by: Palmer Dabbelt > > Thanks! Hi Palmer, thanks a lot for your review. May I ask who might help me to pick up this patch? I couldn't find this patch in master yet. > > >> Sorry for missing libc-alpha. Add libc-alpha in this loop.