Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1298425rdb; Mon, 19 Feb 2024 10:18:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWgDgdbIMgJMbSK3LfdvUNlOCUtamFFVgPYwKfHaeZNIRikXXszwrKc6yJ8WAWUeGyqYQY0ZgqmH+dyZLoYemNoFhvm/Occ+sl5WxgXag== X-Google-Smtp-Source: AGHT+IGzBslSRSpIpdohXeO2QsWGsybTzBGZH4KkfjVN6A+hezNP3bORjMZdCoc9hMY6ts+UIA6s X-Received: by 2002:a17:906:3b4d:b0:a3d:2b8f:2ed8 with SMTP id h13-20020a1709063b4d00b00a3d2b8f2ed8mr1011060ejf.48.1708366737936; Mon, 19 Feb 2024 10:18:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708366737; cv=pass; d=google.com; s=arc-20160816; b=dEsbT5Z9YoQ1yiWJvQx9zPklhtjuZ8RggLO7ENTCdmcRYpKD50NF7exGB/opRD9JKo WTt0NEgsKqaMqTkTQ/XwjLV45XjCbP2WQEsnydte+VAQfDqmdkWEFuUyCUkvflglYXvA xSq0/vY4wQXxWWSqI7zjvlU7SX5BT/ezBTDpV/yh1dKdR/TTTrebGllyUBeMnqw8HG94 WPyjTkiyPMqEE8oY5syxP5geYkiwS1ifUq3IfW1PP/RPr2nQOMv/RNNLphiYqh9+xsnR heHhmpUyq3HjRLDvghfHNi2sS2LHz/rnBeM/kHVgV4L9zSxo9922sVcUuXHgUDGQGBeb cONw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=o4NeUd1X1CN5jTgmMJNFtBcOCoiyyC9kPbPE8r7SqA8=; fh=610X5tf0sQXm/nyqOeOMcV23SkBRmplmXDcEuaDX6Rk=; b=Iz6VDPf7W7kekwYuuYt27TvzHoAoE01dlEe5CGCo5WCC9AXmnXrg5DMmSMqqz7qMo9 N6GWUzfRVKeFnnPxJBaur0apsd+9IR+j0ajWfS/54M7x0KtGFa+fQyWFb80Fu66vpKW3 F3/BN62FQ+FzHrjDxUrsZDpzUaUOkG7SO7xgqcq21yeu0r+t5rBFFybQdq4e83UwcnM8 vpP82Byf/8CHQzeaYa6Mj/3oflyXoQV1dykVfc4XpWx8MMLfAmrWq6+18C9N6MHW8H83 rg9Y11FrGgFfuFL/irUvpjfMXidb1nmHln9DAzQ33m+E5Q87eFHu/p69ci6k9jqxMCVi 71aQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Zi1U53C3; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-71804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71804-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l17-20020a170906795100b00a3edf7cef81si252061ejo.41.2024.02.19.10.18.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 10:18:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Zi1U53C3; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-71804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71804-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id A065E1F21C73 for ; Mon, 19 Feb 2024 18:18:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CC83481CB; Mon, 19 Feb 2024 18:18:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Zi1U53C3" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 32E3247F79 for ; Mon, 19 Feb 2024 18:18:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708366730; cv=none; b=MnPGrbF+eAjM9P7X/JnDX/OFJjmCzGUiPbO0CNEV/XjLZ79JWz1V+n4/83KPNdt40CQWyAYkPYU9hHj7P+AdXRCK1sg8Lca++Utuuqdewx2IQTew8b1brYJAUnrGD6mdO92VlqghCqLzD8Aym5J5pqYjQOGftKf1W3435Ss0se4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708366730; c=relaxed/simple; bh=9qzal9oXOdJy6yA/NlBiSPMSuNQ7Zfu32zOuPiTA7NE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mJumyAJKffMsIYB8QnpjQcyS8sDHvP2/gQRSciOMu/nHNzFYMLe6u4h1dLjMY4F1mQWu8nrf6xjNewTTIDU4eevzUtVt/e58S3XZN4aGjwn3pppSYWT26kWxP/+Qjj+eNiqaIsTMoupgQ6wLKjBbJb4533LsqhG83uTuTYMwO0w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Zi1U53C3; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708366728; x=1739902728; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9qzal9oXOdJy6yA/NlBiSPMSuNQ7Zfu32zOuPiTA7NE=; b=Zi1U53C3Ql1/JG/7z+HGStcZ82KX6S1Ogz+cJ8CG0fJmTmhrMT1nP8Xm 59Cx94qGa1K3oYLKWyVHHIVSwmF6ix2Z69dtBWUkq2zNno0NAnggtEFBK CPq9rqmXUQvYOklNNfLO4JuSpUulh+SPpw6EBq/ou1eybwZ9ckvKFRFj7 rXdQCkwAKi48jzhJl9IoxDZDZG+KDJhZOARJUQfn11DBLt/aVorrmM3Gx 6H9RGVvSJkcVINrCaeBKcfsfRTSTID0YZLEWDOkpNk8TyJPsRuo2OGaY1 /79vQokpFn+hMZImhVi2xx75fVDIbgdOjG+2YDNUW+ncdPiG586PA+HR2 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10989"; a="19988238" X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="19988238" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2024 10:18:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="9257053" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2024 10:18:45 -0800 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 8F86A11F819; Mon, 19 Feb 2024 20:18:41 +0200 (EET) Date: Mon, 19 Feb 2024 18:18:41 +0000 From: Sakari Ailus To: "Wu, Wentong" Cc: Hans de Goede , "Winkler, Tomas" , Arnd Bergmann , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/3] mei: vsc: Call wake_up() and event handler in a workqueue Message-ID: References: <20240212094618.344921-1-sakari.ailus@linux.intel.com> <20240212094618.344921-2-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Wentong, On Sun, Feb 18, 2024 at 01:23:30AM +0000, Wu, Wentong wrote: > Hi Sakari, > > Thanks, and sorry for the late response because I'm in vacation this week. No worries and thanks for the review. > > > From: Sakari Ailus > > > > The event handler, in this case that of mei_vsc_event_cb() of platform-vsc.c, > > is called from a threaded interrupt handler in uninterruptible context. > > But why this thread is uninterruptible? > > https://github.com/torvalds/linux/blob/master/kernel/irq/manage.c#L1294 > > https://lwn.net/Articles/302043/ I guess I sent this too hastily. You can indeed sleep there. Moving wake_up() to the threaded handler should thus be enough. I'll send v2. -- Regards, Sakari Ailus