From nobody Sun Feb 8 18:24:22 2026 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 9D7FF30B53B for ; Tue, 27 Jan 2026 11:07:47 +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=1769512069; cv=none; b=iqccJYNhFjcMXlkTM2KmpA4qWjYWYcnlPCKUJMW5rNa59sfJxqUKZOdYyKi42EV7X0xApTHvm/gedh6PHLPC8uYnhnePNzKSgWTakahuKwgEBHu2SvUO/q5XMfmraw0NhHqneL6WJCQmutyFlzvLPCgKc3By/biuPxvIMj0sUVQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769512069; c=relaxed/simple; bh=rmT/s+cOzi3pw/n6F3MCZfXn7nwFRXYLfoJKyXntna4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LC8S7q0SzDQKdyXQm2LVkYBEH8b7M98fkC5uTm1grmeGK+jMKBDZMVcNVJRgc68gDlbmBnqUPOxcNlI/obV1dhI8oAWVp6+r/cFO9tSHekltqEpkh2GfgoElPY4Ki/nNbZsNqABQJOSms1u9tIG3n/+RjFpYvgn4rwBPM8bULtY= 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=Iw5MAVkR; 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="Iw5MAVkR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1769512065; bh=rmT/s+cOzi3pw/n6F3MCZfXn7nwFRXYLfoJKyXntna4=; h=From:To:Cc:Subject:Date:From; b=Iw5MAVkR9ItVY3EOdSmMG5ZC8rYEbyYb1rN26bWOTE67svLLUaKD/q3nUDQpvAsnN I75R2X4RqyAeHaJXW9rx55qLqVgW6ozFIw0AMVexJfcBftkL44uAek4oJSyb2lQrXb e55NdCA0XEXEBuGOuVSQh84GwA4994uQgIjLcOeHN87WRZV0nJ3nmrvtbQSbImLOHn iwgF+C7ki3UFmBpQxMNEtseaXzfwN/gp14Nni8xTi3X58n7T/Dw9tPA7Ylc6ivS800 E2x5AG5SEG+NmaC1c8TXdBgzikHmMXeMiL9WHvVnPmsHGTmWg2WkLM5s+gI+lSHyfd Q2OmcWSKidCoQ== Received: from debian-rockchip-rock5b-rk3588.. (unknown [90.168.160.154]) (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: nanokatze) by bali.collaboradmins.com (Postfix) with ESMTPSA id 1EA5317E10F8; Tue, 27 Jan 2026 12:07:45 +0100 (CET) From: Caterina Shablia To: David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Cc: kernel@collabora.com, Caterina Shablia , "Boris Brezillon" , "Steven Price" , "Liviu Dudau" , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] drm: add ARM interleaved 64k modifier Date: Tue, 27 Jan 2026 11:07:39 +0000 Message-ID: <20260127110740.473562-1-caterina.shablia@collabora.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This modifier is primarily intended to be used by panvk to implement sparse partially-resident images with better map and unmap performance, and no worse access performance, compared to implementing them in terms of U-interleaved. With this modifier, the plane is divided into 64k byte 1:1 or 2:1 -sided tiles. The 64k tiles are laid out linearly. Each 64k tile is divided into blocks of 16x16 texel blocks each, which themselves are laid out linearly within a 64k tile. Then within each such 16x16 block, texel blocks are laid out according to U order, similar to 16X16_BLOCK_U_INTERLEAVED. Unlike 16X16_BLOCK_U_INTERLEAVED, the layout does not depend on whether a format is compressed or not. The hardware features corresponding to this modifier are available starting with v10 (second gen Valhall.) The corresponding panvk MR can be found at: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38986 Previous patch: https://lists.freedesktop.org/archives/dri-devel/2026-January/546655.html Changes since v1: * Rewrite the description of the modifier to be hopefully unambiguous. Signed-off-by: Caterina Shablia Reviewed-by: Boris Brezillon Reviewed-by: Liviu Dudau --- include/uapi/drm/drm_fourcc.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index e527b24bd824..452f901513ad 100644 --- a/include/uapi/drm/drm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -1422,6 +1422,22 @@ drm_fourcc_canonicalize_nvidia_format_mod(__u64 modi= fier) #define DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED \ DRM_FORMAT_MOD_ARM_CODE(DRM_FORMAT_MOD_ARM_TYPE_MISC, 1ULL) =20 +/* + * ARM 64k interleaved modifier + * + * This is used by ARM Mali v10+ GPUs. With this modifier, the plane is di= vided + * into 64k byte 1:1 or 2:1 -sided tiles. The 64k tiles are laid out linea= rly. + * Each 64k tile is divided into blocks of 16x16 texel blocks, which are + * themselves laid out linearly within a 64k tile. Then within each 16x16 + * block, texel blocks are laid out according to U order, similar to + * 16X16_BLOCK_U_INTERLEAVED. + * + * Note that unlike 16X16_BLOCK_U_INTERLEAVED, the layout does not change + * depending on whether a format is compressed or not. + */ +#define DRM_FORMAT_MOD_ARM_INTERLEAVED_64K \ + DRM_FORMAT_MOD_ARM_CODE(DRM_FORMAT_MOD_ARM_TYPE_MISC, 2ULL) + /* * Allwinner tiled modifier * base-commit: f08f665f8cda9520d98ee24545d306a92f386616 --=20 2.47.3