Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1946169lqp; Tue, 16 Apr 2024 02:40:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGTBC0dt/z4DDnuJmnZeuuXhHkWy7xF9u6dzuvOQA/4SEQrA0KRXQtzHsHDRvkurfjfHPS3WZInS2ag1uqnWsRvP/BUsCBU9vYznndSg== X-Google-Smtp-Source: AGHT+IH2KvmyhMCtN9fkZ8H5ER3vH8sIHj1kEjk1N+573diQ+Yxhim13C36LBy2O1/GS7tV4diSG X-Received: by 2002:a17:90a:6786:b0:2a3:10d3:239d with SMTP id o6-20020a17090a678600b002a310d3239dmr9244890pjj.32.1713260411325; Tue, 16 Apr 2024 02:40:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713260411; cv=pass; d=google.com; s=arc-20160816; b=jyJhPgHyj28xljRgRjrZe5UyuLsn9KTjPsrZJ66mt0ByLyT+VcYOpRwfonYMZ6DDSh bHcO21H40hYIcwdExsSFkJufvFJ4KQ/Gg0W4OHio36rT1345dSFJHZshld1Se/E7FmlT C1y7X5eJ23QIV+S9V33jm8gzadJDrybwAt4/hbA2Fctg8PzDMEjrMbJf/fcmLp5olg1C y0wCaJ4WeFHtRyEoBujox0h5j9B8QMGRERgvX3YYxeFpeW5xWhSLOB8ND1qD7MzzE1aG xR6LJTWUGP7G9DoQ+sFJ6fUJ4XkWS7GWcV6/3qexVclRqTreWJtp5qcCljR1vXZyNsKr XHHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=Q2r0gL03pxiZsx8zUMvNyNTIgPo5LQEeKgaFN47YZ0s=; fh=jGrkZ/2Q2+zpQXaMM0l0UYpkjdsW7mA0xut03YOymiU=; b=NF1Rt2s99AhzYzvh9ihZ902hMwAWK0CsEamRM84UXBqDeN3CB7i3P7CueFuatoQIz7 flxblOaV+uIymGSMA7EAlgxsy63GQVn1K9V/sDSPf23FsYPBf58vPa/ypn7bwy133BRL Zc1yr+sevOzJe2Y7DFMWObRayd7U7fhwQ6WvA04oEsFiTSAscLAfs8f40Lpq2NuslUQS wapUUNbi4BnWo1Y8BPvnuRtW9sJH/JqREGtvX+nUNaTgjk/RNcswj4LuXeeIAs+7RFsB HUyt+eAte03pmlG8CWVq1vYDxnRW8fIonNjcyD3s6bxollNUIb9lKqe7HV5236P8axGF w0IQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-146565-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146565-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m2-20020a17090a71c200b002a5d501cb3esi9620444pjs.96.2024.04.16.02.40.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 02:40:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146565-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-146565-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146565-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 F2BEC28338E for ; Tue, 16 Apr 2024 09:40:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A94785C76; Tue, 16 Apr 2024 09:40:05 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 460AB6F06D; Tue, 16 Apr 2024 09:40:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713260404; cv=none; b=Iqpg5t9XO1jPjDdwPmurByOMIGt/iyUe+qXpya2T7oY06z959xaIA1BQ2fnLv1te6ZeeTQLaXwKvpSmb/jTOTqCIW7Yfn/rI571et0PdicJNmJnEgCDV6ODhv1KKcPUrHN9UjYFyTh7Nx/HvAXhnU1rUmNoTp5+lnsGIAshNlhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713260404; c=relaxed/simple; bh=N5iDA4J5EI5OwQuYiba40jo6h+OcdalhCXiQdQOaXBg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gjLmST5ehaL6ysB1EQsl/Yv8MLcIc4cmVLvuke3YfeM95OvoDzzrpwz+0nknD6kXlhZ/4LmHwS4v82xXhq7rvuAwlOm/QA4+Ldx3XaZqkK/GcsThvm7X8kqhizIc2sB/GYOD96cfctvI51PBiKZb2yZ1zh0TkGk+B3duHQXurXs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E70441063; Tue, 16 Apr 2024 02:40:30 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8941D3F792; Tue, 16 Apr 2024 02:40:00 -0700 (PDT) Date: Tue, 16 Apr 2024 10:39:57 +0100 From: Sudeep Holla To: Yunhui Cui Cc: rafael@kernel.org, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, paul.walmsley@sifive.com, Sudeep Holla , palmer@dabbelt.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 Subject: Re: [PATCH v3 2/3] riscv: cacheinfo: initialize cacheinfo's level and type from ACPI PPTT Message-ID: References: <20240416031438.7637-1-cuiyunhui@bytedance.com> <20240416031438.7637-2-cuiyunhui@bytedance.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240416031438.7637-2-cuiyunhui@bytedance.com> On Tue, Apr 16, 2024 at 11:14:37AM +0800, Yunhui Cui wrote: > Before cacheinfo can be built correctly, we need to initialize level > and type. Since RSIC-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 had already given the reviewed-by for the series, anyways here we go again: Reviewed-by: Sudeep Holla -- Regards, Sudeep