From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 04CEC2AD3C for ; Mon, 3 Aug 2026 09:35:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785749723; cv=none; b=IRcZiKnrQmSq8KzGAnso+HgYc4xKiq6iLXTo/Ns1pSsaiQlyVANW3EA2RkBfamtDTyqhDrAjAg6JRk0qn+qTdmz8m1UDSooiQOiZrrsi0ND4FkulcTHujGHjt+v7zqQ468RwRIfHsSA1mPfDlhRZUmFO26RBPSrlu+uFeZrXXv0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785749723; c=relaxed/simple; bh=pEhdubdwQhXLBA4KlTkM0Pj/hAXqDs67/ox0ZY9gVdI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=cjuIe+R2ZlKtEKogGW47Jm/iB4S2lcSD5f3nzLViz4kiMP/m+ACehq4mZNRMExB1x9cLFYEG2roiUp+FZxpGzc5PRIYn4ybd9QtJPVUKHqVwj97fMwPIMU9658bc6FwKrK+dGGdXVV2H42NrWhueh1LQcLww2PYXTIfwPlZIkXY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DshCaFom; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DshCaFom" Received: by smtp.kernel.org (Postfix) with ESMTPS id E5EAEC2BCF4; Mon, 3 Aug 2026 09:35:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1785749722; bh=pEhdubdwQhXLBA4KlTkM0Pj/hAXqDs67/ox0ZY9gVdI=; h=From:Date:Subject:To:Cc:Reply-To:From; b=DshCaFomi9EV93fQWqzCjCsSZ3LUkA2c7edji9d1dNk54BHaYdGq3cWMmbNlxlI4G fJUFudW8rudVBsC/cQngqoKmgRijQP7CBlRK/S3YP1ZUj3dTE6lUqtJVfQxbPuTZR2 PC8KN4PkWCB93dxXJQFLGsKpbn2oDs/2KtjTjKbaVbmlashDcd7bEKjEgd0ng18+SV IDmQ7uvyNTGliw2cV1mijA8G30dHGaTZvqEW2RztS6P37hLbUvKOzBk8YOwINTlSQM jCufC/0FTjG6m92UJ8+vUBtrhFRmKzHOEhTvaTIACB5z+LbiT995DXR8naV358OfIf yHhuKcb8q+IWQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3A26C5518E; Mon, 3 Aug 2026 09:35:21 +0000 (UTC) From: Markuss Broks via B4 Relay Date: Mon, 03 Aug 2026 12:35:20 +0300 Subject: [PATCH] drm/panfrost: add Mali-G68 support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260803-staging-mainline-v1-1-5071dc782149@gmail.com> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yXMQQ6CMBBG4auQWduktkDQqxgWLf7WMTqaDhASw t2tsvwW762kyAylc7VSxszKbyk4Hioa7kESDF+LyVnX2s56o2NILMm8AsuTBQYR3ampfWy9o5J 9Mm68/JeXfrdO8YFh/H1o276AUGJddAAAAA== X-Change-ID: 20260803-staging-mainline-ebe89543b632 To: Boris Brezillon , Rob Herring , Steven Price , =?utf-8?q?Adri=C3=A1n_Larumbe?= , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Markuss Broks X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785749721; l=2284; i=markuss.broks@gmail.com; s=20260803; h=from:subject:message-id; bh=zQVxjMJtITy41A+IcC52/FUWFw7jC+G0clbf2HLVuYM=; b=fvHu/gkWgO0W0WtruK/CG5K4YBiMRZZckWUWdyak5vKrg0BS2uBKssba19WFr1IG1XczflJjL uILvCc8Wf4aA/3q6+8GLRgj5IgqTY6hg4qoSMtqGanz9XaM4OhXSMRo X-Developer-Key: i=markuss.broks@gmail.com; a=ed25519; pk=oKzGUTm30BCDqinRMpiHQqByOx1mp2mwmhg80Mv7Zg4= X-Endpoint-Received: by B4 Relay for markuss.broks@gmail.com/20260803 with auth_id=911 X-Original-From: Markuss Broks Reply-To: markuss.broks@gmail.com From: Markuss Broks Add the features, issues, and ID for Mali-G68, a first-generation (v9) Valhall GPU. Tested on Exynos8835: the GPU reports GPU_ID 0x9204 (G68 r1p1). Signed-off-by: Markuss Broks --- drivers/gpu/drm/panfrost/panfrost_features.h | 2 ++ drivers/gpu/drm/panfrost/panfrost_gpu.c | 3 +++ drivers/gpu/drm/panfrost/panfrost_issues.h | 8 ++++++++ 3 files changed, 13 insertions(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_features.h b/drivers/gpu/drm/panfrost/panfrost_features.h index 52f9d69f6db9..34c65847192f 100644 --- a/drivers/gpu/drm/panfrost/panfrost_features.h +++ b/drivers/gpu/drm/panfrost/panfrost_features.h @@ -121,6 +121,8 @@ enum panfrost_hw_feature { BIT_ULL(HW_FEATURE_IDVS_GROUP_SIZE) | \ BIT_ULL(HW_FEATURE_CLEAN_ONLY_SAFE)) +#define hw_features_g68 hw_features_g57 + static inline bool panfrost_has_hw_feature(struct panfrost_device *pfdev, enum panfrost_hw_feature feat) { diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c b/drivers/gpu/drm/panfrost/panfrost_gpu.c index 7d555e63e21a..83223192a544 100644 --- a/drivers/gpu/drm/panfrost/panfrost_gpu.c +++ b/drivers/gpu/drm/panfrost/panfrost_gpu.c @@ -242,6 +242,9 @@ static const struct panfrost_model gpu_models[] = { /* MediaTek MT8188 Mali-G57 MC3 */ GPU_MODEL(g57, 0x9093, GPU_REV(g57, 0, 0)), + + GPU_MODEL(g68, 0x9004, + GPU_REV(g68, 1, 0), GPU_REV(g68, 1, 1)), {0}, }; diff --git a/drivers/gpu/drm/panfrost/panfrost_issues.h b/drivers/gpu/drm/panfrost/panfrost_issues.h index eb60cb83667a..dd39946bb572 100644 --- a/drivers/gpu/drm/panfrost/panfrost_issues.h +++ b/drivers/gpu/drm/panfrost/panfrost_issues.h @@ -265,6 +265,14 @@ enum panfrost_hw_issue { #define hw_issues_g57_r0p0 (\ BIT_ULL(HW_ISSUE_TTRX_3485)) +#define hw_issues_g68 (\ + BIT_ULL(HW_ISSUE_TTRX_2968_TTRX_3162)) + +#define hw_issues_g68_r1p0 (\ + BIT_ULL(HW_ISSUE_TTRX_3485)) + +#define hw_issues_g68_r1p1 0 + static inline bool panfrost_has_hw_issue(const struct panfrost_device *pfdev, enum panfrost_hw_issue issue) { --- base-commit: 415606a7be939835db9b0d6b711887586646346d change-id: 20260803-staging-mainline-ebe89543b632 Best regards, -- Markuss Broks