Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp6310460ioo; Thu, 2 Jun 2022 03:50:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQR/TtZg/GtWBriA4hVHWFEcG/QchCRnSKRo874nKqqpDggS2iV2hWu2nNflxvqGOrocIt X-Received: by 2002:a17:902:e751:b0:163:d8d9:8440 with SMTP id p17-20020a170902e75100b00163d8d98440mr4338825plf.12.1654167033952; Thu, 02 Jun 2022 03:50:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654167033; cv=none; d=google.com; s=arc-20160816; b=RvkYUSlEVK7Ns0LYEStn+qUMZRqxmPxP2+ktmY8jEWPggpprA1tjNLcspyb1zPPirc MySEOR25lTEhVY39q8A5ta24dM1pDY68Dlt5AkYBaCv/3oX4sC8N6hqkJBGUfG9fCgVn n9N5t4mVWOWsakWPvlDtWXkC0tzDEhx9AWTf27jlhyLgwjAGWT+R55eLngJQMEV46lk5 px8H10qygDBtSCmHBDAu3e2fqCdVdw9F2eCd5Zm4Eh0wgJzSx4X+mnKAgPWWX9GQ9jku RzphXZZYssbmkK3QcH8cW7D7m5YYgNYJPpOH0lzImfHPwV90wR/v1CJptRFLzRhI9YmB JoGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:reply-to:dkim-signature; bh=XvZ5OMbEcwo0Xa7CqN8M7maUXV2iBoekFoadMgX1RCs=; b=GaVKwD2FEOQ4taJJ7tpzEqJRBKwuQNhGgzsFjGpEqMAJfoE3c+sVuE1IY8vtWEQZCd tCBUkELDFyL5QrtdY7BfRKPT4oSD1rv5dYJ6zUTT24U6JJwAPfUx5mp6tWzQ1QxBnA9A RLV+Yeai7i4gHym07uVnhM5RtoZNsgw3yARhrIzwu1TGD3B9ams8np0ZKO2xnz+x6nZy f9LOAGRk3Ss/jlhm7kvqHMMZ4bcs1Gz9D3biijr6PUyDJVre3ykkscPbXQTWxJM/4AI2 20Fzhvpla6qqMEU/J1MgWpxR6t0a8JpuOi9w/nqfj4KyVXpr3ayv2vlgAApmzZJDMnUa XqQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CEZWq2Hn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a655908000000b003fae36f0321si5997176pgu.604.2022.06.02.03.50.19; Thu, 02 Jun 2022 03:50:33 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CEZWq2Hn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229700AbiFBGm2 (ORCPT + 99 others); Thu, 2 Jun 2022 02:42:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230317AbiFBGmZ (ORCPT ); Thu, 2 Jun 2022 02:42:25 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 82B0F33372 for ; Wed, 1 Jun 2022 23:42:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654152142; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XvZ5OMbEcwo0Xa7CqN8M7maUXV2iBoekFoadMgX1RCs=; b=CEZWq2HnYYaZ9tQSaYyHYmmZVX1XVFQoPJgegboGeH7KaK1B3oonrI8NbgXnGJ3JQwFhMX 1150CjBv8qqQr4Ii4OWZTl8jp+8XJ9TeT8Ue/DEoK87JgMPN/FCssKuKn8ZDl/3ERVU93e R2Lqa/Xf5JfHADJ308ur97rVI2XNLvY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-414-J5AQOQPmNeCLDk1obVMTng-1; Thu, 02 Jun 2022 02:42:18 -0400 X-MC-Unique: J5AQOQPmNeCLDk1obVMTng-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A61AA8032E5; Thu, 2 Jun 2022 06:42:17 +0000 (UTC) Received: from [10.72.12.91] (ovpn-12-91.pek2.redhat.com [10.72.12.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 293D8492C3B; Thu, 2 Jun 2022 06:42:11 +0000 (UTC) Reply-To: Gavin Shan Subject: Re: [PATCH v3 08/16] arm64: topology: Remove redundant setting of llc_id in CPU topology To: Sudeep Holla , linux-kernel@vger.kernel.org Cc: Atish Patra , Atish Patra , Vincent Guittot , Morten Rasmussen , Dietmar Eggemann , Qing Wang , linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, Rob Herring References: <20220525081416.3306043-1-sudeep.holla@arm.com> <20220525081416.3306043-2-sudeep.holla@arm.com> <20220525081416.3306043-3-sudeep.holla@arm.com> <20220525081416.3306043-4-sudeep.holla@arm.com> <20220525081416.3306043-5-sudeep.holla@arm.com> <20220525081416.3306043-6-sudeep.holla@arm.com> <20220525081416.3306043-7-sudeep.holla@arm.com> <20220525081416.3306043-8-sudeep.holla@arm.com> <20220525081416.3306043-9-sudeep.holla@arm.com> From: Gavin Shan Message-ID: <444a1540-cf3d-7144-4ebc-d6f4587272a5@redhat.com> Date: Thu, 2 Jun 2022 14:42:08 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 In-Reply-To: <20220525081416.3306043-9-sudeep.holla@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 5/25/22 4:14 PM, Sudeep Holla wrote: > 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. > > Signed-off-by: Sudeep Holla > --- > arch/arm64/kernel/topology.c | 14 -------------- > 1 file changed, 14 deletions(-) > Reviewed-by: Gavin Shan > 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; >