Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1035473rdb; Mon, 19 Feb 2024 01:59:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW9rfXHLR1LYwowZFTHonbgYIek/dRcpB09pV/YHTeS6rSpZZHFpzOHNhOPxTbM0IosuNfkphtx+TdPCgNpGtp51TXTRgt/u3CISCzO0w== X-Google-Smtp-Source: AGHT+IHyt99/BbhrMQ1lbCBnl3NureiiZxTNk+zGb4KAa7i400bBgVadZSeypb1SVhe6JD92Yo/Y X-Received: by 2002:ac8:5e49:0:b0:42d:f2a0:d5a0 with SMTP id i9-20020ac85e49000000b0042df2a0d5a0mr8941770qtx.10.1708336789280; Mon, 19 Feb 2024 01:59:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708336789; cv=pass; d=google.com; s=arc-20160816; b=gAWnCdUPWEKXN7fbeOMB8X0P3DkgGlHiMKvcjBaQtPZDVbnaufW3TVBS9KZHvnuJfh Bm453Z1IVZYfs0IYXlBrDiVVVgih62e9Drm44vZTcFKjbSFe++G2vGUovWiNZAWvl4rD v1BSNBGElDOIOl+IQBcvyaYyvDZJ4hyT1GM/BGYd/M2IPpViyIGEpUwh/gCL+fAsqBDp gpKgsR4rjaKs2mBVCDHGwLNDba+bvQcZjkSwwdHx0IwBsNit5yHCCB8SCT08STLSv/3s qE+Xux3/VBpjsd1CeiprrNT3W75spDpirLBc2Py1LkSGbnl936pQVQgvaNl+pBd76tX+ yD6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=rEgT5l6Rc8UCXjauf1B1Sdo67SS0C1xsgpH1Y9aPN5k=; fh=WSXPwQPYnnWCb9RV2+NbxK+Xyy/eY4aCAqhOpzNNfrw=; b=wOykkMj4HXcxgXcXWtKPcBvQugXodaXPh+IcAJzCoGnewNtn8Q+tUXCckAYattBYhG K6ZF72FG0+IYelX/tTZIvxvH++v13hKt5mJzJRIDFd03w025HlQ2+5aRBZGMdatoF0HU bzvKZDrA+k5NvSpUSxsuz4XzcQ59I9KZnYfftLH23F2R09qEPGnUGXP43+ow1z6hIMXc +2xcvNNZwNgcdv3a1KGUQiaRcx1HKOIcTdeA7+5Ll0Wj0qMZrCZtpLHbghnpyu7TcMNg tdLdgT59G4/6JriYiEwX/v0DyJ4mZneWSaRcYo0/5LUkynJ3NkBDF3w+aku3gfdgo73B jdIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gTXeI+X0; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71081-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71081-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y8-20020ac85f48000000b0042d24a32838si6458591qta.54.2024.02.19.01.59.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 01:59:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71081-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gTXeI+X0; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71081-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71081-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0EC811C21427 for ; Mon, 19 Feb 2024 09:59:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1662725574; Mon, 19 Feb 2024 09:59:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="gTXeI+X0"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="AaUWd7S4" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5B60250ED; Mon, 19 Feb 2024 09:59:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708336777; cv=none; b=fufyfF6f4VP27ZQ+BgGQQXol0kEw3FVd8S7p2dQWYKyV3i/3dz9j05k7TKDpr2kniKh+/NB55/mbClabTtfokYP/9X42U5K3xHKcosJnDKD9j3OcuJ9DfZWCME1EitLruQbAIXlkt/RuRjNCxjH7riAtz6xCalJKtoBqqVjfgHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708336777; c=relaxed/simple; bh=719/8bQ/fJs7PlrwLT9LOERWbFxosqOojR0oxWtQS3I=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=L0uQ0UF9XzxeQ5Dw0aBLJHJe4oOl6235BAGh93nm5RJyuxIXd81TjpHsEGnI3NwuAm53p6DauLWG1fqr//mp/8SX9hZnKHvBzkh5ug6zF8bW1GGN+iwGFtdfFK5/ol8DtEwqWM3z6d/iYszPMZ9H6BnMEFdYl+GyrCjdF7KFuYs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=gTXeI+X0; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=AaUWd7S4; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708336773; 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=rEgT5l6Rc8UCXjauf1B1Sdo67SS0C1xsgpH1Y9aPN5k=; b=gTXeI+X07xiTlovvS7BnUubcUVAELIIapaAZwE9T/0sOjpSqJ4bJFSpdpebeHem9F79HJH ViK5gDEhPOCizEVOOCDY+SgZtWjgtZOfpLgqTEjXzVto1mjcJAEsMDT2zi0JqQ/Py1vrZV DKFXacrTLoDfkTGjsAQGbAwj2XbuS4IVjLpoMiPcKfF0Gt+3F+BdufLXlq6ZgIZnXAEoVU pOg1c6dbN48WeiMQXVBKYWZ7uga5kqadcj+IXBvoA0AosYuoGy5owtK3ERuJg1+R0h93xp 0Y3gelAThHhS7E0zXTF/JVASMjGrfalIGq2QIUd3ihgQt4mCeIiHICYlQnmnzg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708336773; 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=rEgT5l6Rc8UCXjauf1B1Sdo67SS0C1xsgpH1Y9aPN5k=; b=AaUWd7S4YM1ZTooyGtVjK+aRlPWp1mh/hvJ++iXKQfnl19KN/a3GYBwIreoGGA2veL4qgz Kqz8Ym3QQt41i7BA== To: Leonardo Bras , Greg Kroah-Hartman , Jiri Slaby , Tony Lindgren , Andy Shevchenko , John Ogness , Ilpo =?utf-8?Q?J=C3=A4rvinen?= , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Leonardo Bras , Florian Fainelli , Shanker Donthineni Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [RFC PATCH v2 3/4] irq: Introduce IRQ_HANDLED_MANY In-Reply-To: <20240216075948.131372-5-leobras@redhat.com> References: <20240216075948.131372-2-leobras@redhat.com> <20240216075948.131372-5-leobras@redhat.com> Date: Mon, 19 Feb 2024 10:59:33 +0100 Message-ID: <87zfvwai62.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Fri, Feb 16 2024 at 04:59, Leonardo Bras wrote: > In threaded IRQs, some irq handlers are able to handle many requests at a > single run, but this is only accounted as a single IRQ_HANDLED when > increasing threads_handled. > > In order to fix this, introduce IRQ_HANDLED_MANY, so the returned value of > those IRQ handlers are able to signal that many IRQs got handled at that > run. > > Is scenarios where there is no need to keep track of IRQ handled, convert > it back to IRQ_HANDLED. That's not really workable as you'd have to update tons of drivers just to deal with that corner case. That's error prone and just extra complexity all over the place. This really needs to be solved in the core code. Thanks, tglx