Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp89674lqe; Wed, 3 Apr 2024 23:55:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWGqzvEFaPYrskcpKNUKRdIoj7jtKm/v9bZH3cxh1p7XTsTAYUhNN6B4pajgCfWokd9WtZw1Do6HT4sSx3quTmheV4xp2EZMKoeN1cyKw== X-Google-Smtp-Source: AGHT+IH2him07CdOhV8jhxvHlhFrObrV27NuEtGzXvS4/TQ2UcCtTeXcKmqGygnFlUb06/P6o/Ww X-Received: by 2002:a17:903:483:b0:1e0:96c3:2fe7 with SMTP id jj3-20020a170903048300b001e096c32fe7mr1204633plb.50.1712213716039; Wed, 03 Apr 2024 23:55:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712213716; cv=pass; d=google.com; s=arc-20160816; b=taLK+jcdJ3Ag6bYCe8ufVZQH6GQwPsy5Bt2JXTCTZ2QVHu4HsQpL1L9W2GkvydDuRR H8aKoypFLg5imCHyTanBpih3Xowwme28CC/UBd+qtMRvy0X5nTCEWo3H8qbfEiSBX+n+ 8jUFiVcnwQldoUSRSkxEv6/2ys3RMgZiBWKG+WZMuzE9MFPEe/sJ/uqHzSzWkyM3O/ko r+F59TghJ6s4P7Lqz91AB4p//XU3MMwvtNHKOkDMDUobgS32mdHJw6uzlC6PhKrM73cY 0fdg1JKuQQK2iVYxIi0kSDeE6nsg2UjG3SxzRpfM24rFWH1lZLk3kM5d0K68nnufxVRt OiMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :dkim-signature; bh=vyYehCtmuOnkDyiTVtISMV19OYydyeZiEvgBYOzKtdU=; fh=YkW7el/lxGmSbcFhbXHZN4YMWGpnZwkNQ7WhD3g4ZIs=; b=FiDi5jnttEih1k495xXzJJnlf5lZP7HR2bo9GkzTStgRoU7+4BUqTt1sTi8EbSh5iK dIFqeRsTwKyl4xEo35p1k4kZU+/dI3/VuNr7CaUB2l3swYJNJdOw1XnfsaZG4cG09H9h 2VD3OPF18/MQ07E0ZQP/6iuq2LvEqd3T51rYlOj+xa6WSDK2XTKOIyXY4v6EP50BBjw+ j7m1XGagSaTXc+MkOAnSD0I2AMWGw88j2p6FGFe8rJrw9/Sl4wPzRWyL9babeiR7ULb4 FIX+E108jfkaNdzKYOqF8w5sQ44wGQ/dsx58UeMQAUcXahie1NjHbVW+enAtcRsRHiLq dHAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=XWRX2Ro6; arc=pass (i=1 spf=pass spfdomain=amazon.com dkim=pass dkdomain=amazon.com dmarc=pass fromdomain=amazon.com); spf=pass (google.com: domain of linux-kernel+bounces-130993-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130993-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n3-20020a170903110300b001e0b5d4b968si14859030plh.223.2024.04.03.23.55.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 23:55:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130993-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=XWRX2Ro6; arc=pass (i=1 spf=pass spfdomain=amazon.com dkim=pass dkdomain=amazon.com dmarc=pass fromdomain=amazon.com); spf=pass (google.com: domain of linux-kernel+bounces-130993-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130993-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E25CC284E71 for ; Thu, 4 Apr 2024 06:54:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AAEF548F1; Thu, 4 Apr 2024 06:54:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="XWRX2Ro6" Received: from smtp-fw-80008.amazon.com (smtp-fw-80008.amazon.com [99.78.197.219]) (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 6227053803; Thu, 4 Apr 2024 06:54:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=99.78.197.219 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712213663; cv=none; b=bI4B+S1GImrggSZWdXj2h1GVhrMADH8DNCGp6B6byb5U5f/TMZjQGB8b5yWcMK44eB8zvMnL3YAJBWXdkZQShuMYROCJPbv6H9YTw0MGSGdj/ibwly1uqVjYNPRagwIRSVpG94jCZoUekgQR0+sdfGQJ3hzILXgV9t4wzK6+7J8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712213663; c=relaxed/simple; bh=vyYehCtmuOnkDyiTVtISMV19OYydyeZiEvgBYOzKtdU=; h=Subject:Message-ID:Date:MIME-Version:To:CC:References:From: In-Reply-To:Content-Type; b=UOLFY1yCAlC9G+w8qDaWN9GUQXypWEwApp+e63LJ2yE4qg+FNP82LA4DThiVVZk899MMyOpeoo/zjlckYHw5TGd0dMr6jkLZFULJiNGREMCm6zZ+i7WS4vPGj6KM1fDPXA07flpJS6kkoAIlRNOSVnvD15beQVct3EM+lDjaIMM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com; spf=pass smtp.mailfrom=amazon.com; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b=XWRX2Ro6; arc=none smtp.client-ip=99.78.197.219 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1712213662; x=1743749662; h=message-id:date:mime-version:to:cc:references:from: in-reply-to:content-transfer-encoding:subject; bh=vyYehCtmuOnkDyiTVtISMV19OYydyeZiEvgBYOzKtdU=; b=XWRX2Ro61lfVjiHUSNG93LjGzgb5ESGWcbEoign19AfwjGRHX5FhOxaN frpmHuIyas6clSLySSv17BEA8T7kttUf0vMKNRpQyod3St+lAeAe2lB5C MPKxntAstbRBHSaOAiKE4Rl1FnveDb7rNlaB/R5ULn/DfFX5SvloBFBtp c=; X-IronPort-AV: E=Sophos;i="6.07,178,1708387200"; d="scan'208";a="78531287" Subject: Re: Implementing .shutdown method for efa module Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO smtpout.prod.us-west-2.prod.farcaster.email.amazon.dev) ([10.25.36.214]) by smtp-border-fw-80008.pdx80.corp.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2024 06:54:20 +0000 Received: from EX19MTAEUA002.ant.amazon.com [10.0.17.79:47413] by smtpin.naws.eu-west-1.prod.farcaster.email.amazon.dev [10.0.28.213:2525] with esmtp (Farcaster) id bb37eac2-f65b-438a-83c5-656e83f2691d; Thu, 4 Apr 2024 06:54:19 +0000 (UTC) X-Farcaster-Flow-ID: bb37eac2-f65b-438a-83c5-656e83f2691d Received: from EX19D031EUB003.ant.amazon.com (10.252.61.88) by EX19MTAEUA002.ant.amazon.com (10.252.50.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Thu, 4 Apr 2024 06:54:19 +0000 Received: from [192.168.84.64] (10.85.143.175) by EX19D031EUB003.ant.amazon.com (10.252.61.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Thu, 4 Apr 2024 06:54:15 +0000 Message-ID: <59c5dabd-c06e-4982-af68-bdee9b8174fd@amazon.com> Date: Thu, 4 Apr 2024 09:54:10 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Jason Gunthorpe CC: Tao Liu , Gal Pressman , , , , , References: <5d81d6d0-5afc-4d0e-8d2b-445d48921511@linux.dev> <20240326153223.GF8419@ziepe.ca> <0e7dddff-d7f3-4617-83e6-f255449a282b@amazon.com> <20240403154414.GD1363414@ziepe.ca> From: "Margolin, Michael" In-Reply-To: <20240403154414.GD1363414@ziepe.ca> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: EX19D046UWB003.ant.amazon.com (10.13.139.174) To EX19D031EUB003.ant.amazon.com (10.252.61.88) Thanks, I'll send a patch. Michael On 4/3/2024 6:44 PM, Jason Gunthorpe wrote: > CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. > > > > On Mon, Apr 01, 2024 at 04:23:32PM +0300, Margolin, Michael wrote: >> Jason >> >> Thanks for your response, efa_remove() is performing reset to the device >> which should stop all DMA from the device. >> >> Except skipping cleanups that are unnecessary for shutdown flow are there >> any other reasons to prefer a separate function for shutdown? > Yes you should skip "cleanups" like removing the IB device and > otherwise as there is a risk of system hang/deadlock in a shutdown > handler context. > > Jason >