Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22E29C678DB for ; Fri, 24 Feb 2023 10:50:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229744AbjBXKub convert rfc822-to-8bit (ORCPT ); Fri, 24 Feb 2023 05:50:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbjBXKu3 (ORCPT ); Fri, 24 Feb 2023 05:50:29 -0500 X-Greylist: delayed 1934 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 24 Feb 2023 02:50:27 PST Received: from baidu.com (mx20.baidu.com [111.202.115.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D761D15885; Fri, 24 Feb 2023 02:50:27 -0800 (PST) From: "Li,Rongqing" To: Sean Christopherson , "Michael Kelley (LINUX)" , "tglx@linutronix.de" CC: KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Dexuan Cui , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] clockevents/drivers/i8253: Do not zero timer counter in shutdown Thread-Topic: [PATCH] clockevents/drivers/i8253: Do not zero timer counter in shutdown Thread-Index: AQHZOpLxLW8Whz5HbUGqx7zeXRG6Ia7EObywgABoMQCAGU3w8A== Date: Fri, 24 Feb 2023 09:45:39 +0000 Message-ID: <12889cfa141f4a06958ead0ab7f0a375@baidu.com> References: <1675732476-14401-1-git-send-email-lirongqing@baidu.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.22.206.13] x-baidu-bdmsfe-datecheck: 1_BJHW-Mail-Ex14_2023-02-24 17:45:40:275 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-FEAS-Client-IP: 10.127.64.37 X-FE-Last-Public-Client-IP: 100.100.100.38 X-FE-Policy-ID: 15:10:21:SYSTEM Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > Hyper-V and KVM follow the spec, the issue that 35b69a42 > > > "(clockevents/drivers/ > > > i8253: Add support for PIT shutdown quirk") fixed is in i8253 > > > drivers, not Hyper-v, so delete the zero timer counter register in > > > shutdown, and delete PIT shutdown quirk for Hyper-v > > > > From the standpoint of Hyper-V, I'm good with this change. But > > there's a risk that old hardware might not be compliant with the spec, > > and needs the zero'ing for some reason. The experts in the x86 space > > will be in the best position to assess the risk. > > Yep, my feeling exactly. My input is purely from reading those crusty old specs. Hi Thomas: Could you give some suggestion about this patch? Thanks -Li