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 B898FCAC599 for ; Wed, 17 Sep 2025 12:50:14 +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=Vab3WWmlOiu1j24wogCl8tlCj77FdZJzDsGeypgjGKI=; b=c/NuOlW/4zAOS5ERNqXWgwUnO4 nuQchrDMpiokJp+9cd4YNBOtBZ5fsRHXHDwR+8Hv+G0youAQrfMfULUMwd77OVt19+OZlyd7AYBnQ pBoAcIOqidWFsVNYRoLA4k2rw/+9D9t9UdnDPMO1JfmqhczEubP/Quz+pyXMiQUoYPceybVBITQug rv0RP9BLDkNUvUn+8gR+rhfeKj6G5yjGmYO4Y/+wn5aWqob0OiVos6tU6Th5pyXm0+L+Bq1FRQUTg wgKO5N8vpSBisPjo8rxT3nc0g1cnp9LRRTWCrsk0GVuCaVP8cBWHrufewaTpLiQTB1prcpQZxpdmV 3KyQ744A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uyrbx-0000000BQfv-3sk2; Wed, 17 Sep 2025 12:50:13 +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 1uyrbv-0000000BQeG-31sJ; Wed, 17 Sep 2025 12:50:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1758113409; bh=Zzu47Spqkx9PBO3hTkWFHeC/kbz1j4gqkoIEVOrafyA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=G5lj8mwgzYOBKZYPa16TeMLmQUonfUg5YrBUoPVrg1u+zpcWnBixbqS0A3wcteZC8 +f9vEcVBBcOdwb8XhfXP07lARnpxRBKk+nCwEfUNt6lvMjXRbKn2TMP/ouU41jdp/w 6Qm/t6yanrmwQYQfYFdBBrlTqtyEuckkxt4xwjClQXw+6UWyssj8czCufSj7ynhIwR 8KnOs7UskI/UiQkPiIwOP6GnOY6t4JzXmqraLWuhyQMgkHoOteDxEpnMXYwJiSTV2d 1JTi68Nm95/eE8tHh6YXbzhlDvdk/lWvkvPxotYnguOZ9RPk7/1gadXKh+7nOmGHAN F9f4M++sZDsFQ== 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) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by bali.collaboradmins.com (Postfix) with ESMTPSA id A0D3217E0A49; Wed, 17 Sep 2025 14:50:08 +0200 (CEST) Message-ID: <69c4f96b-8f47-493f-a236-5338c34dc100@collabora.com> Date: Wed, 17 Sep 2025 14:50:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 05/10] mailbox: add MediaTek GPUEB IPI mailbox To: Nicolas Frattaroli , Boris Brezillon , Steven Price , Liviu Dudau , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Jassi Brar , Kees Cook , "Gustavo A. R. Silva" , Chia-I Wu , Chen-Yu Tsai Cc: kernel@collabora.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, linux-hardening@vger.kernel.org References: <20250917-mt8196-gpufreq-v3-0-c4ede4b4399e@collabora.com> <20250917-mt8196-gpufreq-v3-5-c4ede4b4399e@collabora.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: <20250917-mt8196-gpufreq-v3-5-c4ede4b4399e@collabora.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-20250917_055011_916513_B03EDEB2 X-CRM114-Status: GOOD ( 14.13 ) 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 17/09/25 14:22, Nicolas Frattaroli ha scritto: > The MT8196 SoC uses an embedded MCU to control frequencies and power of > the GPU. This controller is referred to as "GPUEB". > > It communicates to the application processor, among other ways, through > a mailbox. > > The mailbox exposes one interrupt, which appears to only be fired when a > response is received, rather than a transaction is completed. For us, > this means we unfortunately need to poll for txdone. > > The mailbox also requires the EB clock to be on when touching any of the > mailbox registers. > > Add a simple driver for it based on the common mailbox framework. > > Signed-off-by: Nicolas Frattaroli Reviewed-by: AngeloGioacchino Del Regno