Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3896219pxb; Tue, 7 Sep 2021 09:51:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxxJpMSZQ1f7zlxmYLF+2qgWKaPLkPOFwkChn9rCbL1LxXabX/7Z7dOOhBUoygYGXTVrKj X-Received: by 2002:a02:c6b3:: with SMTP id o19mr16342895jan.5.1631033512902; Tue, 07 Sep 2021 09:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631033512; cv=none; d=google.com; s=arc-20160816; b=BYFTjLg7mavM+C33eALBc+mq8Cjiw0s0u9CaQr8Jnx5r/dSi09tWO3jrcL/ed8zAzm PMgKsLdvzhkJ7bnCK8h4VXR0rIWslqqW5j3+P/qqLK7iveF+mm4fgSgxKtJvLJC6atj6 t3azcSudHMU2tbtRA9T4S7JlVtHSw6v3f519UO9vilubM2JIVCGA0LTTS1pcgZy1IB45 rkVvM1proKx5ZLGp+83HmzNlDcZnY4ftt4El7fcnNA1XXblduZcACSGMqmsa/7BKAHYb OTl0TGhsJ8RSh11bH9nY2cF0c9Ezvhxp485vYU1z296YiPD0Sz3rmfdc3aleIc4+TXYs 33cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=RBIaEU+QYRJFKSVBjVbUGUzxvaWbeZCnz5PKzm5X2GQ=; b=H6Az1KnUu83RoOvdZD/26yLt9I9UWVwC7S1F6huOu+4FAItqP/AmHBBA0M/LSDllsZ 3/OvmJ4Avmd3qmyCN7ephZmiLD313oZ7UPGdwp1/j0xGaAyro6YCN+t8am6W5RA34q/v 8GQ9uGh2CwRGMaL8Q3eFAymDDiVS3POqaOYb6ie5hj44ECza74hWl8vxFnpVyjbEC3WD SQKkvVpV7fCN0P1CamwAMC6mKXw7CmW8Ay/ri9gBGC0+2lR86aLHJyKbxKO6zmNgf3ma AMELHzYFJYWeAjqPm2rOaNFe0rSklb/F7ZayMh3AoUB32Bx63DSw2lF6MhO0pwYiMBT/ pv+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=YhiJSkf6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v15si9606261jal.73.2021.09.07.09.51.41; Tue, 07 Sep 2021 09:51:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=YhiJSkf6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345223AbhIGQvG (ORCPT + 99 others); Tue, 7 Sep 2021 12:51:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345157AbhIGQvD (ORCPT ); Tue, 7 Sep 2021 12:51:03 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AE0DC061757 for ; Tue, 7 Sep 2021 09:49:56 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id A8B1622175; Tue, 7 Sep 2021 18:49:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1631033393; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RBIaEU+QYRJFKSVBjVbUGUzxvaWbeZCnz5PKzm5X2GQ=; b=YhiJSkf6SgSXcXZhUZRVN1SrYWpTY2oGzLSHPG+7bLeaQBJ48I4LJgDj9XyIibCV/yBVyD 4zQYOCiAXlEhq2I+39/qg3rVbo2tgZcUK2QWxKwfzomgXe70r0HDOoeY3VfmaAQ20HQmBl wb9hyz2JunKJnQupi/UPJwyYZ3Qe9Qk= From: Michael Walle To: Robin Murphy , etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: "Lukas F . Hartmann" , Marek Vasut , Lucas Stach , Russell King , Christian Gmeiner , David Airlie , Daniel Vetter , Michael Walle Subject: [PATCH v2 0/3] drm/etnaviv: IOMMU related fixes Date: Tue, 7 Sep 2021 18:49:42 +0200 Message-Id: <20210907164945.2309815-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series fixes usage of the etnaviv driver with GPUs behind a IOMMU. It was tested on a NXP LS1028A SoC. Together with Lucas' MMU patches [1] there are not more (GPU internal) MMU nor (system) IOMMU faults on the LS1028A. [1] https://lists.freedesktop.org/archives/etnaviv/2021-August/003682.html changes since v1: - don't move the former dma_mask setup code around in patch 2/3. Will avoid any confusion. Michael Walle (3): drm/etnaviv: use PLATFORM_DEVID_NONE drm/etnaviv: fix dma configuration of the virtual device drm/etnaviv: use a 32 bit mask as coherent DMA mask drivers/gpu/drm/etnaviv/etnaviv_drv.c | 41 ++++++++++++++++++++------- 1 file changed, 31 insertions(+), 10 deletions(-) -- 2.30.2