From patchwork Wed Sep 7 08:38:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikko Perttunen X-Patchwork-Id: 12968645 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3709ECAAD3 for ; Wed, 7 Sep 2022 08:39:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 13C8B891B8; Wed, 7 Sep 2022 08:39:02 +0000 (UTC) Received: from mail.kapsi.fi (mail.kapsi.fi [IPv6:2001:67c:1be8::25]) by gabe.freedesktop.org (Postfix) with ESMTPS id 71DFE891B8 for ; Wed, 7 Sep 2022 08:38:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=sYUosvy/IXI+Pq5tayhQwK/KikVpP+HTm3sv+P7XxOo=; b=fmQHaJaqQm6xZdrS0B+IAKKJau pK3HLWEH2vdT1KMd7n86LQoxnjFm57zzCBT+OJpNdNWT2xkd0U/je5TozMsurNC9LjZTpGHC5L4kJ yuji36t679In32T/22zTnVGOqMxghF2ZghiSjnjHGVr4PqIx0ceTg0DJznAz7HnX3rDae2fVGgDL1 Mr6hQ3MqY55VMj7kAWmLHXS17MjgoQ2fsfxTPCRaAiWFAr/hrotbMHY0bEafpbWdi2qmNfIey6fdO NpJVgT/V8mRuQ+D3oIF4mRwpohyZsZw0w0MIEv/lOxsAr9rbhiqdrgccKEqHXivf7PJpfp9A+YUwY 5DUv+JSw==; Received: from 91-158-25-70.elisa-laajakaista.fi ([91.158.25.70] helo=toshino.localdomain) by mail.kapsi.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oVqaE-00DbXj-GT; Wed, 07 Sep 2022 11:38:54 +0300 From: Mikko Perttunen To: Thierry Reding , Jonathan Hunter Subject: [PATCH 0/3] Host1x context isolation on Tegra234 Date: Wed, 7 Sep 2022 11:38:41 +0300 Message-Id: <20220907083844.2486805-1-cyndis@kapsi.fi> X-Mailer: git-send-email 2.37.0 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 91.158.25.70 X-SA-Exim-Mail-From: cyndis@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Mikko Perttunen Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Mikko Perttunen Hi all, this series adds support for Host1x context isolation on Tegra234 (Orin). The difference from previous generations is that there are two IOMMUs to which engines can be attached to, resulting in having to have a set of contexts for each one. Patches should be applied in order. The first patch is needed so that the kernel doesn't attempt to use a context device attached to the wrong IOMMU when context stream IDs are present in the device tree. The other two patches have a compile time dependency. Thanks, Mikko Mikko Perttunen (3): gpu: host1x: Select context device based on attached IOMMU dt-bindings: Add Host1x context stream IDs on Tegra234 arm64: tegra: Add context isolation domains on Tegra234 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 19 +++++++++++++++++++ drivers/gpu/drm/tegra/uapi.c | 2 +- drivers/gpu/host1x/context.c | 5 +++++ include/dt-bindings/memory/tegra234-mc.h | 10 ++++++++++ include/linux/host1x.h | 1 + 5 files changed, 36 insertions(+), 1 deletion(-)