Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3851615imw; Thu, 7 Jul 2022 08:32:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tTQNhwBa6+k87OumRuft0sYkn3QfdgHjHEQizkQBMddkHQS22yyYr3Je3DJJ3YlDgpal8g X-Received: by 2002:a17:907:6e11:b0:722:e5e7:e6d with SMTP id sd17-20020a1709076e1100b00722e5e70e6dmr46763940ejc.222.1657207945578; Thu, 07 Jul 2022 08:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657207945; cv=none; d=google.com; s=arc-20160816; b=aLm3Lm8aOed1qP9qG7TDsoV+NIUfcysFIQerGWBkAAQaDOWKy5bnHUcdJyFcXJLl9u bDz3F4OQHmFNhzqz4i3ixpxQ32tM9njJIq4qBEIv6IASmIWYeXW7CST3op4izEHV24U8 Leub891HJ61Jx/SltOJi3sDpEMBD6j6XZCAQujNGNg8RY1HSorZBSxCQ24GPWWlqb2py aNYp6C0ug9hzOzkc657CAhdubrHR9ewBFcU2tqxPE95+BfvKNpywqNqTtunOq2PBStpz 2Xt0WbuGjvD1JPyicldehjljpngLoSLDIiA71z+vf+bkN24vJqM5bc1ekpftHmw38IjV 79hA== 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=0CGgICuP7akNLce2ZlVb8UHkPspiUu64RM63lSp38Jo=; b=lydoyQbJzChRmM9g9sAnlWdHqaTK5RT20UCGDiI5av/NRq7TP1YFBaovXJyJVcb4me FTyawdm/5u5YT+VIb1wJXFRuFjQxFhGRZat/Kc4KPSwqEjRB666QCMPv0vguTzwSk9K9 T4EA5FZRg2/fiT7h4iUntREMs75lRLwTcg0cIaKHO76ocmBhqY1R0vwWPTUF961uPOY7 naxJoN8vQSfNcKqf2u9rb7EBKktjBK5vD2ypjpSZcPMfg0s6SuGbQVP/ZJPBpQCgknS8 nsSATe6QMrub3UJLHP8ucLtDA357NCxWIlTy/wpyFIwchLGwsdY8DYzGqivuMz44RWKC 589Q== 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 l19-20020a056402345300b0043a57509ddasi1440090edc.556.2022.07.07.08.31.51; Thu, 07 Jul 2022 08:32:25 -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 S235482AbiGGOpW (ORCPT + 99 others); Thu, 7 Jul 2022 10:45:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235872AbiGGOpU (ORCPT ); Thu, 7 Jul 2022 10:45:20 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3EAC828E1F for ; Thu, 7 Jul 2022 07:45:18 -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 5BC03106F; Thu, 7 Jul 2022 07:45:18 -0700 (PDT) Received: from bogus (unknown [10.57.39.193]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A8A383F66F; Thu, 7 Jul 2022 07:45:15 -0700 (PDT) Date: Thu, 7 Jul 2022 15:44:04 +0100 From: Sudeep Holla To: Jeremy Linton Cc: "tarumizu.kohei@fujitsu.com" , "catalin.marinas@arm.com" , Sudeep Holla , "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" Subject: Re: [PATCH 5/8] arm64: Create cache sysfs directory without ACPI PPTT for hardware prefetch control Message-ID: <20220707144404.pm3qtgfo6fsik77d@bogus> References: <20220125071414.811344-1-tarumizu.kohei@fujitsu.com> <20220125071414.811344-6-tarumizu.kohei@fujitsu.com> <20220126103614.pcrcuc2kzklkq3xa@bogus> <4b99cf3c-f40b-cba7-2fa2-b6b311859776@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4b99cf3c-f40b-cba7-2fa2-b6b311859776@arm.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,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 On Thu, Jul 07, 2022 at 09:37:57AM -0500, Jeremy Linton wrote: > 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. > Thanks a lot for the suggestion Jeremy. For some reason, I missed to follow up on this after my initial response. Anyways I agree injecting PPTT via initrd is a good compromise on systems that are shipped without or broken PPTT. I have tested that to be fully functional on v5.19-rc* on one of the servers shipped with broken PPTT. -- Regards, Sudeep