Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp319740ybc; Tue, 19 Nov 2019 01:49:35 -0800 (PST) X-Google-Smtp-Source: APXvYqwQyyUXV6bsr81jmtAoLQKSvfItvlxHc+hWGq8kqQEbd3bYJFowilNkEVKhBWfMxl5Flwko X-Received: by 2002:a17:906:6043:: with SMTP id p3mr34066886ejj.103.1574156974067; Tue, 19 Nov 2019 01:49:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574156974; cv=none; d=google.com; s=arc-20160816; b=qOYvoTbWzS1/sNQe0wV8BQoftINNPxkBBMEPI15sQruxHM473qWd28ZBDxsCYzWuho mX0VdQ7OfpuKrVgzZVt+2bFxhsJIOZaoGfYQJYLE0Sxtdnl97hUaxGUKeYTHJ4TDpitH lerqj2vwK3ingEguYPcpo+80pOkE6NSKNOSt2cJjwv629K9vWo3K2ioESnNZOeb36JOu rmeRBSYS+PPOyMri+nzjn9+k8vVwocrYufK/kB1RSCBvb4/ckSjXxPw9bQ1eewhE9ez8 dQ34s9v//vPgnKTO/WkYxEszbqgV9LXjv8sylawhPe1GpLjuGM2n+z125GTWDZjz/XGH xEFQ== 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=q+YGEv1f3X0Oti01Ek2c01vFidyDd2uyjUf1N0KT3S8=; b=NaqRxSDnjlAyT3RsiWawY6m1KFfvrHjof+DYsJWDUdFiNhYZ3GOnlzorUFtuBWx1jc VycldvD9/PU3Wja+3+rFK6ljy6LMe/q1DUU8GGcHUA46kYh/bceIoCWYEHu92GdO+IKn wXtJ4VMAYcqcJVgyWA92ociOhoALOrUrS3vDXEWHoTmvlDe+RuxyGAYOvBgxjhwkh6qs odiX/S9Hk2igc6qYBVbAaPogK9up8DN/Aozv7BmrNKtT2kfAz7DJyD3CbM3dHZdyA/gY R+VNI7tx34xgLfmleNOs1Oz6J0WyaVwncG79doswfi84XpFsYsZYqf9O+5jyIr/Qp3DW J4cQ== 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 g6si14766872edf.256.2019.11.19.01.49.09; Tue, 19 Nov 2019 01:49:34 -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 S1726351AbfKSJrw (ORCPT + 99 others); Tue, 19 Nov 2019 04:47:52 -0500 Received: from foss.arm.com ([217.140.110.172]:49736 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725280AbfKSJrw (ORCPT ); Tue, 19 Nov 2019 04:47:52 -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 EED2A1FB; Tue, 19 Nov 2019 01:47:51 -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 3D0833F52E; Tue, 19 Nov 2019 01:47:50 -0800 (PST) Date: Tue, 19 Nov 2019 09:47:47 +0000 From: Qais Yousef To: Michael Ellerman Cc: Thomas Gleixner , Greg Kroah-Hartman , Benjamin Herrenschmidt , Paul Mackerras , Enrico Weigelt , Ram Pai , Nicholas Piggin , Thiago Jung Bauermann , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/12] powerpc: Replace cpu_up/down with device_online/offline Message-ID: <20191119094747.4asxwnmyrjy5d5io@e107158-lin.cambridge.arm.com> References: <20191030153837.18107-1-qais.yousef@arm.com> <20191030153837.18107-4-qais.yousef@arm.com> <87h830d5n8.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87h830d5n8.fsf@mpe.ellerman.id.au> 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/19/19 12:19, Michael Ellerman wrote: > Qais Yousef writes: > > The core device API performs extra housekeeping bits that are missing > > from directly calling cpu_up/down. > > > > See commit a6717c01ddc2 ("powerpc/rtas: use device model APIs and > > serialization during LPM") for an example description of what might go > > wrong. > > > > This also prepares to make cpu_up/down a private interface for anything > > but the cpu subsystem. > > > > Signed-off-by: Qais Yousef > > CC: Benjamin Herrenschmidt > > CC: Paul Mackerras > > CC: Michael Ellerman > > CC: Enrico Weigelt > > CC: Ram Pai > > CC: Nicholas Piggin > > CC: Thiago Jung Bauermann > > CC: Christophe Leroy > > CC: Thomas Gleixner > > CC: linuxppc-dev@lists.ozlabs.org > > CC: linux-kernel@vger.kernel.org > > --- > > arch/powerpc/kernel/machine_kexec_64.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > My initial though is "what about kdump", but that function is not called > during kdump, so there should be no issue with the extra locking leading > to deadlocks in a crash. > > Acked-by: Michael Ellerman Thanks. > > I assume you haven't actually tested it? Only compile tested it I'm afraid. Would appreciate if you can give it a spin. Otherwise I'd be happy to try it out on qemu. Cheers -- Qais Yousef