Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3931107imm; Mon, 8 Oct 2018 11:53:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ysKLKDDcm2asN9SYzbfzBBgOucJkgWOBPPewnyV5GuJnjIJHUSLsVKzaw9WFjVTWIkDqM X-Received: by 2002:a62:a0e:: with SMTP id s14-v6mr26302292pfi.153.1539024805051; Mon, 08 Oct 2018 11:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539024805; cv=none; d=google.com; s=arc-20160816; b=QWfF2TySA7egIZ79L80YI0OH37IMr0E7mkJy3n7gpjvAQc+QVUo5JtRttN0IE5h/hr drDKCtSoR8/PmCZoVfvVGpwUQ1qwLWloQtk8iXHz+66tZKvYd5jhSekzQ+aPgRUMSmMe jX60PBcxz/aojFwWLfu9CjrfPxJw93kWAgCOAIZaluHuJ0Dz7PcE5psitYJ+hnhQTOrt eSCIUuPIqhdSXATIoDmlF7cefw2Hs/iYVDpIlzRMb6yv7JLxMS3IiIbRfSQEuJHndH25 1FTxCNISItTuA/8fJPlo8yAGp/aotKwccgoZoPoVnN2JEDz2kuxyHruv7NyCH9BURG+f y39A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=psYNhNYVRuTpyiMZcBHtULnPI/vs0kONU2/ZvxxAAhg=; b=FZ9EC8wWDdrkt6mjzhHL/QBkmGdJ+cqLqW4Rals0OBCz2idozuHAAg5W5MDsYhCCkt yaBq3ri2eoQ8/Sp78ZQNYfWN2ZY2TDuGALof7npIL2HrkUo0r56SOgTe8a4zh7Za/qXR eTvY4dZF+FjvOTLBtbk5cdEUH3/58RjJvNdeCV3Ckh4gnzv6GZnIwnlBuvJo056AmXK9 RhRmt4RLIspO0kT26q29xe0B3lHnrTlqaBjSGbAxC5xwwSiCMquVsrQ3nys7UwtkxZXM MQz6HTwSqCCTm/jm+V3t22XrAgsD225BLvttT6lro4ibv11M1PraQYEC0lr10wyAVxGy khiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="kiFv/pf/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j63-v6si16866136pgd.69.2018.10.08.11.53.10; Mon, 08 Oct 2018 11:53:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="kiFv/pf/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732646AbeJICGI (ORCPT + 99 others); Mon, 8 Oct 2018 22:06:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:56376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729209AbeJICGH (ORCPT ); Mon, 8 Oct 2018 22:06:07 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9C9E720645; Mon, 8 Oct 2018 18:52:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024779; bh=cXXS+IJyM7zlxLrLtvq7uoZx1gmNtnKwhO0KAdXR3tg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kiFv/pf/QK9r8KTQBAfVkS/HdKqmhIYEkZyJa2Ar/4+v7T8n9S+dKriJbDOFpkNuD Jt4GmAjg1H9VLO/7bPNt5Wgg6tDwcxcgzMtPcmUEUWH5bFi0Zu8ln/T9i/RmOWeinZ h/e6LXm+ZrSmUKf9k7/QD5+2K9iFE/f4Ynw2oPX8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Taketo Kabe , Larry Finger , Kalle Valo Subject: [PATCH 4.18 151/168] b43: fix DMA error related regression with proprietary firmware Date: Mon, 8 Oct 2018 20:32:11 +0200 Message-Id: <20181008175625.778877427@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175620.043587728@linuxfoundation.org> References: <20181008175620.043587728@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Larry Finger commit 2823c8716c687d6c7e261a3a02b3cab43809fe9c upstream. In commit 66cffd6daab7 ("b43: fix transmit failure when VT is switched"), a condition is noted where the network controller needs to be reset. Note that this situation happens when running the open-source firmware (http://netweb.ing.unibs.it/~openfwwf/), plus a number of other special conditions. for a different card model, it is reported that this change breaks operation running the proprietary firmware (https://marc.info/?l=linux-wireless&m=153504546924558&w=2). Rather than reverting the previous patch, the code is tweaked to avoid the reset unless the open-source firmware is being used. Fixes: 66cffd6daab7 ("b43: fix transmit failure when VT is switched") Cc: Stable # 4.18+ Cc: Taketo Kabe Reported-and-tested-by: D. Prabhu Signed-off-by: Larry Finger Signed-off-by: Kalle Valo Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/broadcom/b43/dma.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/drivers/net/wireless/broadcom/b43/dma.c +++ b/drivers/net/wireless/broadcom/b43/dma.c @@ -1518,13 +1518,15 @@ void b43_dma_handle_txstatus(struct b43_ } } else { /* More than a single header/data pair were missed. - * Report this error, and reset the controller to + * Report this error. If running with open-source + * firmware, then reset the controller to * revive operation. */ b43dbg(dev->wl, "Out of order TX status report on DMA ring %d. Expected %d, but got %d\n", ring->index, firstused, slot); - b43_controller_restart(dev, "Out of order TX"); + if (dev->fw.opensource) + b43_controller_restart(dev, "Out of order TX"); return; } }