Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp841552lqd; Wed, 24 Apr 2024 20:28:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdpQ90AszjdQU42qsgqUxfpAlRmFPvPvDcMSBu5HWNnLv136yrQAuCxa/rxjHbU8986pJKT1FXalA/t7WXlWHhJBBDALgg1xmo58A7Ow== X-Google-Smtp-Source: AGHT+IHS8xmlv8ElrNunVpPQSKxXx9QPLnJ9p13txgm3Ao5kzLmtR70VHZ3zf+1ZgvDt/3GQPNyQ X-Received: by 2002:a05:6a20:d487:b0:1aa:282e:8dac with SMTP id im7-20020a056a20d48700b001aa282e8dacmr6755781pzb.0.1714015705544; Wed, 24 Apr 2024 20:28:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714015705; cv=pass; d=google.com; s=arc-20160816; b=tHTGN+OSA6WXyBKsuea7uuijhSpZZqpH2O2o6DFiKy5ATK43fn5nURLrOXnlYXPHig gxUg9e6KN8GAIsV9tI6ZQEr3BSy1XXzQs6BUGW7rxZtLoxIWy+fpyy1BxwV7CuB0SODo N+seaaKU+UwFU7CjGqZXmQBek1dqhGu6RUF3tzdtLSUN8smqv95G4IxHQWtlz+2Kxa16 KdsEz8+byTygLpVN7AfJJCwG+3zzBJOzkM14fhIJT8uXechKubGnWjiC1EI6Nz1ZAWyo zM5Ais5IrGToXJ/cooptAyY10I1eKNlY2t2YZizXp6sBtG8ASDhku/s+GWfSw47cnbNq yMiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=bWSmUlxpy5chU36ujG9zh3zLE+Cbg/C6ozI8EtQmNdo=; fh=8Tx9nQyfdA7aCYnaIRc3TINYd+nX7+5flZRILtQ+Ia0=; b=Y2/GP/YFyl1G3u1pRCsU/Hb+2etTaUvkv/qqk9BcyPGYkCrbojf2vvtbHGKfPrqogK gYGEZN4uquzKoBSuiEwfGH9ssNMsOHSsc48tWEUA6plkHBr79QvFZOpXmjF0MvxhTdsA AfoGjUXkGsmSaPfunzgB0Xf2O44e8nZSTZIeNvrAEFGqwncyJTxVUkEYnmg5jZvhVBDU fGgw/N6NkkP4CecOcyg0DEukTFZe+dYfk+TS+1cNbQaEOngJ0O/rOVUV5wjvqJ4dHSNj DTQ58fjKv096dxTvzGE2HyBIcKilB+8uV3cW6r0xKpAARfQN/dbLHIJfmJ7sTnmD7KvR 4hIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ihbdCygi; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-157969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 w38-20020a631626000000b005f7537009e7si12236208pgl.770.2024.04.24.20.28.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 20:28:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157969-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=@redhat.com header.s=mimecast20190719 header.b=ihbdCygi; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-157969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 DD950285897 for ; Thu, 25 Apr 2024 03:27:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E8EE23767; Thu, 25 Apr 2024 03:27:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ihbdCygi" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 05898381B8 for ; Thu, 25 Apr 2024 03:27:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714015671; cv=none; b=FUJjgsgUUCNoeWpwdDrZCe3CttHsMnJWLctbwdtggMXlwfA4a+RqIINw10PJ6yfmLseTqNFnaZgI3QQHeNiee/yeaj19asrnLtXGNTIWAmq3+pvHKXSrc4ZHtLFNKdam9f8CkPCdIVSSrG3lSVNPrK5c+A/tRyZj61yDcihh34E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714015671; c=relaxed/simple; bh=bWSmUlxpy5chU36ujG9zh3zLE+Cbg/C6ozI8EtQmNdo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=d10fkIzmXi3DIUGV5pwrU17Dg2m7v52toDDeCglnLODrCuJPfu4gUoRyW8nztpjonS3K0wn875aZsXYIdBupF/r6qag82hBvx9+6MPWV3Iihd42rSUWCzaAKjmq6l0qUnouEb75VQ8mxTwP2f6j1VdQdx8sQ4QoAysx+3qj50Iw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ihbdCygi; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714015668; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bWSmUlxpy5chU36ujG9zh3zLE+Cbg/C6ozI8EtQmNdo=; b=ihbdCygiSY0LyPg4qZynwCPGmnVVaIm+FVUAA56um/yj7vzd3+T6SZs9b9pfRd9SezSpew /Qj3R/Vf3AVJNta+arh8UDCa78WNUVJLQoKyOcL7Bivqy7/GLZnLsb1ExgWlNZLSIIxy2s 5vhB3McU6Vd6fvBTTsE0hC8i3X5bmUk= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-146--XvIIJALOVaBCWLE2rEMvw-1; Wed, 24 Apr 2024 23:27:41 -0400 X-MC-Unique: -XvIIJALOVaBCWLE2rEMvw-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-a58bbfd44f7so1064066b.1 for ; Wed, 24 Apr 2024 20:27:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714015660; x=1714620460; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bWSmUlxpy5chU36ujG9zh3zLE+Cbg/C6ozI8EtQmNdo=; b=WgJyJFlYkHeGbEVPGZK2h6ux7vXquYUq/KkEHnWpJT3gCzMbX0JF9hGm9SV8nQu0P5 zSu9Bhm1AEbicvpStuTA2P4rlymY1HVMP3F5HWQREeMdX3pwoPx2WoLGgbm1Oj/AbLyJ UFJnWTGTjFfdXtiqZEzivoHo+4fBZ6jDAeS8eSMvnfwneqP00MNmtZMj8QOhYY8qaJNr ThPXIGKeMVuBIVgsDQHfBImdAVN9UnlesGFlJsQCEQIs0xchEazojW4aBZg0fwXZ3Xlh VwjXv75pcWTaRNp7fXabPkUJ0wOvgTT/6HALBp8Maa95vJp3mj/celQC9tNs9xGn5Pkn ay6g== X-Forwarded-Encrypted: i=1; AJvYcCUClHGnREkCIM7zRRs6FtpjFWw0W5neOdfZ2LZCWi8lRZQBoH7erGzph/2E2mNLbewzrhhkGuqlMGSNe+B8kZNh0CGD9vqt+yEkUyQg X-Gm-Message-State: AOJu0Yzs1zPAJ6qI9mDFzqPRWIyPC+sSGvU69PPnoktr3mnI4x2f0E5h YpGqVTGgXHi+NSJgMdvzIwRUjJ6UHw5ErUvZBcissrPxgwEfPkXBa26mAk+ssLA9fIotTAn6LLF IKXr0NTumo0EDq8oUArT/U0Krqq0krexARILwnYNbGXhD8yNHRVX/mnihjfROnl8WAxykY+wg6A aWVisL/N3GWNKhBgBEldwUvRQRTq962Z1QenEy X-Received: by 2002:a17:906:480d:b0:a51:d204:d69e with SMTP id w13-20020a170906480d00b00a51d204d69emr2791128ejq.7.1714015660129; Wed, 24 Apr 2024 20:27:40 -0700 (PDT) X-Received: by 2002:a17:906:480d:b0:a51:d204:d69e with SMTP id w13-20020a170906480d00b00a51d204d69emr2791116ejq.7.1714015659871; Wed, 24 Apr 2024 20:27:39 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <5d81d6d0-5afc-4d0e-8d2b-445d48921511@linux.dev> <20240326153223.GF8419@ziepe.ca> <0e7dddff-d7f3-4617-83e6-f255449a282b@amazon.com> <20240403154414.GD1363414@ziepe.ca> In-Reply-To: <20240403154414.GD1363414@ziepe.ca> From: Tao Liu Date: Thu, 25 Apr 2024 11:27:03 +0800 Message-ID: Subject: Re: Implementing .shutdown method for efa module To: Jason Gunthorpe , "Margolin, Michael" Cc: Gal Pressman , sleybo@amazon.com, leon@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Jason & Michael, Kindly ping... Any progress for the efa .shutdown implementing? Thanks in advance! Thanks, Tao Liu On Wed, Apr 3, 2024 at 11:44=E2=80=AFPM Jason Gunthorpe wrot= e: > > 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 devic= e > > which should stop all DMA from the device. > > > > Except skipping cleanups that are unnecessary for shutdown flow are the= re > > 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 >