From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796128732; b=I88DL2i0MKXalzqpr0JeSYVXBz1ApKfrK6vkmuts+R8V0s+w0D9WCB6iUNv74Ei7e4Rs YeiBjHZtkb7faaXoOeQkJWYi4eCjXUWClKWe1R4ejKXxjdr5pe3DEbsfH2jezpOOxiO0c T/vPIEyykfZuQK7o8EgR9lV1FQncgoGmCQsA5A8+J0ieWCYsFn7h0dfRYZIHoVTIHW0wz jjDzoMx9GeBObp4HKzxVsplL1T93IInRz6wVtnkqsTOECsCkJkGqZAWB02VGK4Ytn/RaO Ay+RRmLvD3L0kNpbp8orMwx7Wj9Z11CjLPS4Ftlpy+kI9FZlNVmEpuxGKXvgtdInv+Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796128732; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=SfcSDisAystODxVfQmDxpo4+wM2//7p7FPA0Eravklc=; b=yvEF6XNEsBNE1QLxWgU0wPgOJsd0vztj7YcO2FwmocDO/idQ8zSckbeIjM0JwdAZIsAs PLrBiKreV2NEQ1eKVBtgun5fYY/Unm6ZnDiNAwvJfjKg/mI3Uo2kiEoQz565fq8WfcF8S Pruu+vOYaKxpbgqe9FHWIrZDKb7/3ip4DOMLAXBczEvSd7x1TfRf4Sx47ehxdCBZYoPg1 OczhySb2LZtzeoXNOg/dmvOglSG93JvsxjoaH59Lhq/zTQQSKy4qb/TlamGqk7FYELAB/ 5//k3th4z9QCo1spmf/R1f7sl5lJ/Ervo7VWjazdVwsCSvqMc3eR9j/p9HVVr04ROZg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DSi6VBtI; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 801B5606A6A3 for ; Tue, 1 Dec 2026 12:38:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DSi6VBtI Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3271B1F00931; Tue, 1 Dec 2026 12:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796128732; bh=SfcSDisAystODxVfQmDxpo4+wM2//7p7FPA0Eravklc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=DSi6VBtIT1AGiRqsXYq1JyV40vvHMugsYb7MKzQ1wpWlb6Dyk6nU8Uj7FnRwGyzS6 Qp/6P9q7aliOWUn0aD/PvyD5GBrtBvTnTcynuw6G36WyzeyliRdNaU8wlt10ptPoc8 zFFTtwkx7rPjUyYLlRePVj4P68aeIMvml3MNLZ3XXwskUWgJL9YfXv21cr84/MD5Mj YGebEm7Ocg66ibbO46RqffsNOadbn4dObM/WkUXKTcxRUxoeyWFTp+zP2soQtIFrl9 Utm4LcAHQvGCVJVjMGj2/AGhsr11YziRp/D3IufTFsMrUus+EGUCUVBowDrc5cYqiu LQi1/VsJvH2OQ== Date: Tue, 1 Dec 2026 12:38:46 +0000 From: Simon Horman To: Dimitri Daskalakis Cc: netdev-bot+sashiko@kernel.org, davem@davemloft.net, alexanderduyck@fb.com, kuba@kernel.org, kernel-team@meta.com, andrew+netdev@lunn.ch, edumazet@kernel.org, pabeni@redhat.com, willemb@google.com, bjorn@kernel.org, bobbyeshleman@meta.com, almasrymina@google.com, daskald@meta.com, netdev@vger.kernel.org Subject: Re: [PATCH net 1/4] eth: fbnic: restart queues in place when fbnic_queue_stop() fails Message-ID: <20261201123846.GX804035@horms.kernel.org> References: <20261121033215.1020506-2-dimitri.daskalakis1@gmail.com> <179552362260.3135.14543564146944003534@kernel.org> <8e5ec49c-2610-415e-bd92-c0be9727243c@gmail.com> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8e5ec49c-2610-415e-bd92-c0be9727243c@gmail.com> On Tue, Nov 24, 2026 at 09:42:09AM -0800, Dimitri Daskalakis wrote: > On 11/24/26 4:33 AM, netdev-bot+sashiko@kernel.org wrote: ... > > The commit message says the HW "resumes from where it stopped". However, > > fbnic_csr.h only defines RESET and ENABLE for these CTL registers. > > > > The injected tests cover "HW is idled, but waiting for queues to idle > > fails" and "HW never stops (rings left enabled, and wait skipped)". > > Neither covers a CQ that was disabled while a completion was actually in > > flight. > > > > Could this behavior be confirmed against the hardware documentation and > > described in a comment? If that is not possible, other options would be > > to disable the CQs only after the WQs/BDQs have gone idle, or to drop > > the partial qt->cmpl.pkt state before resuming. > > > > The later patches in this series ("net: add netif_disable_subqueue()", > > "eth: fbnic: wait for in-flight xmit in fbnic_queue_stop()" and "eth: > > fbnic: wait for both TWQs of a Tx queue to go idle") do not seem to > > change fbnic_nv_reenable() or the disable ordering. > > > > The device keeps its ring state when we disable the ring. Only a reset > clears the device state. The device will finish inflight completions, > and when the driver restarts the queue we fire the interrupt which > schedules the napi, so Rx/Tx does not get stuck waiting for a > new completion. > > If for some reason the device truncates an Rx packet, then it will report > an error via a metadata descriptor. The driver will purge the pkt data > accordingly and move on. > > I don't think it's worth a re-spin to document this behavior. Reviewed-by: Simon Horman