linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* State of RFC PATCH Remove CONFIG_DCACHE_WORD_ACCESS
@ 2022-09-12 13:46 Lukas Bulwahn
  2022-09-12 15:22 ` Christophe Leroy
  0 siblings, 1 reply; 3+ messages in thread
From: Lukas Bulwahn @ 2022-09-12 13:46 UTC (permalink / raw)
  To: Joe Perches, Linux ARM, Linux Kernel Mailing List, linux-fsdevel,
	linuxppc-dev, Benjamin Herrenschmidt, kernel-janitors

Hi Joe, hi Ben,

While reviewing some kernel config, I came across
CONFIG_DCACHE_WORD_ACCESS and tried to understand its purpose.

Then, I discovered this RFC patch from 2014 that seems never to have
been integrated:

https://lore.kernel.org/all/1393964591.20435.58.camel@joe-AO722/
[RFC] Remove CONFIG_DCACHE_WORD_ACCESS

The discussion seemed to just not continue and the patch was just not
integrated by anyone.

In the meantime, the use of CONFIG_DCACHE_WORD_ACCESS has spread into
a few more files, but replacing it with
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS still seems feasible.

Are you aware of reasons that this patch from 2014 should not be integrated?

I would spend some time to move the integration of this patch further
if you consider that the patch is not completely wrong.


Best regards,

Lukas

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: State of RFC PATCH Remove CONFIG_DCACHE_WORD_ACCESS
  2022-09-12 13:46 State of RFC PATCH Remove CONFIG_DCACHE_WORD_ACCESS Lukas Bulwahn
@ 2022-09-12 15:22 ` Christophe Leroy
  2022-09-13  9:42   ` Christophe Leroy
  0 siblings, 1 reply; 3+ messages in thread
From: Christophe Leroy @ 2022-09-12 15:22 UTC (permalink / raw)
  To: Lukas Bulwahn, Joe Perches, Linux ARM, Linux Kernel Mailing List,
	linux-fsdevel, linuxppc-dev, Benjamin Herrenschmidt,
	kernel-janitors



Le 12/09/2022 à 15:46, Lukas Bulwahn a écrit :
> Hi Joe, hi Ben,
> 
> While reviewing some kernel config, I came across
> CONFIG_DCACHE_WORD_ACCESS and tried to understand its purpose.
> 
> Then, I discovered this RFC patch from 2014 that seems never to have
> been integrated:
> 
> https://lore.kernel.org/all/1393964591.20435.58.camel@joe-AO722/
> [RFC] Remove CONFIG_DCACHE_WORD_ACCESS
> 
> The discussion seemed to just not continue and the patch was just not
> integrated by anyone.
> 
> In the meantime, the use of CONFIG_DCACHE_WORD_ACCESS has spread into
> a few more files, but replacing it with
> CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS still seems feasible.
> 
> Are you aware of reasons that this patch from 2014 should not be integrated?
> 
> I would spend some time to move the integration of this patch further
> if you consider that the patch is not completely wrong.
> 

As far as I can see, for the time being this is not equivalent on powerpc:

select HAVE_EFFICIENT_UNALIGNED_ACCESS  if !(CPU_LITTLE_ENDIAN && 
POWER7_CPU)

select DCACHE_WORD_ACCESS               if PPC64 && CPU_LITTLE_ENDIAN

This will need to be investigated I guess.

In the meantime I'll try to see if it makes any difference for ppc32.

Christophe
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: State of RFC PATCH Remove CONFIG_DCACHE_WORD_ACCESS
  2022-09-12 15:22 ` Christophe Leroy
@ 2022-09-13  9:42   ` Christophe Leroy
  0 siblings, 0 replies; 3+ messages in thread
From: Christophe Leroy @ 2022-09-13  9:42 UTC (permalink / raw)
  To: Lukas Bulwahn, Joe Perches, Linux ARM, Linux Kernel Mailing List,
	linux-fsdevel, linuxppc-dev, Benjamin Herrenschmidt,
	kernel-janitors



Le 12/09/2022 à 17:22, Christophe Leroy a écrit :
> 
> 
> Le 12/09/2022 à 15:46, Lukas Bulwahn a écrit :
>> Hi Joe, hi Ben,
>>
>> While reviewing some kernel config, I came across
>> CONFIG_DCACHE_WORD_ACCESS and tried to understand its purpose.
>>
>> Then, I discovered this RFC patch from 2014 that seems never to have
>> been integrated:
>>
>> https://lore.kernel.org/all/1393964591.20435.58.camel@joe-AO722/
>> [RFC] Remove CONFIG_DCACHE_WORD_ACCESS
>>
>> The discussion seemed to just not continue and the patch was just not
>> integrated by anyone.
>>
>> In the meantime, the use of CONFIG_DCACHE_WORD_ACCESS has spread into
>> a few more files, but replacing it with
>> CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS still seems feasible.
>>
>> Are you aware of reasons that this patch from 2014 should not be 
>> integrated?
>>
>> I would spend some time to move the integration of this patch further
>> if you consider that the patch is not completely wrong.
>>
> 
> As far as I can see, for the time being this is not equivalent on powerpc:
> 
> select HAVE_EFFICIENT_UNALIGNED_ACCESS  if !(CPU_LITTLE_ENDIAN && 
> POWER7_CPU)
> 
> select DCACHE_WORD_ACCESS               if PPC64 && CPU_LITTLE_ENDIAN
> 
> This will need to be investigated I guess.
> 
> In the meantime I'll try to see if it makes any difference for ppc32.
> 

Selecting DCACHE_WORD_ACCESS on powerpc32 provides an improvement of 
approx 9% on a powerpc 8xx and about 2% on a powerpc 832x, using the 
benchmark test in commit a75c380c7129 ("powerpc: Enable 
DCACHE_WORD_ACCESS on ppc64le")

Christophe

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-13  9:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-12 13:46 State of RFC PATCH Remove CONFIG_DCACHE_WORD_ACCESS Lukas Bulwahn
2022-09-12 15:22 ` Christophe Leroy
2022-09-13  9:42   ` Christophe Leroy

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).