From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796110264; b=PEGRN5mWlIX7vEOxhmjY/2j+bYCeyXsZEqUxoOSKQJEQTVv2g7WAvi/cWKuqAqlFMkxs YyftZg7HmePFRXUQueXbwhFlc3vtfn0YrgQ/of+60qJi6T5yrQmFxYgnw94xg6bY1rW0X oz6GBjl5Rkjrz0WHPpL2WPU7g3tzodAkU84U9NtC5AHZihy62demQFGtn2sj1+iYO/kLv vuvn79zvWdfRFT+CcGM1A6K2k8pnoNZjgw6H3O93qNWRa/i5qtIHCrYFRO5Vuqzxao7UJ cx5eum8R0U8x3I/f2pzfYUbpmbz8sKVXJ1RTJEOEjuHG1i0yG9/0Td2vcDxUSPcv5TQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796110264; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:Message-ID:Date:MIME-Version:User-Agent:Subject: To:References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=j0wU87mkVXu9I4a5KIHrkQsrSp4ebymNM1ZmvnP1BIY=; b=l0qmCIh1MbH9nxWrVApsGmBC5gkDDF6p0/9qbOcGdzhF+1/pZzq0BxNsLQen8uV9dkXq YTKBzh6Nl8l2oya+i13ZF+PlctP7In4eoUb4U8kShvY4E9+t2K0xKwxjNUX98M+aKmd6H oiPunrk0BCi/aNE+cJQQFkDX8dVJfe0AEoJcOuoDdycsRtaf72cTwztTI6B9NASvl5HnE vGq8rwegfMKd8++WC213FlxGf8f6JDkjui/LfhmNDYjVRxDZia2h2n9BnZlDTHBt2yQZJ RqxprNLJGmHuNU+oSzqDIofk9MBNt28/2vyQmJ0Ft2oFFBo71FmCB0/nwgj9z4DxXMw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b="BPsodIh/"; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=U9oP6VC3; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65C9A606A699 for ; Tue, 1 Dec 2026 07:31:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 65C9A606A699 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=BPsodIh/; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=U9oP6VC3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796110264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j0wU87mkVXu9I4a5KIHrkQsrSp4ebymNM1ZmvnP1BIY=; b=BPsodIh/R66OuA8p2AuI9ucIQFMRnoWmB6ovvVQu6BUr3VpHP85BvO3NE3U2YP0bbix3K2 oUP50jC+dke4hp4qZsCZGbFTImHpKC3xTWBqQicZeSHy6ULoXpT3J4h/wlwWB37Rt9Zy7a jXjdDWl6SYo7AlRoAORwvTYVlNskogk= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-663-0QzCP31cO8On8vIg37ZOvw-1; Tue, 1 Dec 2026 07:31:01 +0000 X-MC-Unique: 0QzCP31cO8On8vIg37ZOvw-1 X-Mimecast-MFC-AGG-ID: 0QzCP31cO8On8vIg37ZOvw_1796110260 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-492b5408dedso2618974f8f.3 for ; Mon, 30 Nov 2026 23:31:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1796110260; x=1796715060; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=j0wU87mkVXu9I4a5KIHrkQsrSp4ebymNM1ZmvnP1BIY=; b=U9oP6VC3oenOZln0mxglPjw5BJqLKQQI5lHHytu2TSxNS2iMysUGkPPao0zzlT2+mG ManZzRRUuS1bvwMPr31rY2IoatY5GG/um9RlQ9yu+O4FP67s7qP2HtxskW/eaukDcliQ wWynJk3ADK/zLUc5zrU99Awg4Bmk4OyktjJuLNH1URaNhGCjEZHSSTXKOGLsWsp0wPOb +bM9+Ts9TFcoYfw7bRBEIhnVuJzPkSOb7ERbv0EUSJh8Du7jZqJKwjSIo6TEGNLd/GLD Gsm3HAtGECpOWvKb2hDkttHPowGPWv8Yr01hoGxtExdINy0LtegpHjtEcwwXmgxWLBTv I9Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796110260; x=1796715060; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=j0wU87mkVXu9I4a5KIHrkQsrSp4ebymNM1ZmvnP1BIY=; b=pm0fJajGdzCKkxF/bHdTIHL0vj9R1YTHO2pdjpJDGSaG+MVjrwB172pH+gDbhX7B9s FHbp0i7rZhO1zNhTka8YUGsxL5zoDHonWHkwW3IIB70VhSkKkwCQTu6s0g4k110ngvgO g22lPbxMdymaGqvq2vgB8x9uEK3F5CpZ7N4nbbjjCg9AoBgsP6UgkG+lcdJWxomMmeaP OyOdy3EkXQQZxgbRBt8AvHSe/gzu8TS4YkJLckH7gobM9Upv00u3KfMchKueHFqswZKA VFZnsWzzm2f5hRXOa+L9TtIaBAcPa2LusujDjm7T5xW1XVtLQ61y/AN/skZLiM4epebD cM0g== X-Forwarded-Encrypted: i=1; AL+hErFMT4XCI5eHCNcMs48/4NmwWrK8cINe5ujvIdCb5Y7uyNgGWJyyeKegu41FP3OQ4iy1QdgPJXQ=@vger.kernel.org X-Gm-Message-State: APuU4Z9LOD9XhImS92SwxCKmBLUsjMo8vXSbYAQpISMRF8ifgZ4gl5+m PK1pygYyyiZHFT67lpj8IjU/kRwP2GTQbWMO54JrcTTy4WL93ij5otw4twTAxmkHyugoMJwHGL1 x9R9ZynJ/hahYtaydweaO9z9HdXoYfYbN4JMFS3iULOaOEKGxEEEceuIg6w== X-Gm-Gg: AZFdTZeM/LiLveWSx4EkQ3TiGB4AfFbXYb84T2KYjzJ1YZRQdaB05NzsTa6taxg2mSL FgQYcPUyruEs3q/I5ukHyYfr2d4n+FoWObVjmtRso9V5pW7QYhNr5UwNrP3eAqlYd/N9LrfdR+U oQA6MqVcMeFCB9M+BsCMd2RIumrS5PvqLQZvxvmYSZtorDpzYh0IyKGrvQk/usCiTbz13dbLspP bf11nhMFG/G9LapGPueNfW0XlzsV/7jV2H7UAzl5Ecfsn86x5wj286E01KFFNv9hk5C7qRYef7y Hhb78QB8je1aJuvSvG98GtEIvC2HQBsm4iStmA7d+X1wV9X5fSvOnIjOnn+PuvmlNhujz/F3rJ5 MFxBpykeF+qaRV69D2O2N0G5vTn4Kex/H3dvZGsu00iHcXJldIFB6hmIgmr8NxD/jrhLA8ECuzR mjbf3CEba473S3qCZpXulNo20lTuQql04piq1JBMDMYcs= X-Received: by 2002:a05:6000:4382:b0:4ac:a772:6485 with SMTP id ffacd0b85a97d-4aca77265d4mr70425052f8f.31.1796110260387; Mon, 30 Nov 2026 23:31:00 -0800 (PST) X-Received: by 2002:a05:6000:4382:b0:4ac:a772:6485 with SMTP id ffacd0b85a97d-4aca77265d4mr70424991f8f.31.1796110259965; Mon, 30 Nov 2026 23:30:59 -0800 (PST) Received: from [192.168.88.30] (ip231-128-192-82.pool-bba.aruba.it. [82.192.128.231]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab658e2d60sm69908883f8f.3.2026.11.30.23.30.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2026 23:30:59 -0800 (PST) Message-ID: <73634d96-8114-46f4-88fb-b4afdf2f17fa@redhat.com> Date: Tue, 1 Dec 2026 08:30:57 +0100 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net v6 0/5] bnxt_en: Make RING FREE more robust To: Michael Chan , Joe Damato , netdev@vger.kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, horms@kernel.org, pavan.chebbi@broadcom.com, selvin.xavier@broadcom.com, kalesh-anakkur.purayil@broadcom.com, linux-kernel@vger.kernel.org References: <20261120152830.699712-1-joe@dama.to> Content-Language: en-US From: Paolo Abeni In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 11/30/26 19:11, Michael Chan wrote: > On Mon, Nov 23, 2026 at 3:27 PM Joe Damato wrote: > >> Sashiko's review of v6 raised a few questions that depend on how the firmware >> behaves. >> >> 1. Patch 2: firmware ordering for RING_FREE >> >> When the firmware writes the RING_FREE response (valid byte set), >> has it already stopped all DMA for that TX/RX/AGG ring? Is the >> only thing still in flight the completions? > > Yes, DMA has stopped from the associated TX/RX/AGG rings. > >> >> Also, once the firmware answers RING_FREE for a completion ring, has >> it stopped writing to that ring? > > Yes, the HWRM_DONE completion has been written to the completion ring > and should be the last entry. The only thing is that NAPI may not be > synchronized and may not have seen the HWRM_DONE yet if we only rely > on the polling of the RING_FREE response. But in this case, I think > the interrupt is likely broken and we've waited for the entire FW > timeout already, so we proceed ahead. >> >> If the response can be written before the ring is quiesced, patch 2 >> is wrong and I'll change it. >> >> 2. Patch 3: abandoned waits because of FW health >> >> hwrm_wait_must_abort() gives up when the health register reports >> not-healthy, and patch 3 counts that RING_FREE as stuck. > > I think counting it as stuck is correct. When FW is not healthy, it > may not have processed the RING_FREE at all. > >> >> I am going to guess no, but is there a health status that guarantees the >> firmware has discarded its ring state? If so, we could skip stopping >> DMA in that case. >> >> Sashiko suggests that an ifdown overlapping with a firmware reset would >> need a rebind. That might be extremely rare and fine as-is, though. >> >> 3. Patch 5: Drop ? >> >> Sashiko found a deadlock and RDMA restart races. I don't know what the >> simplest fix to all of this would be. >> >> Maybe it's better to drop patch 5 and let bnxt_re handle this in a >> separate series? > > I was hoping we could stop RDMA before disabling the device, but if it > is too complicated we can defer that. > >> >> It would be really great to get the ring free failure path fixed so that FW >> isn't TX-ing memory the driver has released. >> >> If there's any guidance on the above that Broadcom can provide to help get >> this applied that would be very helpful. >> > > Sorry for the late response. I was on PTO last week. Thanks. @Joe: your series is out of suie history, a repost is needed. /P