From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13089606A322 for ; Wed, 2 Dec 2026 22:22:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=RaNPpBWX; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=cB1EMXMT 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-Unsubscribe-Post: List-Owner; bh=8Y23Ntx67Lfr1EZD2WV7zfkq25DZ3xRsJCGa168nP7U=; b=RaNPpBWXMn09M0 4k4VlAKBncCYXs6lJiI6aJZ9ZUoFFjS2v1ExEwxzYbBVKqYxrrXJnweCnGRDb9eurJKCSGnpHDMis Xos4sWHtHVvUIFfawR9+0EWoQnnq8w8BYn0KcQ2uAlY81xZlXvZA9YJLa2GarKzgnEuB3qt/74Pzl 2SceumUMC4b24OhnMl++Lp0zbH5LoSv3ay6geyFb9g47IQMh9vUFlRyRQ9gdoRg/Fqn9gay/kERml M1X/Z3E02crRLzgfK5RSHBeNwSJqlcu+/Qb8HCWM6xRzaeytlHv+gIFfMSCkQpasp6BTAbkxrewMZ RQHagMJ0wgyvTz0fLTGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYsic-0000000CvNS-0kfF; Wed, 02 Dec 2026 22:22:30 +0000 Received: from bali.collaboradmins.com ([148.251.105.195]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYsiY-0000000CvMZ-20W5; Wed, 02 Dec 2026 22:22:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1796250143; bh=FWzIy7Cm/yIoqfX8OFaMuKNHl9X5wLMiXD1jLpWbn3o=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=cB1EMXMTk7C0xT205IveJ6DwaRXk9tJMkaw8amGMs1IE3yOahXVIJ3gqCO6fvrSHw n789ZHanvp0J9NnNBUAuwF+Ru5H1KClw0Rc32/TJu83+bUcx37D00iYKFcNGQ9BCrB 53Vxcz07pqpubeDB6QBhQyG2X1MxYA7IEAwbGM6rEapeeXzwBT3CXrgl3RhONaWJgN SQ56Fq7hnmE/daZciStutm+XprbpwuHmErjuLa73iqzExjGd2LgwPYYzRIcA9m/2Bh yP3Loz9j+11VDGHoXoScwVsqjAOwryLeKXRPzi+FtpMCtDndFn7tseGEnSIMxGHG2v yGjYE0GvNOm6w== Received: from [100.64.0.241] (unknown [100.64.0.241]) (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: cristicc) by bali.collaboradmins.com (Postfix) with ESMTPSA id 3153D17E03F1; Wed, 02 Dec 2026 23:22:23 +0100 (CET) Message-ID: <0dd82ce5-5b0a-45a9-aff5-cee64b31429d@collabora.com> Date: Thu, 3 Dec 2026 00:22:22 +0200 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] drm/rockchip: vop2: Reset the AXI master after detaching the IOMMU To: Tim Surber , Heiko Stuebner Cc: Chaoyi Chen , Sandy Huang , Andy Yan , Andy Yan , Sebastian Reichel , Daniel Stone , Philipp Zabel , Nicolas Frattaroli , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , kernel@collabora.com, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20261202200037.309413-1-me@timsurber.de> Content-Language: en-US From: Cristian Ciocaltea In-Reply-To: <20261202200037.309413-1-me@timsurber.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_142226_681581_0F29BDE3 X-CRM114-Status: GOOD ( 13.81 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 12/2/26 10:00 PM, Tim Surber wrote: > Asserting the AXI reset in vop2_disable(), while the IOMMU is still > attached, can hang RK3588 hard when buffers are mapped into or unmapped > from the VOP's IOMMU domain at the same time, e.g. when a KMS client > exits and fbcon takes the display back. > > Assert the reset after the IOMMU is detached instead. Mapping and > unmapping buffers then no longer goes through the VOP's IOMMU, so it > cannot race with the reset. > > Fixes: 67a391e50271 ("drm/rockchip: vop2: Reset AXI and DCLK to improve robustness") We should also add: Suggested-by: Chaoyi Chen > Signed-off-by: Tim Surber > --- > Changes in v2: > - Keep the reset in vop2_disable(), after the IOMMU is detached, instead > of moving it to vop2_enable() (Chaoyi Chen) > - Link to v1: https://lore.kernel.org/linux-rockchip/20261125204511.2867433-1-me@timsurber.de/ > [...] As previously discussed, I confirm that this solves the problem, and I also didn't notice any regressions during manual testing. In the meantime, I verified again on my ROCK 5B board with over 1K cycles of the reproducer script. Reviewed-by: Cristian Ciocaltea Tested-by: Cristian Ciocaltea