Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp326731ybt; Tue, 30 Jun 2020 22:43:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa4oDgOSW5jKIm5w4kEg4hvLfcYBjDFSfRT5DkTZCm6+S5mTWNOBJH3H+bLRbZkDK1uLdr X-Received: by 2002:a50:ee8a:: with SMTP id f10mr7398661edr.383.1593582219219; Tue, 30 Jun 2020 22:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593582219; cv=none; d=google.com; s=arc-20160816; b=W9l18kRUwD6mw9ckvPOWAk03l84HsFVZa8qBRqdeXfNGTPuh4e2uf2Cjiz02FTNOfQ 0uQluJiI6NYRBhweZ8AlETjHz3G0rQzO7Sqkde3NRik30ziutCxZDnIiOovC6OXhrhdM 23T66Eh8PeZVOE0QsxmYWjxrBl7tDjBPcTNBPcon/5veRBbNTmKAG3aWad/fPHubuWXW 4m4u5SG7VHHzuGX1GwOAOOa/o8kief3foIfGxa7EHo0UsX5KPc2IsDEoIWrC15OJ5DoM kEAGtISBHyY4SqjLcqaePoTkFwInRm6wfYHixwlq/M1q8qST3F8hK1y0kEDfDIxOwjXp w8iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Vdzo1Ovw1KGrJOscHLwxxBADBqFCzNAELq2r4umThtg=; b=Wol2Rc9vJuiYc3IFqxv7fZKXUTT9nJW3xpUOwAKpk/TZHBqqO8vOIlGPGrVdjEZU0B ucvmhKYgHPCzrzl6oglM7C0BSxMlw69cdfi1aKUzYma2vcpQLDc9XOTE+OH9PDk03Qrn 5RxEjX/cULumaXrlJUDkcOavRkIQGCvrKOmPUSXXPI8IjbX1pjSCDfMp70p/gLzuLZjG ZyBqbrO/RXKfmVfDyNNMwyEIwB86/ZtPq201KdWUxRoDwkvYvI2IB+lBxk/7lNwtWCQg 4vXBkPs7gVjhW0SXhx+RTgNfIbbh3GGVfS7BP6oCuBI8JIg8INH4gxN8OQUns3HkEU9X Kctg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="1/U8k8t8"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id re6si3128347ejb.381.2020.06.30.22.43.16; Tue, 30 Jun 2020 22:43:39 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b="1/U8k8t8"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726752AbgGAFmb (ORCPT + 99 others); Wed, 1 Jul 2020 01:42:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:55434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726573AbgGAFma (ORCPT ); Wed, 1 Jul 2020 01:42:30 -0400 Received: from localhost (unknown [122.182.251.219]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D306A20722; Wed, 1 Jul 2020 05:42:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593582149; bh=z+2RJZHyQny9rynb3BmYF5r0RdYoLOR7Ccd9JyesxtE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1/U8k8t8jnr0MVIBLl3Q8dNbc3WGFzi3WFym1Qi9Ar3/Vh60em4504wWCovTjrtOk QV9+Zhq+sW0ax5ylUO6pMiVuzlFkT1A22j3LOkHVKjXF4K4M/pawujPLjz+BKdBd1X Eiw3i2HROaC03z20QBbGvpQqsVuVkdlHWAHSf/D0= Date: Wed, 1 Jul 2020 11:12:24 +0530 From: Vinod Koul To: Pierre-Louis Bossart Cc: Bard Liao , alsa-devel@alsa-project.org, tiwai@suse.de, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, ranjani.sridharan@linux.intel.com, hui.wang@canonical.com, broonie@kernel.org, srinivas.kandagatla@linaro.org, jank@cadence.com, mengdong.lin@intel.com, slawomir.blauciak@intel.com, sanyog.r.kale@intel.com, rander.wang@linux.intel.com, bard.liao@intel.com Subject: Re: [PATCH 7/9] soundwire: intel/cadence: merge Soundwire interrupt handlers/threads Message-ID: <20200701054224.GV2599@vkoul-mobl> References: <20200623173546.21870-1-yung-chuan.liao@linux.intel.com> <20200623173546.21870-8-yung-chuan.liao@linux.intel.com> <20200630162448.GS2599@vkoul-mobl> <55fbc41e-cb41-8bdf-bdbd-1d1b76938683@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55fbc41e-cb41-8bdf-bdbd-1d1b76938683@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30-06-20, 11:46, Pierre-Louis Bossart wrote: > > Is this called from irq context or irq thread or something else? > > from IRQ thread, hence the name, see pointers above. > > The key part is that we could only make the hardware work as intended by > using a single thread for all interrupt sources, and that patch is just the > generalization of what was implemented for HDaudio in mid-2019 after months > of lost interrupts and IPC errors. See below the code from > sound/soc/sof/intel/hda.c for interrupt handling. Sounds good. Now that you are already in irq thread, does it make sense to spawn a worker thread for this and handle it there? Why not do in the irq thread itself. Using a thread kind of defeats the whole point behind concept of irq threads -- ~Vinod