drm/rockchip: vop2: Convert to use maple tree register cache
authorMark Brown <broonie@kernel.org>
Sat, 30 Sep 2023 23:42:50 +0000 (01:42 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 9 Oct 2023 19:25:14 +0000 (21:25 +0200)
The maple tree register cache is based on a much more modern data structure
than the rbtree cache and makes optimisation choices which are probably
more appropriate for modern systems than those made by the rbtree cache.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231001-drm-rockchip-maple-v1-1-ca396ab75be7@kernel.org
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c

index 957e428..ec7e0e6 100644 (file)
@@ -2640,7 +2640,7 @@ static const struct regmap_config vop2_regmap_config = {
        .max_register   = 0x3000,
        .name           = "vop2",
        .volatile_table = &vop2_volatile_table,
-       .cache_type     = REGCACHE_RBTREE,
+       .cache_type     = REGCACHE_MAPLE,
 };
 
 static int vop2_bind(struct device *dev, struct device *master, void *data)