Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp128753pxb; Thu, 14 Jan 2021 21:49:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkFDFlMD7UHcvheZ0WTb+6TmLXEjo+6CrB4f3Cc66P3K4qDpzb78yarBQtZmAQ84l6mdZB X-Received: by 2002:a05:6402:190a:: with SMTP id e10mr8431109edz.110.1610689754432; Thu, 14 Jan 2021 21:49:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610689754; cv=none; d=google.com; s=arc-20160816; b=pvAHbf12P65zzcwuIlDzmRrnsVt6Av44golcv+KqwrudpO30SJIS19EW4bKqP8CCqF vqNEBlSJJxe7wliRmnyQ0Rus1kXqM2H2ITtfOEQGT8c2OR0drBO5GlT33V4QboUQvhyw cJzNK56/DFTXo9JJ/r1QQty4ZbxKEM3FgIx/K7nsokv6IMucj+JRfgGwtwIHHtyvo4aH YpsMYzN1ixrJg+ntNjOMojVskkzk7YlijFacfum0btlVINs6G3yzKgxT+SHk+EFBjUjr /Dy4DYnGfp8nTOs3srYWJB1gsBaz42I6E0WKSe7GTZ75mTtB6oo/mS/tsdMCMjlubxdX L7xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=URFo2VBQKK//R8gcAZNrxU3Tx5yCDlHMWxTMp6rRH8k=; b=YpVScMmsRMnqeccxrDrJiQfYm+t4AJns1sldaTuVUvQGl86oz5ySLsRw3pM0Qd3MBf oW2EXVXnekg75SeUh7U04Yes77KFIK7zC5ma6ouHe4J7SXl/+ckw6WRBe3GyPsQsSB61 kH46mjTY2+ThVdxUsfJD78QbvFNGXt5x62tCsenXlkzJDGiQp4xaBFY/2mQjJ4hnai4b /DHC3pseflAUx2r5DkEUrnenzhWdM69cZS9HtfbZNXNzv53p8rPNA8uwsUUr13JJJyf/ HWeJFiNizexLqlaf4m0uNARPBE8g6FotS3ca2DQTkEKGzblQ9lnXj2w1Au7AL7tJ3Xtr 1miw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c14si4083328edr.53.2021.01.14.21.48.50; Thu, 14 Jan 2021 21:49:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732737AbhAODyR (ORCPT + 99 others); Thu, 14 Jan 2021 22:54:17 -0500 Received: from mx2.suse.de ([195.135.220.15]:50054 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726431AbhAODyR (ORCPT ); Thu, 14 Jan 2021 22:54:17 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 89A08AB7F; Fri, 15 Jan 2021 03:53:35 +0000 (UTC) Date: Thu, 14 Jan 2021 19:53:27 -0800 From: Davidlohr Bueso To: Jassi Brar Cc: rob.rice@broadcom.com, Linux Kernel Mailing List , Davidlohr Bueso Subject: Re: [PATCH] mailbox: bcm: Replace tasklet with threaded irq Message-ID: <20210115035327.xckiigalv3qps7ke@offworld> References: <20210115002134.117637-1-dave@stgolabs.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20201120 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Jan 2021, Jassi Brar wrote: >On Thu, Jan 14, 2021 at 6:21 PM Davidlohr Bueso wrote: >> >> Tasklets have long been deprecated as being too heavy on the system >> by running in irq context - and this is not a performance critical >> path. If a higher priority process wants to run, it must wait for >> the tasklet to finish before doing so. >> >> Use a more suitable alternative such as threaded irqs and do the >> async work in process context. >> >> Signed-off-by: Davidlohr Bueso >> --- >Please cc the author and other contributors to this file, esp when >this is vendor specific code. So looking at who to Cc I noticed: commit 8aef00f090bcbe5237c5a6628e7c000890267efe Author: Rob Rice Date: Mon Nov 14 13:26:01 2016 -0500 mailbox: bcm-pdc: Convert from threaded IRQ to tasklet Previously used threaded IRQs in the PDC driver to defer processing the rx DMA ring after getting an rx done interrupt. Instead, use a tasklet at normal priority for deferred processing. ... which is exactly the opposite of what modern Linux should be doing. Rob, could this not be done in process context? Thanks, Davidlohr