Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4608215ybp; Mon, 7 Oct 2019 10:58:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJUyOqS7BrfWKdQ7l3KPmmD2eRr2FOMrFwpEfsBdH2zM8/xEgTN7EYhxTTSxJtEKZtzVBS X-Received: by 2002:a50:c2c2:: with SMTP id u2mr29724691edf.220.1570471111352; Mon, 07 Oct 2019 10:58:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570471111; cv=none; d=google.com; s=arc-20160816; b=u6Etu078aNKMQ39BsjjIDZ0b1L6S9fZkq+eX824ZZ0ByuUf1NvKsEnFHKvladhWi6q vmNleQHU+j359scnKcZ1bDDJPM2CL0TZb0cLeCJ9yqyS1FjW5rzDWsaCsTV7/Kp9WJIh CCr8qdpm7Eo/9r9pVM9JrI6gTq9hJvoYo3AHPoCEc8Soo5iP3gPyi7E7tkd28AlWTw7v jNUN9Tmjr6xFRkHwXVG45jmTsauXAiu0SZaJw3o/mMg8gNt2Kr/bP64vWmPDArxO6ikO 8bIAtPFmuYa6/xNuqy/mayGtEIKh3gogJtMUPcfxF0qUIXWRrRouqeh4nVDMY/kU6GRo VCtw== 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:dkim-signature; bh=6cJm3mXnu96oSCyEtClKGow4gq/ZNSvLzJ0zlA1dpF8=; b=uilQa50d/Huk7a9jI6C1yooo6f0lEQ27mZr+98xOnIOgZAHpY2E0CyvyobBtASO+pX LMEJlMLEuK3u7t4sHMoP++IYz4DpsxUnQYsVzXQ5szcNNybJwGdfG4WzfB9loVRL/etT VBAsdWkNp1oJsZ0O6OCLlE8CyuWoRcLh8sBoXaXSVy8yK75jgHlBwXvCj0ENAdySyU7a JvvRck30+wXhH80hsqbBhXoGDCPN9sERb3viNgfhguwAlOFbOyewjSPj5XKnVBegaq3R TidqJnITyaS5sSREHifwHZlbXBk+jxxshGliRWwZtGkqrmAKXXCsnUNli4jWksHTU7ow dIpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=foHrCerJ; 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 b9si7410736eju.269.2019.10.07.10.58.07; Mon, 07 Oct 2019 10:58:31 -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=@infradead.org header.s=bombadil.20170209 header.b=foHrCerJ; 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 S1729449AbfJGR4d (ORCPT + 99 others); Mon, 7 Oct 2019 13:56:33 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58632 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729189AbfJGR4c (ORCPT ); Mon, 7 Oct 2019 13:56:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6cJm3mXnu96oSCyEtClKGow4gq/ZNSvLzJ0zlA1dpF8=; b=foHrCerJqy+WcaZ34i5vWdP0z JfR/2qjb1sXRAMZrkoViHNafxNIzaEY3k/KyzjsfKeaw01FHMq5GFpiDpU7RT050s20gTzb3/uzeZ FqLVFZW8nx7C0g+jyAKzxbwfRSZhUVtRo1kWo8GrPRie2TfSpkKmVvBU9t9Lnor9SBmHJBQxQcO+W 7eGkA2VZxodwK1krZHQjmz2vAiPWC1/wqk6EhtceRb8z652uQk/u/wtNSFnsnlmHJfHUbLoezCDk1 Hq74K/xI8qc5ID2BXWz0rrzc4qkg0GGq1fOcBGbTk44/tpZaoa1xI94fhxyKRSAheDtXIThuyDFLd rNlqRe77Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.2 #3 (Red Hat Linux)) id 1iHXFG-0007bf-Ci; Mon, 07 Oct 2019 17:56:30 +0000 Date: Mon, 7 Oct 2019 10:56:30 -0700 From: Christoph Hellwig To: Christoph Hellwig Cc: Arvind Sankar , linux-kernel@vger.kernel.org Subject: Re: ehci-pci breakage with dma-mapping changes in 5.4-rc2 Message-ID: <20191007175630.GA28861@infradead.org> References: <20191007022454.GA5270@rani.riverdale.lan> <20191007073448.GA882@lst.de> <20191007175430.GA32537@rani.riverdale.lan> <20191007175528.GA21857@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191007175528.GA21857@lst.de> User-Agent: Mutt/1.12.1 (2019-06-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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 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?