From owner-freebsd-arm@freebsd.org Sun Jul 29 14:35:49 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F38D91058446 for ; Sun, 29 Jul 2018 14:35:48 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7010982C0A for ; Sun, 29 Jul 2018 14:35:48 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-RoutePath: aGlwcGll X-MHO-User: ad5a333f-933c-11e8-904b-1d2e466b3c59 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id ad5a333f-933c-11e8-904b-1d2e466b3c59; Sun, 29 Jul 2018 14:35:45 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id w6TEZiDQ029467; Sun, 29 Jul 2018 08:35:44 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1532874944.61594.110.camel@freebsd.org> Subject: Re: sx_sleep not waking up when timo expires From: Ian Lepore To: John-Mark Gurney , freebsd-arm@FreeBSD.org Date: Sun, 29 Jul 2018 08:35:44 -0600 In-Reply-To: <20180729010157.GC2884@funkthat.com> References: <20180729010157.GC2884@funkthat.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jul 2018 14:35:49 -0000 On Sat, 2018-07-28 at 18:01 -0700, John-Mark Gurney wrote: > I recently upgraded my router to an Pine A64-LTS board, and have hit > the same issue as PR 222126[1].  The solution at the end does not work > for me, as I do not have that line in my loader.conf: > kern.timecounter.smp_tsc_adjust=1 > > I have verified that the wake up does not happen, as I used a dtrace > script to verify that pf_purge_expired_states is called or not called.. > When I change the timeout, pf will kick the thread and get things > running again, but it has stopped a couple times later... > > I'm running a recent SNAPSHOT: > FreeBSD gate2.funkthat.com 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r336134: Mon Jul  9 19:20:11 UTC 2018     root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC  arm64 > > This is likely reproducable by just starting pf, even in a pass all > mode, and watching for when the function stops getting called...  I'll > see if I can't get an extermely minimal config to reproduce it. > > Any suggestions? > > [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222126 > Sounds like https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229644  which has some patches attached which reduce but don't quite eliminate the occurrances, so nothing has been committed yet. I just ordered a SOPINE board so I can do some hands-on debugging. -- Ian