Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1752651lqg; Mon, 4 Mar 2024 02:42:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUW3h3rLeBHrAcn3TTvyAZL+FLZe4+dqS2SK4avyz/VFcAxecUJk8ejyVPEfE9XD2WQMnjujE1O9RzjwgEPp/0D0X/d4JMump67ewudcg== X-Google-Smtp-Source: AGHT+IH0j+DbMZehgY6caM/7EzBAdTqOx4iotztCFSDg/RJRW2MnpCMq8h8nE7re0iOgmww/E+TZ X-Received: by 2002:a0c:e4d3:0:b0:690:30fc:1a99 with SMTP id g19-20020a0ce4d3000000b0069030fc1a99mr9699279qvm.5.1709548961122; Mon, 04 Mar 2024 02:42:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709548961; cv=pass; d=google.com; s=arc-20160816; b=yYrBpkHpy3upBZ2g8NKVVX+fJ7fa/6HeQ/ilfTDYOkdT+p23OnuoovATqW3nM8WQRO sYTidjBWJcra8+5Jjoy/cBxd6Kuxu7OKq98H5OjHs9ij8IeseLF/zbhborUQYwKzq26c l6nuhweZ6VLw/sDtxQ1E6ThtVpLeTuOOWrNY+VxVl48Tx0jCAjQ26cC+g3AjxKI9U2gm MnrT47sApw+lo73AGqX7LopL02j4iW0KgAyLpDJguycLVc+G9VRiCMIDdpP/9SKhPS8F h1n0xdoh88BiA/KZOwqiuz8utw/6p7B2kuZzJ8uEUKjvFhNEDAZvjp4yDD1iI9hwMRlr 7XMg== 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=l9sSV+hZJGsJJrTHIBs5df8x2HPJgkkKH9EDwTvaZB8=; fh=610X5tf0sQXm/nyqOeOMcV23SkBRmplmXDcEuaDX6Rk=; b=kw+DHF6LBstCEf3CeMt9cnKaUsHrMV6WhFNddBv8jQRF7spgd82Y0UM0yqveRwpx3Z d24zr696Xy3x/1UMYs2tW6cCfIGSIlWHie8j3GDNugC6ML/gOhKl1tu3DrJr7lWdBnV5 joMNL6Y92O3IItD5a0Znm0qHcdmgRUg6cZ91rpzMx3npBS6fSubJpK9+cNA8+jhEFqLH +gABqZnUO8dJzgHFH4emsSVT5//Ckifp/6LwGVjpR8NivZwI7fICs4YIwoL3v0EOi6e1 iB42qbUPcEEfllyQIBgEKwlkZCOFPLGolJpj5HccdOT+CkkNlK9I/ekE9Kb16CzmqFQ1 7m3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=a65Q4K6n; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-90449-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90449-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gw2-20020a0562140f0200b0068fcc6a4593si9477539qvb.38.2024.03.04.02.42.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 02:42:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90449-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=a65Q4K6n; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-90449-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90449-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D75F21C211A2 for ; Mon, 4 Mar 2024 10:42:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 224FC374EC; Mon, 4 Mar 2024 10:42:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="a65Q4K6n" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 6691336B02 for ; Mon, 4 Mar 2024 10:42:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709548947; cv=none; b=kIf083hO79HensstfYjPzpp4rg25aXnHlz/NyNWSSwnxkP2NXBWBcHZzvp7AnZ8kVwSTNIpL3r7GABpiLs1BYUyhGWZXJFOvvbEjVl80V4q8rPoYktVWk65usjO092J1gcNNS6z3uugHAFRONe6BYTqH5DTgrn+AXSlqdxS0GHU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709548947; c=relaxed/simple; bh=r3ul6PGNYof50/R5Ayjtl8Den5KT5SDwEijToqmquco=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IXXR0GviLdx5xxxUPk1/epgTLYF4mhHvxMKmCUlfuWTk817RtA+mt6K17dbwNO3eET/VA5S4ow2TLKbr5F8pOixRihXBp4RVjALfk+CmEEgeHhP/yxqMWgu9bxb3RLxhD3NRkxCyZ9CaVkFaaJKVLkXAera25/kIaey7XnfW6k0= 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=a65Q4K6n; arc=none smtp.client-ip=198.175.65.9 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=1709548945; x=1741084945; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=r3ul6PGNYof50/R5Ayjtl8Den5KT5SDwEijToqmquco=; b=a65Q4K6nh6FOqCJtshyFeoULQTOoq9iGWg0VD9/2V+FwjWVxKL8lh2K6 SKIWQwH6/xou4rmkj2y6SZcfXAVuazYH1oVwqnAB9prpCnkU1v9UYqvQy pDdayu0g0wA1f4E3bKZK6FpBncdF5SpstDU+uxu5P34xc5m/EY+ygBk3t InZk9J9hb0JBu1151Mn43/iWQzgOP4CszrDoD2bmiao8geugbJ9W3EMBj riIkPJw7UdkKPQDsAwrDbrT/1UTdjUnEHesv86vZBY9uO6wGXDRWbmvLm bGOnIUpcy8Zvn9ibfMfA8mnnEScc33K8LK9g/yUw7wDC0p4+KLOw4vJuV A==; X-IronPort-AV: E=McAfee;i="6600,9927,11002"; a="26498303" X-IronPort-AV: E=Sophos;i="6.06,203,1705392000"; d="scan'208";a="26498303" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2024 02:42:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,203,1705392000"; d="scan'208";a="9021933" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2024 02:42:22 -0800 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id AD0D111F8B1; Mon, 4 Mar 2024 12:42:18 +0200 (EET) Date: Mon, 4 Mar 2024 10:42:18 +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 v2 1/3] mei: vsc: Call wake_up() in the threaded IRQ handler Message-ID: References: <20240219195807.517742-1-sakari.ailus@linux.intel.com> <20240219195807.517742-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 Wed, Feb 28, 2024 at 08:19:04AM +0000, Wu, Wentong wrote: > > -----Original Message----- > > From: Sakari Ailus > > > > The hard IRQ handler vsc_tp_irq() is called with a raw spinlock taken. > > wake_up() acquires a spinlock, a sleeping lock on PREEMPT_RT. This leads to > > sleeping in atomic context. > > > > Move the wake_up() call to the threaded IRQ handler vsc_tp_thread_isr() > > where it can be safely called. > > > > Fixes: 566f5ca97680 ("mei: Add transport driver for IVSC device") > > Signed-off-by: Sakari Ailus > > Tested-and-Reviewed-by: Wentong Wu Thanks! I dug a little bit deeper and it seems the lockdep warning this patch fixes is something we can safely ignore, see . My apologies for the noise. The two other patches in the set are still unaffected by this. -- Regards, Sakari Ailus