From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] 3c59x: fix missing dma_mapping_error check Date: Wed, 03 Jan 2018 09:53:24 -0500 (EST) Message-ID: <20180103.095324.2019351026018947051.davem@davemloft.net> References: <20171229164010.1991-1-nhorman@tuxdriver.com> <20180102.214827.2231558813164114000.davem@davemloft.net> <20180103104204.GB18309@hmswarspite.think-freely.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, nhorman@redhat.com, klassert@mathematik.tu-chemnitz.de To: nhorman@tuxdriver.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:60630 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752123AbeACOxc (ORCPT ); Wed, 3 Jan 2018 09:53:32 -0500 In-Reply-To: <20180103104204.GB18309@hmswarspite.think-freely.org> Sender: netdev-owner@vger.kernel.org List-ID: From: Neil Horman Date: Wed, 3 Jan 2018 05:42:04 -0500 > On Tue, Jan 02, 2018 at 09:48:27PM -0500, David Miller wrote: >> And for the RX cases, it allows the RX ring to deplete to empty which >> tends to hang most chips. You need to make the DMA failure detection >> early and recycle the RX buffer back to the chip instead of passing >> it up to the stack. >> > Strictly speaking, I think we're ok here, because the dirty_rx counter creates a > contiguous area to refill, and we will just pick up where we left off on the > next napi poll. If you continually fail the mappings, even NAPI poll, eventually the RX ring will empty. I don't think we're ok here.