From patchwork Mon Jan 30 10:27:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 13120890 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C49EFC54EAA for ; Mon, 30 Jan 2023 10:29:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Nucm2t89b1FaqTM7NQxD0ST66u7XueSxab3Q9A2oLmU=; b=xRLRLeUKHCFA3n 7v3uhd5T2led3Fj0VGWz9srCJRo8e1N54eDiJAuQluNK1PWc8ZS00sLsXxXd4W14R5XXHsfCAM0tf UjRrWg0YKMKa5KKYGt+aBoC3kEEPIJL8pjJSDfaxaIu+/zpkPhgkCoJ1cuIqn0RYFpgojEP3X0dgS toGOf5p5IbFjttqSR9KOihHW0EYmHxMznC681FUweb6UtlrK+wBv1RIDyElV+3ZeC4wLcPfDNN8j3 dy9IzmkDUDPS2TPhYlp+Q/h/rlBDqGs5LKDf7SGwboCyBNtb0fHQdsaoDrQQ/G8v4/lK4D0AdInYJ 10FCGJ4/sN4rJXzxJ4mg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMRNb-0037PW-Te; Mon, 30 Jan 2023 10:27:16 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMRN0-0037Nk-OG for linux-arm-kernel@lists.infradead.org; Mon, 30 Jan 2023 10:26:40 +0000 Received: by mail-wr1-x42b.google.com with SMTP id y1so10571096wru.2 for ; Mon, 30 Jan 2023 02:26:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=a1sabGNp0i0jnpvKtDcfkVpINZEUTfpEqzCGhBjXqIw=; b=TGbOhzz/rPG3jSJFwXwz9IARb5DEJa0LNKqqAhM8Or6IuR3iLbqSOj9ah3EQaWUZv3 QtpJDEd/CQRktCQqVLtB4vMZaVkaUSlj+f5413ziTkTbsZUGJC4difgipU7P2mnJ841b zG1f6EeK7NeiAN/BqZVB1ON0FvRmlPDDVE9eVMZVPoBM9CLB5O5dIyX2rQeA6GAJEwJ6 16CHJhQItoI+eKYhP7OGYNAFW1GMAdm5Dtrr41T9yxgdjS3/MmzxF9LWlc0xEXyuXtgP cmZDGJRW7Ap0j75DnTuemaHRy5l01XZKOCvIULOdnHGtgMI/vE9fKap6yzNcupMNxijc Q35A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=a1sabGNp0i0jnpvKtDcfkVpINZEUTfpEqzCGhBjXqIw=; b=IkaGrrr0sv+FgVe5XkQRpsIJiS7pvZ5vkWwdJsW4juTibVuCOTqUB+m1rY20ua2lAR nR/K1vNGgsJufe3kBdsEg4xBauD3iROX7/tKG75hrbSixWuZ5cW1rfnNVIOD23Wni2Qb o1Do3EuIBFJJ750egRpP9VDRylvHFsXn5RTSqevNBHEGkpo4OYJ+M2qBQm1kNHdHH0bj NfCi1st8XvJcwdCAKVgWO0hUAYYp9iV8NQ7Ec/fjZozTr9iL3/8dTTgLZZ7ZZkdze1Yw rzujwR2BAHpueUUVbuR3o8cBYk8GYH2U5pi8p8GqBPTfbgUoCoFYBsIzI89u2EbMXIM4 Mvbw== X-Gm-Message-State: AFqh2kogcQGJs6SyEo5HCrvvaYaqoRjXFuP/oSsrd+v8BaU7DVk1haIB QdJ97HjuB/esHtKOXpuSjbHd/Q== X-Google-Smtp-Source: AMrXdXusnxR1vGulnY9qOYGIrAj2fP/mpLLBdaOBnAzh7KNVOon1ShfM7VQfgnYhs0CrTstGHVq8UA== X-Received: by 2002:a5d:6e8b:0:b0:2bd:d9b5:8191 with SMTP id k11-20020a5d6e8b000000b002bdd9b58191mr42677507wrz.61.1675074396348; Mon, 30 Jan 2023 02:26:36 -0800 (PST) Received: from alex-T14.baylibre (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id s5-20020a5d5105000000b002bdfcd8c77csm11426785wrt.101.2023.01.30.02.26.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 02:26:35 -0800 (PST) From: Alexandre Bailon To: yong.wu@mediatek.com, joro@8bytes.org, will@kernel.org Cc: robin.murphy@arm.com, matthias.bgg@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, iommu@lists.linux.dev, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alexandre Bailon Subject: [PATCH 0/3] Add support of unmanaged domain to mediatek IOMMU Date: Mon, 30 Jan 2023 11:27:19 +0100 Message-Id: <20230130102722.133271-1-abailon@baylibre.com> X-Mailer: git-send-email 2.38.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230130_022638_806476_1702AA61 X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Mediatek mt8365 SoC APU support (AI Processor Unit) is being upstremed. This device, behind an IOMMU uses remoteproc which requires unmanaged domain. This updates the iommu driver to support unmanaged iommu domain and let remoteproc use the IOMMU. Alexandre Bailon (3): dt-bindings: memory: mediatek: Add support of unmanaged iommu domain iommu: mediatek: Add support of unmanaged iommu domain dt-bindings: iommu: memory: Use unmanaged iommu domain for the APU drivers/iommu/mtk_iommu.c | 6 ++++++ include/dt-bindings/memory/mediatek,mt8365-larb-port.h | 4 ++-- include/dt-bindings/memory/mtk-memory-port.h | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-)