Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2630426imu; Thu, 29 Nov 2018 07:55:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vhy1RISp98pl0qt0XgstvLttxOvz4Tvc+/QGSfV2c/kf3VOYutJTAu8ZVGDrzWBrtrEpLg X-Received: by 2002:a63:1b1f:: with SMTP id b31mr1682411pgb.66.1543506915615; Thu, 29 Nov 2018 07:55:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543506915; cv=none; d=google.com; s=arc-20160816; b=ecMcLHlNY6iFjKJshgmLjqZgLovclj8juX6JUtEIUZ1MF5GgXJODief4SllkEjFgnW grcbAXAJMzvjPZT2Gadu6/pSNnDYiKtYRTV44pGrT9R9K05rFWL6eFBxG3Li2RJwi0FO 5p4j5KPcpPDbe7BT5ns/VTeZCP1O960YAV00Z+B4glZ2SQezQO/1lPL7yi4GU/C5fuxq uu3Cgf+Svf6dJpfi1R3k6Y5EInfsa6n3TmdhlEAgpVt4eJPLpNeduyUtGa4FvchM/d5O oGO2JwQlTVCkSs8V3NfT7Mb9yq8CFcyfJZThLwXGAqPi0RnZDGgF4ZeV8666b5pSN0Es LFmQ== 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; bh=1tCL5d22zSh0+FDO99oaetIRagxlHCn8sIrAieD+wC4=; b=zZT2qtdEuwsN7Ts151FG32rDp+5KA4ejEuBlbArJkwnbE156xVS50spTYYdudnpCo/ 4quymW15mZp3Wm7jltHQ/tFEKmX7lGbvkGzQzCaMrhbVOOrmVQzzuW9F/ZYGkyvT58j8 aDF7VIBsCJTOSn4voX6BxDWbkRDu+vZfzthB6uPrVP8mFjSCR+JFL7MWszPNgP2BshMe P0twLjFI8dXpoqGZfjoEm/QMdBleGEJiv1lDhQU7XRysSqi7VA8ag6i8Iy6ou3jsPVVs ZxPJ4VdYoL2l7gKPGINkKaQ06GrUh+ts23g0ax5a+eCCb5T2nObEx4FKztOymzuOKsGH 0hsg== ARC-Authentication-Results: i=1; mx.google.com; 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 h70si2240807pge.221.2018.11.29.07.54.58; Thu, 29 Nov 2018 07:55:15 -0800 (PST) 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; 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 S1729104AbeK3DAJ (ORCPT + 99 others); Thu, 29 Nov 2018 22:00:09 -0500 Received: from verein.lst.de ([213.95.11.211]:44311 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728363AbeK3DAI (ORCPT ); Thu, 29 Nov 2018 22:00:08 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 6248D68B02; Thu, 29 Nov 2018 16:54:18 +0100 (CET) Date: Thu, 29 Nov 2018 16:54:18 +0100 From: Christoph Hellwig To: Rob Clark Cc: hch@lst.de, Vivek Gautam , David Airlie , dri-devel , Linux Kernel Mailing List , freedreno , Tomasz Figa , Archit Taneja , linux-arm-msm , Robin Murphy , Jordan Crouse , Sean Paul Subject: Re: [PATCH v3 1/1] drm: msm: Replace dma_map_sg with dma_sync_sg* Message-ID: <20181129155418.GB26537@lst.de> References: <20181129140315.28476-1-vivek.gautam@codeaurora.org> <20181129141429.GA22638@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 29, 2018 at 09:42:50AM -0500, Rob Clark wrote: > Maybe the thing we need to do is just implement a blacklist of > compatible strings for devices which should skip the automatic > iommu/dma hookup. Maybe a bit ugly, but it would also solve a problem > preventing us from enabling per-process pagetables for a5xx (where we > need to control the domain/context-bank that is allocated by the dma > api). You can detach from the dma map attachment using arm_iommu_detach_device, which a few drm drivers do, but I don't think this is the problem.