From nobody Thu Dec 18 10:00:38 2025 Received: from ssh248.corpemail.net (ssh248.corpemail.net [210.51.61.248]) (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 41BC0204691; Wed, 12 Feb 2025 07:52:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.61.248 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739346759; cv=none; b=ng2DtqM6SMHiRVsgGpCFe6Ti+mtT6rV5CsyPSyrKxsSbJjHE+PK0WStf10Yi4D2H1CyPM5xmRPG9UKfIzCUFKoaO8/1u+lWitNQ1PA49kNMXOxn4a7TgvmlS3tA0Zhv10iAtaUCdHf+zoq7MfCADy9tGzf7Cp/JtnuGN37wJ0v0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739346759; c=relaxed/simple; bh=vdMCZmMwLvojqlQevhSCmfhyYF28/13RA6CgmxUc/3I=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=P4py+rEnOETwu19FK3FXlVNxtijL6VRK2CjuXKbfHBm+Vy2H9hRpqrWruP/QVWPTnWlB9MZ9N3g7dst0G7nzg4ao6W4FCa+s9YxTVb+aFyTwkBuGiRgCX0niRVlHQQMlx6bj5ByvI9t+cotZEjSQpt8ldbjIgfRilDqfFPSC1Jg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com; spf=pass smtp.mailfrom=inspur.com; arc=none smtp.client-ip=210.51.61.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inspur.com Received: from ssh248.corpemail.net by ssh248.corpemail.net ((D)) with ASMTP (SSL) id JZM00029; Wed, 12 Feb 2025 15:52:29 +0800 Received: from localhost.localdomain (10.94.15.56) by jtjnmail201609.home.langchao.com (10.100.2.9) with Microsoft SMTP Server id 15.1.2507.39; Wed, 12 Feb 2025 15:52:30 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH 1/4] iio: accel: msa311: convert to use maple tree register cache Date: Wed, 12 Feb 2025 02:52:20 -0500 Message-ID: <20250212075223.4164-2-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20250212075223.4164-1-liubo03@inspur.com> References: <20250212075223.4164-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 20252121552292362f648069df6e783a35677e747e940 X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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: Bo Liu --- drivers/iio/accel/msa311.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/msa311.c b/drivers/iio/accel/msa311.c index e7fb860f3233..fe4c32a9558a 100644 --- a/drivers/iio/accel/msa311.c +++ b/drivers/iio/accel/msa311.c @@ -332,7 +332,7 @@ static const struct regmap_config msa311_regmap_config = =3D { .wr_table =3D &msa311_writeable_table, .rd_table =3D &msa311_readable_table, .volatile_table =3D &msa311_volatile_table, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 #define MSA311_GENMASK(field) ({ \ --=20 2.31.1 From nobody Thu Dec 18 10:00:38 2025 Received: from ssh248.corpemail.net (ssh248.corpemail.net [210.51.61.248]) (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 CAFC91E47B4; Wed, 12 Feb 2025 07:52:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.61.248 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739346758; cv=none; b=g99BfeKha0vqWY4kAS2NxpvPU6vWy2zYJOJIw9ZhaiT5KyvV18a5QYtN6fEEPddM89T/HESmx00/m4lpipZ0pttQ2900z5KuvaggKXkS1bCip2uvHw8eDgxkTQxyOZJNk4uKh0A5kGNrqIFMpHaWprf35XDejm9lntO6XXRh/nE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739346758; c=relaxed/simple; bh=SYspyQSNBGb/WGFO6iGgh16RmnUcKmnlPNY/pj+oXAw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=b1Vk2t5LqSVXjwY5R+qpPP8gGf4P7GuCsBIDQyUdLgt0kJEEHb104IqAxgbbmYgPmaJXDiTljw5rBhstvIEefOwk7Yudnt9afDSp87ya7MOUnEZFuzz/VLeS0jrJzxTlW1Lzmjc9OV/v95a1ZizqVNtx9+Gkrk/6i9/rz20mqFQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com; spf=pass smtp.mailfrom=inspur.com; arc=none smtp.client-ip=210.51.61.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inspur.com Received: from ssh248.corpemail.net by ssh248.corpemail.net ((D)) with ASMTP (SSL) id JZM00030; Wed, 12 Feb 2025 15:52:30 +0800 Received: from localhost.localdomain (10.94.15.56) by jtjnmail201609.home.langchao.com (10.100.2.9) with Microsoft SMTP Server id 15.1.2507.39; Wed, 12 Feb 2025 15:52:31 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH 2/4] iio: accel: bma400: convert to use maple tree register cache Date: Wed, 12 Feb 2025 02:52:21 -0500 Message-ID: <20250212075223.4164-3-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20250212075223.4164-1-liubo03@inspur.com> References: <20250212075223.4164-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 2025212155230d3cb15f5a794ef806036e1ea2d261c20 X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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: Bo Liu --- drivers/iio/accel/bma400_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/bma400_core.c b/drivers/iio/accel/bma400_cor= e.c index ae806ed60271..23f5e1ce9cc4 100644 --- a/drivers/iio/accel/bma400_core.c +++ b/drivers/iio/accel/bma400_core.c @@ -190,7 +190,7 @@ const struct regmap_config bma400_regmap_config =3D { .reg_bits =3D 8, .val_bits =3D 8, .max_register =3D BMA400_CMD_REG, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .writeable_reg =3D bma400_is_writable_reg, .volatile_reg =3D bma400_is_volatile_reg, }; --=20 2.31.1 From nobody Thu Dec 18 10:00:38 2025 Received: from ssh248.corpemail.net (ssh248.corpemail.net [210.51.61.248]) (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 B459F1DACB1; Wed, 12 Feb 2025 07:52:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.61.248 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739346760; cv=none; b=iOr4xTIVmSuVReRz7zohHmowh5W5flN+cV+6J6VroCCZcpqoDLojdsX8oUHQNJqkBalSBS+ln26CwZvQyM6ykfQmW2qU7hm/4AgqKJ3raUGseCvhPB6vm6pKq0sGRxuPNFQI10jV09UkmRc0QZ2iRCegcAJaxZ864ICxqKpUypE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739346760; c=relaxed/simple; bh=pabkowy5KiKUWx2QVW0U0p9gAJRVu2PeEwkOYWY0Am8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=V7LJhIjFnxAy8ySNyQlUQo5m5WrgUE55C3zzef4jr46AXUmniWdzcnR/UcejSuN0Fe8fIScxDj+cWzfR/1M0w69G1VDyoolK4PWqG2xwV6jRA7FXyb58jZ65S9MjtbGDxZ9AYpSvUr7iwdPXtxLXXiLiffwC6LyF/xe6pWf7IzU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com; spf=pass smtp.mailfrom=inspur.com; arc=none smtp.client-ip=210.51.61.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inspur.com Received: from ssh248.corpemail.net by ssh248.corpemail.net ((D)) with ASMTP (SSL) id JZM00031; Wed, 12 Feb 2025 15:52:31 +0800 Received: from localhost.localdomain (10.94.15.56) by jtjnmail201609.home.langchao.com (10.100.2.9) with Microsoft SMTP Server id 15.1.2507.39; Wed, 12 Feb 2025 15:52:32 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH 3/4] iio: accel: bmi088: convert to use maple tree register cache Date: Wed, 12 Feb 2025 02:52:22 -0500 Message-ID: <20250212075223.4164-4-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20250212075223.4164-1-liubo03@inspur.com> References: <20250212075223.4164-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 2025212155231c962a82b6baf20fb70618002098192f4 X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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: Bo Liu --- drivers/iio/accel/bmi088-accel-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/bmi088-accel-core.c b/drivers/iio/accel/bmi0= 88-accel-core.c index 9206fbdbf520..36e5d06ffd33 100644 --- a/drivers/iio/accel/bmi088-accel-core.c +++ b/drivers/iio/accel/bmi088-accel-core.c @@ -145,7 +145,7 @@ const struct regmap_config bmi088_regmap_conf =3D { .val_bits =3D 8, .max_register =3D 0x7E, .volatile_table =3D &bmi088_volatile_table, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; EXPORT_SYMBOL_NS_GPL(bmi088_regmap_conf, "IIO_BMI088"); =20 --=20 2.31.1 From nobody Thu Dec 18 10:00:38 2025 Received: from ssh248.corpemail.net (ssh248.corpemail.net [210.51.61.248]) (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 2C803204C29; Wed, 12 Feb 2025 07:52:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.61.248 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739346761; cv=none; b=CYsdQ8ODAa3rgDmwymiVpw8GRJ0RqTq1WsEQgRZR3iFH/agw2DRQxDGoWVp/tkum6fuLZTcLb39B5Euo3iVyriJ6ZdKC76S+zdQWcvX+i41BfadM0xuJWce9jinCr0ssTGMV/cI7pP3H0RaKfAwaGKOM8RwYX9HQS1NjIUEuAZ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739346761; c=relaxed/simple; bh=TnbBYhm8H1OhuDao0dJq2j9mGUrhsIFx/IZfBsY2Hdc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=R/6u+2acQLm+K3Si8Zrk0yv5MOEAWJQz8lmJbKjL8696VxYUGQi2Hn0HBjYWIzsMP2l2dsweJpl0K+iOwqHbOwyDj6vuz3zWBRD7pkxh/6eZqMt0MvIQfGYA2yQFajSUrPw8DlskhyMSGkik4b6GdNne3O+sYyLU3JkFAHZHBCs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com; spf=pass smtp.mailfrom=inspur.com; arc=none smtp.client-ip=210.51.61.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inspur.com Received: from ssh248.corpemail.net by ssh248.corpemail.net ((D)) with ASMTP (SSL) id JZM00131; Wed, 12 Feb 2025 15:52:31 +0800 Received: from localhost.localdomain (10.94.15.56) by jtjnmail201609.home.langchao.com (10.100.2.9) with Microsoft SMTP Server id 15.1.2507.39; Wed, 12 Feb 2025 15:52:33 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH 4/4] iio: accel: kx022a: convert to use maple tree register cache Date: Wed, 12 Feb 2025 02:52:23 -0500 Message-ID: <20250212075223.4164-5-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20250212075223.4164-1-liubo03@inspur.com> References: <20250212075223.4164-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 2025212155231c962a82b6baf20fb70618002098192f4 X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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: Bo Liu Acked-by: Matti Vaittinen --- drivers/iio/accel/kionix-kx022a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/accel/kionix-kx022a.c b/drivers/iio/accel/kionix-k= x022a.c index 5aeb3b951ac5..3a56ab00791a 100644 --- a/drivers/iio/accel/kionix-kx022a.c +++ b/drivers/iio/accel/kionix-kx022a.c @@ -149,7 +149,7 @@ static const struct regmap_config kx022a_regmap_config = =3D { .rd_noinc_table =3D &kx022a_nir_regs, .precious_table =3D &kx022a_precious_regs, .max_register =3D KX022A_MAX_REGISTER, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 /* Regmap configs kx132 */ @@ -260,7 +260,7 @@ static const struct regmap_config kx132_regmap_config = =3D { .rd_noinc_table =3D &kx132_nir_regs, .precious_table =3D &kx132_precious_regs, .max_register =3D KX132_MAX_REGISTER, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 struct kx022a_data { --=20 2.31.1