From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8233E2192EB for ; Wed, 18 Jun 2025 20:42:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750279340; cv=none; b=mOXFzbPlMmZMlM7KXmcYB92/J6zpXPRL15tE9JmWABbXZQihYks196DrvNUk7+UaJSjUn4NvHD84avEeSuRtXXJxDyO5xloglonGYXxnPxnFnAfXs+/vhAcCxf91Pd6Ah/mv249MGo9jUGxBXxibri4hZyjv0rNVNOuda1QOb/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750279340; c=relaxed/simple; bh=RrTzIuJZscRbhh/CjusldBru8k0CaOx1pUifQ+uPFA4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=F8hoH/1hgevrm+d9V4yXjDEhjjWKn0vQCmx01gL++G28J7WSl0AQATCc7FBnx0+4nEffYiikI3kfFMCTV3EeRGZbgf2/JJzkhWhTLF2pj+GFVDogorVI55D7Ko5LmXd27OqeGsd5qzufD3sqWG+uKeGlLYW3DBXrwdFskNl7tno= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=Q2MUAcrF; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Q2MUAcrF" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1750279336; bh=RrTzIuJZscRbhh/CjusldBru8k0CaOx1pUifQ+uPFA4=; h=From:To:Cc:Subject:Date:From; b=Q2MUAcrF95+y4EJoGvW8cG6bDtcCywBFgEEy0h+PzsA5BgfOiEKexzCtg+Och5XfZ 7FCxyEZGZpjuaHjhRWUgpM+JrtzugOtfA66OpiAVAnQ6NKA9Bv0LNl8CauQE/1opP1 JI2k4V18yH35wj73PMTTvBuwSswFLgLUvv9eVXEmeMIYSzsh8M7HDNjUuQ1uLKW3iz 338W8B8bUOhRdWzGKTyKdOHjXUEBzGtD0EdXqO44Jo0Lrm6uvlzoaeqShbhEUW+mMw HROl/zQpMk4xBzdtUxiJVxwuNSAWWShuvRAfJ0DK2dK+r9L/mbevSQnPIwbs1rKoHZ RRKL7378ohQTA== Received: from localhost.localdomain (unknown [89.186.158.57]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: gerddie) by bali.collaboradmins.com (Postfix) with ESMTPSA id 169DA17E09BF; Wed, 18 Jun 2025 22:42:16 +0200 (CEST) From: Gert Wollny To: Lucas Stach , Russell King , Christian Gmeiner Cc: etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: drm/etnaviv: Add support for running a PPU flop reset Date: Wed, 18 Jun 2025 22:43:28 +0200 Message-ID: <20250618204400.21808-1-gert.wollny@collabora.com> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Dear all, this is the second version of the patches to add a PPU flop reset to drm/etnaviv. The first version of the series was send as an RFC to etnaviv@lists.freedesktop.org only. This series adds running the PPU flop reset which is required for some hardware. This implementation was tested with the STM vendor kernel based on linux-6.6.48 that is provided with https://github.com/STMicroelectronics/oe-manifest/ Release: openstlinux-6.6-yocto-scarthgap-mpu-v25.04.30 The command stream is based on the stream that is emitted in the acccording code of the galcore kernel. Since I have only a stm32mp257f-ev1 board t test this for all parts that are emitted conditionally in the galcore kernel only the part that is required for this board is submitted here. Changes since v1 (RFC): - clean up some code according to comments by Lucas, - move the ppu flop reset data into drm_private as suggested by Lucas - initialize flop reset data only once if any GPU needs it, For this is was also required to move the identification of the hardware to etnaviv_gpu_bind, - move VIVS_ definitions out of etnaviv_flop_reset.c, - add a module parameter that makes it possible to force running the PPU flop reset. Thanks for any comments, Gert