Skip to contentSkip to conversation

Clean up noarch ipipe queue

PATCH Jan Kiszka 2 participants 3 messages Feb 27, 2019 – Feb 28, 2019

Subsystems (2)
lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi Philippe,

I started to revert the patches in the x86 tree that are touching arch/arm. One fragment may be reverted for everyone:

arch/arm/include/asm/arch_timer.h +0 -4
@@ -106,10 +106,6 @@ static inline u32 arch_timer_get_cntkctl(void)
 
 static inline void arch_timer_set_cntkctl(u32 cntkctl)
 {
-#ifdef CONFIG_IPIPE
-	/* Enable access to user-space (may not be needed) */
-	cntkctl |= ARCH_TIMER_USR_PCT_ACCESS_EN;
-#endif
 	asm volatile("mcr p15, 0, %0, c14, c1, 0" : : "r" (cntkctl));
 }
 

Or are we exploiting user space access?

FWIW, I've reverted now these three:

e219c3bbc14e4d00178b50bb7b992c9817a2aa16
259c0c09953d3559618c69f29f5c2aa9fe570a24
77361f93e4be1bf23025b01d0d64379a681e11a3

Thanks,
Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
#1 lore raw
Quoted 18 lines · Jan Kiszka

Hi Philippe,

I started to revert the patches in the x86 tree that are touching arch/arm. One fragment may be reverted for everyone:

Quoted 1 line

--- a/arch/arm/include/asm/arch_timer.h

+++ b/arch/arm/include/asm/arch_timer.h

arch/arm/include/asm/arch_timer.h +0 -4
@@ -106,10 +106,6 @@ static inline u32 arch_timer_get_cntkctl(void)
 
  static inline void arch_timer_set_cntkctl(u32 cntkctl)
  {
-#ifdef CONFIG_IPIPE
-    /* Enable access to user-space (may not be needed) */
-    cntkctl |= ARCH_TIMER_USR_PCT_ACCESS_EN;
-#endif
      asm volatile("mcr p15, 0, %0, c14, c1, 0" : : "r" (cntkctl));
  }
 
Quoted 1 line

Or are we exploiting user space access?

We are, for reading the timer counter directly via a memory mapping on arm and arm64. This is a prerequisite for the ipipe_tsc abstraction on these archs.

Quoted 7 lines

FWIW, I've reverted now these three:

e219c3bbc14e4d00178b50bb7b992c9817a2aa16
259c0c09953d3559618c69f29f5c2aa9fe570a24
77361f93e4be1bf23025b01d0d64379a681e11a3

Signature · 1 line
Philippe.
author
#2 lore raw
Quoted 19 lines · Philippe Gerum
Quoted 18 lines · Jan Kiszka

Hi Philippe,

I started to revert the patches in the x86 tree that are touching arch/arm. One fragment may be reverted for everyone:

Quoted 1 line

--- a/arch/arm/include/asm/arch_timer.h

+++ b/arch/arm/include/asm/arch_timer.h

arch/arm/include/asm/arch_timer.h +0 -4
@@ -106,10 +106,6 @@ static inline u32 arch_timer_get_cntkctl(void)
 
  static inline void arch_timer_set_cntkctl(u32 cntkctl)
  {
-#ifdef CONFIG_IPIPE
-    /* Enable access to user-space (may not be needed) */
-    cntkctl |= ARCH_TIMER_USR_PCT_ACCESS_EN;
-#endif
      asm volatile("mcr p15, 0, %0, c14, c1, 0" : : "r" (cntkctl));
  }
 
Quoted 5 lines
Quoted 1 line

Or are we exploiting user space access?

We are, for reading the timer counter directly via a memory mapping on arm and arm64. This is a prerequisite for the ipipe_tsc abstraction on these archs.

OK, then I will sent a revert of this hunk for noarch and a patch re-adding this to the ARM tree with this explanation.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux