From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5A3AC433ED for ; Fri, 23 Apr 2021 13:01:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ACEFB613F5 for ; Fri, 23 Apr 2021 13:01:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242575AbhDWNCC (ORCPT ); Fri, 23 Apr 2021 09:02:02 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:45986 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231283AbhDWNCB (ORCPT ); Fri, 23 Apr 2021 09:02:01 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1619182884; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rSY2/gYOdotd/jaEwm21lbEsmSCocKn3J8Yq4V9NaR4=; b=TDVd56DKo9LkEK17x2DJXIHlkpMrWAMJPeYQg6m+A1veFo1eumh2r65IGTY9eWhrZzQrsN KmoR/NxwOHnbX5axhXJz3gMuEBKB5JW/GQiCKmWvkaDb5IkZp96XMPqGuDhz7LTl1E2o41 b1vyNvc4E6gbXuWFWkE6au45otcybFrBF1Xs/LvxLYkSBcCSx8qh2os6atRRlITyROfEJa caKsDcs60iUaZtjYhOuMF8u8V6qKpoqBCu6UQuuG4NeuEA1sYM+KlCdQpOWYbI8S9BONZ+ b8qdruQJDqY4Udq2DNniy524m/baN/6uEAqskO1FGtqZ7F69oVxANcDdPFwTkg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1619182884; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rSY2/gYOdotd/jaEwm21lbEsmSCocKn3J8Yq4V9NaR4=; b=6iBeaJFCuzUCoILDwx2L15VO7BjqHB0IETk+h7mD6jbwXElOzojGzl2w39FrG/thQawR1K 22KAgtTx4IHOqtCw== To: John Garry Cc: "linux-kernel\@vger.kernel.org" , Marc Zyngier , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Ingo Molnar Subject: Re: Question on threaded handlers for managed interrupts In-Reply-To: <874kfxw9zv.ffs@nanos.tec.linutronix.de> References: <874kfxw9zv.ffs@nanos.tec.linutronix.de> Date: Fri, 23 Apr 2021 15:01:23 +0200 Message-ID: <871rb1w3x8.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org John, On Fri, Apr 23 2021 at 12:50, Thomas Gleixner wrote: > On Thu, Apr 22 2021 at 17:10, John Garry wrote: > OTOH, the way how you splitted the handling into hard/thread context > provides already the base for this. > > The missing piece is infrastructure at the irq/scheduler core level to > handle this transparently. > > I have some horrible ideas how to solve that, but I'm sure the scheduler > wizards can come up with a reasonable and generic solution. So one thing I forgot to ask is: Is the thread simply stuck in the while() loop forever or is this just an endless hardirq/thread/hardirq/thread stream? Thanks, tglx