From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_DKIMWL_WL_HIGH,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6268C04AB5 for ; Thu, 6 Jun 2019 16:37:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 796B520868 for ; Thu, 6 Jun 2019 16:37:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Pf49f6l/"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="ieLpvDzW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 796B520868 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=genots2WkKd9rA3ounp+NNoQPWADxMru1mi4OaQdqGo=; b=Pf49f6l/aC5eYeI2P04esbLIv Ifju3A72/+SWc7MkItPmSbjk0ugjmzqokZWl54OUnO99Vce9vGyf4JYA2feSSYFbDkCsQkQ1mSGOs THZblkLdJwhg3KJ5QSxR//Vnl7zkK+WeXPIAqRxTFUeQld04Adq0G9UehpKy8wxcvJwtbWD1jedYA Bjj+Ay+J/G6AUSYmT+X8kMXVkcjbenXAgAR9Zz78QqviIbW/dvBAs8d7fC64AS/jYiiDuWn6c55je clQ0KbxMrRi4xWeyK5GZu3spkzwdSAhUnDT1lZ4m2xxQLWTiJWJWgYK8wal1FbYylh+bx8295N/hq zLDfgdKtw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYvOh-0003U9-LP; Thu, 06 Jun 2019 16:37:51 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYvOd-0003Tn-OL for linux-arm-kernel@lists.infradead.org; Thu, 06 Jun 2019 16:37:49 +0000 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D882A206BB; Thu, 6 Jun 2019 16:37:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559839067; bh=SBlCYXjXf9Dmv/1zjLqy5l9A1C3/vFnxMgdVK5+kQww=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ieLpvDzWcm5ztonnfpaX04Bf5XtKdgUmixTRnLfue8zPzBFlHhb0bdxXJ0QUOI8hC m390QKwAJBsuYwTCBnC6dbDKIrWmrnCmIuIzIC6i23+8X0Jg2W9R3FozjfKP9deUz5 OEpzhHSWIZ/ihC8lYmNu8MNLNJEYCpggsMCjdmw0= Date: Thu, 6 Jun 2019 12:37:45 -0400 From: Sasha Levin To: Michael Kelley Subject: Re: [PATCH v3 0/2] Drivers: hv: Move Hyper-V clock/timer code to separate clocksource driver Message-ID: <20190606163745.GL29739@sasha-vm> References: <1558969089-13204-1-git-send-email-mikelley@microsoft.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1558969089-13204-1-git-send-email-mikelley@microsoft.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190606_093747_821345_5FF8670C X-CRM114-Status: GOOD ( 16.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "mark.rutland@arm.com" , "linux-hyperv@vger.kernel.org" , "marc.zyngier@arm.com" , "gregkh@linuxfoundation.org" , "jasowang@redhat.com" , "will.deacon@arm.com" , "linux-kernel@vger.kernel.org" , "marcelo.cerri@canonical.com" , "olaf@aepfle.de" , "catalin.marinas@arm.com" , "apw@canonical.com" , vkuznets , KY Srinivasan , Sunil Muthuswamy , "linux-arm-kernel@lists.infradead.org" Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, May 27, 2019 at 02:59:07PM +0000, Michael Kelley wrote: >This patch series moves Hyper-V clock/timer code to a separate Hyper-V >clocksource driver. Previously, Hyper-V clock/timer code and data >structures were mixed in with other Hyper-V code in the ISA independent >drivers/hv code as well as in arch dependent code. The new Hyper-V >clocksource driver is ISA independent, with a just few dependencies on >arch specific functions. The patch series does not change any behavior >or functionality -- it only reorganizes the existing code and fixes up >the linkages. A few places outside of Hyper-V code are fixed up to use >the new #include file structure. > >This restructuring is in response to Marc Zyngier's review comments >on supporting Hyper-V running on ARM64, and is a good idea in general. >It increases the amount of code shared between the x86 and ARM64 >architectures, and reduces the size of the new code for supporting >Hyper-V on ARM64. A new version of the Hyper-V on ARM64 patches will >follow once this clocksource restructuring is accepted. > >The code is diff'ed against Linux 5.2.0-rc1-next-20190524. > >Changes in v3: >* Removed boolean argument to hv_init_clocksource(). Always call >sched_clock_register, which is needed on ARM64 but a no-op on x86. >* Removed separate cpuhp setup in hv_stimer_alloc() and instead >directly call hv_stimer_init() and hv_stimer_cleanup() from >corresponding VMbus functions. This more closely matches original >code and avoids clocksource stop/restart problems on ARM64 when >VMbus code denies CPU offlining request. > >Changes in v2: >* Revised commit short descriptions so the distinction between >the first and second patches is clearer [GregKH] >* Renamed new clocksource driver files and functions to use >existing "timer" and "stimer" names instead of introducing >"syntimer". [Vitaly Kuznetsov] >* Introduced CONFIG_HYPER_TIMER to fix build problem when >CONFIG_HYPERV=m [Vitaly Kuznetsov] >* Added "Suggested-by: Marc Zyngier" > >Michael Kelley (2): > Drivers: hv: Create Hyper-V clocksource driver from existing > clockevents code > Drivers: hv: Move Hyper-V clocksource code to new clocksource driver > > MAINTAINERS | 2 + > arch/x86/entry/vdso/vclock_gettime.c | 1 + > arch/x86/entry/vdso/vma.c | 2 +- > arch/x86/hyperv/hv_init.c | 91 +--------- > arch/x86/include/asm/hyperv-tlfs.h | 6 + > arch/x86/include/asm/mshyperv.h | 81 ++------- > arch/x86/kernel/cpu/mshyperv.c | 2 + > arch/x86/kvm/x86.c | 1 + > drivers/clocksource/Makefile | 1 + > drivers/clocksource/hyperv_timer.c | 321 +++++++++++++++++++++++++++++++++++ > drivers/hv/Kconfig | 3 + > drivers/hv/hv.c | 156 +---------------- > drivers/hv/hv_util.c | 1 + > drivers/hv/hyperv_vmbus.h | 3 - > drivers/hv/vmbus_drv.c | 42 ++--- > include/clocksource/hyperv_timer.h | 105 ++++++++++++ > 16 files changed, 484 insertions(+), 334 deletions(-) > create mode 100644 drivers/clocksource/hyperv_timer.c > create mode 100644 include/clocksource/hyperv_timer.h Queued for hyperv-next, thanks! -- Thanks, Sasha _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel