From mboxrd@z Thu Jan 1 00:00:00 1970 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 D74ECCAC59A for ; Thu, 18 Sep 2025 11:37:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=62sFa6+r+yufK0w62YT8VZhAhdtvQALavIM3MYvS1VM=; b=CMHPRkePC+BLz5AekHv5W1KzoD AJzSoARr1hRUl5RzPn5Et2sQh0Cr5b1tBIaw+gbjk/wcQJrZNbcI+rdqhzi4yVe5iiGdJehf2wS63 i8ZaoO8tc9yhTCoBpjfP2N2BB4di33niK1jv2mxVCzjVE1L3OeiXhKyZG0DjAotx2IEZUzJ8hUL1L nA0QIgdLBzrrbvlik/jINJpHyJDDjbSYeRoVOsT0IQgLeB7553hOIWaB7xEeOTgdsv/V15rmB4SUG vb9NWoiZX/4zPOTH8psiWrQZieKXbQCZmZ9q6IiSEawjsd31jet6H693Z8r7mZHNFemprZttlNb9v Qzq8AE/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uzCxJ-0000000HEoJ-2hgQ; Thu, 18 Sep 2025 11:37:41 +0000 Received: from bali.collaboradmins.com ([2a01:4f8:201:9162::2]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uzCxG-0000000HEnX-0jDx; Thu, 18 Sep 2025 11:37:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1758195455; bh=knOqDMmCuYGf36S0XJkfDDNgqTE1JBx5Dzln83jT4MQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=nXkpFoO6Jxar0bWX+EQ4QLJhk81Du0l8SBBjrEAJeXv5ryrQBJZA1hcimz0grfgiv +AmxfEmFyu6tuCK/TrTRWdBrBfrb2dRQ1qEZpM+Sj7DCfl7h4XkzA1unZDFvb2rCu8 0nJN3Ce92B2MqSPDhU+Zjs+kRYH0gMO/h4lphzKexgfwo0BesSmtnmjEkB2SObR+No wm83pKSOrLeLad7DUJsv/+rJOdOsmOmHCMqMgJiJxRw4gFo+8L2HWzg+bpnoeTjlyn f28tlbN8VQqJCHQQKZU6U0g3sCQPb1JwBUvC4tQqPllmQAms/StwHsZ+SzJTtvdRyK n5uEKA7R527lA== Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by bali.collaboradmins.com (Postfix) with ESMTPSA id 512F617E00B0; Thu, 18 Sep 2025 13:37:35 +0200 (CEST) Message-ID: Date: Thu, 18 Sep 2025 13:37:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 0/8] Add mt8196 SMMU support To: Xueqi Zhang , Yong Wu , Will Deacon , Robin Murphy , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger Cc: Project_Global_Chrome_Upstream_Group@mediatek.com, Ning li , linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, iommu@lists.linux.dev References: <20250616025628.25454-1-xueqi.zhang@mediatek.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: <20250616025628.25454-1-xueqi.zhang@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250918_043738_369399_135F6A7F X-CRM114-Status: GOOD ( 12.38 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Il 16/06/25 04:56, Xueqi Zhang ha scritto: > This patchset add mt8196 SMMU support. > 1. Mediatek SMMU interrupt is low level active rather than the > standard edge. Process Mediatek SMMU wrapper interrupt and dump > detailed information when a translation fault occurs. > 2. In some projects, Mediatek also have EL2 driver, so put the pm > operation in TFA(EL3), then all the kernel and EL2 could control > the pm. Thus implement rpm get/put function which send smc call to > TFA to get/put SMMU power. > > Xueqi Zhang (8): > dt-bindings: iommu: mediatek: Add mt8196 support > iommu/arm-smmu-v3: Add SMMU implementation > iommu/arm-smmu-v3: Add implementation for MT8196 MM SMMU > iommu/arm-smmu-v3: Add implementation for MT8196 APU SMMU > iommu/arm-smmu-v3: Add IRQ handle for smmu impl > iommu/arm-smmu-v3: mediatek: Add wrapper handle for IRQ > iommu/arm-smmu-v3: Invoke rpm operation before accessing the hw > iommu/arm-smmu-v3: mediatek: Implement rpm get/put function > > .../bindings/iommu/arm,smmu-v3.yaml | 24 +- > drivers/iommu/arm/Kconfig | 7 + > drivers/iommu/arm/arm-smmu-v3/Makefile | 3 +- > .../iommu/arm/arm-smmu-v3/arm-smmu-v3-impl.c | 16 + > .../arm/arm-smmu-v3/arm-smmu-v3-mediatek.c | 536 ++++++++++++++++++ > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 96 +++- > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 14 + > 7 files changed, 691 insertions(+), 5 deletions(-) > create mode 100644 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-impl.c > create mode 100644 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-mediatek.c > Xueqi, any followup on this series? All of the multimedia blocks (including display) become unusable without an IOMMU on MT8196, MT6991 and newer. Regards, Angelo