From patchwork Wed Mar 23 12:43:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Lobakin X-Patchwork-Id: 12789753 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21B3EC433EF for ; Wed, 23 Mar 2022 12:45:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242962AbiCWMrR (ORCPT ); Wed, 23 Mar 2022 08:47:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232056AbiCWMrQ (ORCPT ); Wed, 23 Mar 2022 08:47:16 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EB517C141; Wed, 23 Mar 2022 05:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648039547; x=1679575547; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=b3goUzAA/VI/4DOWbJOhFKgO5Gi2BfRA6h5XH2fYuh0=; b=oFdDPGtjzx7nzbm5o5aG+jimpH4vtIFO7kZt4NUx5G+mPenqG3+7PmwN 1f5dWr3OfJW8NPp1etyvtSzmdu8yfVt3s/exVMxrBsVLs1kmevpAqZ+/i VRlsWHa/SM0WXRz0VLZwuBVnkQllyoyi+gQybWJGQQCqYSGNY8JCQgZAv K1oNUu0TVswmAY1+TppzwnfA3ATmlg9KktuBfY8eUXY8HLI5aM4lk0JNP 711o/lV1Zi95qBiBiB5y/swDLcTeeo1R1g+Z98pXg+kr6y9F1JPRCamzu cpOPZab6JHGnNJ7oGUd04haIrZ/2a7KWY+ER1L5WWhQ8KYPGzcWhBo5S6 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10294"; a="344533883" X-IronPort-AV: E=Sophos;i="5.90,204,1643702400"; d="scan'208";a="344533883" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2022 05:45:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,204,1643702400"; d="scan'208";a="500987437" Received: from irvmail001.ir.intel.com ([10.43.11.63]) by orsmga003.jf.intel.com with ESMTP; 23 Mar 2022 05:45:42 -0700 Received: from newjersey.igk.intel.com (newjersey.igk.intel.com [10.102.20.203]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id 22NCjeuC017350; Wed, 23 Mar 2022 12:45:40 GMT From: Alexander Lobakin To: "David S. Miller" , Jakub Kicinski , Paolo Abeni Cc: Maciej Fijalkowski , Michal Kubiak , Jesse Brandeburg , Tony Nguyen , Shiraz Saleem , Dave Ertman , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Lobakin Subject: [PATCH net 0/2] ice: avoid sleeping/scheduling in atomic contexts Date: Wed, 23 Mar 2022 13:43:51 +0100 Message-Id: <20220323124353.2762181-1-alexandr.lobakin@intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org The `ice_misc_intr() + ice_send_event_to_aux()` infamous pair failed once again. Fix yet another (hopefully last one) 'scheduling while atomic' splat and finally plug the hole to gracefully return prematurely when invoked in wrong context instead of panicking. Alexander Lobakin (2): ice: fix 'scheduling while atomic' on aux critical err interrupt ice: don't allow to run ice_send_event_to_aux() in atomic ctx drivers/net/ethernet/intel/ice/ice.h | 2 ++ drivers/net/ethernet/intel/ice/ice_idc.c | 3 +++ drivers/net/ethernet/intel/ice/ice_main.c | 25 ++++++++++++++--------- 3 files changed, 20 insertions(+), 10 deletions(-)