From owner-freebsd-current@freebsd.org Thu Jan 19 10:35:25 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BF08BCB8992 for ; Thu, 19 Jan 2017 10:35:25 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: from mail-qt0-x233.google.com (mail-qt0-x233.google.com [IPv6:2607:f8b0:400d:c0d::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 78D631928; Thu, 19 Jan 2017 10:35:25 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: by mail-qt0-x233.google.com with SMTP id l7so61228431qtd.1; Thu, 19 Jan 2017 02:35:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=G5U12vZ7kKtcB52cYqxu6rRFi+92V4KfwMerdmBbBTQ=; b=MHyMABSf2ay76QvtCLtCVqOl9fsHXMWuPY8PidJNLfYSkB7TkrO9E0H4PH/+uotz/P gmNgiQ5G1zPEq03SVGKFR43pvPE0DdxxJ1gzHSqeT6H74IKcxVG158xhxrhhY5eu1yqF oYvKbIhBoFxdYvHWGDU7ECq3klvuLwGncER+9U9c9v7QSwIVGpSpaaw2RHAYIFjlNSFN OydlAG5ohXasz3XEJG97QBUUt8n22J9XmYmJuY9GMRTMmNqharmKG1un1ImH8V4L4j9r f2RpsAfJl98eT/FNGLHIoKOphbG++QuEUh454PC59Xha4ayvYKnCK4OVNuOHPUb3/wN6 VsTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=G5U12vZ7kKtcB52cYqxu6rRFi+92V4KfwMerdmBbBTQ=; b=UN+C5d4JzigBh5trGOcJsdD6XXvpE+IpX2Ckz080uKa4nUqCsEGyRsIDnycdSC0ioh PR//LwKOcGI9WI4U4w/Rl8pq+4fAJt9XCX2cGNYSWfa4fhSMllMkpk7UuqLb+xvGA6SI GZ2wM03TwlV8dflC/30WWucFzJUtT3FcdTstqqeQ4K1xg61jjk8iHNbXahWZgzCPKInw uLD2GX5V+TM65VMthOS/UwRzVd3ETQ5n2lya1Igk7EZSCi7DiSiyCT2LPCRD3bNfjuZy cgUeQrcXxTdoyTZ2XKVjjjvRK2geVdDfd1paKF7FeGEgxZvJn4oszzt5SJ94wvM1KwFf UHhA== X-Gm-Message-State: AIkVDXIyaATdzJpbPRgRHadQeF4hu5TG8/LYMkKsoq5bIlDQOdK5R6geIJUyS8lOFme7MfSRT/oufoHutmC/JQ== X-Received: by 10.200.40.113 with SMTP id 46mr6702769qtr.167.1484822124712; Thu, 19 Jan 2017 02:35:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.104.8 with HTTP; Thu, 19 Jan 2017 02:34:54 -0800 (PST) In-Reply-To: References: <1484682389.86335.166.camel@freebsd.org> <11f27a15-f9bc-8988-a17e-78aeff1745fb@selasky.org> <3558195.Ack1AKBXSB@ralph.baldwin.cx> <24593c49-b0d5-8aaf-e11b-bfef4704267e@selasky.org> From: Jia-Shiun Li Date: Thu, 19 Jan 2017 18:34:54 +0800 Message-ID: Subject: Re: Strange issue after early AP startup To: Hans Petter Selasky Cc: John Baldwin , Ian Lepore , FreeBSD Current , Konstantin Belousov , Bruce Evans Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2017 10:35:25 -0000 On Thu, Jan 19, 2017 at 4:23 PM, Hans Petter Selasky wrote: > > I can add prints/asserts to show that what happens is that > "state->nextcallopt > now" while "state->nextcall <= now". This situtation > is allowed to persist due to the way getnextcpuevent() is currently > implemented. > > Can the people CC'ed give the attached patch a spin and report back? > > As far as c2d system time is concerned, it works correctly for me w/ r312210. -Jia-Shiun.