Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752810AbdHQOD7 (ORCPT ); Thu, 17 Aug 2017 10:03:59 -0400 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:50009 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751684AbdHQOD6 (ORCPT ); Thu, 17 Aug 2017 10:03:58 -0400 Message-ID: <1502978634.19806.27.camel@pengutronix.de> Subject: Re: [PATCH 06/13] drm/etnaviv: Use sychronized interface of the IOMMU-API From: Lucas Stach To: Joerg Roedel Cc: Joerg Roedel , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Suravee Suthikulpanit , Russell King , Christian Gmeiner , David Airlie , etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org Date: Thu, 17 Aug 2017 16:03:54 +0200 In-Reply-To: <20170817134539.GJ2853@suse.de> References: <1502974596-23835-1-git-send-email-joro@8bytes.org> <1502974596-23835-7-git-send-email-joro@8bytes.org> <1502976758.19806.25.camel@pengutronix.de> <20170817134539.GJ2853@suse.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:fa0f:41ff:fe58:4010 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 871 Lines: 21 Am Donnerstag, den 17.08.2017, 15:45 +0200 schrieb Joerg Roedel: > Hi Lucas, > > On Thu, Aug 17, 2017 at 03:32:38PM +0200, Lucas Stach wrote: > > I don't think this is necessary. Etnaviv has managed and batched up TLB > > flushes from day 1, as they don't happen through the MMU MMIO interface, > > but through the GPU command stream. > > > > So if my understanding of this series is correct, Etnaviv is just fine > > with the changed semantics of the unsynchronized map/unmap calls. > > This is not about any TLB on the GPU that could be flushed through the > GPU command stream, but about the TLB in the IOMMU device. Or is this > actually the same on this hardware? Which IOMMU-driver is use there? There is no IOMMU driver in use. Etnaviv just uses part of the IOMMU API to manage the GPU internal MMU, see drivers/gpu/drm/etnaviv/etnaviv_iommu.c Regards, Lucas