Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5482574pxb; Wed, 26 Jan 2022 13:05:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpbjzRiGXrSmHhbgFrPqUgwiwVwENYrQUdK6y08AuvKSXPA22Qa/IzTHCrEZtGA/ABHIS8 X-Received: by 2002:a05:6402:5201:: with SMTP id s1mr719597edd.371.1643231155173; Wed, 26 Jan 2022 13:05:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643231155; cv=none; d=google.com; s=arc-20160816; b=dp58TPzYRROT4ebqtUJI328b+y2AJ1jdeMSl2vSS3Abh7aVX+aQHRnQNTp23HPT7Uu GmscTWsHyC3O2xKHsfANTAqMsbBqdjqLxLx6CfbEwr+IOBqMWdlnAXT0yGhBzxrNIrU7 zsTfr6gUUqRzv+HdVPTVtxMSa5he0chkdmTZy8D/EfOeYr/9P7Iw3Ki65eDBh4BTl+nO 5S+6gHQSfdoRSNyXSvA14jZ/Kc1gYPzVndhp1KfM2gMtCYcr4ETajFp7C6rO2bZdAKlr yHvN3R0WEwi03k6j2HwbzNmuW5HmRIgFv0D8JmV+RQLZaU95tiyqut2hiz8cSF1HtZhR EiwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=DkJlZmBjDZpQDVRFZZg3DkkvPuuZKe+wlj3LnEUCls0=; b=JDuI8yPesApYhGKEICoGfZrT1kDous/myvtWHiObxhlN0nxzhvGA1hYmL2b8jjnx7y UjKDoPWffuuh3+UCO2bVgOYNi4Ea+b5W+Tabdf5HT7wpbW44HptjsyieS38X7dF3It8p 8LmKRnm+eo7kUrQPVECk6Jn5jbsvuYxKXP1eh/zlyBcv2/5jVAEJJc6SAYGVnQmo/Ek4 epPMEBrcYf+NpRuUefvBHtE9o5N9Yu0CWMlwTGvbvJok7aPGqSQm0z+B1rlSPuHRVlDN 3EI/AVX+bUlef4IGS4WfQPmLige9nHCBAd654VklOCPktu8GN7J00UY9O4Gg5DLODrrw ei0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si170798edq.365.2022.01.26.13.05.29; Wed, 26 Jan 2022 13:05:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237761AbiAZKgv (ORCPT + 99 others); Wed, 26 Jan 2022 05:36:51 -0500 Received: from foss.arm.com ([217.140.110.172]:58514 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232441AbiAZKgu (ORCPT ); Wed, 26 Jan 2022 05:36:50 -0500 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 6AD6F1FB; Wed, 26 Jan 2022 02:36:50 -0800 (PST) Received: from bogus (unknown [10.57.39.189]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AE2C53F766; Wed, 26 Jan 2022 02:36:48 -0800 (PST) Date: Wed, 26 Jan 2022 10:36:14 +0000 From: Sudeep Holla To: Kohei Tarumizu Cc: catalin.marinas@arm.com, will@kernel.org, tglx@linutronix.de, Sudeep Holla , mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/8] arm64: Create cache sysfs directory without ACPI PPTT for hardware prefetch control Message-ID: <20220126103614.pcrcuc2kzklkq3xa@bogus> References: <20220125071414.811344-1-tarumizu.kohei@fujitsu.com> <20220125071414.811344-6-tarumizu.kohei@fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220125071414.811344-6-tarumizu.kohei@fujitsu.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 25, 2022 at 04:14:11PM +0900, Kohei Tarumizu wrote: > This patch will create a cache sysfs directory without ACPI PPTT if > the CONFIG_HWPF_CONTROL is true. > > Hardware prefetch control driver need cache sysfs directory and cache > level/type information. In ARM processor, these information can be > obtained from the register even without PPTT. Therefore, we set the > cpu_map_populated to true to create cache sysfs directory if the > machine doesn't have PPTT. I am assuming this is ACPI enabled system. This looks bit hacky in my opinion. Before I explore better way of adding it, I would like to check if you have explored ways to add PPTT reading these registers from UEFI/EDK2 as PPTT has other topology information which you will need anyways. That would simplify handling of these cacheinfo sysfs in the kernel. Let me know what are your thoughts ? -- Regards, Sudeep