From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758607AbcEFMn3 (ORCPT ); Fri, 6 May 2016 08:43:29 -0400 Received: from mga11.intel.com ([192.55.52.93]:55002 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758416AbcEFMn1 convert rfc822-to-8bit (ORCPT ); Fri, 6 May 2016 08:43:27 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,587,1455004800"; d="scan'208";a="960218978" From: "Chen, Yu C" To: Thomas Gleixner CC: "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Ingo Molnar , "H. Peter Anvin" , "Gao, Bin" , Len Brown , "Rafael J. Wysocki" , "3 . 14+ # 3 . 14+" Subject: RE: [PATCH] x86, tsc: Fix tsc ratio calibration to avoid broken mdelay Thread-Topic: [PATCH] x86, tsc: Fix tsc ratio calibration to avoid broken mdelay Thread-Index: AQHRp0cuwSbc2ICPBUqhVOtKVf9wMp+rI+SAgAABtICAALVrwA== Date: Fri, 6 May 2016 12:43:07 +0000 Message-ID: <36DF59CE26D8EE47B0655C516E9CE6402875871C@shsmsx102.ccr.corp.intel.com> References: <1462505619-5516-1-git-send-email-yu.c.chen@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOGE2N2VhYjctMTJjMS00NGY0LWFjMDAtMzU2ZWRjNDE2ZWIzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlJFdDkxVURkd3gwdStYdnhZSzdPVWZVRERyTkNCeUtnaU9iRFpZSHpldnc9In0= x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Thomas Gleixner [mailto:tglx@linutronix.de] > Sent: Friday, May 06, 2016 5:53 PM > To: Chen, Yu C > Cc: x86@kernel.org; linux-kernel@vger.kernel.org; Ingo Molnar; H. Peter Anvin; > Gao, Bin; Len Brown; Rafael J. Wysocki; 3 . 14+ # 3 . 14+ > Subject: Re: [PATCH] x86, tsc: Fix tsc ratio calibration to avoid broken mdelay > > > On Fri, 6 May 2016, Thomas Gleixner wrote: > > On Fri, 6 May 2016, yu.c.chen@intel.com wrote: > > > From: Chen Yu > > > > > > Currently we fetch the tsc radio by: > > > ratio = (lo >> 8) & 0x1f; > > > thus get bit8~bit12 of the MSR_PLATFORM_INFO, however according to > > > Intel 64 and IA-32 Architectures Software Developer Manual 35.5, the > > > ratio bit should be bit8~bit15, otherwise we might get incorrect tsc > > > ratio and cause system hang later(mdelay corrupted). > > > > The resulting issue is that both TSC frequency, which is used for > > udelay, and the lapic timer frequency are wrong. mdelay is just the > > visible damage caused by that. > > Aside of that: > > > Cc: 3.14+ # 3.14+ > > Please use: > > Fixes: commit '....' > > next time, which identifies the kernel version to which this needs to be > backported and gives a reference to the commit which caused the issue. > OK, thanks!