From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752487AbdBTJ1U (ORCPT ); Mon, 20 Feb 2017 04:27:20 -0500 Received: from foss.arm.com ([217.140.101.70]:45896 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752421AbdBTJ1P (ORCPT ); Mon, 20 Feb 2017 04:27:15 -0500 Subject: Re: [hrtimer] 336a9cde10: WARNING:at_kernel/time/hrtimer.c:#hrtimer_init To: kernel test robot References: <20170219210659.GA95441@inn.lkp.intel.com> Cc: Thomas Gleixner , Tomasz Nowicki , Christoffer Dall , LKML , Ingo Molnar , "H. Peter Anvin" , tipbuild@zytor.com, lkp@01.org From: Marc Zyngier Organization: ARM Ltd Message-ID: <1d697e31-ec4c-4abd-c602-20e022dcb127@arm.com> Date: Mon, 20 Feb 2017 09:26:53 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170219210659.GA95441@inn.lkp.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/02/17 21:06, kernel test robot wrote: > > FYI, we noticed the following commit: > > commit: 336a9cde10d641e70bac67d90ae91b3190c3edca ("hrtimer: Catch invalid clockids again") > https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git timers/core > > in testcase: boot > > on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 4G > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): This is indeed the expected effect: mac80211_hwsim is using an illegal clockid, and we're letting the world now about it. The obvious workaround is the following patch: diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 1620a5d2757d..0889fc81ce9e 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -2671,7 +2671,7 @@ static int mac80211_hwsim_new_radio(struct genl_info *info, tasklet_hrtimer_init(&data->beacon_timer, mac80211_hwsim_beacon, - CLOCK_MONOTONIC_RAW, HRTIMER_MODE_ABS); + CLOCK_MONOTONIC, HRTIMER_MODE_ABS); spin_lock_bh(&hwsim_radio_lock); list_add_tail(&data->list, &hwsim_radios); which suppresses the warning and preserves the current behaviour, but doesn't provide what the author expected (the kernel never pretended to support CLOCK_MONOTONIC_RAW though). Thanks, M. -- Jazz is not dead. It just smells funny...