Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4477568imm; Mon, 11 Jun 2018 13:02:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJIQyPKslpSvjZNkJdljQ2+icUwJ1rO9OPPcpEspSgWR8KnD7IbRXtf4stlDPKAsBy5XMpq X-Received: by 2002:a17:902:784d:: with SMTP id e13-v6mr576596pln.197.1528747330657; Mon, 11 Jun 2018 13:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528747330; cv=none; d=google.com; s=arc-20160816; b=DDrG6grSUJWAloDXRqjKdNLyxevUkIxSUupUStFDHJYr+Ck6HiyG61Sucx1AoxmV+h 6uqAeZkHiyAJquuoCXwXDUg71OgeONGEXmSPrcT1alhhEoMFZXiXUcYBVXNEpebikvLb otr9bCjuDscrqUfGnAa5xygTj5klQBA9dTleSBDPfWpMU8nlxeJC3O+SveGvf+Usw/uy IZTDI6UvPAltRE4opeYqdYB3GRnHEyFXQhSPVagUpmembnyZBg9+omIuzdgURWfxH/eO eFELKLsBxA8uadifSEvTV/8ZsI/O/clDzTcU+f8S/EISZA2aeXp8oPHd1eBQ/8Bj06b4 kVIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=kaM7J9qGuj3Zo+f53UrU3PN0U2vygK/bHsRmyGrTwf8=; b=YbaywP+viI7DyhOIw/iIGa4+rxf1fwjgfc87Of9MpeF1SM9ZtLHM6QhlEOENf32yHj ucxTLemS7f+xBOZob3+FjrhvzIyKrjbVtBf3r04hxLI40oy5f1V1lSgiGTWkZYyVuqUY 1t6HZ4bvBn+F07ddKKtcghy4nwZKuviXd/7t00yQko5IvRM5QFz/R+EZNTXdxXzqbPO/ ccJ8bSzA4F1YJSAn2dGPH71AzcIZF7WFhgM+tzQ1GxSHyzBO5qbyHx9seuuRPqdLd6MJ v7gfjH/8BQpGRDOgsJG3AwN3OXSTyrVpE/eWj7JoldK5ofZkgxmQNWl2gi4z5sZTY426 BBtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DHiCL7bV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61-v6si27167189plr.483.2018.06.11.13.01.56; Mon, 11 Jun 2018 13:02:10 -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=@gmail.com header.s=20161025 header.b=DHiCL7bV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934649AbeFKTX4 (ORCPT + 99 others); Mon, 11 Jun 2018 15:23:56 -0400 Received: from mail-yb0-f194.google.com ([209.85.213.194]:40910 "EHLO mail-yb0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934630AbeFKTXw (ORCPT ); Mon, 11 Jun 2018 15:23:52 -0400 Received: by mail-yb0-f194.google.com with SMTP id v17-v6so7089298ybe.7; Mon, 11 Jun 2018 12:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=kaM7J9qGuj3Zo+f53UrU3PN0U2vygK/bHsRmyGrTwf8=; b=DHiCL7bVjXa7tIMpidbHzAhm2YwfbsOwJQB8HUDThUrNnVVcef+o5RlXlQ6YsoNe8V btH147hGLde15l5q6BfKN1qOJquRvBYeUAA1m62AgMlk3I6JaPeaUDDn07DdgPaGqX1b vPJ1P3GxLr0vfk3Oc8JlUW3e8XZlv5feDt0QtgZBl2K8Qdppz+GhWpO3uHmq/f68LFio 0DRsxpB0JILX0t5+jbGeZh4vyPOihksOC7POajx5I7kK8rqXOuTW4ks0dKK6Xa6twLbO 6XpcMah2OVjhvw2tAHtHhBH+nZ2AtYpKMVbqD83/N5bv0/059IiR2LLoWG3Nz8aF3pEo 7nyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=kaM7J9qGuj3Zo+f53UrU3PN0U2vygK/bHsRmyGrTwf8=; b=ksGhYflTrEmcufxgrqNbmYixDC6xqK/5cIcjNnK9d+FRh+z+AVA+x7MH4zCe0+xHc/ X1x6ydz+VQp8+q6yOB7Wc/nsQJ5yd4VYAFDBsH2Tq9aqeAgVAUDOYhHUUgmqYzr4aZwh sIkRkyoDDmogsoP77ifUXyI307KTI3iTeWUryRSQ/YcE+hiumqUzYaUlgDl2ryUoLMsP Lc8+C3bNFHl265kKlkpSu6EkHAqlXd1X8QlJ5QADR4z7Ma3Aqn0QwiAETNFzJ6pz6xB3 lm1za8qVRWbBCcabtOEGb5eiETQ+Hb/LAjPWDVMR7yELS4uy4zT8ZwFHm3fIU1IyGLFV /07g== X-Gm-Message-State: APt69E3DZgp/stPtWSe3j3gDmB4UW6dZOAr/F79OBv7VNOZ6/URDoqXl y2TmpvyNBRz7byC1/uz+UULa8BWXwddmkRZ5n4g= X-Received: by 2002:a25:ac12:: with SMTP id w18-v6mr261582ybi.77.1528745031304; Mon, 11 Jun 2018 12:23:51 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a81:a0cb:0:0:0:0:0 with HTTP; Mon, 11 Jun 2018 12:23:50 -0700 (PDT) In-Reply-To: <01000163f00c1dd6-11e49be4-fe96-49cf-bbf6-8d951874faa1-000000@email.amazonses.com> References: <01000163ef24c875-daa2c00e-611e-4383-99a6-c8c72ef04a14-000000@email.amazonses.com> <20180611141742.GP12198@hirez.programming.kicks-ass.net> <20180611143801.GH12235@hirez.programming.kicks-ass.net> <20180611153042.GI12235@hirez.programming.kicks-ass.net> <01000163effdcb29-f886b68d-bdb4-44c0-a68e-f749e10280fd-000000@email.amazonses.com> <01000163f00c1dd6-11e49be4-fe96-49cf-bbf6-8d951874faa1-000000@email.amazonses.com> From: Diego Viola Date: Mon, 11 Jun 2018 16:23:50 -0300 Message-ID: Subject: Re: Regression: x86/tsc: Fix mark_tsc_unstable() To: Jeremy Cline Cc: Peter Zijlstra , Thomas Gleixner , "Rafael J. Wysocki" , rui.zhang@intel.com, len.brown@intel.com, stable@vger.kernel.org, linux-kernel@vger.kernel.org, regressions@leemhuis.info, mmarget@physik.tu-berlin.de Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 11, 2018 at 3:11 PM, Jeremy Cline wrote: > On 06/11/2018 01:56 PM, Jeremy Cline wrote: >> On 06/11/2018 11:30 AM, Peter Zijlstra wrote: >>> On Mon, Jun 11, 2018 at 04:38:01PM +0200, Peter Zijlstra wrote: >>>> On Mon, Jun 11, 2018 at 04:17:42PM +0200, Peter Zijlstra wrote: >>>>> On Mon, Jun 11, 2018 at 01:59:15PM +0000, Jeremy Cline wrote: >>>>>> A user has bisected the problem to the v4.16 commit 1ab4ca7c59d4 >>>>>> ("x86/tsc: Fix mark_tsc_unstable()"). According to the reporter, >>>>>> explicitly setting "tsc=" on the kernel command line causes the boot to >>>>>> always succeed. All the users have Thinkpad T500s or T400s (Core 2 Duos) >>>>> >>>>> Weird. So Core2 typically triggers mark_tsc_unstable() in either >>>>> intel_idle or processor_idle. ISTR testing that when I did the patches. >>>>> >>>>> When I make that mark_tsc_unstable() in the idle drivers unconditional >>>>> and boot my ivb with that, it doesn't want to fail. I've booted the >>>>> machine 5 consequctive times without issue. >>>>> >>>>> Let me try and checkout -stable, maybe something's up with that. >>>> >>>> Nope -stable seems to be working as well on the IVB (with modification). >>>> I just dug up my T500 and that's actually still running the test kernel. >>>> Let me try and build the -stable kernel for that. >>> >>> 4.16.8 works without issue on my T500 with a debian/ubuntu like distro >>> config. >>> >> >> Adding mmarget (who bisected the problem) to the CC. >> >> It might well be something Fedora-specific, then. I just noticed mmarget >> commented over the weekend noting that they couldn't reproduce the >> problem without using the initramfs generated during the RPM install of >> the kernel. mmarget's theory was that it's a race condition that doesn't >> occur when the initramfs takes long enough to unpack, but I don't know >> enough about the early boot process *or* how Fedora's generating the >> initramfs for RPM installs vs "make install" yet to know how likely that >> is. I'm going to have to do some research. >> >> Thanks for looking into this so quickly and also sorry if this turns out >> to be a Fedora problem :( > > Attached is the Fedora configuration for 4.16.8, as well, in case you'd > like to test it with that. > > Thanks, > Jeremy Hi Jeremy, I've compiled 4.16.8 with your config and booted my machine about 10 times with this kernel, and I'm unable to reproduce the issue. Maybe it's an issue with the Fedora initramfs? Diego