Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp610272ybi; Wed, 17 Jul 2019 02:05:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqx784lIxNmF7YMy8rGEoHCJpJ1P5XVgWgytMn/VE00bkf1BaYeJM/J0GCJj8YnW/TPKdH2x X-Received: by 2002:a17:90a:8d0c:: with SMTP id c12mr41141526pjo.140.1563354336990; Wed, 17 Jul 2019 02:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563354336; cv=none; d=google.com; s=arc-20160816; b=UJfI0w8t+sTyZ0wmmLK4BBl/uXnLtYrUP+yVDPHesA9vHUOz+xnwpIn1pg41P+KpTT bXqOuomCjozyNlys67slWiznlbh+qNa4aqMz7wNff79sgDT31gUGMBb0wwKh5pE2JAtr ///AD9BVMQBJaflgwIhGOayDn/E5ySHjN3LaaUJkFokxM7KnTU90M9+o/2CG8nena5u3 l0Giu+fYnCiay4Te23sxiVREIn4SxObCFioYawbqLBp8Eqqg3/LTDhNEDMv9lD40+8h/ UAwJhVC1LwKhz2pHt+PdsaxnD/SGbyW+pbVZH5u8Zz357K2DDwWNZ8ksQcUxDs6h66nQ OTyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date; bh=Cuvm6rP0laSgF9kglsTPSAzOPPd+DJF28XEbbRZz8TQ=; b=g80DCUY/JEFTfo35o9C8bOK2SRs7JH6Q/tBBFjtIcbZOD5kdmLGgE8rN94PG3fpX7N pIuLMsDuvTbdgeuw1WXvjqdHpK7zwsoz0/wBs8Xw+PmULZibGQo0Y34J/kVSNPB5QBDN Iidjqp/VygJzk6IDUUF3WxwzaAYK7+A1MT0VdYRhNK6KcWUeWaZDB+oCLwsNisL+woN/ UOTyYN2yW5RtNQOlkmkSNCUbpyS0LCGgzn1Ye7mjv6Ikdoj0yI5tEUsmRAMEmu5P64Yj BvecmnmbuAEm4X2NBI14U1hgIVXETAJKpFU1HKntV7ydOGSa2SSIWJC3ZyRBnzxIBKCJ 5kcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r63si21899882plb.136.2019.07.17.02.05.20; Wed, 17 Jul 2019 02:05:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726452AbfGQJEC (ORCPT + 99 others); Wed, 17 Jul 2019 05:04:02 -0400 Received: from elvis.franken.de ([193.175.24.41]:38560 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbfGQJEC (ORCPT ); Wed, 17 Jul 2019 05:04:02 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1hnfqw-0005ZZ-00; Wed, 17 Jul 2019 11:03:58 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id A00ADC12B1; Wed, 17 Jul 2019 11:03:22 +0200 (CEST) Date: Wed, 17 Jul 2019 11:03:22 +0200 From: Thomas Bogendoerfer To: Ralf Baechle , Paul Burton , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: kernel: only use i8253 clocksource with periodic clockevent Message-ID: <20190717090322.GA8585@alpha.franken.de> References: <20190513114725.17823-1-tbogendoerfer@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190513114725.17823-1-tbogendoerfer@suse.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 13, 2019 at 01:47:25PM +0200, Thomas Bogendoerfer wrote: > i8253 clocksource needs a free running timer. This could only > be used, if i8253 clockevent is set up as periodic. > > Signed-off-by: Thomas Bogendoerfer > --- > arch/mips/kernel/i8253.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/mips/kernel/i8253.c b/arch/mips/kernel/i8253.c > index 5f209f111e59..df7ddd246eaa 100644 > --- a/arch/mips/kernel/i8253.c > +++ b/arch/mips/kernel/i8253.c > @@ -32,7 +32,8 @@ void __init setup_pit_timer(void) > > static int __init init_pit_clocksource(void) > { > - if (num_possible_cpus() > 1) /* PIT does not scale! */ > + if (num_possible_cpus() > 1 || /* PIT does not scale! */ > + !clockevent_state_periodic(&i8253_clockevent)) > return 0; > > return clocksource_i8253_init(); > -- > 2.13.7 Paul, can you take it into 5.3 ? This fixes a boot ang on mips/jazz and is the same as x86 does for quite some time. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]