Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4136498iog; Tue, 21 Jun 2022 12:51:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uUwL0I3MkvLHB7rki/XkUXJ+vjWDQwEWQhhK4eLjmOBY5zNZonh/DENWVA/5NMbSCNHZpV X-Received: by 2002:a17:903:18a:b0:166:ba97:8b19 with SMTP id z10-20020a170903018a00b00166ba978b19mr30235350plg.62.1655841061659; Tue, 21 Jun 2022 12:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655841061; cv=none; d=google.com; s=arc-20160816; b=aWt8xdF/L3C9EVPOQtXIsOXmQva2jkc0pdrri7/b6IHfbjW3fpoKNWOhscQkKo35Gr xo3tOYR8O61oV4wn0ygWCausgNeqoDaNAnAMmd59eiR0YgASaRHpRwPvdDA6+8L6lkyT 7GayDc/GE0cDneTiBPP6nsqX9VENQptJ0rU11S9WtQ81HqlCVC3kPmT+dn690hDsWRP7 MKd2vZ67D9f/f9pb0DdmEe87z/vh6s1c8dM5F41X9ypLjpjp6nYTSaiphdjmDD03RjnI rNneARMiHnlYGMIa5I5jB8xrOZW6p1FMpW7Gysv4PVgTBnEYJg5lz8gxkMQYtkNy/3f5 /oFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qDstjFB9w/scNzTYQQyI8vWuwZWG0RQJe+sUydJT8zs=; b=iRz/RiF9blDj1QSvG+00JCicvEmrAO7jWVhgTjiNbdjXEfuLv9HOR2Go8vMixUxazj 6/f2a0ILavyNvwra1thYWmwBartgfxVnYfukXDmaehnOKN35RYTuKgO6MAHLXZ6mFds7 ENXYeZ2qTHERs02goT9p10IFsSbhjDiuwO65ZEI+ROfWNHGPqQa7szh+ndP+nva6z7XM hY3e05sjuRTf9HVACZaKEz3d2eJyYBfTinhzRYvGqHtErQmNWRooj/1fOVRtrWU3Wc4m EDvlbENLI45R8vj+r1s2d3WuDS48rwRAJeG39q+SxTEpg3GG/l0N+PH0gkei/UBigt8M gzcg== 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 u4-20020a17090282c400b0016a2faad41asi4628259plz.476.2022.06.21.12.50.46; Tue, 21 Jun 2022 12:51:01 -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 S1352229AbiFUTVm (ORCPT + 99 others); Tue, 21 Jun 2022 15:21:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353256AbiFUTVI (ORCPT ); Tue, 21 Jun 2022 15:21:08 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4644D1174 for ; Tue, 21 Jun 2022 12:21:07 -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 3D46D1688; Tue, 21 Jun 2022 12:21:07 -0700 (PDT) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 008833F792; Tue, 21 Jun 2022 12:21:04 -0700 (PDT) From: Sudeep Holla To: linux-kernel@vger.kernel.org, Greg KH Cc: Sudeep Holla , Atish Patra , Atish Patra , Vincent Guittot , Dietmar Eggemann , Qing Wang , Rob Herring , "Rafael J . Wysocki" , Ionela Voinescu , Pierre Gondois , linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, Will Deacon , Catalin Marinas , Gavin Shan Subject: [PATCH v4 10/20] arm64: topology: Remove redundant setting of llc_id in CPU topology Date: Tue, 21 Jun 2022 20:20:24 +0100 Message-Id: <20220621192034.3332546-11-sudeep.holla@arm.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220621192034.3332546-1-sudeep.holla@arm.com> References: <20220621192034.3332546-1-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Since the cacheinfo LLC information is used directly in arch_topology, there is no need to parse and fetch the LLC ID information only for ACPI systems. Just drop the redundant parsing and setting of llc_id in CPU topology from ACPI PPTT. Cc: Will Deacon Cc: Catalin Marinas Reviewed-by: Gavin Shan Signed-off-by: Sudeep Holla --- arch/arm64/kernel/topology.c | 14 -------------- 1 file changed, 14 deletions(-) Hi Will/Catalin, This is part of a series updating topology to get both ACPI and DT view aligned. I have not cc-ed you assuming you won't be interested. Let me know if you are. The parts affecting arm64 is just this patch removing some unnecessary ACPI code that is now moved to core arch_topology.c Please ack if you are happy with this and OK to take this as part of the series. Regards, Sudeep diff --git a/arch/arm64/kernel/topology.c b/arch/arm64/kernel/topology.c diff --git a/arch/arm64/kernel/topology.c b/arch/arm64/kernel/topology.c index 9ab78ad826e2..869ffc4d4484 100644 --- a/arch/arm64/kernel/topology.c +++ b/arch/arm64/kernel/topology.c @@ -89,8 +89,6 @@ int __init parse_acpi_topology(void) return 0; for_each_possible_cpu(cpu) { - int i, cache_id; - topology_id = find_acpi_cpu_topology(cpu, 0); if (topology_id < 0) return topology_id; @@ -107,18 +105,6 @@ int __init parse_acpi_topology(void) cpu_topology[cpu].cluster_id = topology_id; topology_id = find_acpi_cpu_topology_package(cpu); cpu_topology[cpu].package_id = topology_id; - - i = acpi_find_last_cache_level(cpu); - - if (i > 0) { - /* - * this is the only part of cpu_topology that has - * a direct relationship with the cache topology - */ - cache_id = find_acpi_cpu_cache_topology(cpu, i); - if (cache_id > 0) - cpu_topology[cpu].llc_id = cache_id; - } } return 0; -- 2.36.1