From owner-freebsd-arm@freebsd.org Thu Jul 2 16:59:06 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D7BE935B402 for ; Thu, 2 Jul 2020 16:59:06 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2k.ore.mailhop.org (outbound2k.ore.mailhop.org [54.148.219.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49yPSp2Gr5z44Q4 for ; Thu, 2 Jul 2020 16:59:05 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1593709145; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=JbL9d7n0cEETDoJaBzxOX7MMW2ZWCI/DiTUrIOJNuFivZ8Ch40lA/6wo4sO8NqAdvi6sQqIxn9AEl rlP4RLxB/wDhQ72zRjdoD8gdSoKoyZsf/zohUkvqRnP8BpkZptfufxQhWKBwUQflQf39+Zg8hrBFHY XdLfFi3usLtfUhrWrEDhYroOxkqdepd0HVqO8n/lbuXPWJtVLHrHEp7bYI37kaM2MdSNsbyjF15Azs 3/RuOhLWDV3laaIOykbH8f5seyAF4qSY2Gs5P0lM2Fyk42CQYaSQG8dhLokwXskJsYuBwsWJ2ramYq USONsG+n+9nukRFiWXSCFn19IiD+Q5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=ydlH5oe/RcTLAnsjFp/R3+qY4SfeWlrRjKLIkW5UxWs=; b=PJE80zSh+78ZgGIY2x3feBcsabv/fFwv99+g2XIMoPRhGvpBSkImL+Lm2unGwMCOTE1ZSkNqVbHql 6/A8aC7mmuQdkk7KB/4h0t5lq7e9BcTg2q6Vo3NTHRWE4jcaqSLKbv2Tmw+YG0kA7FfseksqiXNJtS W2p+GEpNcUO9MMsWPN3u5V+wloiXnrUuYreGp5pgT3P5Lhry5fAGVrDV7A+ZRfJOHFCrOAQDY+hSYO JMrhDkaAwVUYAl3IiC0qOL9MEaRkfhiCL0p6vu67zgViL5VWe7De7hiVT0fondTTbz5eRi9rPjtyHB Lvckr/dR7Dv4dTaHyJSPurS/WiYL4/Q== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=ydlH5oe/RcTLAnsjFp/R3+qY4SfeWlrRjKLIkW5UxWs=; b=en+E8kW49IBOYewaPUINOUQZPjGObsfdCF0NmtttRF8a3U5+jyqpG/vvbREWn1g3rBX7NB+VleAMf RSPTXj5+aCMruxnOUDzH0aePXKtwXkhTpb8OpQa4FmQ1VKhm2QwIVKr11lMJTSXVvY4ToCZk3p7AX/ pBcAlsD1hoJTMKMQ4aql/0i38Ae5g5UahSpudDO8Fp0I95l/s5t8WKMB5XMh4DC2EkV1vEFolnR4Fs uQCPlgqkcFtuUapAVr2duae2mblOrhejMHI7+FqDi6w/8rxmKZxFpg+kV7xcNr/gpgfPZEryHBIRmL IlIIi0qi7wvcwceI8ijgWeQwmTv6CzQ== X-MHO-RoutePath: aGlwcGll X-MHO-User: 54c57959-bc85-11ea-b630-6b8aa7872eb8 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 (c-67-177-211-60.hsd1.co.comcast.net [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 54c57959-bc85-11ea-b630-6b8aa7872eb8; Thu, 02 Jul 2020 16:59:03 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 062Gx2SG099561; Thu, 2 Jul 2020 10:59:02 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: cv_wait From: Ian Lepore To: kamalp@acm.org, freebsd-arm@freebsd.org Date: Thu, 02 Jul 2020 10:59:02 -0600 In-Reply-To: References: Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49yPSp2Gr5z44Q4 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[freebsd.org]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jul 2020 16:59:06 -0000 On Thu, 2020-07-02 at 21:48 +0530, Kamal R. Prasad wrote: > hello, > > i have written a piece of code in a freebsd driver meant for arm. The > first > cv_wait(&sc->sc_cv, &sc->sc_mtx); > keeps waiting indefinitely. If I use cv_timedwait() instead, it > returns > > EWOULDBLOCK > > > does someone know why this is happening? > > > thanks > > -kamal > That would imply that nothing is ever calling cv_signal(&sc->sc_cv) or cv_broadcast(&sc->sc_cv). -- Ian