Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1176845
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | KY Srinivasan <kys@microsoft.com> |
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH 1/1] x86: Hyper-V: Mark the Hyper-V clocksource as being high resolution |
| Date | Sun, 05 Jul 2015 10:30:01 +0200 |
| Message-ID | <pINtf-tz-1@gated-at.bofh.it> (permalink) |
| References | <pIhto-5M4-5@gated-at.bofh.it> <pINtf-tz-3@gated-at.bofh.it> |
| X-Original-To | Thomas Gleixner <tglx@linutronix.de> |
| Thread-Topic | [PATCH 1/1] x86: Hyper-V: Mark the Hyper-V clocksource as being high resolution |
| Thread-Index | AQHQtd2XZzxRldEOekWQe0ICcB4zOZ3K9g8AgAB+HBA= |
| Accept-Language | en-US |
| Content-Language | en-US |
| Authentication-Results | linutronix.de; dkim=none (message not signed) header.d=none; |
| X-Originating-IP | [50.135.110.52] |
| X-Microsoft-Exchange-Diagnostics | 1;BY1PR0301MB0903;5:BPX7Ws8kd3J+HQZlZu2DSUMWGYsorgEcQsxOB70ENARcfWRKXxlTxkQMN/d1lYD4giEVchdivWh+XcSUwXQJ9W0ZdYGBs2o1guHZwRWOQsdXA/WIzIXw2wx0tQIqLZtG3lnDp19yIU3dY+fD/O7W3A==;24:reZN/I2R96AiBvvHFY/dWA0pzZVGJYi0WEhibdrdBK7fOsMraPkeTzQtBluuR8UEiTIDIe2a7w/PlLjbIQUiJWBb2qYsQrM/6vOEIZ29BHM=;20:lENLS9UzaUWRMcoK8L+r2P9PyVSBxNTjYu2lIVzuddHl8vNeUEcDHMRq8cEBCCy4xnQ4s0GP1D/ApNOug0NvTw== |
| X-Microsoft-Antispam | UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB0903; |
| X-Microsoft-Antispam-Prvs | <BY1PR0301MB0903946ECA1C955926AC45E1A0950@BY1PR0301MB0903.namprd03.prod.outlook.com> |
| X-Exchange-Antispam-Report-Test | UriScan:(108003899814671); |
| X-Exchange-Antispam-Report-Cfa-Test | BCL:0;PCL:0;RULEID:(601004)(2401001)(5005006)(3002001);SRVR:BY1PR0301MB0903;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB0903; |
| X-Forefront-Prvs | 06274D1C43 |
| X-Forefront-Antispam-Report | SFV:NSPM;SFS:(10019020)(6009001)(377454003)(24454002)(51914003)(13464003)(51704005)(86362001)(92566002)(99286002)(106116001)(74316001)(77156002)(62966003)(19580405001)(19580395003)(5003600100002)(5002640100001)(102836002)(77096005)(87936001)(2656002)(76176999)(54356999)(50986999)(189998001)(2900100001)(5001960100002)(2950100001)(66066001)(107886002)(33656002)(76576001)(46102003)(122556002)(5001920100001)(40100003)(110136002)(4001430100001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR0301MB0903;H:BY2PR0301MB1654.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; |
| Content-Type | text/plain; charset="us-ascii" |
| Content-Transfer-Encoding | 8BIT |
| MIME-Version | 1.0 |
| X-Originatororg | microsoft.com |
| X-Ms-Exchange-Crosstenant-Originalarrivaltime | 04 Jul 2015 16:11:35.3590 (UTC) |
| X-Ms-Exchange-Crosstenant-Fromentityheader | Hosted |
| X-Ms-Exchange-Crosstenant-ID | 72f988bf-86f1-41af-91ab-2d7cd011db47 |
| X-Ms-Exchange-Transport-Crosstenantheadersstamped | BY1PR0301MB0903 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 62 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "x86@kernel.org" <x86@kernel.org>, "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "devel@linuxdriverproject.org" <devel@linuxdriverproject.org>, "olaf@aepfle.de" <olaf@aepfle.de>, "apw@canonical.com" <apw@canonical.com>, "jasowang@redhat.com" <jasowang@redhat.com>, Vivek Yadav <vyadav@microsoft.com> |
| X-Original-Date | Sat, 4 Jul 2015 16:11:35 +0000 |
| X-Original-Message-ID | <BY2PR0301MB16542BA56C8CACAE01722BF6A0950@BY2PR0301MB1654.namprd03.prod.outlook.com> |
| X-Original-References | <1435966643-3476-1-git-send-email-kys@microsoft.com> <alpine.DEB.2.11.1507041008290.3916@nanos> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | aioe.org linux.kernel:1176845 |
Show key headers only | View raw
> -----Original Message-----
> From: Thomas Gleixner [mailto:tglx@linutronix.de]
> Sent: Saturday, July 4, 2015 1:11 AM
> To: KY Srinivasan
> Cc: x86@kernel.org; gregkh@linuxfoundation.org; linux-
> kernel@vger.kernel.org; devel@linuxdriverproject.org; olaf@aepfle.de;
> apw@canonical.com; jasowang@redhat.com; Vivek Yadav
> Subject: Re: [PATCH 1/1] x86: Hyper-V: Mark the Hyper-V clocksource as
> being high resolution
>
> On Fri, 3 Jul 2015, K. Y. Srinivasan wrote:
> > From: Vivek yadav <vyadav@microsoft.com>
> >
> > By design, alternative clock sources listed are based on the resolution of
> > current clock source. Once you set a high resolution clock,
> > only high resolution sources are returned.
> > Mark Hyper-V clock source as a high resolution clock source.
> >
> > Signed-off-by: Vivek yadav <vyadav@microsoft.com>
> > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > ---
> > arch/x86/kernel/cpu/mshyperv.c | 3 ++-
> > 1 files changed, 2 insertions(+), 1 deletions(-)
> >
> > diff --git a/arch/x86/kernel/cpu/mshyperv.c
> b/arch/x86/kernel/cpu/mshyperv.c
> > index 9b5d7b5..0e507a0 100644
> > --- a/arch/x86/kernel/cpu/mshyperv.c
> > +++ b/arch/x86/kernel/cpu/mshyperv.c
> > @@ -151,7 +151,8 @@ static struct clocksource hyperv_cs = {
> > .rating = 400, /* use this when running on Hyperv*/
> > .read = read_hv_clock,
> > .mask = CLOCKSOURCE_MASK(64),
> > - .flags = CLOCK_SOURCE_IS_CONTINUOUS,
> > + .flags = CLOCK_SOURCE_IS_CONTINUOUS |
> > + CLOCK_SOURCE_VALID_FOR_HRES,
>
> No, this is wrong. The CLOCK_SOURCE_VALID_FOR_HRES flag is managed by
> the core code and set when a clocksource fulfils the criteria.
>
> The changelog above is not explaining what problem you are trying to
> solve.
>
I think the problem Vivek was trying to solve is that after the Hyper-V clocxk was
installed, if the user switched to another clocksource, say tsc, the hyper-V clock source would not
listed. I will investigate this further and let you know. Thanks for the feedback.
Regards,
K. Y
>
> tglx
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
RE: [PATCH 1/1] x86: Hyper-V: Mark the Hyper-V clocksource as being high resolution KY Srinivasan <kys@microsoft.com> - 2015-07-05 10:30 +0200
csiph-web