Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4561479imm; Mon, 11 Jun 2018 14:42:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK3BCma11axvha9FV0xpisMOnPifs2dSxhzvfZzAUSc/w1Be2OoUFez8C/1cv/OZqslu9t4 X-Received: by 2002:a63:6096:: with SMTP id u144-v6mr701416pgb.433.1528753343355; Mon, 11 Jun 2018 14:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528753343; cv=none; d=google.com; s=arc-20160816; b=SzC9tnUe/tqLnHDDXiQQ6/CZqNyT7qfUrgtZRY3/NOqeyGaO6kYMh+kZI5hePU7+PH wZdzl9XqyUFsrJggHNApIdYjvW/5CFw3XAY0/m9llCTn49j92ZrI0AIvwpD/cFaDgEvI W9iIVUs0uNoD9vUzXUBHyQH1a8gQqG89wyB42Tn3MFtdBMP/UCEYdivWnTKZ1kRHbsIJ Gz7DQqLIiD49cidzctRQ/GHzWsOuC1mwu8Jp6+Nmhz77EMTHWkyKsKsjX5/sHAGNFwpl 3ZoxEgpYftd2w0Y5B2/T0Qf4n1Ovx20gA84UpAtum0smrOlBN6xhZKQjQcFjLG+oqEIO uvBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature:dkim-signature:arc-authentication-results; bh=JoC9bVo93D6LG1a+ZIQYdNbI08YM+ZQI6p5HI+FFkqo=; b=LdeTWiwSgoTMxUxHR3leqVnAIBOejq0rTZ+O+DCnWuCKLvYq80bzP+P8p7T8PP9qxx mHDTpdXdYijBdRaZ5TlnDDZt07xgHDGGrwbo96LUEFCjJxctpNVAoaMyTiBUiuHxeSRY vbuCqAEz39tu8AF9zDkHT0H3lTIPSGUh3ZumYW42KByl4+5Xetm77SDkvToPoM1LQa1h Uy9OFwRXEOh1AhIYcp/eSQODpJ3ChQd/rNM+RVHWpWDrUrkN4qh4iRW6Y9zmLFso72dO AbYj135DVPIy/5RqDcy5+AOWDnyhKEaG3oV3bhSOc0mkVgVuN3utW+blrlvCqGXbRyeF lPag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jcline.org header.s=rdybrs3533vx7mghocfwl3vdwgpl2v5u header.b=bErfIlmq; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=RAKifvbs; 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 e8-v6si19641603pgq.333.2018.06.11.14.41.56; Mon, 11 Jun 2018 14:42:23 -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=@jcline.org header.s=rdybrs3533vx7mghocfwl3vdwgpl2v5u header.b=bErfIlmq; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=RAKifvbs; 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 S934534AbeFKVbV (ORCPT + 99 others); Mon, 11 Jun 2018 17:31:21 -0400 Received: from a8-200.smtp-out.amazonses.com ([54.240.8.200]:41284 "EHLO a8-200.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932840AbeFKVbT (ORCPT ); Mon, 11 Jun 2018 17:31:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=rdybrs3533vx7mghocfwl3vdwgpl2v5u; d=jcline.org; t=1528752678; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=59SkivaUXOgIpwopDnZ8CyQ+DF2O4sqPb8+p8IxgOS8=; b=bErfIlmqSL4zpcGkIPhYu/fMyFTyy/u3AKfTIVJymhbv3+0IIRxNPuBnIabdDXEE UPyrzJ5oAtg2t1QnsmIkO7aSP3OKBSJJUhacA64U4G63GQKCqZb6+83UdSX9Mqgxn1Z F9MdUD3UOWr9XfMgUmHMwxO6taHT5tWM9NIFZiEM= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1528752678; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=59SkivaUXOgIpwopDnZ8CyQ+DF2O4sqPb8+p8IxgOS8=; b=RAKifvbsVQduJ5tUxgaYPjk4ggAdsNk1z3M1dxuuh49sHGsC5r1XE3bVQs042WKy i1NsgO4zbM6sM8OhzMCAAxRHJwxp4/1RKWUj8E82txA5RTCa6KttozixD9kBRmTrkId MHUSqVhsFX4z+VXwXzRXXBqZSaQmFULom+UFNqsI= X-Virus-Scanned: amavisd-new at jcline.org Subject: Re: Regression: x86/tsc: Fix mark_tsc_unstable() To: Diego Viola 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 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: Jeremy Cline Openpgp: preference=signencrypt Autocrypt: addr=jeremy@jcline.org; prefer-encrypt=mutual; keydata= xsFNBFThCPYBEACx9hl05pMfpVKVjm8Yrmd2I3sm9Jw7EIGfn1tmncSnzfveN7UcIjYI23Gw DE11Hf70tMZKXhNmQqDqoftEDwLbTuzBdgJXFZmfEwrcQHGiR5CZ4IQ3U7SF0a701lyYtuNs WndEO8CCaWHUYybiEl1yRZhwyzAA1j/izilD7FckOaEsTM1sFVDs74qWsNGIdJXYQ5dz/iV/ 45wgYNprfMTZQXLvbGIjAD6rmvuArjCQ5GINYSZqO16xZNNWMnS2C0ZFnWz0Fl3VTpukzvO0 ndYT1P4t7pTWT59XPHKKp1Xs25SDO49GTH+hCnaaMjaKL43gVBw1dEu6nY9Nk4EblVnaJv+x 34X1WZFQheglUuPwH04IDZwVE/ACLZPir5eF7zSiRxGOo1COJwg42o5ow4Aq3vbHCONhvGPh kmB5cxcfOyeruurDVcDGu876qFon44l1mPmZWEtYAep3ngQ6zzawfnC2y5Tjm0syX2n6VgBB Y+CR+8jtprwPS4szgbXq5Z+VnxMXAikxrG55vY7uZ2id4z1uqwJRTXdkvzfP52POHuX/Etbz IeQJSQWLqdh4IBXR9QoaXVBwJMMhk5+GYAQ+DXPJzglqxxI/1OuWZi2/2NqrpKMIzXOTxT8/ uUx9jMT9TsFvu5XiiKC5oMvUv2JIW6XQB1Ay73c1niqL5MDdAwARAQABzVRKZXJlbXkgQ2xp bmUgKGh0dHBzOi8vZmVkb3JhcHJvamVjdC5vcmcvd2lraS9Vc2VyOkpjbGluZSkgPGpjbGlu ZUBmZWRvcmFwcm9qZWN0Lm9yZz7CwY4EEwEIADgWIQSvPJnHsb8iwP1BXSvGyJ0h8ZTGQgUC WtDsAQIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRDGyJ0h8ZTGQuJqD/9zckk1e4K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402a-b5f6-50d7f6c9b8f0-000000@email.amazonses.com> Date: Mon, 11 Jun 2018 21:31:18 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-SES-Outgoing: 2018.06.11-54.240.8.200 Feedback-ID: 1.us-east-1.z18Isoc/FaoPOvCyJyi1mnTt8STwoRuibXVNoUcvG6g=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/11/2018 03:23 PM, Diego Viola wrote: > 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. Thanks for confirming. > > Maybe it's an issue with the Fedora initramfs? Indeed, I'll dig into what exactly is different about the RPM-created initramfs and the one created with "make install" to see if we can narrow this down some more. Thanks, Jeremy