Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755517AbcK1Vup (ORCPT ); Mon, 28 Nov 2016 16:50:45 -0500 Received: from mail-by2nam01on0118.outbound.protection.outlook.com ([104.47.34.118]:11040 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752456AbcK1Vuh (ORCPT ); Mon, 28 Nov 2016 16:50:37 -0500 X-Greylist: delayed 12826 seconds by postgrey-1.27 at vger.kernel.org; Mon, 28 Nov 2016 16:50:37 EST From: "Alex Ng (LIS)" To: Vitaly Kuznetsov , "devel@linuxdriverproject.org" CC: "linux-kernel@vger.kernel.org" , "KY Srinivasan" , Haiyang Zhang Subject: RE: [PATCH] hv: utils: properly pick TS protocol version for future hosts Thread-Topic: [PATCH] hv: utils: properly pick TS protocol version for future hosts Thread-Index: AQHSSZTAw78E8pxRzEya3cK56Ri6eKDus1bg Date: Mon, 28 Nov 2016 18:16:49 +0000 Message-ID: References: <20161128163027.12117-1-vkuznets@redhat.com> In-Reply-To: <20161128163027.12117-1-vkuznets@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=alexng@microsoft.com; x-originating-ip: [73.221.138.34] x-ms-office365-filtering-correlation-id: e13bc4bb-5b79-486e-64d1-08d417bab879 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:MWHPR03MB2496; x-microsoft-exchange-diagnostics: 1;MWHPR03MB2496;7:3S/YBr4rHa+BjhWk23mzdInYhTqj6PsnlbYtHhVK3prHasCyyYDLdmSUx14RnvQLSyi7byWK92J1uDQKPFuPiQAZqj+bbOK540uxF5TQeH/ylfhM/hlDTT0zBO5rWQ+W1fPFw9q3hog828lWBWb7rjvGT+fGp8A2I5sAPspGqwBFvESiUndC8fhlgS85h2q7sYqQxQE2f6Gb0SA/pwyt1flRHUIgNKNmDcCzcCOOSDQ9GjxjIt35QkQLNHEj7gPixrE1Z46CP44S2OoCbWA1X+bLp53CbldM+VRsLaIZoUMhzGxKmUvWeUl7K7RMfaVFs6n7umfnIkPjYnueeiQ1dn9rMvEYxf17hWv+ceTukNEO4Z7T0yk9UN4y7aUDwEHAd1eykAiSv69Xb6pj0SCcCXvY+nYVDGCrNb/qBKk4JMl8cKhOmYvcX7IWJQmqFurQB0vIhDuXbfHgKkNn9gKM0QL4BGw+vr1MeijRw2rLhJY= x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(84791874153150); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6045199)(6040361)(6060326)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(61426038)(61427038)(6046074)(6041248)(6061324)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(6072148)(6042181)(6047074);SRVR:MWHPR03MB2496;BCL:0;PCL:0;RULEID:;SRVR:MWHPR03MB2496; x-forefront-prvs: 01401330D1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(13464003)(199003)(377454003)(189002)(33656002)(2906002)(305945005)(92566002)(106356001)(86612001)(3660700001)(105586002)(106116001)(4326007)(5660300001)(2501003)(2900100001)(7696004)(99286002)(107886002)(2950100002)(76576001)(7736002)(7846002)(4001430100002)(68736007)(38730400001)(5001770100001)(97736004)(81166006)(8676002)(81156014)(10090500001)(8936002)(50986999)(8990500004)(66066001)(122556002)(76176999)(77096006)(10290500002)(3280700002)(54356999)(9686002)(6116002)(102836003)(74316002)(575784001)(229853002)(189998001)(3846002)(6506003)(101416001)(86362001)(5005710100001);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR03MB2496;H:MWHPR03MB2734.namprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Nov 2016 18:16:49.0450 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2496 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id uASLon6Y015745 Content-Length: 2268 Lines: 62 > -----Original Message----- > From: Vitaly Kuznetsov [mailto:vkuznets@redhat.com] > Sent: Monday, November 28, 2016 8:30 AM > To: devel@linuxdriverproject.org > Cc: linux-kernel@vger.kernel.org; KY Srinivasan ; > Haiyang Zhang ; Alex Ng (LIS) > > Subject: [PATCH] hv: utils: properly pick TS protocol version for future hosts > > It is reasonable to expect that future Hyper-V versions will continue > supporting TimeSync v4 protocol, we, however, only pick it for > VERSION_WIN10. Currently this is not an issue as VERSION_WIN10 is the > maximum protocol version we can negotiate but this may change in future. > Instead of hoping that we won't forget to update it when time comes I > suggest we change the default now. > Vitaly, can you see if this upstream commit already fixes the issue you described? https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/hv?id=3da0401b4d0e17aea7526db0235d98fa535d903e > Signed-off-by: Vitaly Kuznetsov > --- > drivers/hv/hv_util.c | 13 +++++-------- > 1 file changed, 5 insertions(+), 8 deletions(-) > > diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c > index bcd0630..a13003f 100644 > --- a/drivers/hv/hv_util.c > +++ b/drivers/hv/hv_util.c > @@ -382,23 +382,20 @@ static int util_probe(struct hv_device *dev, > * Based on the host; initialize the framework and > * service version numbers we will negotiate. > */ > - switch (vmbus_proto_version) { > - case (VERSION_WS2008): > + if (vmbus_proto_version <= VERSION_WS2008) { > util_fw_version = UTIL_WS2K8_FW_VERSION; > sd_srv_version = SD_VERSION_1; > ts_srv_version = TS_VERSION_1; > hb_srv_version = HB_VERSION_1; > - break; > - case(VERSION_WIN10): > + } else if (vmbus_proto_version < VERSION_WIN10) { > util_fw_version = UTIL_FW_VERSION; > sd_srv_version = SD_VERSION; > - ts_srv_version = TS_VERSION; > + ts_srv_version = TS_VERSION_3; > hb_srv_version = HB_VERSION; > - break; > - default: > + } else { > util_fw_version = UTIL_FW_VERSION; > sd_srv_version = SD_VERSION; > - ts_srv_version = TS_VERSION_3; > + ts_srv_version = TS_VERSION; > hb_srv_version = HB_VERSION; > } > > -- > 2.9.3