Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp731187pxj; Fri, 14 May 2021 14:28:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+/rvX+iQWLWZD3fqy+UtwgLD2PIIcbhTqP+xBEK6r3gVFt/uXLu82tHIc5CJLJny6nZPa X-Received: by 2002:a92:dc4f:: with SMTP id x15mr41235984ilq.27.1621027737160; Fri, 14 May 2021 14:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621027737; cv=none; d=google.com; s=arc-20160816; b=JGwiqD73i9hrtQqD75ektwdxIww0X4exoYoJl/If7pM5nq76MlHVGuL08IyJiwftKn 1ddVH83swW2A5lSVzklsNkEa7E0qL4UfBwNTCsEI5VPYEGAK/WyFlVhpbNpYiu9vXYW9 zz/0yJvh9DjmcZ0fDx7pPVt5WnZQXoxzrh8u0H80R2k85Twt5lrqxV+G4U9ZyK2gWzCQ sd0MSmlF3CZc61orLe54GMNcNYVTV2jvrDgG6Glnx/Eiy+E283jdIaEYWpqcgBr+3NUW 9MuyoBrL8tOxlv40q/ZxooF+qV8d99hjdBiOr36xx3/LTi6JVHScTqccHXtxtLIA1OUQ JIxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=RA5xS7f4ejLOEDBZcWJrzacApLY1RiYGUqm+bDE3Dwo=; b=kTRGW1nT73jKv5M6tbqODOwTO1VOQQuDlGZ0selCx54Z0B/WJhoYQY4c8HakYbCm5G Dl5nkM6QXaw0lyy33GQ8FxGdb3Znpb4+y6f7yaEQrkkbRg7YnJVWK7XFPL8u7HiauZGT tnsZ8xZUf/cXfHjvMHgVf/hWYeDTK46N8VAfU72DREbI/srQT6kZV1K6w3GSS+CRsYyS KlPCw3yIDbId3uLfnTFknx0gPTdwxOYTH7x2N+lWZnxNKWyL+eps4baBPZF2cDr3HAAo xfRy3gXvq+Z+okvV3bW4Sn5XrbBCyNQ/9qWrcdGrDUW2zAaEgXHi/HwzUgA/pAyh1Vuc s3gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=q6q6xWYF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si9044535jas.117.2021.05.14.14.28.43; Fri, 14 May 2021 14:28:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=q6q6xWYF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230387AbhENNAR (ORCPT + 99 others); Fri, 14 May 2021 09:00:17 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:36628 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbhENNAQ (ORCPT ); Fri, 14 May 2021 09:00:16 -0400 Date: Fri, 14 May 2021 12:59:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1620997144; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RA5xS7f4ejLOEDBZcWJrzacApLY1RiYGUqm+bDE3Dwo=; b=q6q6xWYFlYi5/qUm+M2dd1NNSxzYLkhm0VEfqb/Y5LsJi7wLVYZRSnkFIaLU1U/a8LXcMd P5iYJ3am3mxjGPsTDr58yocT9Z5TjnMi7cJdHs5QK5tIPTmV5NeYAljtPOmNzWt0afrpIf +kHNRkaEdSBZGsignH0yHvGbfqLlcNucW8SkkXFc8s+6397/4D1GpFBq5NgxEAhGVlybox rMgSkpGVLoGCWlppb/WhCr9X91DJcqtYdmtMjpMFbbQgR93nvG7VmSWsGfxwyvQmHRH0ud Q8eQPVZjjicSqqRnzVEzVDON048fUXNHFmM7ElIHAIx05Ep+ou0YJJf0DRENHw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1620997144; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RA5xS7f4ejLOEDBZcWJrzacApLY1RiYGUqm+bDE3Dwo=; b=xOTuOEoEVaS1hooCBmbAEPWUEZs0zoTBcsPUbKO5Ry/bwyAeop48aAzF5NE0d2FF3/fxXp qGzXsqCPMSG3H0BQ== From: "tip-bot2 for Vitaly Kuznetsov" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/urgent] clocksource/drivers/hyper-v: Re-enable VDSO_CLOCKMODE_HVCLOCK on X86 Cc: Mohammed Gamal , Thomas Gleixner , Vitaly Kuznetsov , Michael Kelley , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210513073246.1715070-1-vkuznets@redhat.com> References: <20210513073246.1715070-1-vkuznets@redhat.com> MIME-Version: 1.0 Message-ID: <162099714364.29796.11946407878774637795.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the timers/urgent branch of tip: Commit-ID: 3486d2c9be652a31033363bdd50391b0c8a8fe21 Gitweb: https://git.kernel.org/tip/3486d2c9be652a31033363bdd50391b0c8a8fe21 Author: Vitaly Kuznetsov AuthorDate: Thu, 13 May 2021 09:32:46 +02:00 Committer: Thomas Gleixner CommitterDate: Fri, 14 May 2021 14:55:13 +02:00 clocksource/drivers/hyper-v: Re-enable VDSO_CLOCKMODE_HVCLOCK on X86 Mohammed reports (https://bugzilla.kernel.org/show_bug.cgi?id=213029) the commit e4ab4658f1cf ("clocksource/drivers/hyper-v: Handle vDSO differences inline") broke vDSO on x86. The problem appears to be that VDSO_CLOCKMODE_HVCLOCK is an enum value in 'enum vdso_clock_mode' and '#ifdef VDSO_CLOCKMODE_HVCLOCK' branch evaluates to false (it is not a define). Use a dedicated HAVE_VDSO_CLOCKMODE_HVCLOCK define instead. Fixes: e4ab4658f1cf ("clocksource/drivers/hyper-v: Handle vDSO differences inline") Reported-by: Mohammed Gamal Suggested-by: Thomas Gleixner Signed-off-by: Vitaly Kuznetsov Signed-off-by: Thomas Gleixner Reviewed-by: Michael Kelley Link: https://lore.kernel.org/r/20210513073246.1715070-1-vkuznets@redhat.com --- arch/x86/include/asm/vdso/clocksource.h | 2 ++ drivers/clocksource/hyperv_timer.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/vdso/clocksource.h b/arch/x86/include/asm/vdso/clocksource.h index 119ac86..136e5e5 100644 --- a/arch/x86/include/asm/vdso/clocksource.h +++ b/arch/x86/include/asm/vdso/clocksource.h @@ -7,4 +7,6 @@ VDSO_CLOCKMODE_PVCLOCK, \ VDSO_CLOCKMODE_HVCLOCK +#define HAVE_VDSO_CLOCKMODE_HVCLOCK + #endif /* __ASM_VDSO_CLOCKSOURCE_H */ diff --git a/drivers/clocksource/hyperv_timer.c b/drivers/clocksource/hyperv_timer.c index 977fd05..d6ece7b 100644 --- a/drivers/clocksource/hyperv_timer.c +++ b/drivers/clocksource/hyperv_timer.c @@ -419,7 +419,7 @@ static void resume_hv_clock_tsc(struct clocksource *arg) hv_set_register(HV_REGISTER_REFERENCE_TSC, tsc_msr); } -#ifdef VDSO_CLOCKMODE_HVCLOCK +#ifdef HAVE_VDSO_CLOCKMODE_HVCLOCK static int hv_cs_enable(struct clocksource *cs) { vclocks_set_used(VDSO_CLOCKMODE_HVCLOCK); @@ -435,7 +435,7 @@ static struct clocksource hyperv_cs_tsc = { .flags = CLOCK_SOURCE_IS_CONTINUOUS, .suspend= suspend_hv_clock_tsc, .resume = resume_hv_clock_tsc, -#ifdef VDSO_CLOCKMODE_HVCLOCK +#ifdef HAVE_VDSO_CLOCKMODE_HVCLOCK .enable = hv_cs_enable, .vdso_clock_mode = VDSO_CLOCKMODE_HVCLOCK, #else