Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6072697ybi; Wed, 29 May 2019 02:23:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJjoi+oJo58AjQsMOAH7ohl6p03ygjELwaGtZr+Ji5Mz3wNAFcxBrNRFl7y/RMg35UjNUA X-Received: by 2002:a63:4710:: with SMTP id u16mr35062998pga.447.1559121814861; Wed, 29 May 2019 02:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559121814; cv=none; d=google.com; s=arc-20160816; b=mRDoyVghOGyP5gKx3Pgtkl8ZtPY87Ru1lNMKm6yQ4tImLZTIHqwxCgjGTJO2ExRohY lir9t+hpxMJ6cwprrQVWPUSQ3em/wr0KYxa080Zig1Ua5O+F7o3UlpcwKEaXgYC99UfF bLSeBU963d4RCP+CxEMvoBVDrs3mFUXjYAegNLwqIRSryobY+kSNDOw4y8uf50jyrnfg HP66goka0O7JzTXSsF8UZ4mRbEOGjwpwYGc36+SAAq2OQTsSsJ53UYTGYvxZ2foXSC6r zPTdVOKDKIrRUQknOAT/TwkZmx8vBRAqUitNEWRofFfdwa3a1zhGYr49XFw5AjRMkL74 AMvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=auqQeIEaS8GJue5Zc4Ldb0g5nNuH5eRiA0FCsJ0F8I0=; b=M2YoRPq8vzL4IIRvtFht+If5RX4KOL6HTq6uISusmOCr0AguUlKsqwFOt3M3GFTKNM Bg9vZutAvhR9vqTDHQ33UhxZO1WmxFCIXlqnxDipGdOzXlTbXaIfWz7IOvs0R8dHd5vM IWsXEt5chbtKprVzyZUgMWbtliDYLySe8DcxxWfHp88HkAfAB5N3xmRpBvepLu1RbLst KXA2zNqupm1DgAhXneixIHwVu8Vm9iiJ9RYTRHgZnL5qL6H5j3JPYaBAdYSQ7Ov6tKJf kOhMMB9OHZAP59xq2n7TuiaD58azDZvCVUq9Ym9ATkczZPLKGyry0uUTlrkm/3k7zn7Z Loag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zjCbiRlg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 129si31079391pfy.160.2019.05.29.02.23.18; Wed, 29 May 2019 02:23:34 -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; dkim=pass header.i=@kernel.org header.s=default header.b=zjCbiRlg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726819AbfE2JUr (ORCPT + 99 others); Wed, 29 May 2019 05:20:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:44772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbfE2JUq (ORCPT ); Wed, 29 May 2019 05:20:46 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5F73920665; Wed, 29 May 2019 09:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559121646; bh=/PL4CQ/v4pznt0abn/nUFgtQ+rgGUt9Hn5oNdPyrQ/I=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=zjCbiRlgW58S4wY/EVqqrvR+RmyzSey0pbRrf5fk3HMLp2etJ2M2fdjY1qpEwdj9x 4jZEqdDPaFj+l1hzkM9H465kFmgmtM6TyV1tVIUHXDURXjdRNnBqlP5Mt1BndZe34+ 7KM+5sNgltaxNDBBzLehFDSa01o4uR0k2HSsM0TY= Date: Wed, 29 May 2019 11:20:40 +0200 (CEST) From: Jiri Kosina To: Peter Zijlstra cc: Dongli Zhang , Keith Busch , Jens Axboe , Sagi Grimberg , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Keith Busch , Hannes Reinecke , Christoph Hellwig , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org, Josh Poimboeuf Subject: Re: "nosmt" breaks resuming from hibernation (was Re: [5.2-rc1 regression]: nvme vs. hibernation) In-Reply-To: <20190529085618.GH2623@hirez.programming.kicks-ass.net> Message-ID: References: <20190524154429.GE15192@localhost.localdomain> <92a15981-dfdc-0ac9-72ee-920555a3c1a4@oracle.com> <20190529085618.GH2623@hirez.programming.kicks-ass.net> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 May 2019, Peter Zijlstra wrote: > > > I verified that it succesfully makes it to the point where restore_image() > > > is called from swsusp_arch_resume() (and verified that only BSP is alive > > > at that time), but the old kernel never comes back and triplefault-like > > > reboot happens. > > which means that even without nosmt all 'other' CPUs are offline. And > when I look at resume_target_kernel() I see it call > hibernate_resume_nonboot_cpu_disable(). > > So how is the SMT offline different from that offline? afaict they all > get into play_dead()->native_play_dead()->mwait_play_dead(). There is no way those other CPUs have been offlined before to the native_play_dead() state, as this is way before any userspace was alive to initiate any kind of hotplug. So they are guaranteed to have been all online, and then offlined properly to resume_play_dead(). 'nosmt' is the only exception there, as it's the only kind of offlining that has already happened at this point. Let's continue in the other thread. Thanks, -- Jiri Kosina SUSE Labs