Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3858429imw; Thu, 7 Jul 2022 08:38:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t9SK7bF+Kec4doA2B6w8tICk6b7/l78UwpQhW9DBIxIl1fgyeRhxe/g8o2cAIUpR1hvaZ9 X-Received: by 2002:a17:907:6d8b:b0:72a:b3bc:2ab2 with SMTP id sb11-20020a1709076d8b00b0072ab3bc2ab2mr27850920ejc.67.1657208315192; Thu, 07 Jul 2022 08:38:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657208315; cv=none; d=google.com; s=arc-20160816; b=rGCpFObctUPSe3RZyWVR9WEbhaBTNcb1O6ZhzotFS1EUeD4/V8efD96hPK7VhSsudj 2te+p9IS94sViTcXlsnvmu2/d3SxBXKYVaYcTh4fQgQEdAIAZAngVk/My+K3EN2J0i0I Xzunme060i6hVgmlqKdKb0XhQZJ2Qs5fN/P7VG/NpjQWxrGuyEbqa3Ta3+LhVAHc6JKM 6mdBycHbpnhyVP0TL9a5oi46WpPrNFnIkhmCpWIK2S8Ojc/Q+nRkf07dpzbRpOxNEYqT rV0nmEhYBsXx5Adu5sD5KRbUsYUUQe2yK+YFu1e0AlhtKEdFvVrQ2TU3io/1/Un6hKuX /WGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=w24dCDyUTdUGPhmaL3l2owLR3JdNtwyFo0ALxE3+IIg=; b=nxriJ6uBKeQ+C3S5yDsD9V1twQerdPSvGix5ZFsV1jFu0msJcyba1gwMQmsVe0tC0w 4qhgR8rsWYEkrixQ2kfVOAqpeCt0Fu1oRrL1qAnWdkm9wMPUCo+dRtcO1a8D3hxifqPB Hfe9suz2CM1oU0sQor1fWW80xEMKc85Js1IVxrawWkBoUtJhzOGvfY5YCaqykjy/54u2 LjmisDLUUrRhg2IiaFFNXbojBY+gytTWKKvYhDNaY6hcrmLQywK8RV283P8YvuPK76yM QDRU/7idYT3cGRgougQ0cCrRVzmDKeJfBu6/AjfnACw4zLAhRBcjcyqaOq1AwgDGX/IG 0yhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho31-20020a1709070e9f00b00726b8b2949csi28956289ejc.982.2022.07.07.08.38.08; Thu, 07 Jul 2022 08:38:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235824AbiGGOiC (ORCPT + 99 others); Thu, 7 Jul 2022 10:38:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235486AbiGGOiB (ORCPT ); Thu, 7 Jul 2022 10:38:01 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8D0C530F6F for ; Thu, 7 Jul 2022 07:38:00 -0700 (PDT) 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 7F3021063; Thu, 7 Jul 2022 07:38:00 -0700 (PDT) Received: from [192.168.122.164] (U203867.austin.arm.com [10.118.30.29]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 75EC63F66F; Thu, 7 Jul 2022 07:37:58 -0700 (PDT) Message-ID: <4b99cf3c-f40b-cba7-2fa2-b6b311859776@arm.com> Date: Thu, 7 Jul 2022 09:37:57 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH 5/8] arm64: Create cache sysfs directory without ACPI PPTT for hardware prefetch control Content-Language: en-US To: "tarumizu.kohei@fujitsu.com" , 'Sudeep Holla' Cc: "catalin.marinas@arm.com" , "will@kernel.org" , "tglx@linutronix.de" , "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" References: <20220125071414.811344-1-tarumizu.kohei@fujitsu.com> <20220125071414.811344-6-tarumizu.kohei@fujitsu.com> <20220126103614.pcrcuc2kzklkq3xa@bogus> From: Jeremy Linton In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2/1/22 05:56, tarumizu.kohei@fujitsu.com wrote: >> I am assuming this is ACPI enabled system. > > Yes, it 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 ? > > The latest firmware of ARM64 machine, FX700 with the A64FX processor > does not support PPTT. > I think adding PPTT is the best way to generate cacheinfo sysfs. > However, it is difficult to modify the firmware to add PPTT, so > it is not clear when it will be possible. > Therefore, I would like to implement the function in the kernel on > the condition that firmware does not support PPTT. As a bit of a late comment here, I assume you tried injecting the PPTT via the initrd (directions in admin-guide/acpi/initrd_table_override.txt) then? That is one of the usual kernel workarounds for broken/missing ACPI tables. As mentioned above, besides not providing appropriate topology information to userspace, not having the PPTT is also possibly causing suboptimal scheduling decisions in the kernel itself.