Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp785831ybb; Fri, 20 Mar 2020 08:04:33 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtobaMlGogYqlHLGmz+cVgAndkVuIhMddPABCSKQmj+3wWWpMRj70ag8dBa5+c67a60FYnJ X-Received: by 2002:aca:af12:: with SMTP id y18mr6551563oie.78.1584716673058; Fri, 20 Mar 2020 08:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584716673; cv=none; d=google.com; s=arc-20160816; b=fyZ8OyBN2FHTEnyDYQkNPOL0ykLrrHLCW68qVFU4yq5n7+CqUJ9Ha+R2DufY01v5pf OWOfGlhEPlFlvhIbP/lO0yf2QEUvDyN4Rd77TbEYaONykIdo5Z0YJZLYK+4IaHfWlRZW stNQSzWfBPZSupE4lNiDXqEmFn9f39DidUhOM7jN+Kd5+NC2lmQlbrMk+JBCuFpAQg35 Kmk4qjUBDoFEfnL/g88R1vPtvXtF9esBV4egcpuRdvngiEjUDB1kJnE8cAZq9aQOBuKD AmiVOlcSuldLFPv26/7PDqwO3n4i/UEu+m34sdmBR7CRfUZXZBB2WdEL39h9RtCqtL9N 0NxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=56624SrB5bjduLGN6luPNwNQ3YDqYwzC6zmPuijCbKg=; b=n8osTXbEBjVC7CKEk9TK80N+iILMXX7A6kiUFUSCuo8bmv9v0Dp8sSMy4CZP3I6k3W Suwxy//4vVAA715K4N24AviuV2qz2Dff0/NC/a1cQ8nmsI35s7S4s+mcugvvaC4uuJi1 pXlX+0R4OEtUOiHCXmzFazVdx1T1h/1BnQgTaCi4hbFliWGgY64rIOpO3iCkok1TUlzl A7WPfA1wfQ3tCI1bZws5TMnZCVeIEviGLxAkZBw5Ownb4MSMW/AU8dUvTfrUh4qoG+hl oorsbe4aWvoTSWJnpTB3tRtGLwcsmiXvRBoli/sn6PmXbQzb6isqbPyh2AIiUWEwCJhs 6lZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ZzOLV/nb"; 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 v1si3146361otj.204.2020.03.20.08.03.54; Fri, 20 Mar 2020 08:04:33 -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=pass header.i=@kernel.org header.s=default header.b="ZzOLV/nb"; 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 S1727101AbgCTPCK (ORCPT + 99 others); Fri, 20 Mar 2020 11:02:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:51228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726816AbgCTPCK (ORCPT ); Fri, 20 Mar 2020 11:02:10 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D7F7720714; Fri, 20 Mar 2020 15:02:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584716530; bh=abV8/ZN//3YrBYbpASQEcaHQnh62HmxBKB67ullzIGY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZzOLV/nbV2X1/L58dQ3IkZlLSycU8DKOQKketOO4IOKdxd2U2/rYT7SkwTah5EjVJ iQx82GFrYHrxhgi6UBGnAO02z0cmJpplNHGbUdy4HeQi3Ds72dU53yoowTfDpIdU5U OPE+lL5UAbxawylQefAwtClInfYGFVljyJcPApTM= Date: Fri, 20 Mar 2020 16:02:08 +0100 From: Greg Kroah-Hartman To: Christoph Hellwig Cc: iommu@lists.linux-foundation.org, Alexey Kardashevskiy , linuxppc-dev@lists.ozlabs.org, Lu Baolu , Joerg Roedel , Robin Murphy , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dma-mapping: add a dma_ops_bypass flag to struct device Message-ID: <20200320150208.GA761915@kroah.com> References: <20200320141640.366360-1-hch@lst.de> <20200320141640.366360-2-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200320141640.366360-2-hch@lst.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 20, 2020 at 03:16:39PM +0100, Christoph Hellwig wrote: > Several IOMMU drivers have a bypass mode where they can use a direct > mapping if the devices DMA mask is large enough. Add generic support > to the core dma-mapping code to do that to switch those drivers to > a common solution. > > Signed-off-by: Christoph Hellwig > --- > include/linux/device.h | 6 ++++++ > include/linux/dma-mapping.h | 30 ++++++++++++++++++------------ > kernel/dma/mapping.c | 36 +++++++++++++++++++++++++++--------- > 3 files changed, 51 insertions(+), 21 deletions(-) Reviewed-by: Greg Kroah-Hartman