Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4947999ybp; Mon, 7 Oct 2019 16:57:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNL1LjWbxXvWiD4BRX9lnym1o90UozYx9+sLC7HmS6SOVq+aUQfm93K4JJ43/9LPWjx+1q X-Received: by 2002:a17:906:ecf6:: with SMTP id qt22mr26170486ejb.212.1570492642192; Mon, 07 Oct 2019 16:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570492642; cv=none; d=google.com; s=arc-20160816; b=xm4TtX7zL9TJJv0zGaB4yk0vjzJXRATCrdp6DhijkCcxCzinFiX/5DkYa+ynxSUc01 0ru1OWC6zKvYKHQBqJOapGhIZvyQrkriK52QCr5YeSXwv0HREj04MPUoIb9NIcNS4aoz S9U4VJMhp99ovJIcbeYwFfn5qqcUgX0rV1OXQURcVeYBuMWxmzqGf6rO3oRrhPxdV/1q 4CClFXOj/kumS5hQkUl4u0xz0Rwlfri0EvhIRMjScGbnZnRrfnH5k9cyt1OtVnkvz8zZ 6UvkmOGSUY/6m5pYE5LzwyU0jzKmVRnTAzOjBJTRyBOss8E7RLtgc0W754fvC4dakh8d 7pvQ== 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:date:from:dkim-signature; bh=l7uk+TuX8xcNELmLR9qeK5X9Q2/Bic3Tz0aa0W2A1hY=; b=aLQpoY8BVtoo91jH9NCWL4BDzhmDqH0QEwgNbfkunWX9ghp0SGXibEvAJUqRuXKg5w u2pyjdBsRa1nGeswGJx7LiZixgzFSu2/74LbHFoVKNqCPla5GmNv7WGdWdkkgreZZypA jPolqshq0Pry/5fdFnPF2/XDtiTvZhiJ09t6g9HQ6MCAmBkxjnosjdNDq3ECjNfIw1cy Zv0mWBndgcB95d0MFn4F5F/aaKwJg2cdxyXzOvZX4n6bpBgQ5G02e7Dpe9+LF872Nv5b PleFZWjb85mWLJCI8ssTlrKw1l8zC/PcuDLq4RZneoguIR3Klv7krXbmrLveuYYe1LLP fGhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HCiFdYvX; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si8050551ejw.31.2019.10.07.16.56.58; Mon, 07 Oct 2019 16:57:22 -0700 (PDT) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HCiFdYvX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729711AbfJGXyG (ORCPT + 99 others); Mon, 7 Oct 2019 19:54:06 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:41284 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729529AbfJGXyF (ORCPT ); Mon, 7 Oct 2019 19:54:05 -0400 Received: by mail-qk1-f196.google.com with SMTP id p10so14524805qkg.8 for ; Mon, 07 Oct 2019 16:54:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=l7uk+TuX8xcNELmLR9qeK5X9Q2/Bic3Tz0aa0W2A1hY=; b=HCiFdYvXOSqeOtj5K4V/JNiwdx4BiK0KAGsjuPZ8/TTnE2ROIi7R8/uj1Vf7hKW918 gWfe/d23b7PTukkWtNCp4JKxvVqSeVSJLcd7Tyw+Pf0kKtxlJM8DkVP0bLAXIrqgL576 ckNwIy2z9kYyTvClhxXAGoKuG22lwxhN1T+BlglmD++HV/kErE6WfHpCG4u4IECTJWmT N+GjPeF2xl4Yqca0vNEsKlWlrwHec+PeGIjGbkyGMtskg9osU9nZR0BQ+mX3NsY1NyLO hDsETVE9HifARkHx3nli2/zvAHqNBUaRx6EO9C9AAmNfAtQwgVEzy8Y1VCuxeu5DZp8M xVxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=l7uk+TuX8xcNELmLR9qeK5X9Q2/Bic3Tz0aa0W2A1hY=; b=ceo4eO5UYJSqwei4BZ4a6HN9NpcKlozBvyOHXPUsSmXflKywqhkgLFjIBe9pLFZzNB IXUu7fN7kbBZezabwX/faKfbJYDs2oxSN6nTCUFk2m5WgRTt+BJjMznD6drHb67cFc+L T+omJKlDJg6EPcNf+7egsaG1/0p/Io0hDrRBSwigdPBvWXDISx0LXLf3vzY3VaQVieD+ RqpWJIFvHa4u5DpyMpPlQv6Lj4LRJ5qrycEd+s249yYFAEWnqKu/WkhX+ccHINNRfTBl wRi8askBfp1NyEprd6T4Fn1jvftLidSyMN2gFQQZlIWq4pdelO7LJ4qti+JKOAWrJjcf TmDQ== X-Gm-Message-State: APjAAAU9mEvdBCN2fMe8pzhWLSuRT0QUr16qmUdYOqamKU0XLOLLQxXZ QXm9aonMJEMT7LXuRbnNp5t95UlhqypJ1A== X-Received: by 2002:a37:4a54:: with SMTP id x81mr26240146qka.292.1570492444597; Mon, 07 Oct 2019 16:54:04 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id p53sm9027670qtk.23.2019.10.07.16.54.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Oct 2019 16:54:04 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Mon, 7 Oct 2019 19:54:02 -0400 To: Arvind Sankar Cc: Christoph Hellwig , Christoph Hellwig , linux-kernel@vger.kernel.org Subject: Re: ehci-pci breakage with dma-mapping changes in 5.4-rc2 Message-ID: <20191007235401.GA608824@rani.riverdale.lan> References: <20191007022454.GA5270@rani.riverdale.lan> <20191007073448.GA882@lst.de> <20191007175430.GA32537@rani.riverdale.lan> <20191007175528.GA21857@lst.de> <20191007175630.GA28861@infradead.org> <20191007175856.GA42018@rani.riverdale.lan> <20191007183206.GA13589@rani.riverdale.lan> <20191007184754.GB31345@lst.de> <20191007221054.GA409402@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191007221054.GA409402@rani.riverdale.lan> 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, Oct 07, 2019 at 06:10:55PM -0400, Arvind Sankar wrote: > On Mon, Oct 07, 2019 at 08:47:54PM +0200, Christoph Hellwig wrote: > > On Mon, Oct 07, 2019 at 02:32:07PM -0400, Arvind Sankar wrote: > > > On Mon, Oct 07, 2019 at 01:58:57PM -0400, Arvind Sankar wrote: > > > > On Mon, Oct 07, 2019 at 10:56:30AM -0700, Christoph Hellwig wrote: > > > > > On Mon, Oct 07, 2019 at 07:55:28PM +0200, Christoph Hellwig wrote: > > > > > > On Mon, Oct 07, 2019 at 01:54:32PM -0400, Arvind Sankar wrote: > > > > > > > It doesn't boot with the patch. Won't it go > > > > > > > dma_get_required_mask > > > > > > > -> intel_get_required_mask > > > > > > > -> iommu_need_mapping > > > > > > > -> dma_get_required_mask > > > > > > > ? > > > > > > > > > > > > > > Should the call to dma_get_required_mask in iommu_need_mapping be > > > > > > > replaced with dma_direct_get_required_mask on top of your patch? > > > > > > > > > > > > Yes, sorry. > > > > > > > > > > Actually my patch already calls dma_direct_get_required_mask. > > > > > How did you get the loop? > > > > > > > > The function iommu_need_mapping (not changed by your patch) calls > > > > dma_get_required_mask internally, to check whether the device's dma_mask > > > > is big enough or not. That's the call I was asking whether it needs to > > > > be changed. > > > > > > Yeah the attached patch seems to fix it. > > > > That looks fine to me: > > > > Acked-by: Christoph Hellwig > > Do you want me to resend the patch as its own mail, or do you just take > it with a Tested-by: from me? If the former, I assume you're ok with me > adding your Signed-off-by? > > Thanks A question on the original change though -- what happens if a single device (or a single IOMMU domain really) does want >4G DMA address space? Was that not previously allowed either?