All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Documentation/admin-guide: kernel-parameters: Update nohlt section
@ 2021-02-09  0:30 Florian Fainelli
  2021-02-09  0:55 ` Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2021-02-09  0:30 UTC (permalink / raw)
  To: linux-kernel, corbet
  Cc: Florian Fainelli, Paul E. McKenney, Randy Dunlap, Andrew Morton,
	Thomas Gleixner, Mauro Carvalho Chehab, Mike Kravetz,
	Guilherme G. Piccoli, open list:DOCUMENTATION

Update the documentation regarding "nohlt" and indicate that it is not
only for bugs, but can be useful to disable the architecture specific
sleep instructions. ARM, ARM64, SuperH and Microblaze all use
CONFIG_GENERIC_IDLE_POLL_SETUP which takes care of honoring the
"hlt"/"nohlt" parameters.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 Documentation/admin-guide/kernel-parameters.txt | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
index a10b545c2070..83c37e23e1e2 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -3266,9 +3266,14 @@
 			parameter, xsave area per process might occupy more
 			memory on xsaves enabled systems.
 
-	nohlt		[BUGS=ARM,SH] Tells the kernel that the sleep(SH) or
-			wfi(ARM) instruction doesn't work correctly and not to
-			use it. This is also useful when using JTAG debugger.
+	nohlt		[ARM,ARM64,MICROBLAZE,SH] Forces the kernel to busy wait
+			in do_idle() and not use the arch_cpu_idle()
+			implementation, requires CONFIG_GENERIC_IDLE_POLL_SETUP
+			to be effective. This is useful on platforms where the
+			sleep(SH) or wfi(ARM,ARM64) instructions do not work
+			correctly or when doing power measurements to evalute
+			the impact of the sleep instructions. This is also
+			useful when using JTAG debugger.
 
 	no_file_caps	Tells the kernel not to honor file capabilities.  The
 			only way then for a file to be executed with privilege
-- 
2.25.1


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

* Re: [PATCH] Documentation/admin-guide: kernel-parameters: Update nohlt section
  2021-02-09  0:30 [PATCH] Documentation/admin-guide: kernel-parameters: Update nohlt section Florian Fainelli
@ 2021-02-09  0:55 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2021-02-09  0:55 UTC (permalink / raw)
  To: Florian Fainelli, linux-kernel, corbet
  Cc: Paul E. McKenney, Andrew Morton, Thomas Gleixner,
	Mauro Carvalho Chehab, Mike Kravetz, Guilherme G. Piccoli,
	open list:DOCUMENTATION

On 2/8/21 4:30 PM, Florian Fainelli wrote:
> Update the documentation regarding "nohlt" and indicate that it is not
> only for bugs, but can be useful to disable the architecture specific
> sleep instructions. ARM, ARM64, SuperH and Microblaze all use
> CONFIG_GENERIC_IDLE_POLL_SETUP which takes care of honoring the
> "hlt"/"nohlt" parameters.
> 
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
>  Documentation/admin-guide/kernel-parameters.txt | 11 ++++++++---
>  1 file changed, 8 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> index a10b545c2070..83c37e23e1e2 100644
> --- a/Documentation/admin-guide/kernel-parameters.txt
> +++ b/Documentation/admin-guide/kernel-parameters.txt
> @@ -3266,9 +3266,14 @@
>  			parameter, xsave area per process might occupy more
>  			memory on xsaves enabled systems.
>  
> -	nohlt		[BUGS=ARM,SH] Tells the kernel that the sleep(SH) or
> -			wfi(ARM) instruction doesn't work correctly and not to
> -			use it. This is also useful when using JTAG debugger.
> +	nohlt		[ARM,ARM64,MICROBLAZE,SH] Forces the kernel to busy wait
> +			in do_idle() and not use the arch_cpu_idle()
> +			implementation, requires CONFIG_GENERIC_IDLE_POLL_SETUP

Sounds good... but above, I would prefer s/,/;/

> +			to be effective. This is useful on platforms where the
> +			sleep(SH) or wfi(ARM,ARM64) instructions do not work
> +			correctly or when doing power measurements to evalute
> +			the impact of the sleep instructions. This is also
> +			useful when using JTAG debugger.
>  
>  	no_file_caps	Tells the kernel not to honor file capabilities.  The
>  			only way then for a file to be executed with privilege
> 

Acked-by: Randy Dunlap <rdunlap@infradead.org>

thanks.

-- 
~Randy


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

end of thread, other threads:[~2021-02-09  0:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-09  0:30 [PATCH] Documentation/admin-guide: kernel-parameters: Update nohlt section Florian Fainelli
2021-02-09  0:55 ` Randy Dunlap

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.