Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp405914img; Tue, 26 Feb 2019 02:07:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IZNZRlVK9UexGpmpOQIxuGDvL5X860YBpsux6+1JxKWO1jbjrZhYx43FT3kyHnSyCqw7Hoh X-Received: by 2002:a17:902:be16:: with SMTP id r22mr10840203pls.128.1551175673901; Tue, 26 Feb 2019 02:07:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551175673; cv=none; d=google.com; s=arc-20160816; b=yL+xJjH0rdZ82Cfk8u2yJCXRrDKsO5xj5APIjHq3Lt4pM4uOtXsj1U9NM/m31eV6RH wdEmEz0RP2ueWLwqDx4TblGpyCDrcDsEyNrND/SXYp7YsPFGDXjGc0OJK2Jua2H2xRzb wT6KJsteSmWxuztU/0UR/aQ86A9wunikN3dLnfMQq85U1dE2N4HaKsoegp6089ZrenE+ SJ0dLLMZK9Iv5zBOGDqJP9XXxCanGNcDsnQqi8WdhVl8IWMiNkW0K4Q70Ko5gvmAl8qg upLeyuAnlFyeKG97TDam/TkMvoz4Y8tAG53EWj1SGCSgyFKDgJi++xAsWVo7HC6/Rja8 nuPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+EjXaqF9IVACvDxlWEldDTeB/WOMT6Wcu0QMl0zNpWA=; b=f+JS00ySamTbhNPArcP8vzmWQy429kYNrJOLq4bIYeFpe98DBqopq6yu3npwLS90Vy hyQ/UImSUZ1NK+QOtgYc+fYlHdMr7/utaHzlmaXdMc46IgLSU7jT8kikPmxn+gVU0zW/ vrmOdyF+NucWJcrdjGaH8P7vuueOID8/frPz/XbVQa+656Ihm+jzsbWcDaRtl3Ldh5OA 6KSXqnE7vGxanTmW7LTYLzWlxc41ukULvEw1l8GPt8UwMlevIziKISc9vdjKh1DKaWUN hLMBR1dnBg8FxV+OBIXyfgPjWJYnMJN65kLQtU4GwNB7hVM4TOE/gn81156smHWsIOdv MQKg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t186si11465925pgd.504.2019.02.26.02.07.39; Tue, 26 Feb 2019 02:07:53 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728019AbfBZKFj (ORCPT + 99 others); Tue, 26 Feb 2019 05:05:39 -0500 Received: from 8bytes.org ([81.169.241.247]:41314 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727662AbfBZKFj (ORCPT ); Tue, 26 Feb 2019 05:05:39 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id 0381441A; Tue, 26 Feb 2019 11:05:37 +0100 (CET) Date: Tue, 26 Feb 2019 11:05:36 +0100 From: Joerg Roedel To: Stanislaw Gruszka Cc: Lorenzo Bianconi , Rosen Penev , linux-wireless , Samuel Sieb , Alexander Duyck , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: MT76x2U crashes XHCI driver on AMD Ryzen system Message-ID: <20190226100535.GA20740@8bytes.org> References: <83A1D243-9073-48D1-9F26-5A2581DCB829@gmail.com> <1547404075.1582.0@smtp.gmail.com> <20190114091841.GA23045@localhost.localdomain> <20190115090400.GA2267@localhost.localdomain> <20190218143742.GA11872@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190218143742.GA11872@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 18, 2019 at 03:37:48PM +0100, Stanislaw Gruszka wrote: > 0001-mt76x02u-use-usb_bulk_msg-to-upload-firmware.patch > 0002-mt76usb-do-not-use-compound-head-page-for-SG-I-O.patch > > Or problem can be solved by just one of it (either first or second). > > Additionally I'm not 100% sure if > > 0002-mt76usb-do-not-use-compound-head-page-for-SG-I-O.patch > > is correct. So perhaps some IOMMU maintainer could look at it. The patch looks good, but I don't understand why it is needed. The AMD IOMMU driver should handle sg->offset > PAGE_SIZE just fine. Can you verify that this is the problem? I will look into that again if it turns out there is bug in the IOMMU driver. Regards, Joerg