Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1426641imj; Fri, 8 Feb 2019 01:02:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ5Pv8UIr/8u4NwHvP79uc7RxcNok3jVVzn3jNvAoQah6TywTjEXbwoJLf6EXIMJ4UnjaF2 X-Received: by 2002:a62:55c4:: with SMTP id j187mr20961910pfb.129.1549616534300; Fri, 08 Feb 2019 01:02:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549616534; cv=none; d=google.com; s=arc-20160816; b=eSs0kp6EGkLuT2/JhY2WFC7whsbxCZsgch9KuP/YTs498THd2yUlU3ilr/ZwJrc4Q0 P7EmYyq5xhf727I5n8LKDzW8EyzzuPJKaN5kG+TnNXkcQAnGF8jwu0NiTmL7udJkwLs9 4qQP8D6o8uK2f35t7GUGfiRcqdIZe7NszpKzsk1wNSAXGlmToLuliKmSNkyHw82P34Mp Ycn/xrleYdjbmynfIe0IB0uac2wgRdVJgGrqBgJfkpcbtb5dmhaLN00aGPd0PnP35PsG tHuIilIEwZQwwAP9C8OBkVa8/YMnUei/UdLZZFkQ35UUx2zU0NvW486rlIbjyvMjx60R BhOg== 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:dkim-signature; bh=KpEKUy48nSJcr5EcluPqFub2tdd+NlNIyUYObg1lLKw=; b=u3WdVtK86lBrTYhhnxwa+xo1cm9DFQ3VxlzHjIp83o6QmjyRPQERYsX7L81yVmZkki Q5qquhcJgH4N0qPKjU4Q3JfWO2Pu7kmjsUlI1KNuV+zLcu1PkcSujMLI/WTOsc0++HOA yLxeWPCxSz+W77RjsgUglb1HAOlKkyuq+aVH53UXspCHrP0jf/ZN9d5aPkkTX0BWYW3U XyxNHDu8ZzLSYmMFqQfPzBWgV2ghI2YSQkdrN/Pkq/FACHQuOdh/IqiI/i1xQcwQZ2Uu fHxvSNfWQW0KBJIV4Lmg0ophHJ1o9P/IxaLKsKFexPmHMnQf5ET7wUu04M97wUao4a9X 03/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ji3HtwzT; 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 l3si1697477pld.155.2019.02.08.01.01.57; Fri, 08 Feb 2019 01:02:14 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ji3HtwzT; 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 S1727365AbfBHJBu (ORCPT + 99 others); Fri, 8 Feb 2019 04:01:50 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:42510 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbfBHJBu (ORCPT ); Fri, 8 Feb 2019 04:01:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KpEKUy48nSJcr5EcluPqFub2tdd+NlNIyUYObg1lLKw=; b=ji3HtwzTD+WVYV6KRvMHxJd+0 hHqAybfLs8AiDVgNWh3w/6Pyj5+zhO1WDABoveczGoDNeGwsgk1eRFdjMyWH8oRBz9udbSSg7QqqW 13jF9RCwf6s9lv97eylkYHet/3cLcEDcl8mqW+fU7ZOroIPgNdCwUOKIAmHDWvWcqQqJgB/Zu+PZb b014XZmYBFoXHfbTjeG3Yj5O4sePNwLqShyzi+KNhZiNvP36ujcRhsQulXZQzdc893TIsY4J+Lk8B hXc16p/1sO95cpJyRnbP8eV4CpA0VFXeiJZdUfHqTOgIQx+LlIQmxUMnF25lxzLELcGfa9ptHK4XE 5vz3IMlBg==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gs22V-0004RE-EQ; Fri, 08 Feb 2019 09:01:39 +0000 Date: Fri, 8 Feb 2019 01:01:39 -0800 From: Christoph Hellwig To: Atish Patra Cc: linux-riscv@lists.infradead.org, Patrick =?iso-8859-1?Q?St=E4hlin?= , Albert Ou , Damien Le Moal , Jason Cooper , Alan Kao , Dmitriy Cherkasov , Anup Patel , Daniel Lezcano , linux-kernel@vger.kernel.org, Zong Li , Palmer Dabbelt , Paul Walmsley , Andreas Schwab , Marc Zyngier , Thomas Gleixner Subject: Re: [v3 PATCH 1/8] RISC-V: Do not wait indefinitely in __cpu_up Message-ID: <20190208090139.GA16932@infradead.org> References: <1549590681-24125-1-git-send-email-atish.patra@wdc.com> <1549590681-24125-2-git-send-email-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1549590681-24125-2-git-send-email-atish.patra@wdc.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 07, 2019 at 05:51:14PM -0800, Atish Patra wrote: > In SMP path, __cpu_up waits for other CPU to come online > indefinitely. This is wrong as other CPU might be disabled > in machine mode and possible CPU is set to the cpus present > in DT. > > Introduce a completion variable and waits only for a second. > > Signed-off-by: Atish Patra > Reviewed-by: Anup Patel Looks good, Reviewed-by: Christoph Hellwig