Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2008843ybg; Thu, 24 Oct 2019 03:32:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyu0pfZ9F03hZnwe72VCviicZ8J1Gq4i7fG/5CJjIGip5A0fdBbgsDaQu/L6OR9WBejjDTE X-Received: by 2002:a17:906:1f44:: with SMTP id d4mr36538469ejk.16.1571913141207; Thu, 24 Oct 2019 03:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571913141; cv=none; d=google.com; s=arc-20160816; b=chyvI3WU88WGjOM8Q3n2zhE3yZVgTvbef9BgZqPw1djVfrVF/dAvlKc4khCZ9b6kKn kWPXiJ3cCZeprTZIhwL1W9DHRRYTh7u0SQDFrdKg0Cq1QkH/+mwzYk1lnp+fDrnChJID 6rU5E3M8DlzHtKPpmuUGvenqzbfdydkbb21YRqVlzHSTy5bZxpsldgj63fGRNgm6ZsXf kaTfMzg1gVpeSKhX88wsScvq1CyVyKdeH754Mjir7AoAnFdmi4692dAkfLKy+8BAbMmb scq5ln91B2cORSeHLcVqnF8lY/psuGV95A/tjXTPWhkHEKt93fdt1/HTuwORDnbPR/2Q 6X7A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ektgmbrvoAHeI/d1+VVagw4oUJDNZnEuoYS7kpzDXSM=; b=Mc27IhWim0iezipSudPsz7kxoaxIqR+YWtifpwxiawg8Im6l0CAhRbNwVgkaRs+tYl iD5MnFEAfhHWDSr8pFhHcISWzMAeqQ8VWKkD28jTaBvm8jhdn5YkQYaZ/SRMzNKNg8It aOqwhqn+33GRWt8iVOAzQXjsvVj6DMDswmsVDD+RY+RzXf6neYmph/2OBSVTFI6Pd8FW 0I/ikkjaspdsj3Mdtna68mU1vww+HcHhd67nFt7G0lYFIW15rCyGpCiijjDtOl6mfLSE RYJd1lQw+n84yFsQrlAaY1+Haq8PNwYebW4z7QAyZY/vyzHvMX1uSW7JvaeVgOvAujlT y0vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a0RQrO7u; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21si12017898edm.311.2019.10.24.03.31.46; Thu, 24 Oct 2019 03:32:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=a0RQrO7u; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407862AbfJWWXq (ORCPT + 99 others); Wed, 23 Oct 2019 18:23:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:54266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407859AbfJWWXq (ORCPT ); Wed, 23 Oct 2019 18:23:46 -0400 Received: from lore-desk.lan (unknown [151.66.11.57]) (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 77BF22173B; Wed, 23 Oct 2019 22:23:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571869425; bh=vlpVZYvaUE1VTVX3xNbH1XFQzcYBGlvDDimEJavMs7Q=; h=From:To:Cc:Subject:Date:From; b=a0RQrO7uQMbl1YJAk4yto+/yIEVkW8iXZAO9gSN505iwNEfPi89F10AumMQjIYdm2 wrvLGl6yhlM99pON3NPDAC/CBDAgFE9mJgKdPYKE47arTb0u7lGA7UgIO5M2ZkLHcy h8R/KW9dqvtZPY787nM5MFcu/SecWnrKbGwMovNw= From: Lorenzo Bianconi To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, nbd@nbd.name, sgruszka@redhat.com, lorenzo.bianconi@redhat.com, oleksandr@natalenko.name, netdev@vger.kernel.org Subject: [PATCH wireless-drivers 0/2] fix mt76x2e hangs on U7612E mini-pcie Date: Thu, 24 Oct 2019 00:23:14 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Various mt76x2e issues have been reported on U7612E mini-pcie card [1]. On U7612E-H1 PCIE_ASPM causes continuous mcu hangs and instability and so patch 1/2 disable it by default. Moreover mt76 does not properly unmap dma buffers for non-linear skbs. This issue may result in hw hangs if the system relies on IOMMU. Patch 2/2 fix the problem properly unmapping data fragments on non-linear skbs. [1]: https://lore.kernel.org/netdev/deaafa7a3e9ea2111ebb5106430849c6@natalenko.name/ Lorenzo Bianconi (2): mt76: mt76x2e: disable pcie_aspm by default mt76: dma: fix buffer unmap with non-linear skbs drivers/net/wireless/mediatek/mt76/dma.c | 10 ++-- drivers/net/wireless/mediatek/mt76/mmio.c | 47 +++++++++++++++++++ drivers/net/wireless/mediatek/mt76/mt76.h | 1 + .../net/wireless/mediatek/mt76/mt76x2/pci.c | 2 + 4 files changed, 57 insertions(+), 3 deletions(-) -- 2.21.0