Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752593AbdLKPNT (ORCPT ); Mon, 11 Dec 2017 10:13:19 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:45290 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751728AbdLKPNS (ORCPT ); Mon, 11 Dec 2017 10:13:18 -0500 X-Google-Smtp-Source: ACJfBoslavglvW20Pp6JHYjOBqLfuOZdCQh+6JV4jD7gJIREKdbY7ex+x2uxcuJVIQ6YvfPYPKDaqw== Date: Mon, 11 Dec 2017 16:13:14 +0100 From: Ingo Molnar To: Andy Lutomirski Cc: Pavel Machek , Linus Torvalds , Zhang Rui , Andrew Lutomirski , Thomas Gleixner , Jarkko Nikula , "Rafael J. Wysocki" , Linux Kernel Mailing List , the arch/x86 maintainers Subject: Re: [PATCH] Fix resume on x86-32 machines Message-ID: <20171211151314.c3ip654ww4eghfpp@gmail.com> References: <20171209103325.GA13867@amd> <20171209220110.GA11496@amd> <20171210162305.GA10159@amd> <20171210185638.GA10363@amd> <20171210213804.GA4660@amd> <76028A95-1CE1-49AA-9929-9C15FFC520EB@amacapital.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <76028A95-1CE1-49AA-9929-9C15FFC520EB@amacapital.net> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 657 Lines: 25 * Andy Lutomirski wrote: > > > > On Dec 10, 2017, at 1:38 PM, Pavel Machek wrote: > > > > > > After 4.15-rc2, suspend stopped working on Thinkpad X60. 5b06bbc > > (unintentionally?) reordered stuff with respect to > > fix_processor_context() on 32-bit and 64-bit. We undo that change on > > 32-bit. > > > > Can you explain what was wrong with the reordering? Your patch certainly *looks* incorrect. > > I'm guessing that the real issue is that 32-bit needs %fs restored early for TLS. Does some early percpu primitive need GS as well perhaps? Might be safest to restore both FS and GS early. Thanks, Ingo