* [PATCH] net: ieee802154: at86rf230: convert to use maple tree register cache
@ 2024-02-02 6:45 Bo Liu
2024-02-02 7:55 ` Miquel Raynal
2024-02-26 20:48 ` Stefan Schmidt
0 siblings, 2 replies; 8+ messages in thread
From: Bo Liu @ 2024-02-02 6:45 UTC (permalink / raw)
To: alex.aring, stefan, miquel.raynal, davem, edumazet, kuba, pabeni
Cc: linux-wpan, netdev, linux-kernel, Bo Liu
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 <liubo03@inspur.com>
---
drivers/net/ieee802154/at86rf230.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index 164c7f605af5..6212164ffb36 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -316,7 +316,7 @@ static const struct regmap_config at86rf230_regmap_spi_config = {
.val_bits = 8,
.write_flag_mask = CMD_REG | CMD_WRITE,
.read_flag_mask = CMD_REG,
- .cache_type = REGCACHE_RBTREE,
+ .cache_type = REGCACHE_MAPLE,
.max_register = AT86RF2XX_NUMREGS,
.writeable_reg = at86rf230_reg_writeable,
.readable_reg = at86rf230_reg_readable,
--
2.31.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] net: ieee802154: at86rf230: convert to use maple tree register cache
2024-02-02 6:45 Bo Liu
@ 2024-02-02 7:55 ` Miquel Raynal
2024-02-05 19:42 ` Alexander Aring
2024-02-26 20:48 ` Stefan Schmidt
1 sibling, 1 reply; 8+ messages in thread
From: Miquel Raynal @ 2024-02-02 7:55 UTC (permalink / raw)
To: Bo Liu
Cc: alex.aring, stefan, davem, edumazet, kuba, pabeni, linux-wpan,
netdev, linux-kernel
Hi Bo,
liubo03@inspur.com wrote on Fri, 2 Feb 2024 01:45:12 -0500:
> 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.
What are the real intended benefits? Shall we expect any drawbacks?
> Signed-off-by: Bo Liu <liubo03@inspur.com>
Thanks,
Miquèl
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] net: ieee802154: at86rf230: convert to use maple tree register cache
@ 2024-02-02 8:08 Bo Liu (刘波)-浪潮信息
2024-02-04 14:35 ` Simon Horman
0 siblings, 1 reply; 8+ messages in thread
From: Bo Liu (刘波)-浪潮信息 @ 2024-02-02 8:08 UTC (permalink / raw)
To: miquel.raynal@bootlin.com
Cc: alex.aring@gmail.com, stefan@datenfreihafen.org,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, linux-wpan@vger.kernel.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 669 bytes --]
>Hi Bo,
>
>liubo03@inspur.com wrote on Fri, 2 Feb 2024 01:45:12 -0500:
>
>> 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.
>
>What are the real intended benefits? Shall we expect any drawbacks?
>
Hi
The maple tree register cache has now got to the point where is is
roughly feature compatible with the rbtree cache. It's based on a much more modern data
structure than the rbtree cache
>> Signed-off-by: Bo Liu <liubo03@inspur.com>
>
>Thanks,
>Miquèl
Thanks
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3777 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] net: ieee802154: at86rf230: convert to use maple tree register cache
2024-02-02 8:08 [PATCH] net: ieee802154: at86rf230: convert to use maple tree register cache Bo Liu (刘波)-浪潮信息
@ 2024-02-04 14:35 ` Simon Horman
0 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2024-02-04 14:35 UTC (permalink / raw)
To: Bo Liu (刘波)-浪潮信息
Cc: miquel.raynal@bootlin.com, alex.aring@gmail.com,
stefan@datenfreihafen.org, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
linux-wpan@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
On Fri, Feb 02, 2024 at 08:08:14AM +0000, Bo Liu (刘波)-浪潮信息 wrote:
>
> >Hi Bo,
> >
> >liubo03@inspur.com wrote on Fri, 2 Feb 2024 01:45:12 -0500:
> >
> >> 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.
> >
> >What are the real intended benefits? Shall we expect any drawbacks?
> >
> Hi
> The maple tree register cache has now got to the point where is is
> roughly feature compatible with the rbtree cache. It's based on a much more modern data
> structure than the rbtree cache
Thanks Bo Liu,
You have stated that maple is more modern than rbtree.
But please address Miquel's questions: what are the real
expected benefits; what possible drawbacks are there?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] net: ieee802154: at86rf230: convert to use maple tree register cache
2024-02-02 7:55 ` Miquel Raynal
@ 2024-02-05 19:42 ` Alexander Aring
2024-02-06 9:25 ` Miquel Raynal
2024-02-20 10:04 ` Miquel Raynal
0 siblings, 2 replies; 8+ messages in thread
From: Alexander Aring @ 2024-02-05 19:42 UTC (permalink / raw)
To: Miquel Raynal
Cc: Bo Liu, alex.aring, stefan, davem, edumazet, kuba, pabeni,
linux-wpan, netdev, linux-kernel
Hi,
On Fri, Feb 2, 2024 at 2:56 AM Miquel Raynal <miquel.raynal@bootlin.com> wrote:
>
> Hi Bo,
>
> liubo03@inspur.com wrote on Fri, 2 Feb 2024 01:45:12 -0500:
>
> > 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.
>
> What are the real intended benefits? Shall we expect any drawbacks?
>
I doubt it has really any benefits, only the slowpath is using regmap
to set some registers. Maybe if you change phy setting frequently it
might have an impact, but this isn't even a path considered to run
fast.
- Alex
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] net: ieee802154: at86rf230: convert to use maple tree register cache
2024-02-05 19:42 ` Alexander Aring
@ 2024-02-06 9:25 ` Miquel Raynal
2024-02-20 10:04 ` Miquel Raynal
1 sibling, 0 replies; 8+ messages in thread
From: Miquel Raynal @ 2024-02-06 9:25 UTC (permalink / raw)
To: Alexander Aring
Cc: Bo Liu, alex.aring, stefan, davem, edumazet, kuba, pabeni,
linux-wpan, netdev, linux-kernel
Hi,
aahringo@redhat.com wrote on Mon, 5 Feb 2024 14:42:09 -0500:
> Hi,
>
> On Fri, Feb 2, 2024 at 2:56 AM Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> >
> > Hi Bo,
> >
> > liubo03@inspur.com wrote on Fri, 2 Feb 2024 01:45:12 -0500:
> >
> > > 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.
> >
> > What are the real intended benefits? Shall we expect any drawbacks?
> >
>
> I doubt it has really any benefits, only the slowpath is using regmap
> to set some registers. Maybe if you change phy setting frequently it
> might have an impact, but this isn't even a path considered to run
> fast.
Ok, thanks Alex for the info; in this case I'm fine:
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Thanks,
Miquèl
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] net: ieee802154: at86rf230: convert to use maple tree register cache
2024-02-05 19:42 ` Alexander Aring
2024-02-06 9:25 ` Miquel Raynal
@ 2024-02-20 10:04 ` Miquel Raynal
1 sibling, 0 replies; 8+ messages in thread
From: Miquel Raynal @ 2024-02-20 10:04 UTC (permalink / raw)
To: Alexander Aring
Cc: Bo Liu, alex.aring, stefan, davem, edumazet, kuba, pabeni,
linux-wpan, netdev, linux-kernel
Hi,
aahringo@redhat.com wrote on Mon, 5 Feb 2024 14:42:09 -0500:
> Hi,
>
> On Fri, Feb 2, 2024 at 2:56 AM Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> >
> > Hi Bo,
> >
> > liubo03@inspur.com wrote on Fri, 2 Feb 2024 01:45:12 -0500:
> >
> > > 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.
> >
> > What are the real intended benefits? Shall we expect any drawbacks?
> >
>
> I doubt it has really any benefits, only the slowpath is using regmap
> to set some registers. Maybe if you change phy setting frequently it
> might have an impact, but this isn't even a path considered to run
> fast.
Ok, then let's take the series I guess. For the three patches:
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Thanks,
Miquèl
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] net: ieee802154: at86rf230: convert to use maple tree register cache
2024-02-02 6:45 Bo Liu
2024-02-02 7:55 ` Miquel Raynal
@ 2024-02-26 20:48 ` Stefan Schmidt
1 sibling, 0 replies; 8+ messages in thread
From: Stefan Schmidt @ 2024-02-26 20:48 UTC (permalink / raw)
To: Bo Liu, alex.aring, miquel.raynal, davem, edumazet, kuba, pabeni
Cc: linux-wpan, netdev, linux-kernel
Hello,
On 02.02.24 07:45, Bo Liu wrote:
> 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 <liubo03@inspur.com>
> ---
> drivers/net/ieee802154/at86rf230.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
> index 164c7f605af5..6212164ffb36 100644
> --- a/drivers/net/ieee802154/at86rf230.c
> +++ b/drivers/net/ieee802154/at86rf230.c
> @@ -316,7 +316,7 @@ static const struct regmap_config at86rf230_regmap_spi_config = {
> .val_bits = 8,
> .write_flag_mask = CMD_REG | CMD_WRITE,
> .read_flag_mask = CMD_REG,
> - .cache_type = REGCACHE_RBTREE,
> + .cache_type = REGCACHE_MAPLE,
> .max_register = AT86RF2XX_NUMREGS,
> .writeable_reg = at86rf230_reg_writeable,
> .readable_reg = at86rf230_reg_readable,
This patch has been applied to the wpan-next tree and will be
part of the next pull request to net-next. Thanks!
regards
Stefan Schmidt
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-02-26 20:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-02 8:08 [PATCH] net: ieee802154: at86rf230: convert to use maple tree register cache Bo Liu (刘波)-浪潮信息
2024-02-04 14:35 ` Simon Horman
-- strict thread matches above, loose matches on Subject: below --
2024-02-02 6:45 Bo Liu
2024-02-02 7:55 ` Miquel Raynal
2024-02-05 19:42 ` Alexander Aring
2024-02-06 9:25 ` Miquel Raynal
2024-02-20 10:04 ` Miquel Raynal
2024-02-26 20:48 ` Stefan Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).