Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1145107ybc; Tue, 19 Nov 2019 15:25:05 -0800 (PST) X-Google-Smtp-Source: APXvYqxIWSwu4Pte/Vy+vbSIXFdoNr0at1YLtMvn8jJqTfISzdzgvFFpbW0+e8DNAUq/5GG3mbLr X-Received: by 2002:a17:907:4300:: with SMTP id oa24mr502391ejb.8.1574205905681; Tue, 19 Nov 2019 15:25:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574205905; cv=none; d=google.com; s=arc-20160816; b=NJ9mTUMvQb4mQCVL7ryyizWGJScaTybSbMANUMCL4ZWOAn2UrhIxFHD0YzdMSRo86r UkVazh5i6Yrdk1P8TGaoiov80kAF0Y7YHfU+ABpefUheDS8PToRS6BiUBtIwM0GaDcHt g++mW5fneW9VDMc3v1DC94/CAbKAKVmfuCWwAbsDll1b8OOSwkQuQkBcW265VuZvl+0R P1FrpBMSeVXUW7INjOPlqvklRO2QZwSP58y9NDjVsZOhX1l/jgVXyqjCLpbdQUgd/HBv zlkS0KdHeRwUUxd+dJNWx3XlqYpN/IGwVMOiTaXBB/50NpJx3bDkobvd+Xjk0OvgtHNe JNLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6kGfzXhK7q10wxyfysE8z7aeyUCtmCNZzXaKSDkOUFQ=; b=VDAtxJ7QOQ+/muH9w2CRPWaeK514kflDvlnat4kRH8+rkle2L65m9EwKqlbAM8CxlY DzXVSFppQ2ygfngWzsZ6X94H92s8ih9xY0K7pGiq7Nz7F97/0LcyRtZri1uq+TuAjAT8 zhz03VNUnNJ6izaRgPjaVqMljv0lF2GlMGSqqvc+HMZkoYkcQ49WO7zypBoBPqCSLDRR dTMT0F3Fish+Ax3Dnj9tTqxnhwxUUhsUop476q4kQ3QoJPXrtHpYaimo0+0JfgwaDu1h tCQwv5uL9pRqoXaLPwSAuofyh4+BY0BrBCiNvk27mItcLU9L3i2vgU1568+AfMT8I7Ly WVwg== 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 k39si17785659edb.99.2019.11.19.15.24.40; Tue, 19 Nov 2019 15:25:05 -0800 (PST) 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 S1727324AbfKSXVg (ORCPT + 99 others); Tue, 19 Nov 2019 18:21:36 -0500 Received: from foss.arm.com ([217.140.110.172]:59588 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726948AbfKSXVg (ORCPT ); Tue, 19 Nov 2019 18:21:36 -0500 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 837301FB; Tue, 19 Nov 2019 15:21:35 -0800 (PST) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4CE7F3F52E; Tue, 19 Nov 2019 15:21:33 -0800 (PST) Date: Tue, 19 Nov 2019 23:21:31 +0000 From: Qais Yousef To: Thomas Gleixner Cc: Greg Kroah-Hartman , Catalin Marinas , Will Deacon , Steve Capper , Richard Fontana , James Morse , Mark Rutland , Josh Poimboeuf , Ingo Molnar , "Peter Zijlstra (Intel)" , Nicholas Piggin , Daniel Lezcano , Jiri Kosina , Pavankumar Kondeti , Zhenzhong Duan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/12] arm64: hibernate.c: create a new function to handle cpu_up(sleep_cpu) Message-ID: <20191119232130.kz4cmqlpmc4by7cj@e107158-lin.cambridge.arm.com> References: <20191030153837.18107-1-qais.yousef@arm.com> <20191030153837.18107-2-qais.yousef@arm.com> <20191119225100.gqiiiwoyt3yntdoj@e107158-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/20/19 00:01, Thomas Gleixner wrote: > On Tue, 19 Nov 2019, Qais Yousef wrote: > > On 11/19/19 23:31, Thomas Gleixner wrote: > > > On Wed, 30 Oct 2019, Qais Yousef wrote: > > > > > > > > +int hibernation_bringup_sleep_cpu(unsigned int sleep_cpu) > > > > > > That function name is horrible. Aside of that I really have to ask how you > > > end up hibernating on an offline CPU? > > > > James Morse can probably explain better. > > > > But AFAIU we could sleep on any CPU, but on the next cold boot that CPU could > > become offline as a side effect of using maxcpus= for example. > > > > How about bringup_hibernate_cpu() as a name? I could add the above as an > > explanation of why we need this call too. > > > > It does seem to me that this is a generic problem that we might be able to > > handle generically, but I'm not sure how. > > Don't know about other architectures, but x86 does not have that issue as > we force hibernation on CPU0 for historical reasons (Broken BIOSes etc.). I'll avoid making this series bigger then. Thanks -- Qais Yousef