Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp42979pxu; Tue, 24 Nov 2020 18:02:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPE7j1GtLHOpoinVeR62tSTR1OUqK891SK1uFeQ+B0xR7YG7zeY0KHRO4EepcG5K/SQTC2 X-Received: by 2002:a17:906:eb50:: with SMTP id mc16mr754764ejb.420.1606269747302; Tue, 24 Nov 2020 18:02:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606269747; cv=none; d=google.com; s=arc-20160816; b=1FAP0L8+zy7SEdEDrDqqKQemKVujwnfhPja6+o1huhzSKxnXqLeC3Y36qaeu4yARbg NIUabR+W+67BJcTpHN++NrPT0Cx9NmAWnxnKEhjKA3PULmxE3y5EuhsJAfSjNuwcfOqL cCAS/3MCe1W9i8RnoB7PqYIVH1/HL84k9kPlLZkiJ+0TWCNUlA5QleG3RA0gzDsmQq7u RKRoPuhDZzBN6pQs9JPn/PDmUaUneBnvit0OsuvfF/pmynKwdo/GU3MKOV6eYIz4SwEI kYHelHzW5bit1V8uJGogy1JAwVt9b1TaMpkYEY6OfAb6WQc5UlQ8Ztl5jQMtjAkEs0kL t0BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=h+X/QM3LIRfUSG0/Ck2rlt3TvdbGoFO5E2DZVLdsfOw=; b=JVQbndN6YOEGk4aenU8MpEUkKEav02CQqy4b1owkS3J4fA9JpfMhtu+JaPq/q5g8Mp jBiovEAtkmU/sNIA9Sh977QM1ZBCdlV2/dBPvaVwrUedVKsvhAwFpn+u1jOrutb9KGul ZBHdcSNLQOoy6+3WrpmzAN0D1zvewQlX92aYBme62zav8a6EvYOgY653jFlANBX8d2HT tG+2x3L/3dnwKV5ysaeRi2ZppDQ93ER2vk1VA+StuqJIu8KiXZ9tEDqIqeGcncHaN8vC sIQwvwn9Zo7ytAPKtM7gogc1Ii7u/FcNEklDfFr87aIsUxlF9qT/KZph01fTjdtysaur yEpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SsuKR54d; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si411609ejk.518.2020.11.24.18.02.04; Tue, 24 Nov 2020 18:02:27 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SsuKR54d; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731915AbgKXKbJ (ORCPT + 99 others); Tue, 24 Nov 2020 05:31:09 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:21534 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731886AbgKXKbI (ORCPT ); Tue, 24 Nov 2020 05:31:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606213867; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h+X/QM3LIRfUSG0/Ck2rlt3TvdbGoFO5E2DZVLdsfOw=; b=SsuKR54dhpLYIOQjkHN4FTxtlTiKSCWtbHuGgHaQBFI3JXFdautdiDuI/rQAj1aav5ZwAM 61rneSo0bN2mnF+Pdc8ZmAjN6eH7zpFyYFqFIF9G0v+XLm5R9F4KnEAdZvVLIexoEr4t4W wTehctBxOVXVd9iyPGVNiV0adev4S0A= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-128-W1hgHaL0PgKojOkR7DcSMw-1; Tue, 24 Nov 2020 05:31:04 -0500 X-MC-Unique: W1hgHaL0PgKojOkR7DcSMw-1 Received: by mail-ej1-f72.google.com with SMTP id e7so6741204eja.15 for ; Tue, 24 Nov 2020 02:31:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=h+X/QM3LIRfUSG0/Ck2rlt3TvdbGoFO5E2DZVLdsfOw=; b=tEylgZBLpR65GYwsFUE6Gc4IAydL+eAKy2UnUpbR1+MwbKMaE/FRxZtEzhUoOL/5ey TLuhsAzIWYAZMLRVzFn2ayQKBuO78Zn5GJ9whbBtBeQgeEI06560XmZTjEidPDcEImgj OHgGXueR/y/CkB6+52dRNo4XATVfVug7lbbcXZzEeqi7CpNCeoMu6YigYN6ev7vfMvXd T02+gFVOGbVnyNvB4PQ31AbeogaleoxemExVAPtzhhqaSYc3XVYraKHXDxUL9J7IKLXg b+z4qlT67qfQNPNrGYBfIEr39uwSIzw6efDjjXIKGnNotU+paKvFZ6+/hIPHhI0LE8yl oI8g== X-Gm-Message-State: AOAM531h/Vg8WqAwJFzI1spz9BKU7sBl657/5Oz96xXyeXFm051TJt9q o80fZw5QdqmnheONiEPQdDX/b4+tjF+OsJjdRMNKkfzb3GbRNyq1EDlOijZ1r0Q869c0HrZ9Pm7 9jKabCvlXSmbS/7nL31VBBz8Z X-Received: by 2002:a50:b584:: with SMTP id a4mr3303659ede.301.1606213863544; Tue, 24 Nov 2020 02:31:03 -0800 (PST) X-Received: by 2002:a50:b584:: with SMTP id a4mr3303648ede.301.1606213863382; Tue, 24 Nov 2020 02:31:03 -0800 (PST) Received: from x1.localdomain (2001-1c00-0c0c-fe00-6c10-fbf3-14c4-884c.cable.dynamic.v6.ziggo.nl. [2001:1c00:c0c:fe00:6c10:fbf3:14c4:884c]) by smtp.gmail.com with ESMTPSA id i13sm6517717ejv.84.2020.11.24.02.31.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Nov 2020 02:31:02 -0800 (PST) Subject: Re: 5.10 regression, many XHCI swiotlb buffer is full / DMAR: Device bounce map failed errors on thunderbolt connected XHCI controller To: Christoph Hellwig Cc: Mathias Nyman , Greg Kroah-Hartman , linux-usb , Linux Kernel Mailing List , linux-pci@vger.kernel.org References: <20201124102715.GA16983@lst.de> From: Hans de Goede Message-ID: Date: Tue, 24 Nov 2020 11:31:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201124102715.GA16983@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 11/24/20 11:27 AM, Christoph Hellwig wrote: > On Mon, Nov 23, 2020 at 03:49:09PM +0100, Hans de Goede wrote: >> Hi, >> >> +Cc Christoph Hellwig >> >> Christoph, this is still an issue, so I've been looking around a bit and think this >> might have something to do with the dma-mapping-5.10 changes. >> >> Do you have any suggestions to debug this, or is it time to do a git bisect >> on this before 5.10 ships with regression? > > Given that DMAR prefix this seems to be about using intel-iommu + bounce > buffering for external devices. I can't really think of anything specific > in 5.10 related to that, so maybe you'll need to bisect. > > I doub this means we are actually leaking swiotlb buffers, so while > I'm pretty sure we broke something in lower layers this also means > xhci doesn't handle swiotlb operation very gracefully in general. Ok, I've re-arranged my schedule a bit so that I have time to bisect this tomorrow, so with some luck I will be able to provide info on which commit introduced this issue tomorrow around the end of the day. Regards, Hans