Received: by 10.192.165.148 with SMTP id m20csp698657imm; Fri, 27 Apr 2018 06:09:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp0Or74YAZSTw4lYuReyVq2P7Wi1V+T6r1y3sudqEAE3fIR/sPSpieP4RCv/K1AHkHz9sa3 X-Received: by 2002:a17:902:bb06:: with SMTP id l6-v6mr2283664pls.255.1524834595314; Fri, 27 Apr 2018 06:09:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524834595; cv=none; d=google.com; s=arc-20160816; b=YKKyTZziJ3iIy8TQnEJNKjpPLGjAp0xJRz7NxHkMoqPFwZzGa5GEjldw5XCxICMstp JvB0cVpjWu+LlARBqC7g8HkUc7U+qL8nxUAIZ3O+n1t8M9iTHEUkF37wpkuu+RaJ0xka FwIDxwb8WA17o86SH8sMhfcejFMP/xeqg0KQn9lbmUJQqI8Q7er+4ILr+5s6bIZAHqUC Iy0V/zq9T5k+zJAHBvB7wL7587YLNHc73WW9/tPK2bWI9ePX4PcIAyiCPbZW49WvNX7R hIi4j02KimI6GGKRa+F0X/CoAqg/Ru1HN95uC2Wdq57IVs5O4q0XCp6ctai/HLq2ZU9J T5Rg== 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=6GywujpK0ygida3h+fooLjal6P4GXk1GW0g6RyM/RPM=; b=L2g8jyI2m78Iw77JcJn+BdBWcMvol2t9O8USwrNOOeQaPJ2nYXxo1d8365qjGT1ggh WWlYCuoUJZZpLBHv8JvmMgIVk8NjGXrHrWyNkYCx3YYhtB3iBH7z852gZdnc52+pm1QR 7ul/BfP5zAnfbaO9ja/vyrmLYJcamyWXSDZm6BeZJJ9qHyW4KodbVm6HQX+5zoPsr006 IPM+qkyeULgQjkx74Ht7piKM4hgYP9axd2qOnvYAEiYIxh6TkTRzida+xNNxJJoLNoxH sqSUzWPSytzyBQwOLOv/WM77hm55ZFRcobnK0Zn078OJX5VwzCifB02gwiUWt10b2ZdK zG2w== 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 f15-v6si1198547plr.310.2018.04.27.06.09.40; Fri, 27 Apr 2018 06:09:55 -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 S1758329AbeD0NI2 (ORCPT + 99 others); Fri, 27 Apr 2018 09:08:28 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39874 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758302AbeD0NIX (ORCPT ); Fri, 27 Apr 2018 09:08:23 -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 6833F1529; Fri, 27 Apr 2018 06:08:23 -0700 (PDT) Received: from [10.1.210.28] (e107155-lin.cambridge.arm.com [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5411D3F4FF; Fri, 27 Apr 2018 06:08:16 -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> <16324b54-42d4-d9bc-6d57-de52431dc209@arm.com> From: Sudeep Holla Organization: ARM Message-ID: Date: Fri, 27 Apr 2018 14:08:14 +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: 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 19:33, Jeremy Linton wrote: > Hi, > > On 04/26/2018 05:27 AM, Sudeep Holla wrote: >> >> >> 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. > > So, I only noticed your previous email last night on the mail archive, > as I was applying your review/ack tags and couldn't find a response for > this patch, seem the spam/etc filters need some further tweaking! > Ah that's bad. > At that point, I was pretty sure the suggestion wasn't going to work out > of the box as a lot of this code is running fairly early in the boot > process. I spent a bit of time and plugged the change in to verify that > assertion, and yes the per_cpu processor/acpi bits aren't setup early > enough to be used by much of this code. It is being called from > init_cpu_topology()/smp_prepare_cpus() which precedes > do_basic_setup/do_initcalls() which is what runs the acpi_init() > sequence which ends up eventually allocating the required data > structures. So without restructuring the core boot sequence, this seems > like a reasonable solution. > OK makes sense. I completely ignored topology related patches as I haven't looked at them yet and assumed cacheinfo is the only user. Sorry for that. -- Regards, Sudeep