Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3704492imu; Mon, 28 Jan 2019 09:19:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN746WzQpwziXcSzQt9DLUXtP32f7hBDsy0/uGSpuZ0mXLJtMvQv5tTefnmlqaVczByH/34Z X-Received: by 2002:a62:6303:: with SMTP id x3mr23273516pfb.110.1548695979191; Mon, 28 Jan 2019 09:19:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548695979; cv=none; d=google.com; s=arc-20160816; b=wwjzT1jeTK5S3nZjlQ5KpDcuOLguOO0Rv2DFlaTN4JVmCd7nDv13ZdImpMVxzg6pBq DWCA9dICbWCvu1ojsGiFMguHRwi8yellRhVxiRyId6mKzgupdFj3fwbWm3figEMJnnjh LjXTALjICsrRxx5de3M4yOoMF6jNEGs6wvcSfiOLWhKID573+7XM9FM//sK4wOKozhHz LNza6jAh5wbAd7n+SclZLlDMvfCzF2H9/rLasC8QiRFdcFOUeZj861jNlNy+vgTIRX0C EyGVW6DLIur8j/RGCFnFeoeRBJPlTr01ZHnYkaicK8Lz3i0P9gQmnmD9Lt3IopFcSjQq CD+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Q/0NEiA3BtDIH2l4Q3b4iBxcrde9dbyxmRIhga5YXW4=; b=KZDyB4jQSsMuZoxLp9O1FfwW6G7F+wSNETIaOnorTENhxHYYu+gt115BmLRMx5ATmr 6npsO0BhGR5ky4f1yxLHi9f5/RGPYItytZ7lQryLqb+F0e2Ri4vmamrI3tu8GUZxB28U 5tnVXELt+USztkXj5Dnw7nw+vMEGhcBoFjtFj4iIdg2P+Uba7Jx7fx6IrnGWgtUxl/HN 98fPvp0AZnBnI0C7wNgIMlvK9BeFwivJFsQ9/1tDqsITSheEFATpNBYiPCyleFf4VLy+ it9FBUJIzbHsnMojQoYm1Ox0sw9vH+atCxRFvKiW0OpHYBqKm9snDtUp+DPnrWPJOEcj ROSQ== ARC-Authentication-Results: i=1; mx.google.com; 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 c10si31916471pgj.416.2019.01.28.09.19.23; Mon, 28 Jan 2019 09:19:38 -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; 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 S1732148AbfA1RSG (ORCPT + 99 others); Mon, 28 Jan 2019 12:18:06 -0500 Received: from mx3.molgen.mpg.de ([141.14.17.11]:57385 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731369AbfA1QFY (ORCPT ); Mon, 28 Jan 2019 11:05:24 -0500 Received: from keineahnung.molgen.mpg.de (keineahnung.molgen.mpg.de [141.14.17.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 0D40F201353429; Mon, 28 Jan 2019 17:05:20 +0100 (CET) Subject: Re: tsc: Fast TSC calibration failed with sever AMD Ryzen processor (2200G, 2400G, Ryzen 7 1700) To: Thomas Lendacky Cc: Thomas Gleixner , "x86@kernel.org" , LKML , it+linux-x86@molgen.mpg.de References: <9f444c64-c221-e729-7eb5-fc4f093c16d3@molgen.mpg.de> <5656446a-eaef-aa94-8766-49fec24257c6@molgen.mpg.de> <0bacd3f0-12fd-c1d9-8bed-320ac87d4505@molgen.mpg.de> <0808b2e0-0751-7359-2938-1688d567f11f@amd.com> From: Paul Menzel Message-ID: <90985bb7-3b72-0a13-a829-fd8fbb8defaa@molgen.mpg.de> Date: Mon, 28 Jan 2019 17:05:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <0808b2e0-0751-7359-2938-1688d567f11f@amd.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms050406010300000401020204" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a cryptographically signed message in MIME format. --------------ms050406010300000401020204 Content-Type: multipart/mixed; boundary="------------0EE6931E9ECEDCF60748E048" Content-Language: en-US This is a multi-part message in MIME format. --------------0EE6931E9ECEDCF60748E048 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dear Tom, On 01/24/19 00:33, Lendacky, Thomas wrote: > On 1/23/19 6:56 AM, Paul Menzel wrote: >> On 01/22/19 21:24, Lendacky, Thomas wrote: >>> On 1/22/19 10:53 AM, Paul Menzel wrote: >>>> [Adding Tom to CC] >> >>>> On 01/14/19 11:09, Paul Menzel wrote: >>>> >>>>> On 01/11/19 21:43, Thomas Gleixner wrote: >>>>> >>>>>> On Mon, 7 Jan 2019, Paul Menzel wrote: >>>>>>> On 01/07/19 16:24, Thomas Gleixner wrote: >>>>>>>>> Linux 4.19.13 from Debian Sid/unstable logs the message below o= n the board MSI >>>>>>>>> MS-7A37/B350M MORTAR with the processor AMD Ryzen 3 2200G. >>>>>>>>> >>>>>>>>> As a result, the early time stamps do not seem to be working. >>>>>>>> >>>>>>>>>> [ 0.000000] DMI: Micro-Star International Co., Ltd. MS-7A37= /B350M MORTAR (MS-7A37), BIOS 1.I0 11/06/2018 >>>>>>>>>> [ 0.000000] tsc: Fast TSC calibration failed >>>>>>>> >>>>>>>> And the further boot log says: >>>>>>>> >>>>>>>> [ 0.036000] tsc: Unable to calibrate against PIT >>>>>>>> [ 0.036000] tsc: using HPET reference calibration >>>>>>>> [ 0.036000] tsc: Detected 3500.117 MHz processor >>>>>>>> >>>>>>>> So the quick calibration in early boot fails because the PIT see= ms not to >>>>>>>> do what the kernel expects. Nothing we can cure :( >>>>>>> >>>>>>> I see. Can AMD confirm that this is the expected behavior? If yes= , should >>>>>>> the fast TSC calibration be skipped on these devices? >> >>> It's not expected behavior. All of the systems that I have access to = do >>> not exhibit this issue. Having said that, I have a limited number of >>> systems available to me. >> >> But as a data point, what Ryzen systems did you test with? Just to kno= w, if >> there are configurations where the same processor behaves inconsistent= ly. >> >> Can you request one of the failing systems mentioned below to reproduc= e the >> problem? >> >>> I don't have much experience in this area, but if it is something tha= t >>> consistently occurs, you might try to see if you can better identify = why >>> it fails. The message is issued in pit_hpet_ptimer_calibrate_cpu() in= file >>> arch/x86/kernel/tsc.c. >> >> With the attached patch applied, I get: >> >> [ 0.000000] tsc: quick_pit_calibrate: break in if !pit_expect_m= sb, i =3D 42 >> [ 0.000000] tsc: Fast TSC calibration failed, i =3D 42 >> [ 0.000000] tsc: Using PIT calibration value >> >> The functions `pit_verify_msb()` and `pit_expect_msb()` are: >> >> ``` >> static inline int pit_verify_msb(unsigned char val) >> { >> /* Ignore LSB */ >> inb(0x42); >> return inb(0x42) =3D=3D val; >> } >> >> static inline int pit_expect_msb(unsigned char val, u64 *tscp, unsigne= d long *deltap) >> { >> int count; >> u64 tsc =3D 0, prev_tsc =3D 0; >> >> for (count =3D 0; count < 50000; count++) { >> if (!pit_verify_msb(val)) >> break; >> prev_tsc =3D tsc; >> tsc =3D get_cycles(); >> } >> *deltap =3D get_cycles() - prev_tsc; >> *tscp =3D tsc; >> >> /* >> * We require _some_ success, but the quality control >> * will be based on the error terms on the TSC values. >> */ >> return count > 5; >> } >> ``` >> >> So count is smaller than or equal to 5, and `pit_verify_msb(val)` fail= ed early, >> right? >=20 > Depends on what you mean by "failed early." The loop iterated 42 times > as it tried to reach the acceptable error rate, so pit_expect_msb() had= > succeeded a number of times before failing. The maximum is 233, and in my tests the counter `i` never surpassed 55 or= so. > One of the things I noticed while searching for info on the PIT is that= > one of the specs [1] mentioned that just reading the counter values (as= > opposed to using the counter latch command or the read-back command) co= uld > return undefined values if the counters are being updated while being > read. I'm not sure if that is what is occurring or if that matters in > this day and age, I'm not familiar with this area. >=20 > There's also talk of SMIs messing with this calibration. Could a long > running SMI (something close to 214us) run that results in keeping "cou= nt" > under 6? Again, just speculation on my part. I printed the values read from `inb(0x42)`, and log them, if they are une= qual. Please find the patch attached. Here are the results of five boots. [ 0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.0= 1 09/14/2018 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ff !=3D 0 =3D val [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fe !=3D ff =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xff: count =3D 52 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fd !=3D fe =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfe: count =3D 51 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fc !=3D fd =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfd: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fb !=3D fc =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfc: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fa !=3D fb =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfb: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f9 !=3D fa =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfa: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f8 !=3D f9 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf9: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f7 !=3D f8 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf8: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f6 !=3D f7 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf7: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f5 !=3D f6 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf6: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f4 !=3D f5 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf5: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f3 !=3D f4 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf4: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f2 !=3D f3 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf3: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f1 !=3D f2 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf2: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f0 !=3D f1 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf1: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ef !=3D f0 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf0: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ee !=3D ef =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xef: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ed !=3D ee =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xee: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ec !=3D ed =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xed: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D eb !=3D ec =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xec: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ea !=3D eb =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xeb: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e9 !=3D ea =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xea: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e8 !=3D e9 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe9: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e7 !=3D e8 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe8: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e6 !=3D e7 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe7: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e5 !=3D e6 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe6: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e4 !=3D e5 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe5: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e3 !=3D e4 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe4: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e2 !=3D e3 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe3: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e1 !=3D e2 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe2: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e0 !=3D e1 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe1: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D df !=3D e0 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe0: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D de !=3D df =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xdf: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D dd !=3D de =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xde: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D dc !=3D dd =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xdd: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D da !=3D dc =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xdc: count =3D 4 [ 0.000000] tsc: quick_pit_calibrate: break in if !pit_expect_msb, i =3D= 35 [ 0.000000] tsc: Fast TSC calibration failed, i =3D 35 from 233 [ 0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.0= 1 09/14/2018 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ff !=3D 0 =3D val [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fe !=3D ff =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xff: count =3D 53 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fd !=3D fe =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfe: count =3D 53 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fc !=3D fd =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfd: count =3D 52 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fb !=3D fc =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfc: count =3D 51 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fa !=3D fb =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfb: count =3D 50 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f9 !=3D fa =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfa: count =3D 45 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f8 !=3D f9 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf9: count =3D 46 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f7 !=3D f8 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf8: count =3D 45 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f6 !=3D f7 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf7: count =3D 45 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f5 !=3D f6 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf6: count =3D 46 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f4 !=3D f5 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf5: count =3D 45 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f3 !=3D f4 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf4: count =3D 45 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f2 !=3D f3 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf3: count =3D 46 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f1 !=3D f2 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf2: count =3D 45 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f0 !=3D f1 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf1: count =3D 45 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ef !=3D f0 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf0: count =3D 46 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ee !=3D ef =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xef: count =3D 45 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ed !=3D ee =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xee: count =3D 45 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ec !=3D ed =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xed: count =3D 46 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D eb !=3D ec =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xec: count =3D 45 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ea !=3D eb =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xeb: count =3D 45 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e9 !=3D ea =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xea: count =3D 46 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e8 !=3D e9 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe9: count =3D 45 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e7 !=3D e8 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe8: count =3D 45 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e5 !=3D e7 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe7: count =3D 14 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e5 !=3D e6 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe6: count =3D 0 [ 0.000000] tsc: quick_pit_calibrate: break in if !pit_expect_msb, i =3D= 25 [ 0.000000] tsc: Fast TSC calibration failed, i =3D 25 from 233 [ 0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.0= 1 09/14/2018 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ff !=3D 0 =3D val [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fe !=3D ff =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xff: count =3D 53 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fd !=3D fe =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfe: count =3D 53 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fc !=3D fd =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfd: count =3D 52 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fb !=3D fc =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfc: count =3D 44 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fa !=3D fb =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfb: count =3D 51 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f7 !=3D fa =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfa: count =3D 13 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f7 !=3D f9 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf9: count =3D 0 [ 0.000000] tsc: quick_pit_calibrate: break in if !pit_expect_msb, i =3D= 6 [ 0.000000] tsc: Fast TSC calibration failed, i =3D 6 from 233 [ 0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.0= 1 09/14/2018 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ff !=3D 0 =3D val [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fe !=3D ff =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xff: count =3D 39 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fd !=3D fe =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfe: count =3D 39 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fc !=3D fd =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfd: count =3D 39 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fb !=3D fc =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfc: count =3D 39 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fa !=3D fb =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfb: count =3D 39 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f9 !=3D fa =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfa: count =3D 39 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f8 !=3D f9 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf9: count =3D 40 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f7 !=3D f8 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf8: count =3D 39 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f6 !=3D f7 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf7: count =3D 39 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f5 !=3D f6 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf6: count =3D 39 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f4 !=3D f5 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf5: count =3D 39 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f3 !=3D f4 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf4: count =3D 39 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f2 !=3D f3 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf3: count =3D 39 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f1 !=3D f2 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf2: count =3D 40 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f0 !=3D f1 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf1: count =3D 39 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ef !=3D f0 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf0: count =3D 39 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ed !=3D ef =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xef: count =3D 13 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ed !=3D ee =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xee: count =3D 0 [ 0.000000] tsc: quick_pit_calibrate: break in if !pit_expect_msb, i =3D= 17 [ 0.000000] tsc: Fast TSC calibration failed, i =3D 17 from 233 [ 0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.0= 1 09/14/2018 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ff !=3D 0 =3D val [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fe !=3D ff =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xff: count =3D 52 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fd !=3D fe =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfe: count =3D 51 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fc !=3D fd =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfd: count =3D 44 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fb !=3D fc =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfc: count =3D 46 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D fa !=3D fb =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfb: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f9 !=3D fa =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xfa: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f8 !=3D f9 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf9: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f7 !=3D f8 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf8: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f6 !=3D f7 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf7: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f5 !=3D f6 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf6: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f4 !=3D f5 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf5: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f3 !=3D f4 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf4: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f2 !=3D f3 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf3: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f1 !=3D f2 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf2: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D f0 !=3D f1 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf1: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ef !=3D f0 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xf0: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ee !=3D ef =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xef: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ed !=3D ee =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xee: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ec !=3D ed =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xed: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D eb !=3D ec =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xec: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D ea !=3D eb =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xeb: count =3D 48 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e9 !=3D ea =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xea: count =3D 47 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e6 !=3D e9 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe9: count =3D 42 [ 0.000000] tsc: pit_verify_msb: inb(0x42) =3D e6 !=3D e8 =3D val [ 0.000000] tsc: pit_expect_msb: val =3D 0xe8: count =3D 0 [ 0.000000] tsc: quick_pit_calibrate: break in if !pit_expect_msb, i =3D= 23 [ 0.000000] tsc: Fast TSC calibration failed, i =3D 23 from 233 So you can see, that, if my patch does not have any side effects, the read value is in the end smaller than the expected value and decreases not by one, but by more than one. So in the last boot from e9 to e6, and the code decreases by one, so expects e8 in the next iteration. Of course your explanation that an SMI could cause this, could still apply. Another explanation would be, that the PIT(?) does not decrease by a constant rate. I remembered that there was also a TSC related problem in coreboot, that Google fixed by the commit below [2]. > soc/amd/stoneyridge: remove dependence on TSC > > The TSC rate is empirically swinging during early boot. That > leaves timestamps and udelay()s to not be correct. To rectify this > stop using TSC for all of these time sources. Instead use the > performance TSC which is at a fixed 100MHz clock. That provides > stable time sources and legit timestamps. > > BUG=3Db:72378235,b:72170796 Aaron replied in #coreboot@irc.freenode.de: > I don't know that the lkml report applies to this ryzen, but my=20 > recollection of that bug on stoney was that TSC wasn't exactly constant= > rate until deeper into the boot flow. I think there's something that > happens in SMU at a point in the boot that stabilizes the clock rate.=20 > Ryzen could be the same thing or a completely different bug all > together. The HP and MSI firmwares take more than eight seconds though, compared to the less than one second by coreboot, so it might be something else. Unfortunately, I have neither resources nor knowledge to look into this, and it looks like a hardware issue to me, only AMD can debug. Tom, could you forward that to the appropriate departments in AMD? Kind regards, Paul > [1] http://www.scs.stanford.edu/10wi-cs140/pintos/specs/8254.pdf [2] https://review.coreboot.org/23424 >>>>>> It should work and we really don't want to add cpu family/model ba= sed >>>>>> decisions whether we invoke something or not. Those tables are sta= le before >>>>>> they hit mainline. >>>>> >>>>> Understood. If it=E2=80=99s supposed to work, any hints on how to d= ebug this? >>>>> >>>>> Does some Linux kernel developers have an AMD Ryzen system, and can= reproduce >>>>> the issue? >>>>> >>>>> It seems to fail with an AMD Ryzen 2400G too [1]. >>>> >>>> We now have an HP EliteDesk 705 G4 MT with that processsor, showing = the same >>>> problem. >>>> >>>> ``` >>>> [ 0.000000] Linux version 4.20.0.mx64.238 (root@elcattivo.molgen.= mpg.de) (gcc version 7.3.0 (GCC)) #1 SMP Mon Dec 24 14:50:00 CET 2018 >>>> [=E2=80=A6] >>>> [ 0.000000] NX (Execute Disable) protection: active >>>> [ 0.000000] SMBIOS 3.1 present. >>>> [ 0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02= =2E04.01 09/14/2018 >>>> [ 0.000000] tsc: Fast TSC calibration failed >>>> [ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable =3D=3D= > reserved >>>> [=E2=80=A6] >>>> [ 0.017860] smpboot: CPU0: AMD Ryzen 5 PRO 2400G with Radeon Vega= Graphics (family: 0x17, model: 0x11, stepping: 0x0) >>>> [=E2=80=A6] >>>> ``` >>>> >>>>> It also fails on an AMD Ryzen 7 1700 [2]. >>>>> >>>>> ``` >>>>> [ 0.000000] Linux version 4.15.0-kali3-amd64 (devel@kali.org) (gcc = version 7.3.0 (Debian 7.3.0-16)) #1 SMP Debian 4.15.17-1kali1 (2018-04-25= ) >>>>> [=E2=80=A6] >>>>> [ 0.008000] ..TIMER: vector=3D0x30 apic1=3D0 pin1=3D2 apic2=3D-1 pi= n2=3D-1 >>>>> [ 0.028000] tsc: Fast TSC calibration failed >>>>> [ 0.032000] tsc: PIT calibration matches HPET. 1 loops >>>>> [ 0.032000] tsc: Detected 2994.246 MHz processor >>>>> [=E2=80=A6] >>>>> [ 0.044000] smpboot: CPU0: AMD Ryzen 7 1700 Eight-Core Processor (f= amily: 0x17, model: 0x1, stepping: 0x1) >>>>> ``` >>>>> >>>>> It *works* here on one system with AMD Ryzen 5 PRO 1500 and Linux 4= =2E14.87. >>>>> >>>>> ``` >>>>> [ 0.000000] Linux version 4.14.87.mx64.236 (root@likearollingsto= ne.molgen.mpg.de) (gcc version 7.3.0 (GCC)) #1 SMP Mon Dec 10 09:48:57 CE= T 2018 >>>>> [=E2=80=A6] >>>>> [ 0.000000] tsc: Fast TSC calibration using PIT >>>>> [=E2=80=A6] >>>>> [ 0.035000] smpboot: CPU0: AMD Ryzen 5 PRO 1500 Quad-Core Proces= sor (family: 0x17, model: 0x1, stepping: 0x1) >>>>> ``` >>>> >>>> How to continue from here? Is documentation for that available from = AMD? >>>> I didn=E2=80=99t find a BKDG (Bios Kernel Developer Guide) at [3]. >> >> >> Kind regards, >> >> Paul >> >> >>>>> [1]: https://bbs.archlinux.org/viewtopic.php?pid=3D1781282#p1781282= >>>>> [2]: https://forums.kali.org/showthread.php?40444-error-loading-amd= gpu-drivers-AMD-RX580-driver[3]: https://developer.amd.com/resources/deve= loper-guides-manuals --------------0EE6931E9ECEDCF60748E048 Content-Type: text/x-patch; name="0001-x86-kernel-tsc-Debug-early-TSC-calibration.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-x86-kernel-tsc-Debug-early-TSC-calibration.patch" =46rom 7720e8dbc578da02b020d7e8f5441e74b3726004 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 23 Jan 2019 00:24:37 +0100 Subject: [PATCH] x86/kernel/tsc: Debug early TSC calibration Signed-off-by: Paul Menzel --- arch/x86/kernel/tsc.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index 3fae23834069..4696ef7326b6 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c @@ -478,9 +478,15 @@ static unsigned long pit_calibrate_tsc(u32 latch, un= signed long ms, int loopmin) */ static inline int pit_verify_msb(unsigned char val) { + unsigned char val1; + /* Ignore LSB */ inb(0x42); - return inb(0x42) =3D=3D val; + val1 =3D inb(0x42); + + if (val1 !=3D val) + pr_err("%s: inb(0x42) =3D %x !=3D %x =3D val", __func__, val1, val); + return val1 =3D=3D val; } =20 static inline int pit_expect_msb(unsigned char val, u64 *tscp, unsigned = long *deltap) @@ -497,6 +503,8 @@ static inline int pit_expect_msb(unsigned char val, u= 64 *tscp, unsigned long *de *deltap =3D get_cycles() - prev_tsc; *tscp =3D tsc; =20 + pr_err("%s: val =3D 0x%x: count =3D %d\n", __func__, val, count); + /* * We require _some_ success, but the quality control * will be based on the error terms on the TSC values. @@ -550,8 +558,10 @@ static unsigned long quick_pit_calibrate(void) =20 if (pit_expect_msb(0xff, &tsc, &d1)) { for (i =3D 1; i <=3D MAX_QUICK_PIT_ITERATIONS; i++) { - if (!pit_expect_msb(0xff-i, &delta, &d2)) + if (!pit_expect_msb(0xff-i, &delta, &d2)) { + pr_err("%s: break in if !pit_expect_msb, i =3D %d\n", __func__, i); break; + } =20 delta -=3D tsc; =20 @@ -576,12 +586,14 @@ static unsigned long quick_pit_calibrate(void) * This also guarantees serialization of the * last cycle read ('d2') in pit_expect_msb. */ - if (!pit_verify_msb(0xfe - i)) + if (!pit_verify_msb(0xfe - i)) { + pr_err("%s: break in if !pit_verify_msb\n", __func__); break; + } goto success; } } - pr_info("Fast TSC calibration failed\n"); + pr_err("Fast TSC calibration failed, i =3D %u from %u\n", i, MAX_QUICK_= PIT_ITERATIONS); return 0; =20 success: --=20 2.17.1 --------------0EE6931E9ECEDCF60748E048-- --------------ms050406010300000401020204 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC EFowggUSMIID+qADAgECAgkA4wvV+K8l2YEwDQYJKoZIhvcNAQELBQAwgYIxCzAJBgNVBAYT AkRFMSswKQYDVQQKDCJULVN5c3RlbXMgRW50ZXJwcmlzZSBTZXJ2aWNlcyBHbWJIMR8wHQYD VQQLDBZULVN5c3RlbXMgVHJ1c3QgQ2VudGVyMSUwIwYDVQQDDBxULVRlbGVTZWMgR2xvYmFs Um9vdCBDbGFzcyAyMB4XDTE2MDIyMjEzMzgyMloXDTMxMDIyMjIzNTk1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