From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B599AC56202 for ; Tue, 24 Nov 2020 10:31:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5705D20708 for ; Tue, 24 Nov 2020 10:31:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="SsuKR54d" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731962AbgKXKbJ (ORCPT ); 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-Google-Smtp-Source: ABdhPJx1j1BZSeJJvNp43wSQVFfTRwJU5DVEOcEbiKgJSh1BIM/Fcda7aNMf+62DHflzA3z3suVNBw== 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