All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: VDSO: Fix incorrect clock_gettime64
@ 2020-04-09  5:05 Jaedon Shin
  2020-05-30 14:51 ` Robin Murphy
  0 siblings, 1 reply; 5+ messages in thread
From: Jaedon Shin @ 2020-04-09  5:05 UTC (permalink / raw)
  To: Russell King, linux-arm-kernel; +Cc: Jaedon Shin

__vdso_*() should be removed and fallback used if CNTCVT is not
available by cntvct_functional(). __vdso_clock_gettime64 when added
previous commit is using the incorrect CNTCVT value in that state.
__vdso_clock_gettime64 is also added to remove it's symbol.

Fixes: 74d06efb9c2f ("ARM: 8932/1: Add clock_gettime64 entry point")
Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
---
 arch/arm/kernel/vdso.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/kernel/vdso.c b/arch/arm/kernel/vdso.c
index e0330a25e1c6..28cfe7bad1bf 100644
--- a/arch/arm/kernel/vdso.c
+++ b/arch/arm/kernel/vdso.c
@@ -184,6 +184,7 @@ static void __init patch_vdso(void *ehdr)
 	if (!cntvct_ok) {
 		vdso_nullpatch_one(&einfo, "__vdso_gettimeofday");
 		vdso_nullpatch_one(&einfo, "__vdso_clock_gettime");
+		vdso_nullpatch_one(&einfo, "__vdso_clock_gettime64");
 	}
 }
 
-- 
2.24.1 (Apple Git-126)


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

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

* Re: [PATCH] ARM: VDSO: Fix incorrect clock_gettime64
  2020-04-09  5:05 [PATCH] ARM: VDSO: Fix incorrect clock_gettime64 Jaedon Shin
@ 2020-05-30 14:51 ` Robin Murphy
  2020-05-30 14:59   ` Russell King - ARM Linux admin
  0 siblings, 1 reply; 5+ messages in thread
From: Robin Murphy @ 2020-05-30 14:51 UTC (permalink / raw)
  To: Jaedon Shin, Russell King, linux-arm-kernel
  Cc: Vincenzo Frascino, Arnd Bergmann

On 2020-04-09 06:05, Jaedon Shin wrote:
> __vdso_*() should be removed and fallback used if CNTCVT is not
> available by cntvct_functional(). __vdso_clock_gettime64 when added
> previous commit is using the incorrect CNTCVT value in that state.
> __vdso_clock_gettime64 is also added to remove it's symbol.

Tested-by: Robin Murphy <robin.murphy@arm.com>

Turns out this is what was making my RK3288 box virtually unusable since 
its last couple of updates - it would be nice to get the fix merged and 
backported ASAP. I suspect it's also the same underlying thing for the 
Raspberry Pi thread over here:

https://lore.kernel.org/linux-arm-kernel/CAK8P3a2Tw2w73ZkK-W6AA9veMK4-miLUx-TL1EuOdP7EdW-AmQ@mail.gmail.com/

Robin.

> Fixes: 74d06efb9c2f ("ARM: 8932/1: Add clock_gettime64 entry point")
> Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
> ---
>   arch/arm/kernel/vdso.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/kernel/vdso.c b/arch/arm/kernel/vdso.c
> index e0330a25e1c6..28cfe7bad1bf 100644
> --- a/arch/arm/kernel/vdso.c
> +++ b/arch/arm/kernel/vdso.c
> @@ -184,6 +184,7 @@ static void __init patch_vdso(void *ehdr)
>   	if (!cntvct_ok) {
>   		vdso_nullpatch_one(&einfo, "__vdso_gettimeofday");
>   		vdso_nullpatch_one(&einfo, "__vdso_clock_gettime");
> +		vdso_nullpatch_one(&einfo, "__vdso_clock_gettime64");
>   	}
>   }
>   
> 

_______________________________________________
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] 5+ messages in thread

* Re: [PATCH] ARM: VDSO: Fix incorrect clock_gettime64
  2020-05-30 14:51 ` Robin Murphy
@ 2020-05-30 14:59   ` Russell King - ARM Linux admin
  2020-06-08 13:54     ` Robin Murphy
  0 siblings, 1 reply; 5+ messages in thread
From: Russell King - ARM Linux admin @ 2020-05-30 14:59 UTC (permalink / raw)
  To: Robin Murphy
  Cc: Vincenzo Frascino, Arnd Bergmann, Jaedon Shin, linux-arm-kernel

On Sat, May 30, 2020 at 03:51:35PM +0100, Robin Murphy wrote:
> On 2020-04-09 06:05, Jaedon Shin wrote:
> > __vdso_*() should be removed and fallback used if CNTCVT is not
> > available by cntvct_functional(). __vdso_clock_gettime64 when added
> > previous commit is using the incorrect CNTCVT value in that state.
> > __vdso_clock_gettime64 is also added to remove it's symbol.
> 
> Tested-by: Robin Murphy <robin.murphy@arm.com>
> 
> Turns out this is what was making my RK3288 box virtually unusable since its
> last couple of updates - it would be nice to get the fix merged and
> backported ASAP. I suspect it's also the same underlying thing for the
> Raspberry Pi thread over here:
> 
> https://lore.kernel.org/linux-arm-kernel/CAK8P3a2Tw2w73ZkK-W6AA9veMK4-miLUx-TL1EuOdP7EdW-AmQ@mail.gmail.com/

Does this mean I need to do something with this patch? It's not been
put in the patch system, so I'm afraid it's missed the boat for 5.7.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC for 0.8m (est. 1762m) line in suburbia: sync at 13.1Mbps down 424kbps up

_______________________________________________
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] 5+ messages in thread

* Re: [PATCH] ARM: VDSO: Fix incorrect clock_gettime64
  2020-05-30 14:59   ` Russell King - ARM Linux admin
@ 2020-06-08 13:54     ` Robin Murphy
  2020-06-18 17:30       ` Robin Murphy
  0 siblings, 1 reply; 5+ messages in thread
From: Robin Murphy @ 2020-06-08 13:54 UTC (permalink / raw)
  To: Russell King - ARM Linux admin
  Cc: Vincenzo Frascino, Arnd Bergmann, Jaedon Shin, linux-arm-kernel

On 2020-05-30 15:59, Russell King - ARM Linux admin wrote:
> On Sat, May 30, 2020 at 03:51:35PM +0100, Robin Murphy wrote:
>> On 2020-04-09 06:05, Jaedon Shin wrote:
>>> __vdso_*() should be removed and fallback used if CNTCVT is not
>>> available by cntvct_functional(). __vdso_clock_gettime64 when added
>>> previous commit is using the incorrect CNTCVT value in that state.
>>> __vdso_clock_gettime64 is also added to remove it's symbol.
>>
>> Tested-by: Robin Murphy <robin.murphy@arm.com>
>>
>> Turns out this is what was making my RK3288 box virtually unusable since its
>> last couple of updates - it would be nice to get the fix merged and
>> backported ASAP. I suspect it's also the same underlying thing for the
>> Raspberry Pi thread over here:
>>
>> https://lore.kernel.org/linux-arm-kernel/CAK8P3a2Tw2w73ZkK-W6AA9veMK4-miLUx-TL1EuOdP7EdW-AmQ@mail.gmail.com/
> 
> Does this mean I need to do something with this patch? It's not been
> put in the patch system, so I'm afraid it's missed the boat for 5.7.

Well, there still seems to be a little uncertainty over whether this is 
the best fix, so I guess we may as well wait until the end of the merge 
window just in case somebody comes up with something more solid.

In this particular context I'm merely a user who wants my thing to work, 
but I'll try to keep an eye out and follow up if I don't see any other 
movement.

Robin.

_______________________________________________
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] 5+ messages in thread

* Re: [PATCH] ARM: VDSO: Fix incorrect clock_gettime64
  2020-06-08 13:54     ` Robin Murphy
@ 2020-06-18 17:30       ` Robin Murphy
  0 siblings, 0 replies; 5+ messages in thread
From: Robin Murphy @ 2020-06-18 17:30 UTC (permalink / raw)
  To: Russell King - ARM Linux admin
  Cc: linux-arm-kernel, Vincenzo Frascino, Jaedon Shin, Arnd Bergmann

On 2020-06-08 14:54, Robin Murphy wrote:
> On 2020-05-30 15:59, Russell King - ARM Linux admin wrote:
>> On Sat, May 30, 2020 at 03:51:35PM +0100, Robin Murphy wrote:
>>> On 2020-04-09 06:05, Jaedon Shin wrote:
>>>> __vdso_*() should be removed and fallback used if CNTCVT is not
>>>> available by cntvct_functional(). __vdso_clock_gettime64 when added
>>>> previous commit is using the incorrect CNTCVT value in that state.
>>>> __vdso_clock_gettime64 is also added to remove it's symbol.
>>>
>>> Tested-by: Robin Murphy <robin.murphy@arm.com>
>>>
>>> Turns out this is what was making my RK3288 box virtually unusable 
>>> since its
>>> last couple of updates - it would be nice to get the fix merged and
>>> backported ASAP. I suspect it's also the same underlying thing for the
>>> Raspberry Pi thread over here:
>>>
>>> https://lore.kernel.org/linux-arm-kernel/CAK8P3a2Tw2w73ZkK-W6AA9veMK4-miLUx-TL1EuOdP7EdW-AmQ@mail.gmail.com/ 
>>>
>>
>> Does this mean I need to do something with this patch? It's not been
>> put in the patch system, so I'm afraid it's missed the boat for 5.7.
> 
> Well, there still seems to be a little uncertainty over whether this is 
> the best fix, so I guess we may as well wait until the end of the merge 
> window just in case somebody comes up with something more solid.
> 
> In this particular context I'm merely a user who wants my thing to work, 
> but I'll try to keep an eye out and follow up if I don't see any other 
> movement.

Since the discussion about why the expected fallback behaviour didn't 
happen seems to have died down, and the Raspberry Pi folks have gone 
down the commendable path of actually fixing their firmware (!), I've 
taken the liberty of chucking this into the patch system for the sake of 
the remaining minority of affected machines.

Robin.

_______________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2020-06-18 17:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09  5:05 [PATCH] ARM: VDSO: Fix incorrect clock_gettime64 Jaedon Shin
2020-05-30 14:51 ` Robin Murphy
2020-05-30 14:59   ` Russell King - ARM Linux admin
2020-06-08 13:54     ` Robin Murphy
2020-06-18 17:30       ` Robin Murphy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.