From nobody Sat Nov 23 18:17:06 2024 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 41CE61AA788; Mon, 11 Nov 2024 18:48:07 +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=1731350888; cv=none; b=p6tvhc8xW2yVrJ11vlLe6cjfjw5r47M3QJDvwn4qj1ZyXEiSi5lZSrdqKnjEP4bUiNrp0laH/FpWZuztNxa/4p2Ze+MlGizD5ZKcVOsCm3Ys2LaXw4f/uw1qGR7Mh9rOUZ66sfpruw2JEt3/9kNrRBxnYcnZwpew34LBWDKc5cU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350888; c=relaxed/simple; bh=fzuZds5l63O/35wZQk4QdpDVZpbfKI/IfiqOwle8YCs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=p8qBLgNcLB25ksUA+zAvEjGnihhAd6KzUSrJqK/UM9N8B+HBdCyA9+svtWzlKIHXinnir39+nBq9xouGnbUb71frdiCiTh0wLgzCzbB9LnephRyQxLW0o3eTsEptWed44erYNbn9mbb5GAqjjDZgQkDTxP8DxI8hHpdU5GnnbQY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YRYPpVyn; 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="YRYPpVyn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8B37C4CED4; Mon, 11 Nov 2024 18:48:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350887; bh=fzuZds5l63O/35wZQk4QdpDVZpbfKI/IfiqOwle8YCs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=YRYPpVynY3JhstfPC92DDvg2AR/o+7gwL5VBogjAbHlA5RA/dwjABxcDTMhXuoQGM u2Ed5NUy7IJNkop/BScRZG4ULPhvtlPl5J7CnqWzL/yQY5omnzz87Yc2UGgWN/5vwg rMasYJx6p6BlpbRV4v8/PW0fB4j4uaHxsYCkZ5H38AHA0a0KmtVUGzGA8tcbEyS57E bY52+6YGK/pamxS9f8qq/DHu0Ez/JKGGtxuZ94Ti03dUFeFy89ygumnVd1I4VUbr4q YfEb6J5yQa2QLA0Y1amuieCMhr4B2Rm+tV8qDr+DCwV68hyTMUWPXBqn2F8uI/EBsg dI/ZDsb6X/6kw== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:33 +0000 Subject: [PATCH 01/17] ASoC: max98088: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-1-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=922; i=broonie@kernel.org; h=from:subject:message-id; bh=fzuZds5l63O/35wZQk4QdpDVZpbfKI/IfiqOwle8YCs=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFYPEBRPKygLxSOjRklQz21v2wLSsuPHSG4L 9ZOrNSQEtqJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRWAAKCRAk1otyXVSH 0BnWB/kBgml3U6ok4mRKSSvrpPPvukqFHYsOYLy5s6bDk4YBBQIGoMfhTWlWdKGV9E4AjBw2hRj Wa/g0gkJVAr9VPgItNDHWTJKtCwydrs6OXTmd+sSgelp+SqPBkcuPx/U7A6dJNbQqsPuwBU4mG1 rtpp5cB5zgYTWZS8wNLbilU/bC8UNzP1MnGyyC0zu99ThqS8sZgavukWFNwZvjRgGG7EH6almEx Uwnrqgd52dHabg7TIbT3dxUbWtWvYfltneep1iWv85Wbxakn74MAHDd6xFKDsa6PnTluzhlehrE 0X/IUqO6jRljCZqHkQU8K+e2mSiw8RS7Wy8PGJKX2rGAZuTq X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max98088.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c index 8b0645c63462070d6d584c7d43d96d21f3dd6cfb..4fa47347111247dc74a90b531df= be3c19e36dc59 100644 --- a/sound/soc/codecs/max98088.c +++ b/sound/soc/codecs/max98088.c @@ -301,7 +301,7 @@ static const struct regmap_config max98088_regmap =3D { =20 .reg_defaults =3D max98088_reg, .num_reg_defaults =3D ARRAY_SIZE(max98088_reg), - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 /* --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 38B071AB6C7; Mon, 11 Nov 2024 18:48:09 +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=1731350889; cv=none; b=ZzIkBQbn7y14WK86fIQWketjUBjrxhLQ+GoGfozTEedmUh23b0CU1n6dB94vbh+9W3KtTr3MSP3HwPtjFedxmIDEJ44Rg0uINjwwHAjAHs+kT7h8SHJOz5wfwUIFA/E10tGu8DmIu9o5+XeDub5iaOiprkypa/sbIMx5shvrI1U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350889; c=relaxed/simple; bh=w+FPXJJpCTiI1mxu9iw6K7a7RbAeN/EuOkZsEADJhaM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lrIwRRfqUefzd+GkY7nzndwiQcTtpwC3o3Lk/+H6EBQ0LJgWGSywtXIsByKUXhX4/qehVifIfMtTHZXVIDyweiE8WdNhP5PFZ6ltgOQl8/RXm8AQz+w8NC62TtMjjq1Vo6vKz9VGSLHL2c8vvAAnZLzSYLnQF14d3jPqot7JE4I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ljTTbi+r; 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="ljTTbi+r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28DF3C4CECF; Mon, 11 Nov 2024 18:48:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350889; bh=w+FPXJJpCTiI1mxu9iw6K7a7RbAeN/EuOkZsEADJhaM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ljTTbi+r1KgTwLkTQXWv0wQpSu54iZyk2i01CBfhUU7PVgY+gQhwTSaz02YpyznI6 V1VtRCk/LfncZijWpxEtpBJ5PrdtGji4RFEX02P77bS5PKCsb1HZazTt9aWfQoRIeU rV6xSBQUzFe6BqjWLqWHgPVSt+t6UTFQBzAxMQlR16tYBBGlMrYRmqynjtR0IJK2la JTmAhZeh7tuiERgo2XV5h33/O6SqjVijG+O57F4NTBIqP7ZS3bzowNakgPUDvSsnr0 IB7UB3kKpSOvTWPvvyV/QUl1pM1RAY/vcgrcrUP5VDZNu5jGdxEdJVQkd1qsCqhy1+ BUbeypU0ALAbQ== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:34 +0000 Subject: [PATCH 02/17] ASoC: max98095: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-2-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1035; i=broonie@kernel.org; h=from:subject:message-id; bh=w+FPXJJpCTiI1mxu9iw6K7a7RbAeN/EuOkZsEADJhaM=; b=owGbwMvMwMWocq27KDak/QLjabUkhnSjwIjDT35khMtZpdtndMZxpv2+Vhdarc2nVyXLbi0ja 2J/0b+T0ZiFgZGLQVZMkWXts4xV6eESW+c/mv8KZhArE8gUBi5OAZjIigXs/x3vndH9LldpLan3 9cWMtUdD2+359txPv7Zfv81WKKWBs8anTs75VZbBroQncfVtUTYumsURKsKrHmkfcZzDLqfY6PI h4Knfgmu+mjJtagoXtbR8dNdYa/m5Xk7TPfRMJaBh0s+Yo7HFzFem3hd6c2bu2gNTk3buecp6/Z 94dN3l7TO03124FOUV9cKwbfJ8J0VhwQS9adNc9MSczsVtY3whyu1tEJOyun9awG+2uQ55IT9VL abPqGB4768pNWFXyjGHbR9LN/BeyP7B/sbjz+Kyhm0qco/vVHmb5r24pFPJeunpuvnOQu/WxM9d uXHDncP3+F12ZewI2a6+ufx/X2hSd+d7rkTWyng7xzfrAA== X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max98090.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index 2adf744c652634a1539f7c20ca9102e5e8768b01..0454cea0fb13272434a7ed7d023= bf519c8a00607 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -2530,7 +2530,7 @@ static const struct regmap_config max98090_regmap =3D= { .num_reg_defaults =3D ARRAY_SIZE(max98090_reg), .volatile_reg =3D max98090_volatile_register, .readable_reg =3D max98090_readable_register, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static const struct i2c_device_id max98090_i2c_id[] =3D { --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 00F081ADFE8; Mon, 11 Nov 2024 18:48:10 +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=1731350891; cv=none; b=k/B1mjr8RQGZzhCF3D+bAATtlatGXW4/wwkvFxXwONlX8nrQxsFmGiasCO8nOhIfqW/fo8RcjaMLYiqj+BFnsWUm9T1GnG0+UvvNw5WcfEcoTH+We8fPFQwhKcLNDqgQe7097YN2Vlnw2WLpEMpEIpIqRpedF6XIcvscDuiOvV8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350891; c=relaxed/simple; bh=LORot0VvayhT+ehE0LyJo3cBiGvj959ER97bGj7zf6w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dtZipK0+wt2cuThsNWq9+XM6SJ6IAIgndMhsbXX4ihagBxstVthlKls8cOisUGlK9IJhsDR6YZV9gbGJUiy8Rywu9u+ZKpIPZVi0BDPFRd2Ywstd3KlziSEclaFCYM8JqDy0lOuIzTfkTnGC8k8oS5BBJD6r9xC+NoBQEivrZdM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rvU0ytRA; 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="rvU0ytRA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AEEEC4CED5; Mon, 11 Nov 2024 18:48:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350890; bh=LORot0VvayhT+ehE0LyJo3cBiGvj959ER97bGj7zf6w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=rvU0ytRABdsO2cIRPM5/p6JbkE9djik47cWwvgTfPmy3yDSWgV9grPMEws1EQWW28 8diJfbdmsctdPTaK+o2qdrZ+Oj0XbbIYGooH2R042+GaRuVwLNrsuGi9Po+3HRoRgQ sJFajBCJfyMN1jmcuOi1ZCuaolpyqki8y3tEVcozzcEnolGkQss0A7ng2C/gVqda1S n5ksnXe0I1PdrKtU4LkJcDOX41qk+J2a05q/RecWKwSQH5mSwRzphWRODfXvgAJRlR wHW4bj8clnYJ66b1KHq7lr/5EjvdiZvgyX80LHKqNC8jmKkWehBK0RLG9iTuJGG1k5 YmC8HzxAgkMiQ== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:35 +0000 Subject: [PATCH 03/17] ASoC: max98095: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-3-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1033; i=broonie@kernel.org; h=from:subject:message-id; bh=LORot0VvayhT+ehE0LyJo3cBiGvj959ER97bGj7zf6w=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFZpPP9SxN7a4yscYzFjGyoKPLcjGK0wHkOZ HiVebewIVeJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRWQAKCRAk1otyXVSH 0J+QB/4thGEwLTip9KtTcsxnd8XG95TdEpwRuyD0fB/WuioMl/7f14NU6f3Pd3M2m7TQgpmRKBY rVFwsLAhAXAKMXntuANxqJRr0lAfNAImPQKvsGtgW7Y35dWzah+FvRWkfEB2eQlJBNoYlC0sKfy PJ3kl/Y2U+0+PsvutR7z9QrQq7jJkNM/SzeF0Ep5PQyvalOhSZTpjtx5gs9yH9rLPvlZefAa0aX fSKu8wmFTU93HwNQ8Q9bA+eE2iMPSp6CgraO/mXSPS7PbhKs3bzEE3YRVjzEeyyx2jquXgSauMP nWj/eOyOBRDdMngyG9oh9Xl7szm6FHFBYUV3tCRfsbYVrWTA X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max98095.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98095.c b/sound/soc/codecs/max98095.c index 7e525d49328d2e2ddb21c60ad4af91a9f92ec4bd..6f492ba8ebb4e7c9a4c58e8c0ff= 091eef72103b1 100644 --- a/sound/soc/codecs/max98095.c +++ b/sound/soc/codecs/max98095.c @@ -238,7 +238,7 @@ static const struct regmap_config max98095_regmap =3D { .reg_defaults =3D max98095_reg_def, .num_reg_defaults =3D ARRAY_SIZE(max98095_reg_def), .max_register =3D M98095_0FF_REV_ID, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, =20 .readable_reg =3D max98095_readable, .writeable_reg =3D max98095_writeable, --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 40BC31B4F07; Mon, 11 Nov 2024 18:48:11 +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=1731350892; cv=none; b=Sk2gv1MoZQc0qWqiLlOYP/jJxtl1blT7AuIL+pSZ2fjLkWXBAnA20mJwo5m22Qx0EozjEPm0ImukttZNBSOORL98QZlAbZzVtWJz0rfr51vFbqdQtGRUt34mIQotlCyywGU4inv6kdUGvtF48woF/4IOzb4xYKVWQdxOT15Z8KU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350892; c=relaxed/simple; bh=yZmvs72JMY4eSHLvqTqyVitaqpycTPD6SJgB3sKvS7M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rIF8MvVo8XPabg7F6fx9GiQ/8TRAhPT59a2clximLk41Yp7Zs/Psdfaexu/b6KiQ1QM4TXEaM1E3nmxSUvrwKhMZcpLrNr3MW9Km7HaFF8kCH/NWVokcyjRvWibt1/twEmhG1MPmDJJFINH+pyTtSB3FU2jEfGLuL9FcuTBGJPs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XwcbDg4W; 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="XwcbDg4W" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E012DC4CED8; Mon, 11 Nov 2024 18:48:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350891; bh=yZmvs72JMY4eSHLvqTqyVitaqpycTPD6SJgB3sKvS7M=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=XwcbDg4WskA63o0c8ROVVbsRPcTi4iRHJIbFqsEBYt5MFt7f2njX2ITqn52wkaf+w DvQVR1WWKhrh8Z3c5o0wExfRecMiFSOrP/WmfQNWhY5JZEfAmkdYhdaLWTQpEoCc+J IwhMPJ7vQfWBTfZVjc3ZnamyXxBXsrt9csJ52wRanCvRn2sYGhKkVNQMulxTVGZYpa pXsuJcRmK1E0UG44HYvSMrFnZ5MJqerQ0jw8KEhEgiCnrNirBglDic5gzomHrJf2Jw o0IP1U77rvLPNzmJTaSe0csu1pGrpq00Ov6g53wArfUa+3+dzIPJdHoqGuhtHQMZli I/hup9RjbwEnA== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:36 +0000 Subject: [PATCH 04/17] ASoC: max98363: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-4-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1026; i=broonie@kernel.org; h=from:subject:message-id; bh=yZmvs72JMY4eSHLvqTqyVitaqpycTPD6SJgB3sKvS7M=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFaRocN7TGcVl7TbsOhP9BFxcQ58yCOSUDrE fjJB+qbzoKJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRWgAKCRAk1otyXVSH 0BnSB/wNFiSKqNv2CgsL2h+YI4tCzZJRDxlzcpzl7mDb57rNQv6EyjN4SH854WJnmjiKxpBqn93 hJxzWuzWs/B1uRhGZMBQbJ8HQFZNrOK0oRl0wdkyInib9Rg8UpbP69apjEoJdeLcK182jccDjmr K4uB2mg7grt9LRjJjeWKmjEabOBJxdYNUOrGnwp6z3PtI5/qvDvbpGePTcJTwp2FNrBxU5G16A4 Fa8gqCpyDNgLRDBhNYctMtYh9i8XSyAfEnLsNLFPtLMQdvvZpUptLZ+GnF5Gq5mytAWpht8fbZg pP5FdobMmUIxamp1+yYZWej8tJ86XmpRiY5Pa2p/II1WCEr2 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max98363.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98363.c b/sound/soc/codecs/max98363.c index 950105e5bffdc2c7606e10e7af6f3cf97ece5b4c..af50ccb1d8dea69446d03f0dce9= 93241ffa89098 100644 --- a/sound/soc/codecs/max98363.c +++ b/sound/soc/codecs/max98363.c @@ -69,7 +69,7 @@ static const struct regmap_config max98363_sdw_regmap =3D= { .num_reg_defaults =3D ARRAY_SIZE(max98363_reg), .readable_reg =3D max98363_readable_register, .volatile_reg =3D max98363_volatile_reg, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .use_single_read =3D true, .use_single_write =3D true, }; --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 B75991B85C1; Mon, 11 Nov 2024 18:48:13 +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=1731350893; cv=none; b=e7m2bRfz/90clWfq2cxwGJO287pxRoN7cMFXSxSIYZyIUyOLMulDOZoqfMl2VLPJXRqZs8zyFAm/5jX5d7JJD2IhTsqjii6RITIk0YUhIjHkimaeE77zFBnx99nwOAWMIjSa5bg1DQMBtaMyYFwTDtHWUhM0IYV6ybDs8sLdAJw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350893; c=relaxed/simple; bh=NmuyRa9uhWU3ZTAuPcy1hh1G475jgsgt++UPzNyes3o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Vs+i4jJJpBfczYkdvNimqT9J668fjJVUhgkupaMeh8v6QetHde6fzQGZypVd0lyrsoGTcxfxRD1OYLDSSnF3w3qedlyS79kRtPAU5KeYX2hXKH1byKichsE4pxy9Zy3P/lFfMEU61bIpxzzIgDlDrxggqdu1TcZlmuimnN96CNY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MxhEObrr; 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="MxhEObrr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F48EC4CECF; Mon, 11 Nov 2024 18:48:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350893; bh=NmuyRa9uhWU3ZTAuPcy1hh1G475jgsgt++UPzNyes3o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=MxhEObrr1ARE7oficyegXj5QcIIlSd+bbc5g77Xe39cw/tAsgLNe0UJ9NJpZ7uN1B C5z5WTfYLI2w54Fx1sR2ifVtK060gZ80swTZcT1V1CuM98VmYb/KuiN9V7hMW6mHQc grvMDFXO35z2m8Mxao0+QqpiHGpGyu5k7lAq6WvED2uNPy+8ABGzeWCuiCzPmg1SJv kICBntqo4w+aBeMKngSeUf+chdxcsu6yLvUFoXntCwHwZnGA3DYvobLNns/OpByviY fOumVLhhn9MtOo4v63llyb35cbub5OoEQKCalAPqaBYbRLYx9at93d4pmX0RnghXRz o7SnjH+1rEorQ== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:37 +0000 Subject: [PATCH 05/17] ASoC: max98371: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-5-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1051; i=broonie@kernel.org; h=from:subject:message-id; bh=NmuyRa9uhWU3ZTAuPcy1hh1G475jgsgt++UPzNyes3o=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFb34FCK+HFVB6J0T5jlmQuZh+FAzHSJOmaY KxZ8IT+9DuJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRWwAKCRAk1otyXVSH 0HDyB/0U5pvPkxMDGBUaUNRlb1YdxsLsHj+Qn8OlasbXuCyjQxvGSukkwPHeXFCF1j28WA9gXZe Tms2AoLIKoEQ1IGYkRAoWrlnXVBTTtMuVOwKqp/yahoCH4m2iCGw1WCmtfCoR3rytR27RZHdiDQ E578sppUb/nyxZabC/RovzC1T2ACkWOaeQUvpM9K/mpP1Lp5LeNAvh+1lUTuOolexy+GUsXTziI afeBBYQf+C1lFhttltxpX8jD5PRKm/C6xUkOOtr9PCMt1bMruKd0IsoT6o9rEWIaIxGesyyE0/x 0lcIcB6mpPlV68eS6fgN17cpucFbhg6fLVMdz6siCAURMXD0 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max98371.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98371.c b/sound/soc/codecs/max98371.c index 852db211ba1e72335857af32f3ac7b0445b89acb..0938272a2b11c919dd5ef507a08= e14fa4f54fa4a 100644 --- a/sound/soc/codecs/max98371.c +++ b/sound/soc/codecs/max98371.c @@ -361,7 +361,7 @@ static const struct regmap_config max98371_regmap =3D { .num_reg_defaults =3D ARRAY_SIZE(max98371_reg), .volatile_reg =3D max98371_volatile_register, .readable_reg =3D max98371_readable_register, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static int max98371_i2c_probe(struct i2c_client *i2c) --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 0C0BE1BBBE4; Mon, 11 Nov 2024 18:48:14 +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=1731350895; cv=none; b=HZq/5o2Ju6MbNfQXbj8rxcr5GsyK6u2SYrN0dYyKg+WYHecCoUt9ilokl60MM8vcB2IYTIX5pCNCPGDGXzPAx3PhQzT9ngv1INvTB09injidUW7yoEFzUSPdVZxwnbP4M75tac2tL+MRhb1gQ1ECZTsWJeeNRvwkIe7JXfqs3v4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350895; c=relaxed/simple; bh=k6wy8EQWzS2K8sMVS1UFAVp0qKC2sLxEjXqMbWHDy+s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cm5LjioV6lR3vibkacFo1Igo5RKPARg3TdSs8kubY+w20Y2vldfoMZDUXJGl307Fz3jKtS3cnK+kc7IC8DfxdFZHE3AOW2fLoMQGXjbbum+1xnbtvpm72sh7lGUNeQowwbRscP2wDfH+vzbho3bWRRQx6LvXHeJosp9Xt49IM0M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QQMpcNb+; 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="QQMpcNb+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7FC4C4CED4; Mon, 11 Nov 2024 18:48:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350894; bh=k6wy8EQWzS2K8sMVS1UFAVp0qKC2sLxEjXqMbWHDy+s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=QQMpcNb+oxz73OpwzAx7Kf8gL3tMlK2eUWASzFrX84R3LWz6gUgTaumHMgb8QmhZr Otrqkwx3xS/8qKQ4fFBRREV+KWxCon2396WfLbapGJeiTw+iTzk4jxwAdswz6X3vvR brNE7zA6G52907GwAM0xw6bqH7pVB186be+ITPwjHRzJ4QTNoHgXBS1G/JQMI2EcMt urSY8FnYoefwGANeBHeSWAhKqaBnjAeaSL2dQxQ0Rl9s6Zt5eQjVIBmfYL9QQT/L+a FOk//WIIAqeRLcBY8B6/HtcSCLWEszZbFyQxbOD+kJfz+W595BeRahjA9mLehgbTZp XcbsamB6qIreg== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:38 +0000 Subject: [PATCH 06/17] ASoC: max98373: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-6-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1691; i=broonie@kernel.org; h=from:subject:message-id; bh=k6wy8EQWzS2K8sMVS1UFAVp0qKC2sLxEjXqMbWHDy+s=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFcOWySOw1uLZGYyhpmye38Hx1rCy4H4nd9j NnETXA3cYyJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRXAAKCRAk1otyXVSH 0AOeB/9rFtWlRpDC4x2pRu1f3sxFxdPumrJM6ggNcW03oiTq7rXSTOW16mG7InW7jAbkuKmphyX gXcE/pggwYYiBaZC4bSHzG5nDnDQmsNhaT7v0/FuFC+iZA/mZUIyCSOzgjtgOu3FuQI5PaSoxQJ 65SQkWKHpXPgxbw4GPMXw/gsVOkGhe7aa8TYkzK8M23M6WvqDhmzc2ImFkc158jpilTAwfxaP3U 8MSvponHZcKDJKXvA6urRTonvzDdfUVqmvD/dD5X0BrFIz7/q/mh6jDMze/HH5X+ai2wfRCFq26 0q+2zHEhc2KLlWucKC34wpepybDR9yVXULhWagOjMQFW7Vf0 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max98373-i2c.c | 2 +- sound/soc/codecs/max98373-sdw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/max98373-i2c.c b/sound/soc/codecs/max98373-i2= c.c index 1f7ff3dbcbbebd604ab51b8c4f8ca567387630b1..a1555f5aa9887c990eb23d6c0af= 2ef5365de25b6 100644 --- a/sound/soc/codecs/max98373-i2c.c +++ b/sound/soc/codecs/max98373-i2c.c @@ -510,7 +510,7 @@ static const struct regmap_config max98373_regmap =3D { .num_reg_defaults =3D ARRAY_SIZE(max98373_reg), .readable_reg =3D max98373_readable_register, .volatile_reg =3D max98373_volatile_reg, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static int max98373_i2c_probe(struct i2c_client *i2c) diff --git a/sound/soc/codecs/max98373-sdw.c b/sound/soc/codecs/max98373-sd= w.c index 26860882fd91aa7611588f2822b909b296dd39b5..89298b9f6e203a021438debd990= eabf4c1d75a65 100644 --- a/sound/soc/codecs/max98373-sdw.c +++ b/sound/soc/codecs/max98373-sdw.c @@ -240,7 +240,7 @@ static const struct regmap_config max98373_sdw_regmap = =3D { .num_reg_defaults =3D ARRAY_SIZE(max98373_reg), .readable_reg =3D max98373_readable_register, .volatile_reg =3D max98373_volatile_reg, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .use_single_read =3D true, .use_single_write =3D true, }; --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 50D5D1BC092; Mon, 11 Nov 2024 18:48:16 +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=1731350896; cv=none; b=j96q177swCMKXYgnQUCkvWdHvRyDirXmeDed4Aw0vDhy0d8blv1QHLP20cJ9jcsVN41HSHVPvZEM2SOpA1Nqu4SYikYuQilfc1Cb38yU1wz6iBx79K7QKsCdtZk2Prh5POb9b/RItr+rccFV61XEovMXkX7cWBDuEDktlkj2VxE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350896; c=relaxed/simple; bh=PP/+OKSVvnjzzTEnchRnvRhBHJ5+IFY6W2VqU560TTM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JbYJZlAXyANDFn44k8D17d7fG9sQVvdZudlyCaUXndpBatqS16aZvLaEHSINqLaDnYzra4M2TV6Wq6Oio7nJ9iLgt5zaA/astdXanGgTcdYmMz3Oycu/x7cOvANds6jCbg6DHoDkiTiOH1gMObNup+ZN8jUX68lBBt4EkWwlqE0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jyVTdFj0; 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="jyVTdFj0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1256FC4CED7; Mon, 11 Nov 2024 18:48:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350896; bh=PP/+OKSVvnjzzTEnchRnvRhBHJ5+IFY6W2VqU560TTM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=jyVTdFj08bCHu5dSMNa58hzlmpcTDsbI91ByBtwCFe0go8OqDoiXiFFet6E5IHANh 1YFNYea+PRac7LrEnzFlMPpNhrmByErAy10rhHZGZXt2bK0lE4/PpTYKTFBs9bgJzh NDq8k9euJO9Hje3YikDK+dKlt8uM56xKXfov1SC/cDEWwDb/6h5GraLhNPzBFyWQNX t4fSdzA5wib24zu/+J1AwK6NS+WYimXed4FM4LZn2uLl1ZYxeAZQN1iz7YxffOlVdF 1MMfRtEKla2f8qNV+Ed+7+4qCQ76aIz4f3cmb5c9o0hsN8LI60QNAoUs+mGHiB4Vkx Av994IGDLhXng== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:39 +0000 Subject: [PATCH 07/17] ASoC: max98388: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-7-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1044; i=broonie@kernel.org; h=from:subject:message-id; bh=PP/+OKSVvnjzzTEnchRnvRhBHJ5+IFY6W2VqU560TTM=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFckQMcm7/QDoEFXE4c3wRuYqkifeAFbv2PP ZpmBPpMCLeJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRXAAKCRAk1otyXVSH 0P44B/9Z4FPjIl5rlGxopCN/J0P7YI+t57kuWmv+BVvFB6YupB8R3DflqzYRYhL/fPl78/yLDEc YRhBokDA4/h1KvHBAReLbz3SWRaXqR8YOFn9opcKRbvVtGYwVou3VYkJKlgzhBovoQ0W7xnGk3Q K+xOqiB9trH3Rp1cbLNVzKFl2pTLPVz1jRgELo378kh3SfcYcbNGmspjdXm4X3DtbHtxNAXpazh UsQUhL9IETnHqLKn4yCkhwNSa6+JlrmU6b1hHoeFxKFly6/e/S7JaVgURDhNXPucUQpOvLB8Jjj gdMtxTRGRzQsqSdGR+rR3lblzTNpCWT1vvTxBJPnv3K1RVNl X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max98388.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98388.c b/sound/soc/codecs/max98388.c index b847d7c59ec012778e3d2f44526e96b5210ec494..f05c8079ad36e77f5cee9213bea= 8f41481da6536 100644 --- a/sound/soc/codecs/max98388.c +++ b/sound/soc/codecs/max98388.c @@ -883,7 +883,7 @@ static const struct regmap_config max98388_regmap =3D { .num_reg_defaults =3D ARRAY_SIZE(max98388_reg), .readable_reg =3D max98388_readable_register, .volatile_reg =3D max98388_volatile_reg, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static const struct snd_soc_component_driver soc_codec_dev_max98388 =3D { --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 ADC021BD009; Mon, 11 Nov 2024 18:48:17 +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=1731350897; cv=none; b=RZ+3EFobTlQzuSD0WSgYP3qjOTFCZBKPQvbH5CRIwqDXmREhkN8wH9qNrpZEB45qW1JKFfvzVW7X4qbvaL8OayD8flcqAyapmKmee59Jo/wKp27sQ1gerl18LA2Lz/TvdRXrujyAa0Lfu1laEdWrB1xlxuAHF/uHL7lKjTEsNuM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350897; c=relaxed/simple; bh=Sg/ApRY/YXeSjnCD14FRpE/MzffjlFkefkQ5VNeDdtw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QFANVTd67XuVI6hnIedCxbF4NRfMUOqyU10J893Gv2fEAvLlIPM+B+w7/hTFp6n9rwlXpxKnSZ27nmpyKJ6mkY80+FoFOymoJkgx9App02fzis3gignFgSTgAxBIvRsKPTWjCzGG9N0C6LI/WB4d/xNuwhmtXx3llWsow+THIJs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Tt4KOAgz; 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="Tt4KOAgz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66FF2C4CECF; Mon, 11 Nov 2024 18:48:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350897; bh=Sg/ApRY/YXeSjnCD14FRpE/MzffjlFkefkQ5VNeDdtw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Tt4KOAgz/khDKrak2lFeeaAZb/MwfSCyzAr4zyMRRUAP8WI1t6TFeEjxu7M+3x9dI rd1GTGF90E+WP9VRrITkFR/Rl5Mf78luTYygTr1ESwHGcYnYwYA3LnmTWH2WYhPIP1 /TQ6+WuAerVs964FBGxxlkciMUp+n0e+W9wPJt9yw5hoFDogrsU7utkM3ycbFqO7pq RaxVRGvx5ZmENxDa5XYu1XXoIuZ7Vw4sSLOBBGbwfOJqhMuwjTDv16Dj7+z3dKlowT MzyJqP5110jiimMMNZXXdiymLW7NZZDldSEUrNsBRs6vKFLROyWX3jtHSiEI6+U3MA 0/7M16R7Bukow== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:40 +0000 Subject: [PATCH 08/17] ASoC: max98390: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-8-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1054; i=broonie@kernel.org; h=from:subject:message-id; bh=Sg/ApRY/YXeSjnCD14FRpE/MzffjlFkefkQ5VNeDdtw=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFdgZR6JLUIeRGPfDYIBqJPFCKVoKDq0hSWe TSX5tMt19yJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRXQAKCRAk1otyXVSH 0F+vB/432Vq64VcBhhu3DMuzeatyWQvCr50pSiGcR2EoIx2/h2CcO4w0Ov0eP1mQ459dskyw0TO P6s00dmD9tGDiXY1yrIQJpZ8CHJRk196DkOE0/jZV1Ee0A/wLaSpuntrwy8tBrbf/xdvVJIbvI9 L+ez70+k3QBbRKV5O/+NOoT9eZnq16/nlDpsJoGuQzGLRW+AHNRj26AKFA8E9V1wpjJDC6c3yNP y91WpkiB19s972fPohdIUK2wnhUbo0j53ev4Ksc79EkAHHNV6P5EWZODnVhPdIc6ypxpUaFNqwI gV1gRAmBkMsT1KHXCalRl4K8MhOBRcsqcBPqh+j4FwNGqoLX X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max98390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98390.c b/sound/soc/codecs/max98390.c index 1bae253618fd07d2d796a47267829d42a3d14fe3..ef60fb6af2b1c474c4812e49293= d37bfcb1c0f40 100644 --- a/sound/soc/codecs/max98390.c +++ b/sound/soc/codecs/max98390.c @@ -994,7 +994,7 @@ static const struct regmap_config max98390_regmap =3D { .num_reg_defaults =3D ARRAY_SIZE(max98390_reg_defaults), .readable_reg =3D max98390_readable_register, .volatile_reg =3D max98390_volatile_reg, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static void max98390_slot_config(struct i2c_client *i2c, --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 841961BD9F5; Mon, 11 Nov 2024 18:48:19 +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=1731350900; cv=none; b=q4gbDa7rb9/eR0AXieRupvtnk5LOXZsTuEdyG5hKFJWQOIjnybkNpjSbfN8oKnmoJuUiWjRbyONa/0t/BudIK6xxayBbXH75DfaMGb8so9NvQyR2cNX+OLlKQHrffA61UF1lIy5YTipxRfTXVo76BLECuOK4p6tqnS8ffR3C9Ug= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350900; c=relaxed/simple; bh=T7siN2OD1nhjgEqSbG9tSYiPQ8u74NKBqDYBKUBHj04=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JLf/0dXdeimd7Or92mB9noeUF5Wbws9PittSCIiHmjfBSRVX+sQdgVuMQUru/vYEzs5S4Jt0ZyYWlzJzf1xH60iUuXOjUXYXAbPQjhVoon3JMmsoJmlBTEp2y7gqFVovNOb0g+ux9876Yo8Ai4Hhvscz1ag7NA5LLo8/ArIe0wY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=icJJ5Yoo; 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="icJJ5Yoo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0FA5C4CEDA; Mon, 11 Nov 2024 18:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350899; bh=T7siN2OD1nhjgEqSbG9tSYiPQ8u74NKBqDYBKUBHj04=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=icJJ5YoopY5gPUJ4qeGqYOBz5M2FFEe+QbJLSY0k5L9QbSCQgwtC5YD12R2WDvDzc gesMFonQYpjsq9ic2BfrfCMY8aEXd0GW1aW304bSeH25/TO1PBUinXI3r13Lmm3icj hzsUzb2uQDi2lDwDsG2X6ILDM1QR9bpvTq8NH1ec+luu34PrODSY8XbaAGnpv3rMOt WTXHb/vijX7Davj/RoceLK6hzA4CDJ3+nroG/kpwRVoEJasZcAX3hrKnMkEIGt8jYT tq2L5l1PXGkjQBX9z42agOWV8D9fwj3DfldF7IgvpkfWQZB32m6t0Of6b2zmMnZdPJ gbSk4D1I+kzZw== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:41 +0000 Subject: [PATCH 09/17] ASoC: max98396: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-9-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1946; i=broonie@kernel.org; h=from:subject:message-id; bh=T7siN2OD1nhjgEqSbG9tSYiPQ8u74NKBqDYBKUBHj04=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFeUtsLNdob01i/guV+udMz7ks1x2BIAM9x0 eTf/KTvu12JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRXgAKCRAk1otyXVSH 0FVhB/0Q06SsY5TFdXTF/rIoZQ+p2C0g1bbYJTlcEl0N2g31sxrBPv4UYyTp2JbCPPXglneTDZM 66XnQ73hFBnAwMMvVPuwe9Xr6knkXUWaE9hk06wGbrQ8IxN4o64uYZJLgZ+eudhbSoB74TcM1L0 oO+hVFnhdF5SlcVJDQ+FMOodsD5Q1479fBbRD6YhVOzUo6/JxbkveMdt+MUNsFuwLasJTjqPqFC FjSeNiggCNCw54Em1u29H8vZxtveKi+F9uqiK6NtqPJWiK8u+apwBDv5P1INg2aDzyU9wPEpAAf 2q3syKIZ/oHjQQYs+KP3RwVmItIaL9+wdn+hO6b7jfuEIKOY X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max98396.c | 4 ++-- sound/soc/codecs/max9850.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/max98396.c b/sound/soc/codecs/max98396.c index e52bb2266fa16792ad5dba79c515b5900ade4b2a..345e04da6d3782b296768d836eb= 4717d1ea39f7c 100644 --- a/sound/soc/codecs/max98396.c +++ b/sound/soc/codecs/max98396.c @@ -1656,7 +1656,7 @@ static const struct regmap_config max98396_regmap =3D= { .num_reg_defaults =3D ARRAY_SIZE(max98396_reg), .readable_reg =3D max98396_readable_register, .volatile_reg =3D max98396_volatile_reg, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static const struct regmap_config max98397_regmap =3D { @@ -1667,7 +1667,7 @@ static const struct regmap_config max98397_regmap =3D= { .num_reg_defaults =3D ARRAY_SIZE(max98397_reg), .readable_reg =3D max98397_readable_register, .volatile_reg =3D max98397_volatile_reg, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static void max98396_read_device_property(struct device *dev, diff --git a/sound/soc/codecs/max9850.c b/sound/soc/codecs/max9850.c index c395132689b4ef2e0bca6d1e9a2f3da4990b8600..9ac0b045bc619cd9d55a8083e88= a4c2b78fd8cea 100644 --- a/sound/soc/codecs/max9850.c +++ b/sound/soc/codecs/max9850.c @@ -46,7 +46,7 @@ static const struct regmap_config max9850_regmap =3D { =20 .max_register =3D MAX9850_DIGITAL_AUDIO, .volatile_reg =3D max9850_volatile_register, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static const DECLARE_TLV_DB_RANGE(max9850_tlv, --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 939331BD9EC; Mon, 11 Nov 2024 18:48:20 +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=1731350900; cv=none; b=d5NkkyJdq3fvgaego2ij+JVXXUSBnEX+DHpjGVCfCHIB63AgJ30xLh5WklnSuKHSupR9i/m30933TSkE3vAkFCN9c1nuYR/c1uY/f5ervwhkIBhnD6u2GRtSwURUU2NBn5uteokYRJRb/CLudZadU13XCPL4JlS3wJzkIATeTDI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350900; c=relaxed/simple; bh=2Yw2lyGhOM67zJI4OO0X7e4T+eCJzeW7+KHB/QyTw5o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GdxELsNsi1t+YFowyGHRopT2cx66LLKzj5bKypPlswYYiKgPdiWRopTjBjglj4O/pJGPxhqmbHB0E7CPShzehHWkdyVVnn8U040NW+VEnnEq4+Pwc2R02Ou7j85Zb5UOAyNAHXCZv24PYIMA0wCwurV9HWixVPGRunk/Az76b1A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Y0EqHnA/; 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="Y0EqHnA/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6457AC4CED4; Mon, 11 Nov 2024 18:48:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350900; bh=2Yw2lyGhOM67zJI4OO0X7e4T+eCJzeW7+KHB/QyTw5o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Y0EqHnA/Cse72QjgsgkE7bxdrz4XkTdlfu1iraq32nCOwT/k1XjV22qneUCsfth5B fe+kCi+Gy7GxRsLBYQ0mztiwnRGaYfq4u8E04xyH0oY3pqFvoLZTMYgesK9AFiYFCW TrHrt52j7hZyfgOegGZ/mKWcHhjOWt76rINdIXON8LgEeWuNOY5aYZ2aRAMoAdwuNj dE2Z75iliHm2RDKzNnrnFSyFljPAioixp+Ol60GFbs3m7kybJ75/IL5/1Aopt0yXtG 35R43qvqcnaTOwpiKQwIMpVc7rukevmPlSymGzlig+FavJxw0PUmRQu2a7Z1piLMuk uTucB9rrGxQhQ== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:42 +0000 Subject: [PATCH 10/17] ASoC: max98504: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-10-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1047; i=broonie@kernel.org; h=from:subject:message-id; bh=2Yw2lyGhOM67zJI4OO0X7e4T+eCJzeW7+KHB/QyTw5o=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFfZQv8n0PwZxZxDFnoaGbqbu1sN71fgjDF0 x1sgnYydNSJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRXwAKCRAk1otyXVSH 0G5aB/9hSeUX2b9G33sQzX11HqmcBTeUGhoSoCGGZm+DRmG20jGSA9SWXvpbmwgOfM2gblYhNIY rVx/W+fY+5ztO5N9+DmalkD1d8sKQsUj2Al6X0J2q4pPIP6GJZNZlBDo/SRKvHTH4YgbjtHJjMT crLn2CNZdCu+ibxmWboOJvoSWJWgSpKjpfTD4r5MET/1Vg1qyZjOzmwewXKblTLzis8v5p42hqu +Rhk/hNfJsE682/aKMbprYTNExiYDdgo+z2nqz/1XFOYxoD6nsGWz5v2VnJQ5C2QzCFC21KMRCq 8dmRXqwVpuT6FEF0GI/Iazwf/zLH1qmZwLr6oRQhXzFw8bnH X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max98504.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98504.c b/sound/soc/codecs/max98504.c index 6b6a7ece4cecc3d114da276faf859c8176955300..677d0894e058c5e84f3fc591fb8= bdc02eb8d5633 100644 --- a/sound/soc/codecs/max98504.c +++ b/sound/soc/codecs/max98504.c @@ -304,7 +304,7 @@ static const struct regmap_config max98504_regmap =3D { .num_reg_defaults =3D ARRAY_SIZE(max98504_reg_defaults), .volatile_reg =3D max98504_volatile_register, .readable_reg =3D max98504_readable_register, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static int max98504_i2c_probe(struct i2c_client *client) --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 4C5291BF7E0; Mon, 11 Nov 2024 18:48: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=1731350902; cv=none; b=eYiqkys+UtEAlgT9QQYJzS499dgXQ3yJCFFGZDJia135NONDBn89VWqK7hzoXJ+GkUd850BtPz7rE8mT6xd5Qdk+Y+u5KXmgQQNc6jCi4DQw9OSz3rd/DZGCE1jbu/IN0S69iG9iBBmq1l2d1jcfopIjGiZUxdfFxsRjoCGAW3k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350902; c=relaxed/simple; bh=uzhxmJpVGGFBF8MrG+YMDo8tJY44qTxsuHA5JeVZ03k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PbtOl/z3gOfdKEi1LY5Rc3XmWMFbw3PLEPODhMLXT8mZwR1RrR3G6jKfkuOVidjGVI1bVDd7VcsgE8IH2lqoatpFdShRvb7NHhC6xu8n4db4bh0phnKduKrwMerbxmeH+Msn+dWMn+hpZ35iwI97kUPqttk2PbbIhVItf9j4clI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=N9dbJD0N; 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="N9dbJD0N" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D59E8C4CECF; Mon, 11 Nov 2024 18:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350901; bh=uzhxmJpVGGFBF8MrG+YMDo8tJY44qTxsuHA5JeVZ03k=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=N9dbJD0NNVkTXTzPTL4iz4E4s9mN7uRXQLpCI81QugEAAEq5cGsBSGpMvXexsU/PB WybClSDDW7k4TRYkETuYkSWzaVinsiuEBTka2HKfcMFi9qQPuDqqivlCK+B85Jaudc LC+U643jgCVIu7oYO4zrfhB9IMORTdgLD1V23Lx59R8q3GBWFepF0MGQl5NddWxfBx bfjkYm/X0fYYMZCZXQbZYHisSyNdhq5FLxJA3mJhpdjYmdrLEvmnsX+2JrVCvI77mm ZqqDiRgyVkLgrdmBFS2bWl6A4yf82eCqIN4qbg7PZ9PGfvhug713PIK6XxXaPDWnUO wiwgJ4qjtE++A== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:43 +0000 Subject: [PATCH 11/17] ASoC: max98520: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-11-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1048; i=broonie@kernel.org; h=from:subject:message-id; bh=uzhxmJpVGGFBF8MrG+YMDo8tJY44qTxsuHA5JeVZ03k=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFfiPPFFgMTqXlsCRgbECYgiiaPgSKRxBEOB TSTUF1v0F+JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRXwAKCRAk1otyXVSH 0BmPB/0dKtrfDc9cZzenF0MqgjbK8yiOZfrE7qo34w2yZnzRtVY+g548TBY3QOxmDk4PYbPemK+ LRdwPW4V36RKzEomsKN9a2nsGkK+29HGsheqa8t5Grw6HNSi5v/1LOoUjmQLV8OExZt6xOeNyaP fAap1Ejy8No9/CfUqGEsTDAk1DEi1mLOxmfy29iRauN2AXkABAh3CmP29P4agP2cZCDgnlRvc8d gYACD0VKa81AO3tKFXskyA7g8fp+hJSFWGBtMOX3uD1Npa3+r5u//xMNmf9uITXnozkTURt5AgL KDX3FNpHz06sp2BzsbPh5PMJt49gcMMWkJ3GOdAmqay4vGTi X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max98520.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98520.c b/sound/soc/codecs/max98520.c index 479ded22672ecf0b9095c5da235d52917af4eaec..67166fa5453a3ee3f0f1d47c55b= ccf9f5f6502b5 100644 --- a/sound/soc/codecs/max98520.c +++ b/sound/soc/codecs/max98520.c @@ -665,7 +665,7 @@ static const struct regmap_config max98520_regmap =3D { .num_reg_defaults =3D ARRAY_SIZE(max98520_reg), .readable_reg =3D max98520_readable_register, .volatile_reg =3D max98520_volatile_reg, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static void max98520_power_on(struct max98520_priv *max98520, bool poweron) --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 AEB551BD9F5; Mon, 11 Nov 2024 18:48:23 +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=1731350903; cv=none; b=rcP+yylFYLLNuVBFvUM14yfkQucxlIvt26ddRWMb++YjZUkEZirOPpHrq/GQ5YvIHQnd8kCH1gfq62BKUiisvkHZsAqLv2NK+TVY2t/kszg3uyXhkJQKOQeCsGLQbr5G60qNVJH5PKsMTA3wayL2RXenAYFLzzG5rsL/uV9b5Ak= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350903; c=relaxed/simple; bh=/VGPM1lIfmncGp/2f1BDRSjqET3DLP/Aly9ABRjEv+I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eQHljA/qunY13fmGlXO8vVTQOjUDoQsZZGp1/Ls4RJdN4qz/0PWQ7VL1NYI5hFntoZOK9mhbNSWqs2sKHWOWvvUcqlqXSBszyOY62NaRrmmpAGDh45dBs7Q2gQD7VqmrqJ4Mo2bAm4F0XBJtJFq4r5jLsDuLVptCJKm7npeJ7ek= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Dl1p6z7C; 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="Dl1p6z7C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A2EEC4CED4; Mon, 11 Nov 2024 18:48:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350903; bh=/VGPM1lIfmncGp/2f1BDRSjqET3DLP/Aly9ABRjEv+I=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Dl1p6z7CeMJZjxL++5Ga4XA8Cj99pQIuzIlvOyizThSMiNnDYv1Yylb6ayKFDiBU5 11MRcEGK949hoiJwdYUHyc+OoENUbn52/ZZxrYqx/Dqhosg65A2N+z/c4j6h9HQ6c7 MyajcGIqY5MLp7jsApQyb5qicYCRBmtWJbC8OHO7vxwjkOLjLVbxfY09/7CFgHbwAk CUJNivq3d0hhJCwc8ntn592uX4FO2op57CM9w+VMacOR3spWoN8f6XZsqPSnm5IHd+ ZoRvYG2wS1dMMzlSs1loXgmAJ752yjoqdzjis37WEV3J85K1SHcwbonvYl0mIa0Ez5 JO/ICQ6q09M2w== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:44 +0000 Subject: [PATCH 12/17] ASoC: max9860: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-12-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1026; i=broonie@kernel.org; h=from:subject:message-id; bh=/VGPM1lIfmncGp/2f1BDRSjqET3DLP/Aly9ABRjEv+I=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFg4RxegiDgvqgj6l0rHNPU2sysn+08CSt6E sPoFvEnIcCJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRYAAKCRAk1otyXVSH 0D1pB/4px8zD71179rsfpZV/ml99KLgEO6FgWLimrrX4kiY9idjnT3ntHUMmxxPoN2+0Dao6tbd jBNcvfdALV8VU+5lpwVkd3O7424CHPu0atxuNmKZq4MrEdtxdWpXGTqVoXUR9hJ+XbsnsNTLbUe OawHszIJhywdMUCu4MlS42a34xsSvN3T3XOQiVNuR4f3P4+EWjH9icgfT76LWswlT4HEPsPj9pR sc4OBGzyXe1yLR4ml4ZQu2B5nmJGr9scvlNMT/bZoqGY1s+IGtphlLk53XIMeHtPvri+YHFtpWq h5Yy+r2ErE4xjdBo7Y3L6A//hwjLn+gZdUi0Uu26J4ImiJFc X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max9860.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max9860.c b/sound/soc/codecs/max9860.c index 4015ed2c47ecfe6410bd8a42428579844f803103..7a5c2828ecd1b2d12def27b073f= 1ef25f301e803 100644 --- a/sound/soc/codecs/max9860.c +++ b/sound/soc/codecs/max9860.c @@ -120,7 +120,7 @@ static const struct regmap_config max9860_regmap =3D { .max_register =3D MAX9860_MAX_REGISTER, .reg_defaults =3D max9860_reg_defaults, .num_reg_defaults =3D ARRAY_SIZE(max9860_reg_defaults), - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static const DECLARE_TLV_DB_SCALE(dva_tlv, -9100, 100, 1); --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 ABCC81C245C; Mon, 11 Nov 2024 18:48:24 +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=1731350904; cv=none; b=iWxDpyb8gr6E+gpcnraJ93/cC+YallF/MMYSCMbm7JN5jEkPav06yJPX4aWZ+DeNpuOO9CljPCaEnc6DwbcB48iyIkMXM7kvek4uCiMxh7xyw8rvOZFHg13dlD47XXKedckxtgk7UIkGkd/FNDnDRBhHjQ/QVnVbT/0uvXB7XKI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350904; c=relaxed/simple; bh=Fb5bYJb4cDLgS7XI/uRkL1dDz/+B1UGZw28kauC5T2U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=miKGudrAtpHXz9mewSgaBwGB5svwEUSiLpwLJZYANy77V7QGFD0kPHtyP4R31fJHSfHNSMR1O7XX9C2o/Lir1vLTK/cQGLf1z9nX9FeXzGj9Ot8tyhO5Odpccwi1jxQuCyof7mGW/lHDwVPnkAQ5tfaGQXPOmMX88Zo0/TsRWB0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QN/tRC3c; 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="QN/tRC3c" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EBB5C4CED7; Mon, 11 Nov 2024 18:48:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350904; bh=Fb5bYJb4cDLgS7XI/uRkL1dDz/+B1UGZw28kauC5T2U=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=QN/tRC3cXul52EIsQ2ypPPVhctpTr8Nz2Xlsi+eXnecNz9X+tAhH2dC6Bhg9/7gfG IEiiQvP8TICJ2ziOUGDTlBSdp19ZFFGboDoJqkNiH196fMreoN+BjJykSL2wABCfUr MCHV2qFv72i8bjnyTk+0D/SxsMkuD8N6Nw/kvg5kjbKxfkCpGMXlftJHPmoWTTIJAu 2GPBacLqzSCV7jwqGbV+y/zKA7+U1VGQBjrZt7uB/HBDgvFckWiKKC6oqb9hPriHUU Q8zxNs3kW9ZHYZ9YOxiZpzpzTs4Ff5nMCA5qU1I09P8h2wbyOalv4YLrYKKZczoh2A j0CD5gAGUaO4g== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:45 +0000 Subject: [PATCH 13/17] ASoC: max9867: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-13-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=982; i=broonie@kernel.org; h=from:subject:message-id; bh=Fb5bYJb4cDLgS7XI/uRkL1dDz/+B1UGZw28kauC5T2U=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFh0BvKzTcBjnRuQY2+1u6/BkKtmNACpu1Tu 0bEQTgqwiOJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRYQAKCRAk1otyXVSH 0H21B/9mYlsQDd4D+RdzuGDVXHoKKaAyqzCnJHvpZA+l8k/lTAxXKZ4KHpeO8ftWKtHSBLO+Cqg 5rGnp5jt/9xr3x10XqSA+Ae2Kvz5sl8vRQwJSzfO7UIptneQYf54m9SjHkeSG8d6i0t+hv/2doa jfFpxfzqEue2JuxgCNUyaOFiA8UiQtYEBYYSq3Nz3jrMneFBQ4wd4AzSJTPwrNK1IDe3MWEhiTS iCBMdg9YRG6qfbrsZrstQoNrL6QFggt30PKFTDYNy5G49afs9euPTe/vLKGsKX8iQKLEN9yriJ6 C7jpCRK9I7Lnux4H0Xi+CRwWyG+04xVc3oJEHH7MxkRMaYc7 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max9867.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c index 50db88fce904ff674c5a1dfc676de58c0ae5c4dd..7a69f82839aa91151174b5ba5dc= 7b8a3e7958385 100644 --- a/sound/soc/codecs/max9867.c +++ b/sound/soc/codecs/max9867.c @@ -644,7 +644,7 @@ static const struct regmap_config max9867_regmap =3D { .val_bits =3D 8, .max_register =3D MAX9867_REVISION, .volatile_reg =3D max9867_volatile_register, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static int max9867_i2c_probe(struct i2c_client *i2c) --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 2C31E1C4606; Mon, 11 Nov 2024 18:48:26 +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=1731350906; cv=none; b=mDxDOl1L1U4PbZ3JVh9ZqDMserMxTfiAc+9YYUcu9zDiFyJ+vxAMgJkUQfz7DYJ01mIwuHKOd7z2wOQhk8Ffm4B3Ke5JrZsVSZKENtcQJtxN+P33xM2g9WBx/zjSesCPObhhlWReLDEJSbZVwlNRvyOjvofR5TkGSYvQQkQeK08= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350906; c=relaxed/simple; bh=+3ubjYkvQHUxzUP3STGWBXiumeVjpy8z8oic4cgcUZk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DowroTPJS1vZ6FktT7kPhXi/7r0KeBQpCukhyyQMnf6LGz2mmTH4vn4yUEIxVc+QHQgt2TgJmWGz19E7Wit4kN7EK1/9uohRpvkyL+wI1fn0Gkd/AAxpzpKfEA2ElZqPelfL2YEBX1MC8CpUcJHSQsnBfNlKFMAFwIdFF/iwu34= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Xjby3Xqh; 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="Xjby3Xqh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1C57C4CED5; Mon, 11 Nov 2024 18:48:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350906; bh=+3ubjYkvQHUxzUP3STGWBXiumeVjpy8z8oic4cgcUZk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Xjby3XqhYiGu2w3g061H9zdk8pDh86btj0YtJM2RAkqZvWVi+2xdOsXoZUcTf90d/ GjZeCaHwpFX0oe2q5K6i14b8Xm8C4WUyszz9MTv2HnjlkMlIU4PMgnulq/ApRGSWhu JoPkPCcqeVSCbzRnzmNRV1+3jf1r20XdQ1SVQWn9cHHy3CiMzX0WVzt070DPD0Z09x cjkmm5zOGBnS2sebdZaC+1KH2HjcfFhHgMnsP1RsGSvQVMhTX6hc5s9nuwL0biplf2 60eKQIqqywqVDOMr+/n/vFVRSPdaWI2/BuKRr8fRAoigrOTIyqMziGivCpUTZKh9uN S6lqmOYh+ceBw== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:46 +0000 Subject: [PATCH 14/17] ASoC: max9877: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-14-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=969; i=broonie@kernel.org; h=from:subject:message-id; bh=+3ubjYkvQHUxzUP3STGWBXiumeVjpy8z8oic4cgcUZk=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFiT+PebAfKcSQE21txTjf5e9MvOTsJsAXip l8n8DOILLSJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRYgAKCRAk1otyXVSH 0ANdB/9Meugf0ABjz97u2Y6ZlX++IsIDIfuJ14Q1hji2wRZVCAQS//AXPXxAmEbB2uehokI1vbC FWfMc0aH5vX6GpubY6KvoloN/1AuEOmHPlhReWUjcBCCDxN+pEBppf55QcuPYHywi974CeVpUxC 51BosVJUW+s1t1jhJoQ3NjqVQupBJ+WMTQKKwx+Vf52Xs91HRiBeMTvwk/YufWqOZ1CeMxE+cob IT3hZLdrxRu9B/b/n8FjSHlKxju24+Krm/XUnoEqDUu4fLWKKLaYo4+K1IcBmU4AKviET6Ms5OV VIErWcOTjgOgXsM447tjpuJ9RGeTMfTCXfSvHMzTF20lquhx X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max9877.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max9877.c b/sound/soc/codecs/max9877.c index 1bd0d4761ca67df94cf2a0bfdd0944129e431504..6b89bc30b2c9a5046c1d7cc52df= 38bd87c2e94cb 100644 --- a/sound/soc/codecs/max9877.c +++ b/sound/soc/codecs/max9877.c @@ -130,7 +130,7 @@ static const struct regmap_config max9877_regmap =3D { =20 .reg_defaults =3D max9877_regs, .num_reg_defaults =3D ARRAY_SIZE(max9877_regs), - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static int max9877_i2c_probe(struct i2c_client *client) --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 E1A151C75E2; Mon, 11 Nov 2024 18:48:27 +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=1731350908; cv=none; b=lItdNtu2cTTGhVsYpit+N7Qn5ZxOYM7e1wT+kUtEQmNLkg9H6ex4gZ5EBU/SwgUvRSOcTIiuYWgG633p3r/x3Kcn9cyTPROeAtWpL5YKr56p/5TYfJVHlSa38pIF3U0bSxyf34CfhgN2xY8Sl+v3BiypqR5ouFTkZJis0b/3zTc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350908; c=relaxed/simple; bh=VmKq34hofpsVB2gQvsAOT87ZBzY85i4d2Xl6NwYxCJs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IlPDJlnPEl2/IDfPuAr0A1n41YrXOBTbtbuYt1dxgGr8zD1iJzuh+MK+s4oItYlxe8WiHlvPJuvh268edr8fLPnlZ4o/5s/MikyOeiMGJRb3jF+PW/bR03CYHqSC/DHiI52bsyweTFO3ItmgW/+hXtfAqPnVB4GemgsbJnQz6f0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HdQ+QLIb; 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="HdQ+QLIb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71135C4CED4; Mon, 11 Nov 2024 18:48:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350907; bh=VmKq34hofpsVB2gQvsAOT87ZBzY85i4d2Xl6NwYxCJs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HdQ+QLIbDJQ8FMn4IdDqeiZ2Ch1+nGlItcs4IVQ+iVLnpBmJ0POEiPo9+faMGAiif Og9/S6Db3NgbTTsd+EmVGN+Ha4Xlc9qnOEoUIFw5VinzJcpwEyA3dmiuCM874LXnxr rIYFOZket4mG4Rl/TxKujAuBfyAwplMOcylrver36jqzS7lPinM3Io4oT9QtD19eH6 AmGrMISoxXWuAap3YKQPHQCvqeblc1+rY0O3gFZnYABbiqemwvi8aOIglkPMZpyXWP Uz9lx05z59CqTHfvyUZHToGIRniYF+fRxOeU7iAyZvtaaytRCibBP5Wie40k5JREaC e8k09O1mDAaSA== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:47 +0000 Subject: [PATCH 15/17] ASoC: max98925: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-15-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1051; i=broonie@kernel.org; h=from:subject:message-id; bh=VmKq34hofpsVB2gQvsAOT87ZBzY85i4d2Xl6NwYxCJs=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFie9srf3aY14XaaGfe8fA8hDoC0j731VIrX 74gHLJZ7DOJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRYgAKCRAk1otyXVSH 0F9GB/9sS2DXF0aaNFDBNmwOV6dxtvW1xshR1ym6oE6qf8UP287nESEn4ldUbkLp15pqSSM0Qbd PVJtBbZWMGNe/ovO/xpGvjIfVSzeJ/ElEIXFFlZcGGVyucOrc4OYSRulHGTns2xqtGbdJ7f3WQ3 5TJOJwXjRYkDSRxTQNji7efUzesF3ErpeMswsH55Dwji4eHtHKpHXdO7RmkmKZeptSqblmWcABT tP4oPymx3NW+RSzRg8RXB6Bjv/57DSkJyu7TIanmurdL57sKihJeIXXjV9B0KIUpYyR9DvoFq2j 9b5DYx31jb5QVhAm0ifTQZ/x4gptlAYmOLdFg0cxJmpAvYLF X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max98925.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98925.c b/sound/soc/codecs/max98925.c index 66c78051bd09896c6973f24e16d83544f252d3c3..8a931cf840626dce7f8334461c9= 5241cf4de042f 100644 --- a/sound/soc/codecs/max98925.c +++ b/sound/soc/codecs/max98925.c @@ -554,7 +554,7 @@ static const struct regmap_config max98925_regmap =3D { .num_reg_defaults =3D ARRAY_SIZE(max98925_reg), .volatile_reg =3D max98925_volatile_register, .readable_reg =3D max98925_readable_register, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static int max98925_i2c_probe(struct i2c_client *i2c) --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 787871C4606; Mon, 11 Nov 2024 18:48:29 +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=1731350909; cv=none; b=C/0NGzhrmllgNluBOhnVdTxWYf7IhWefFEZKRijfAXpZ0IGgkXUDGe3Wy/D9AtFROyDbkxdYCjVFpM/SY5XJdGUN8i9NJmFZR1k2Z+EfoCepwA+4QKHUFmONUQ3ilZp6V68VIU5gHn6ZJNV0URnhnh26/W2zpBxX5m513iimXcg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350909; c=relaxed/simple; bh=fo9PUvD/w/Jw96ccQE/VLMRIjZ1+9DHuusd3x0qGuUU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=n/s9Xh1E622rWlUtFhrn0CIVQR5QsY5GjhqucxpZyf9MatzCkkyHsohrlPB+AXaIGnkjyn+OY3dFJCx8oX0mJIqrCylvT6q/Vkt1KSqSe2Xk0kpYCEFGoEcZ+dw1XWLQxDY8p6Jge3aghdP6zqyskYVcICVCzu8JHAEUjLkSKMc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mF31TO/R; 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="mF31TO/R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA6D4C4CED7; Mon, 11 Nov 2024 18:48:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350908; bh=fo9PUvD/w/Jw96ccQE/VLMRIjZ1+9DHuusd3x0qGuUU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=mF31TO/RneFZnXX8VGhqYGz+VVOqe1RHzqP+ovsKPkwdLD7TwB/5e8McE8eBv96/d F0gSTW1/uvClIncULjgsP9jC8K6pEvAqIjWsO/hAM2q//lC7cR1+bReAqd6/20qfQT sTNXVnUTEpK6Jbz4b7xtaxvN6bxXEO159U1TZ+CwRnM++5Mnso4ILyP1nFBrBP62w2 2M3QpS6tPLRQLSBvTfAVZloNrfut6zAuUgzU6pFLBx1LqmJlPUxsPpWIficwG/qWU3 mbsX83kFtqRPgheZU4POa2mvV5an70qki//SbN3oBYg8h04fvKqbWQbEmCIbzT9qLp xDWRJC25vvS/g== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:48 +0000 Subject: [PATCH 16/17] ASoC: max98926: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-16-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1032; i=broonie@kernel.org; h=from:subject:message-id; bh=fo9PUvD/w/Jw96ccQE/VLMRIjZ1+9DHuusd3x0qGuUU=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFjMfsPyW3EWIbKJk5TYP5E3HNo8fGeaVIyw w3KEUICerqJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRYwAKCRAk1otyXVSH 0EClB/97isMV/gN9+A7C036JvODF4mxxd7PpjYk8HbzMQ0OiyDZZuhY2RYuH/axiWfiymmiNebK 2CmMKhenprWHG/fc4ZnDEJZKz5dp4WiQdxcsyY7HCZjezMZXZuaqahtHC9UCnPykPb9h6eAEfve uWYl2sOqnAkv4sLG1qL+NLPsj5sTNHvSPsd2B2Ju5eKf9ojPNfL0vkAe2xuuLFUo1gMiirZbVp+ Y07Ilgg3kYc0NNRXm4lwuCnmjqPlNSGYXfQAHZDUlke198IJoP6V3iFmf8ncuxfhLBBxb933kUP W1KuyrFkRmfUA15HwytJvQpIPH3dxSHam09mv3WG9Owusugl X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max98926.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98926.c b/sound/soc/codecs/max98926.c index ae962bda163ebfcd3f9c689d8137bf57e98021b0..ef672a2fcce1bd2008992faa8c3= 9964bbd9657c1 100644 --- a/sound/soc/codecs/max98926.c +++ b/sound/soc/codecs/max98926.c @@ -506,7 +506,7 @@ static const struct regmap_config max98926_regmap =3D { .num_reg_defaults =3D ARRAY_SIZE(max98926_reg), .volatile_reg =3D max98926_volatile_register, .readable_reg =3D max98926_readable_register, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static int max98926_i2c_probe(struct i2c_client *i2c) --=20 2.39.5 From nobody Sat Nov 23 18:17:06 2024 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 CEB841C9B71; Mon, 11 Nov 2024 18:48:30 +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=1731350910; cv=none; b=XZjG6V1VnvajfVQufdJEihidgX2e17lCpe47jiWiaXkVtabLqSkOPgAvXtp7S7mFRbYE7ouzTy0+F1fdJh9Mrvzy3QrkLgtmu/aGcyHxxn/xJk9V82Z+WyeU7dAtrSFS6CDvPhq0Wm5HoXlU2WelJ6a70n1pFbqB4c9ImZzvXXY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731350910; c=relaxed/simple; bh=RodbN1OVE2eV4MkRdbJ5zWPOqcRJzErI3f2nitm7I+U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qG8rA4TU41OH2jBzTx7tBHht+V3c04wJh9vk1ZcqdEuoLo6ollGsRx2ngNl0fwjMYbxEuuEnfYiAOcXUKS/dxJYdGDukiYrFxC+tGNPkJbOG19exPnLm14jISnREDLGx74TTsi4doslKSYliUQ7hW73bCo65hCJyrJ8GZqxxR6s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GBkoF6FI; 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="GBkoF6FI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5040DC4CED4; Mon, 11 Nov 2024 18:48:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731350910; bh=RodbN1OVE2eV4MkRdbJ5zWPOqcRJzErI3f2nitm7I+U=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=GBkoF6FIafe2fOLHVPB8gIt88idY91yVLDk0nV5EdesuheQXHJB8VnQ8DnCLDVAMz y2s10TI9uZUPtB+DZcy379wojWMoEZsiyAQVN4bXwC1lZRzYK8M/UPoEt2dEhTieSh BEV2qtjTx/2Nz0aQ9AW/0r5sB9jhL3whvd1qKJ5+k7hpfb6EJ0p06TsIFI7EwaWZpl Crgmovi3FU+qxOSVxAO5HsQEzAFCnDJqo0gaJtNmnYW6FCZBu7wTorY+BKoSdIKrlF bhWddIG8r6FwFAOt77WTADXozJs5LeGAtfCOoyyLl5ZcNKxsFeYaAfVNqWz441zbYf F3wzFpm83a/CQ== From: Mark Brown Date: Mon, 11 Nov 2024 18:47:49 +0000 Subject: [PATCH 17/17] ASoC: max98927: Use maple tree register cache 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: quoted-printable Message-Id: <20241111-asoc-maxim-maple-v1-17-baa315dc546b@kernel.org> References: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> In-Reply-To: <20241111-asoc-maxim-maple-v1-0-baa315dc546b@kernel.org> To: Liam Girdwood , Peter Rosin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-355e8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1045; i=broonie@kernel.org; h=from:subject:message-id; bh=RodbN1OVE2eV4MkRdbJ5zWPOqcRJzErI3f2nitm7I+U=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBnMlFkiA7hP5ww+OMHu9RNIUlhqt/XDbAJpHC5N 1WcGNhk7PiJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZzJRZAAKCRAk1otyXVSH 0ArlB/0UtlHuCCDtllgn6kt3/WojNnQ/2M8XWkQozSHeYBbykqCdtAMAv4r6Q/CGeYVO29OGSv8 p0JY/rQpfqpaczYtykxCnLG5htUVszpPelJZHPMleg5umc9UPVT8iN686nHrcwSL7oe7Teg3qeu 5c82gtp+qZh7WEnNv6mvraQIRO8IeodjIPehdVpIa6SVEv9JIZCEGeymW0of+zg53Whm8he709D 9i0dLM4ptVRt+XTGcQUPEohp14gY1hSh+68Dum8vGXGUrS/WeuU9LeznL340oUwiRlPUXy5LZiX IItISiqGYVlXLP232mOXoPkuMNys7tQfc7neH2F+JAT9wVsF X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The maple tree register cache uses a more modern data structure than the rbtree cache and makes optimisation choices that are more appropriate for current hardware, unless there is a specific reason to do something else then maple is a better choice for most devices. Switch to it. Signed-off-by: Mark Brown --- sound/soc/codecs/max98927.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index 747aa6f1d54f0dea1dfba798c6cf462c026a5050..e878a2b55996ef3ce3d93138d7b= 68c969b6d6b82 100644 --- a/sound/soc/codecs/max98927.c +++ b/sound/soc/codecs/max98927.c @@ -777,7 +777,7 @@ static const struct regmap_config max98927_regmap =3D { .num_reg_defaults =3D ARRAY_SIZE(max98927_reg), .readable_reg =3D max98927_readable_register, .volatile_reg =3D max98927_volatile_reg, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, }; =20 static void max98927_slot_config(struct i2c_client *i2c, --=20 2.39.5