Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1243322lqo; Thu, 9 May 2024 08:27:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwN3YAbaXiH9KIveSEgxZKY+gtClLUGJ9cxGwbNFqRutzxJUFjs+Vm+ggg+vtcmTIioEFOTpE7A89aOUygH5pshs+TV5u7oLjNFvOSeQ== X-Google-Smtp-Source: AGHT+IH9WntLLLd1aXy//5zQziqKlunt6VgUYUZCUO8SjxCIiYfK0/4xotc6tLDPaziQWZTAJqYr X-Received: by 2002:a05:6a20:9150:b0:1ad:90dc:4a65 with SMTP id adf61e73a8af0-1afde11c12bmr52518637.27.1715268462076; Thu, 09 May 2024 08:27:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715268462; cv=pass; d=google.com; s=arc-20160816; b=PIbpjCiOb7Q17BW6HeicmUe5zcBiKBDCsWeAm+l3ls1KhebMSP2K3cgjleRbPTJ9L6 lGT0kAP34N6qRKAl4rg8su8y/ENEPRl3we3DJwn1PXZPOWeodcOjWw3mytFgfNn+56Np MUCtW7dyAq7u1wlvRG+YPuptEb50/cIxAXg2eVKr8lwi3Ym7TsQNmm8rawoSWnOaLZQl /iAAQ5Sivm8Zz30mp253+MR9v5hY6ihJ3Ey4SN4SZ/+SIPag83bVy0It2olzOwTG0OcG /0JP+Rt4TKrMmr0aW1dDVxwLLUOM24nlVMrJVn+42co2rhqOQgS+5JIx+FWz8jJ/SYZM W6yw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=m2501eSDBvSO7nRPnuHroWeT9CfusTlPIQAQpN9EB3Q=; fh=W184ZDqUXXTumSdsmZPe2IGa34rprTBotC546XLWIE0=; b=mKXlddaBxDxtNbqtmr0hF1Cr5dGCJKfc4LkHS2zer7DBSTcR0aJjGUMcejmjy69x3R riwX9cq7sqhrLyH5TrgDhzE5ANq7q9DtDEo8lX2Ybrvq8TMSpniwIOHs32WvSrMPjYFg xELSbb16KytcK77jyCSYDp/yErCoxjKp1xxmQjbzQxK8JPNyOL9wmHnTH3alv+hUjklA WQezayakfHb01o/5tTCyuToGBtJDKyhVlV8VtomAxVQFhxaHKxE8u03C8BjGzZEP3wDC KnJGhhqNXUInFrBZMZ/AYnfOhkPzqhkkZRBAAxnhD7PQa51E28GspurxubjlSoibPIuJ snSw==; 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-174631-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174631-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63412a4ded5si1542117a12.677.2024.05.09.08.27.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 08:27:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174631-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; 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-174631-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174631-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 A08A228137B for ; Thu, 9 May 2024 15:27:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5319C16F269; Thu, 9 May 2024 15:27:34 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF8A116F0E3; Thu, 9 May 2024 15:27:31 +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=1715268453; cv=none; b=KggptflW8v04w3XhFaRgdRilLsPUdnPJiSJzRTjgMxLexqPWs5tOVc4Tv+DcIGAkAd5bggeIIKpUzwi0pUdvPWlVb5H/uNau1hd114FMY5pW445fO/LDX+atYimLr7iDXLrn+XxYefXQir+bB6xSHOaM1LUdGFcOqO+RlKyx1Uk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715268453; c=relaxed/simple; bh=QYn96/erChYTP+1PKVNf3SdpeYI0voDpHb/wAXwg5mc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ONS+Mg9fGFxeCi3mh4GEKROJ7ElFwR5rhix07jCVl1piEaczxGhADOE5FQjq73ibnWYUdKZrjU2HAGKcdIHg0GMaKfxtBIMJ5zAHLr+s67a+dFWcdw7WucGk0aPu5dktTCJNZxJ3Bc2n8oteWreo7f1lVloFyUl+Try18WV6Iac= 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 62329106F; Thu, 9 May 2024 08:27:56 -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 AE4E03F641; Thu, 9 May 2024 08:27:28 -0700 (PDT) Date: Thu, 9 May 2024 16:27:26 +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, palmer@dabbelt.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 Subject: Re: [PATCH v5 2/3] riscv: cacheinfo: initialize cacheinfo's level and type from ACPI PPTT Message-ID: References: <20240509073300.4968-1-cuiyunhui@bytedance.com> <20240509073300.4968-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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240509073300.4968-2-cuiyunhui@bytedance.com> 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 ???? Reviewed-by: Sudeep Holla -- Regards, Sudeep