From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=139.150.92.17 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793943744; b=cl9iFo9iNmQFfaqvi2g8E0thQxuUJG1vMEcm5fcrB2WUP31b6Xk2ydg1mOCXxIUBb2Ou 7Uw8VFDIufGk5qEnYLPZoOXm3drc12NoptR7aty3MGo1/kmLKuNQgq9S4kLm00vX2CWyu +pH8sSOZbJUJVGWZejPtcVztAgmXZci467bi5xxA49Ys8RDTeQkgfLderP06VQZdHDJgg abcOmATCPe72hM1aIyYqYO8nYJmt+tOnDYv5M/lHap9l/WrJY5lxOVSBnp5qEtcwT/AZq 6qKifoGlVGDncRV6TtKOuSBvLiT7WRQbEGGwEEGzWAdd8zR3s7Yam7dVBug40zhlQvQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793943744; h=DMARC-Filter:Received:Received:Received:X-Authinfo: X-Hiworks-Remote-IP:X-Hiworks-User:X-MailFrom-INFO:Received:From:To: Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=7dLO/fRvE4k7/pK3hVg6YTkI/u7wKTkCu9vr+nYP9Aw=; b=4ChntUaVjTrkVvQ1IhT7lH/RyorWZYUtIOOHKfIgRp1cMzXY0ylOpYjlEqcsCELhKPYD 0Uc6cVkLYYKA2OCo1fxah34uPnG+y3yRXJnqh0JOn3Yp5D3AEnF7ualuZHrt4IIlYMiH8 KxSXVUZPN8Xpq4vDWzIrbtVXFntNMTbN8FsXHmgYgfCPOSiikimNaEzRcp3MTTaqrHsjN 5pxm0s84qhuLuaX6/amk58zDPdCwUplbLKg9CVbKyDRbEJNlmsOrHRQ/C+vvbuoY9oxSG zxpZrwu34kPx1mwRxNhGJ2oIkevQ/q1RD7en6zuXiFZw3cz1dP/RMssw28Vu24yMmlQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=nirvanahyj.com; spf=pass smtp.mailfrom=nirvanahyj.com; arc=none smtp.remote-ip=139.150.92.17 Received: from smtp92-17.hiworks.co.kr (smtp92-17.hiworks.co.kr [139.150.92.17]) (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 E037E606A329 for ; Fri, 6 Nov 2026 05:42:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E037E606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nirvanahyj.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nirvanahyj.com Received: from hi-smtp-node4 (unknown [172.18.0.2]) by smtp92-17.hiworks.co.kr (Postfix) with ESMTPS id 4jLSjw6xjNzkVNhm for ; Fri, 6 Nov 2026 14:42:12 +0900 (KST) Received: from hi-smtp-node1 (unknown [192.168.71.167]) by hi-smtp-node4 (Postfix) with ESMTP id 4jLSjw6XFCzQLCTW for ; Fri, 6 Nov 2026 14:42:12 +0900 (KST) Received: from hi-total-node5 (amphora-3294b420-308a-4b9e-8a1d-bf25580dae1f.openstack.gabia.io) by hi-smtp-node1 with ESMTP id j6xduhjy5ogo4b7r; Fri, 06 Nov 2026 14:42:12 +0900 (KST) X-Authinfo: HIWORKS SMTP authenticated X-Hiworks-Remote-IP: 114.203.237.180 X-Hiworks-User: (SASL_USER) nirvanah@nirvanahyj.com X-MailFrom-INFO: Received: from localhost.localdomain (unknown [114.203.237.180]) (Authenticated sender: nirvanah@nirvanahyj.com) by hi-total-node5 (Postfix) with ESMTPSA id 4jLSjt5KQTzSqYc4; Fri, 6 Nov 2026 14:42:10 +0900 (KST) From: Young-Jun Hong To: Cc: =?UTF-8?q?Adri=C3=A1n=20Larumbe?= , Alexey Sheplyakov , Alim Akhtar , Boris Brezillon , Brian Masney , Chanwoo Choi , David Airlie , dri-devel@lists.freedesktop.org, iommu@lists.linux.dev, Jerome Brunet , "Joerg Roedel (AMD)" , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Maarten Lankhorst , Maxime Ripard , Peter Griffin , Rob Herring , Robin Murphy , Simona Vetter , Stephen Boyd , Steven Price , Sylwester Nawrocki , Thomas Zimmermann , "Vadim V. Vlasov" , Will Deacon Subject: [PATCH 0/4] Exynos 5422: Mali-T628 GPU compute fixes Date: Fri, 6 Nov 2026 14:41:47 +0900 Message-ID: <20261106054210.2893230-1-nirvanah@nirvanahyj.com> X-Mailer: git-send-email 2.47.3 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit These patches make the Mali-T628 MP6 GPU of the Exynos 5422 (Samsung ARTIK 10, also Odroid-XU3/XU4) usable for OpenCL compute with panfrost and Mesa Rusticl. They touch three subsystems and can be taken independently: 1/4 iommu: the GPU is not cache coherent on this SoC; its LPAE page tables must use inner shareable, or the first large GPU buffer after boot hangs the SoC. 2/4 clk: VPLL rates for GPU operating points above 600 MHz. The ARTIK 10 device tree is not in mainline, and the mainline 5422 boards stop at 600 MHz; they can use these rates once higher OPPs are added. 3/4 drm/panfrost: the job affinity names only the shader cores that are powered. 4/4 drm/panfrost (RFC): power both core groups and let a job opt in to all of them; the L2 caches of the two groups are not coherent, so the default stays on the first group. 1-3 were tested on the board (Linux 6.12.55 based) and cross-compiled on 7.4-rc1. 4 is compile-tested on 7.4-rc1; the same logic, ported to the board's 6.12-based panfrost module, was tested with the matching Mesa change: jobs without the flag stay on the first group, jobs that opt in use all six cores, and global atomics stay correct. Background, test programs and results: https://github.com/nirvanahyj-com/mali-t628-opencl/tree/v1 The analysis, the code and the changelogs were produced with Claude Code (Anthropic), a coding assistant. Young-Jun Hong (4): iommu/io-pgtable-arm: use inner shareable for Mali LPAE on a non-coherent GPU clk: samsung: exynos5420: add VPLL rates for 650, 700 and 750 MHz drm/panfrost: only put powered shader cores in the job affinity drm/panfrost: let jobs opt in to all core groups drivers/clk/samsung/clk-exynos5420.c | 3 +++ drivers/gpu/drm/panfrost/panfrost_drv.c | 7 ++++++- drivers/gpu/drm/panfrost/panfrost_gpu.c | 25 +++++++++++++++---------- drivers/gpu/drm/panfrost/panfrost_gpu.h | 2 ++ drivers/gpu/drm/panfrost/panfrost_job.c | 10 ++++++---- drivers/iommu/io-pgtable-arm.c | 7 +++++++ include/uapi/drm/panfrost_drm.h | 10 ++++++++++ 7 files changed, 49 insertions(+), 15 deletions(-) -- 2.47.3