From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rjc8b0Dt4zDqtd for ; Mon, 4 Jul 2016 16:11:11 +1000 (AEST) In-Reply-To: <1467607904.13965.1.camel@kernel.crashing.org> To: Benjamin Herrenschmidt , linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Cc: mikey@neuling.org Subject: Re: powerpc/opal: Wake up kopald polling thread before waiting for events Message-Id: <3rjc8Z6nDPz9sXx@ozlabs.org> Date: Mon, 4 Jul 2016 16:11:10 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2016-04-07 at 04:51:44 UTC, Benjamin Herrenschmidt wrote: > On some environments (prototype machines, some simulators, etc...) > there is no functional interrupt source to signal completion, so > we rely on the fairly slow OPAL heartbeat. > > In a number of cases, the calls complete very quickly or even > immediately. We've observed that it helps a lot to wakeup the OPAL > heartbeat thread before waiting for event in those cases, it will > call OPAL immediately to collect completions for anything that > finished fast enough. Any performance/jitter impact on normal systems? cheers