Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2435139pxu; Sat, 28 Nov 2020 14:03:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUjAaSBIoQjwSmeIJ3jX/pc/CZNj40j6qEHIo8PDOnGyp/bH5J4/nFKZnHdDdBCLzYshaP X-Received: by 2002:a50:e68b:: with SMTP id z11mr14948707edm.25.1606600987315; Sat, 28 Nov 2020 14:03:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606600987; cv=none; d=google.com; s=arc-20160816; b=x961imVzYYl+Yb1EpqauTwmqaPTi+eVs8muz9p3XEwcP8wQVWiETPgyGKZ4X3SLFCp kcUXiD24UoyBRyxYbFTHKbM7R1kFkVA3RtWkgZ/1H4hGBZotVmyOGqLCIVOLy7k7zje+ Zt0A0gqbJmVwa0UzIZ7GmcSF2dk7xp/HPScoGsqUGVPCEGZ3YtJMXVjJY4Z/GWEtEVvA 1l4sRluJKeaaQeHsIUnAVwGzAu/mq6JjkiPRR6czrljBELsl7q86q911zD6dL98fSGNE QaUDYAFxx9y0ofPA4+G5R0iZUdi8tiGyTKYIKfDNjxTZ9Z7xRgalIgivTvDDAT78uJub wUFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=0ZWEXNLbf69InEkWYGipaMBj8yX9OPlQtPsBQ7sAtPw=; b=wpd8zHeORVaL4F/8tOeoLnaE5ZUbThJtYNpdOhBhmfhJpb+TSglTxuXYoNA0Ozj6R+ Rfq28WJTXAdMf5rQkNE5enEyq/Xu2epsPzR+CFIA6+mTEuNK72hbNWYmAxZ2s1qBH1eI LBec6q3Bz2TyJoAJcmaZNsUoWU69n/JY65U3DK4AnWUp7lsG0FpmIgIIBCfwDwMCR//b 2tW8t/VYJ5bcS9QXzCFYOmn+9OcJVNp/5/eH0//vrIV+5fiXCUjPcr3/Wdr804V0r4IH crkV87TCD3xoZRyb7yespahEwvctbBq8m0vwAnH2mn7rBt3L5HAwz8R5ajXbmOsH1DlC bCrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n23si651933edv.304.2020.11.28.14.02.44; Sat, 28 Nov 2020 14:03:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390583AbgK1VvN (ORCPT + 99 others); Sat, 28 Nov 2020 16:51:13 -0500 Received: from verein.lst.de ([213.95.11.211]:40023 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729983AbgK1Sdm (ORCPT ); Sat, 28 Nov 2020 13:33:42 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 9163A68AFE; Sat, 28 Nov 2020 18:15:01 +0100 (CET) Date: Sat, 28 Nov 2020 18:15:00 +0100 From: Christoph Hellwig To: Hans de Goede Cc: Christoph Hellwig , Tom Yan , Mathias Nyman , Greg Kroah-Hartman , linux-usb , Linux Kernel Mailing List , linux-pci@vger.kernel.org, Lu Baolu Subject: Re: 5.10 regression caused by: "uas: fix sdev->host->dma_dev": many XHCI swiotlb buffer is full / DMAR: Device bounce map failed errors on thunderbolt connected XHCI controller Message-ID: <20201128171500.GA3550@lst.de> References: <20201124102715.GA16983@lst.de> <8a52e868-0ca1-55b7-5ad2-ddb0cbb5e45d@redhat.com> <20201127161900.GA10986@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Can you give this one-liner a spin? diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c index c6622011d4938c..e889111b55c71d 100644 --- a/drivers/iommu/intel/iommu.c +++ b/drivers/iommu/intel/iommu.c @@ -4007,6 +4007,7 @@ static const struct dma_map_ops bounce_dma_ops = { .alloc_pages = dma_common_alloc_pages, .free_pages = dma_common_free_pages, .dma_supported = dma_direct_supported, + .max_mapping_size = swiotlb_max_mapping_size, }; static inline int iommu_domain_cache_init(void)