Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp364817lqo; Fri, 10 May 2024 02:10:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU30p0nvTuiNLCtUNljs3uKQc16EtHPqN1poPMeytMjXLtvfgjNRU85uh95Zrb5hRQpVr7VYM3M7Is9P7c1lAO3/eWC/+R61fs1Ythhpg== X-Google-Smtp-Source: AGHT+IEuhRUEPpvCS1SuDf0YMRlgX3YNKCiFxZPkLC8ug6UqY1HAdtKhPkwQ3mxmukLjz9iZ5OR4 X-Received: by 2002:a05:6358:5312:b0:17e:f567:2dcf with SMTP id e5c5f4694b2df-193bd00017cmr187167855d.29.1715332238403; Fri, 10 May 2024 02:10:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715332238; cv=pass; d=google.com; s=arc-20160816; b=iqK5THJkOuIOoz+vmNko2jPfhUE8KWvgdBjmsBoQmpypcTS9PBYHW5NxgOYD5A+7cs P2JkQ7J9mJ7dVBEyhVY+pUhvPLOwIK2fefTsDqi7yXElA3v6IEHtOSIH03abeVeCj3/Z qIHYA02VWLIklnqe2Nk1hN89tSePtTtumOcpKie4Wqd1swZqK6cQKDCitpg5OZaw/biy bnXGHD3rZTaejDE9N5r6hgwx5vptpK63FWkFtrLYivMpyqGVLwk2PsXxIH0EFjTwUWRp zGtyzLPrAcTTJTHIoY9Ci5b9NQgYDdFQEJil5mmVbFlKWz2ORxI4vXOupTNciVDMudQX /7jw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=9yIdtQp3ur1f9Zjf3zmNi4wTquzd2hcg9pPvEGak2SI=; fh=HgLEM+l7Wc+EexDZTgyMsTFQ20+k7u1qydg8BGARKZo=; b=CuLxpQvS35029U9TkNt1o40QF7QCvz1CIanBX+esybINmSe02Lv43zvosPE1s3aSid MauftCD4RMQBZexkwL+7kH7ir/lzTe9VIgEeaBoq1HmF+I/546uHqXU9wph28TFjVqfA nLrKIMDqyU9PGqd1ctHGygrllR3PnAnWiNJvMDD3Fiyri62mych6kENgHzhMbo5I3jSU VG0k/ugoYZKv4D9+SQRRLegf5tHrfRLc55lihdaBOY5d8QiVgHTG601fImaHDcPf+/+M LbxlYeR9y3poVyaQld3BWERRKCFDjJ2DGIkdhp2RGo6I8ZcFoN5zCKoskhG7EKIfdl4L qKBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=cn+6fzU9; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-175480-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175480-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-63413d72b1asi3109596a12.845.2024.05.10.02.10.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 02:10:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175480-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=cn+6fzU9; arc=pass (i=1 spf=pass spfdomain=bytedance.com dkim=pass dkdomain=bytedance.com dmarc=pass fromdomain=bytedance.com); spf=pass (google.com: domain of linux-kernel+bounces-175480-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175480-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AFA402824A6 for ; Fri, 10 May 2024 09:09:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C27951607B9; Fri, 10 May 2024 09:09:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="cn+6fzU9" Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C478E1607A3 for ; Fri, 10 May 2024 09:09:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715332183; cv=none; b=K+HfQcfxpBYPFYU9WfSXlTWyItqFltSK9gqIUvbXqasMbdGePbK9ewVIWRJ678KC/diMa+sMeNSW7nqPgP0tiC8ty3iwujGLfHvV9l6dd34dtqc7gqx6GrCy+J9g8SDFmqK8+52AeHMIyj6QRLJUGcAdsAWqx1GSpOZtYOqqImg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715332183; c=relaxed/simple; bh=9yIdtQp3ur1f9Zjf3zmNi4wTquzd2hcg9pPvEGak2SI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BlAq+9NRUq65WpvXFCcoFiUz+JuuOWATE5z5O4S/RQBXawxTs/I6I8WatnYdK7dbXNrH8rtnXge3iSSp3iyHleH0lPpChTtAuM1cDbUTWxjbGk5bcdCt4Hy1ST1JNqZzoSQsdiG+It9EuFuqxCr6AkUF4XusuchzhJmkVwvzmL8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=cn+6fzU9; arc=none smtp.client-ip=209.85.210.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Received: by mail-ot1-f46.google.com with SMTP id 46e09a7af769-6f0e79215a9so496200a34.3 for ; Fri, 10 May 2024 02:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1715332180; x=1715936980; 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=9yIdtQp3ur1f9Zjf3zmNi4wTquzd2hcg9pPvEGak2SI=; b=cn+6fzU9CQbKSFu+3w/g/5GrIUNAywHSk3egpBiaip5T2mB3gXKAR1R1PtDaUEtJmY b/GUCk0x1qJvdp4t4DcHaYsYHYrpmT/z5Y5gMk3MpdfW2dczAzr+Mex1ElWfnjqfMRZT Tna9AQODstVHiiFmY6YAv3afkfbZ0sUWNf95HS/tqqfpgtzlq3h13Uf0iY+L4MhpzfBJ KHSFUbm1vQbGrIxdCwVZXFUsOJXrRn6EA6C1qu6gCSnqcbYZGTIlE5hOLoefhFLRftIB 6gpSGhtvOCfVcqzFkONQGFtTtkvKWh1DJ/GaxeX4Nz9UJfsL+OnQAuB05HDMcLxrnblN 0EjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715332180; x=1715936980; 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=9yIdtQp3ur1f9Zjf3zmNi4wTquzd2hcg9pPvEGak2SI=; b=Wo9XRlwIR/NvrqQS2aI1dZ4yqoVzZEZrTXlmcM51VHqeZ4/V+yMepES+/Bis05Dlpe D/dtn+U0uOKWmE2/bQIGV+qNh2B0SQXJ0ociXLWHWJGAnIAQC20JEeOSE0GCthPFbcGx eCNZ3a4BHaAZHTuskc7ed3Iu2ZF/Rmm5V/8rmDI8dsD4VBGJ9PIWgUnmL5hxskw5/Gej X804jN3EfZuD3VBn0jFiyMfxVmjGTKN9KryOD04ChmJ2ADWj27OMJsVpQX+IaA7zzZiu QULCnEVN4RTjSl+81shyHCIGeN3y0L84tigxsMm3bLFpwnwD3QAofUjDELV7D5vHqm3l /V9g== X-Forwarded-Encrypted: i=1; AJvYcCUPodr5r6wOZNr92WvP5T2hNbY1Y6kC0VgfSZMPHASHFwD18ZOirqTA/dZH2nYczwnO2fHxvuzJyWbeE1bR+sY4zo0KpEXH2XyjQZxh X-Gm-Message-State: AOJu0Yx5r9DJO3IeEHhaq2/mzFAW3Sg5XqN8Mz28NZAapVnMQIudSfhE ntWgAQKc8KJedM2/NTPfwAg9sFgDHN/+EWLS1Gx+RldNV7g/8nRGRrWbnnrlBksGVfb8ga/lSVj /GrO/XMbspsJp0wNxodINd4y05Y3y8YUXcjq51w== X-Received: by 2002:a05:6870:6387:b0:233:5f71:4461 with SMTP id 586e51a60fabf-24172fc60b6mr2387986fac.55.1715332179485; Fri, 10 May 2024 02:09:39 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240509073300.4968-1-cuiyunhui@bytedance.com> <20240509073300.4968-2-cuiyunhui@bytedance.com> In-Reply-To: From: yunhui cui Date: Fri, 10 May 2024 17:09:28 +0800 Message-ID: Subject: Re: [External] Re: [PATCH v5 2/3] riscv: cacheinfo: initialize cacheinfo's level and type from ACPI PPTT To: Sudeep Holla , Palmer Dabbelt Cc: rafael@kernel.org, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, paul.walmsley@sifive.com, sunilvl@ventanamicro.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, bhelgaas@google.com, james.morse@arm.com, jhugo@codeaurora.org, jeremy.linton@arm.com, john.garry@huawei.com, Jonathan.Cameron@huawei.com, pierre.gondois@arm.com, tiantao6@huawei.com, Conor Dooley Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Palmer, There are already related Reviewed-by, Gentle ping... On Thu, May 9, 2024 at 11:27=E2=80=AFPM Sudeep Holla = wrote: > > On Thu, May 09, 2024 at 03:32:59PM +0800, Yunhui Cui wrote: > > Before cacheinfo can be built correctly, we need to initialize level > > and type. Since RISC-V currently does not have a register group that > > describes cache-related attributes like ARM64, we cannot obtain them > > directly, so now we obtain cache leaves from the ACPI PPTT table > > (acpi_get_cache_info()) and set the cache type through split_levels. > > > > Suggested-by: Jeremy Linton > > Suggested-by: Sudeep Holla > > I am not sure why you have not added my reviewed-by as I was happy with > v3 onwards IIRC. Anyways, I will give it again =F0=9F=98=84 > > Reviewed-by: Sudeep Holla > > -- > Regards, > Sudeep Thanks=EF=BC=8C Yunhui