Received: by 10.192.165.148 with SMTP id m20csp1864897imm; Thu, 26 Apr 2018 03:28:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+QgnHkfXmIFJjoWFuA9N2YcAZREL8G4IgxwhtOVXm4lvCE8mxlC+kIZhVtfp9+WpS52Pil X-Received: by 2002:a17:902:6f16:: with SMTP id w22-v6mr32721224plk.216.1524738537976; Thu, 26 Apr 2018 03:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524738537; cv=none; d=google.com; s=arc-20160816; b=SC2H/1h3mwBE8yy98GNvW69KmNKhd/kp+d0SZksEztWg0kCSm//gOcBlw5ModwEuOG Ek/ckXCA6CWYZcQp4hOwjJQvTtgEKb7JNSg0xk4h7r+7VBsvdniVJaL28W+JV2+GTqIp ZlADOxzS2qq4fmwQWh5qfpXbRQAZvZKRAzorWowGg8QN8abHi/7WbCLIwyh+nvUcDIG/ c9tbaRDJiDBuXtY5/zTsAELPq7GGpyZFG34ulZjwcrB3s4GIU2mG3eyLSZWg5d4Gc1R+ AVufkR1y5qBxHSoOMkPxbswc89wred3nP37dZSpMbeF7G17M5De56xvGvYoeVujkTp16 aW7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:to:subject:cc :arc-authentication-results; bh=hBqdvvj4z3+WZRtEAJXpa1j7ixpilZ6lf6fmejuLAx8=; b=DdIfTeixkzs6qGUatZSBvlqz7fxJRMRDQYeT2hbryBe6f03oYOuGYbuO7XrjismPc/ tU5AX3XAIAPuglTihDfE6F7u3CE24MoZ3cRVscAOy5kPdyrgXnPEXvsU3HN5pM8DRG5e gVq/JWRLsQFaTMGDuhAvN6AMP5kp/c8JQLz4h02M7tTr4+pst/QuZV3agkPHq8XTYYmY f6H/pzalghIioxaZDzqb+0dex74d7tZuv7nX1iRvLTvQx4NDE4O3STfA548pD21SaHG+ uHG1VRt8X7+hXTL8MDpEly76DvguUV5oXuFazKfegdLJufm/+RaPCtaKvCvRuerPsIso ZnOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s14si7944840pfh.11.2018.04.26.03.28.43; Thu, 26 Apr 2018 03:28:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755242AbeDZK1M (ORCPT + 99 others); Thu, 26 Apr 2018 06:27:12 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:50792 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754488AbeDZK1J (ORCPT ); Thu, 26 Apr 2018 06:27:09 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1FFD215AD; Thu, 26 Apr 2018 03:27:09 -0700 (PDT) Received: from [10.1.210.28] (unknown [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3CF913F487; Thu, 26 Apr 2018 03:27:03 -0700 (PDT) Cc: Sudeep Holla , linux-arm-kernel@lists.infradead.org, Lorenzo.Pieralisi@arm.com, hanjun.guo@linaro.org, rjw@rjwysocki.net, Will.Deacon@arm.com, Catalin.Marinas@arm.com, gregkh@linuxfoundation.org, Mark.Rutland@arm.com, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, wangxiongfeng2@huawei.com, vkilari@codeaurora.org, ahs3@redhat.com, Dietmar.Eggemann@arm.com, Morten.Rasmussen@arm.com, palmer@sifive.com, lenb@kernel.org, john.garry@huawei.com, austinwc@codeaurora.org, tnowicki@caviumnetworks.com, jhugo@qti.qualcomm.com, timur@qti.qualcomm.com, ard.biesheuvel@linaro.org Subject: Re: [PATCH v8 04/13] arm64/acpi: Create arch specific cpu to acpi id helper To: Jeremy Linton , linux-acpi@vger.kernel.org References: <20180425233121.13270-1-jeremy.linton@arm.com> <20180425233121.13270-5-jeremy.linton@arm.com> From: Sudeep Holla Organization: ARM Message-ID: <16324b54-42d4-d9bc-6d57-de52431dc209@arm.com> Date: Thu, 26 Apr 2018 11:27:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180425233121.13270-5-jeremy.linton@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/04/18 00:31, Jeremy Linton wrote: > Its helpful to be able to lookup the acpi_processor_id associated > with a logical cpu. Provide an arm64 helper to do this. > As I pointed out in the earlier version, this patch is not required. The acpi_id stored in the acpi_processor can be used for this. Won't the below change make it work ? I can't think of any reason why it shouldn't. Regards, Sudeep -->8 diff --git i/drivers/acpi/pptt.c w/drivers/acpi/pptt.c index 0fc4b2654665..f421f58b4ae6 100644 --- i/drivers/acpi/pptt.c +++ w/drivers/acpi/pptt.c @@ -432,7 +432,7 @@ static void cache_setup_acpi_cpu(struct acpi_table_header *table, { struct acpi_pptt_cache *found_cache; struct cpu_cacheinfo *this_cpu_ci = get_cpu_cacheinfo(cpu); - u32 acpi_cpu_id = get_acpi_id_for_cpu(cpu); + u32 acpi_cpu_id = per_cpu(processors, cpu)->acpi_id; struct cacheinfo *this_leaf; unsigned int index = 0; struct acpi_pptt_processor *cpu_node = NULL;