linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Issue in man page  PR_RISCV_SET_ICACHE_FLUSH_CTX.2const
@ 2025-12-24 14:38 Helge Kreutzmann
  2025-12-25 13:59 ` Alejandro Colomar
  0 siblings, 1 reply; 10+ messages in thread
From: Helge Kreutzmann @ 2025-12-24 14:38 UTC (permalink / raw)
  To: alx; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:     eg. → e.g., but I think i.e. is correct?

"In per-thread context (eg., scope is set to B<PR_RISCV_SCOPE_PER_THREAD>)  "
"only the thread calling this function is permitted to emit icache flushing "
"instructions.  When the thread is migrated, the corresponding hart's icache "
"will be guaranteed to be consistent with instruction storage."

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

* Issue in man page  PR_RISCV_SET_ICACHE_FLUSH_CTX.2const
@ 2025-12-24 14:38 Helge Kreutzmann
  2025-12-24 15:52 ` Alejandro Colomar
  0 siblings, 1 reply; 10+ messages in thread
From: Helge Kreutzmann @ 2025-12-24 14:38 UTC (permalink / raw)
  To: alx; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:     No full stop

"PR_RISCV_SET_ICACHE_FLUSH_CTX - Enable/disable icache flushing instructions "
"in userspace."

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

* Issue in man page  PR_RISCV_SET_ICACHE_FLUSH_CTX.2const
@ 2025-12-24 14:38 Helge Kreutzmann
  2025-12-25 21:06 ` Alejandro Colomar
  0 siblings, 1 reply; 10+ messages in thread
From: Helge Kreutzmann @ 2025-12-24 14:38 UTC (permalink / raw)
  To: alx; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:     scope → I<scope>

"When scope is set to B<PR_RISCV_SCOPE_PER_PROCESS> all threads in the "
"process are permitted to emit icache flushing instructions.  Whenever any "
"thread in the process is migrated, the corresponding hart's icache will be "
"guaranteed to be consistent with instruction storage.  This does not enforce "
"any guarantees outside of migration.  If a thread modifies an instruction "
"that another thread may attempt to execute, the other thread must still emit "
"an icache flushing instruction before attempting to execute the potentially "
"modified instruction.  This must be performed by the user-space program."

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

* Issue in man page  PR_RISCV_SET_ICACHE_FLUSH_CTX.2const
@ 2025-12-24 14:38 Helge Kreutzmann
  2025-12-25 21:03 ` Alejandro Colomar
  0 siblings, 1 reply; 10+ messages in thread
From: Helge Kreutzmann @ 2025-12-24 14:38 UTC (permalink / raw)
  To: alx; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue 1:   modify_instruction() → B<modify_instruction()>
Issue 2:   get_value() → B<get_value()>

"The following files are meant to be compiled and linked with each other.  "
"The modify_instruction() function replaces an add with zero with an add with "
"one, causing the instruction sequence in get_value() to change from "
"returning a zero to returning a one."

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

* Issue in man page  PR_RISCV_SET_ICACHE_FLUSH_CTX.2const
@ 2025-12-24 14:38 Helge Kreutzmann
  0 siblings, 0 replies; 10+ messages in thread
From: Helge Kreutzmann @ 2025-12-24 14:38 UTC (permalink / raw)
  To: alx; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:     cmodx.c → I<cmodx.c>

"Program source: cmodx.c"

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

* Issue in man page  PR_RISCV_SET_ICACHE_FLUSH_CTX.2const
@ 2025-12-24 14:38 Helge Kreutzmann
  0 siblings, 0 replies; 10+ messages in thread
From: Helge Kreutzmann @ 2025-12-24 14:38 UTC (permalink / raw)
  To: alx; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:     cmodx.S → I<cmodx.S>

"Program source: cmodx.S"

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

* Re: Issue in man page  PR_RISCV_SET_ICACHE_FLUSH_CTX.2const
  2025-12-24 14:38 Helge Kreutzmann
@ 2025-12-24 15:52 ` Alejandro Colomar
  0 siblings, 0 replies; 10+ messages in thread
From: Alejandro Colomar @ 2025-12-24 15:52 UTC (permalink / raw)
  To: Helge Kreutzmann; +Cc: mario.blaettermann, linux-man

[-- Attachment #1: Type: text/plain, Size: 346 bytes --]

On Wed, Dec 24, 2025 at 02:38:22PM +0000, Helge Kreutzmann wrote:
> Without further ado, the following was found:
> 
> Issue:     No full stop
> 
> "PR_RISCV_SET_ICACHE_FLUSH_CTX - Enable/disable icache flushing instructions "
> "in userspace."

Thanks!  I've applied a fix.


Cheers,
Alex

-- 
<https://www.alejandro-colomar.es>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: Issue in man page  PR_RISCV_SET_ICACHE_FLUSH_CTX.2const
  2025-12-24 14:38 Issue in man page PR_RISCV_SET_ICACHE_FLUSH_CTX.2const Helge Kreutzmann
@ 2025-12-25 13:59 ` Alejandro Colomar
  0 siblings, 0 replies; 10+ messages in thread
From: Alejandro Colomar @ 2025-12-25 13:59 UTC (permalink / raw)
  To: Helge Kreutzmann; +Cc: mario.blaettermann, linux-man

[-- Attachment #1: Type: text/plain, Size: 623 bytes --]

On Wed, Dec 24, 2025 at 02:38:22PM +0000, Helge Kreutzmann wrote:
> Without further ado, the following was found:
> 
> Issue:     eg. → e.g., but I think i.e. is correct?

Thanks!  Fixed.  Indeed, 'i.e.' is the right thing to use here.


Cheers,
Alex

> 
> "In per-thread context (eg., scope is set to B<PR_RISCV_SCOPE_PER_THREAD>)  "
> "only the thread calling this function is permitted to emit icache flushing "
> "instructions.  When the thread is migrated, the corresponding hart's icache "
> "will be guaranteed to be consistent with instruction storage."

-- 
<https://www.alejandro-colomar.es>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: Issue in man page  PR_RISCV_SET_ICACHE_FLUSH_CTX.2const
  2025-12-24 14:38 Helge Kreutzmann
@ 2025-12-25 21:03 ` Alejandro Colomar
  0 siblings, 0 replies; 10+ messages in thread
From: Alejandro Colomar @ 2025-12-25 21:03 UTC (permalink / raw)
  To: Helge Kreutzmann; +Cc: mario.blaettermann, linux-man

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

Hi Helge,

On Wed, Dec 24, 2025 at 02:38:22PM +0000, Helge Kreutzmann wrote:
> Without further ado, the following was found:
> 
> Issue 1:   modify_instruction() → B<modify_instruction()>
> Issue 2:   get_value() → B<get_value()>
> 
> "The following files are meant to be compiled and linked with each other.  "
> "The modify_instruction() function replaces an add with zero with an add with "
> "one, causing the instruction sequence in get_value() to change from "
> "returning a zero to returning a one."

Since these functions are just part of this example, and not something
standard nor provided by any library nor documented anywhere, I think we
shouldn't mark them up.


Have a lovely night!
Alex

-- 
<https://www.alejandro-colomar.es>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: Issue in man page  PR_RISCV_SET_ICACHE_FLUSH_CTX.2const
  2025-12-24 14:38 Helge Kreutzmann
@ 2025-12-25 21:06 ` Alejandro Colomar
  0 siblings, 0 replies; 10+ messages in thread
From: Alejandro Colomar @ 2025-12-25 21:06 UTC (permalink / raw)
  To: Helge Kreutzmann; +Cc: mario.blaettermann, linux-man

[-- Attachment #1: Type: text/plain, Size: 865 bytes --]

On Wed, Dec 24, 2025 at 02:38:22PM +0000, Helge Kreutzmann wrote:
> Without further ado, the following was found:
> 
> Issue:     scope → I<scope>

Fixed; thanks!


> 
> "When scope is set to B<PR_RISCV_SCOPE_PER_PROCESS> all threads in the "
> "process are permitted to emit icache flushing instructions.  Whenever any "
> "thread in the process is migrated, the corresponding hart's icache will be "
> "guaranteed to be consistent with instruction storage.  This does not enforce "
> "any guarantees outside of migration.  If a thread modifies an instruction "
> "that another thread may attempt to execute, the other thread must still emit "
> "an icache flushing instruction before attempting to execute the potentially "
> "modified instruction.  This must be performed by the user-space program."

-- 
<https://www.alejandro-colomar.es>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2025-12-25 21:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-24 14:38 Issue in man page PR_RISCV_SET_ICACHE_FLUSH_CTX.2const Helge Kreutzmann
2025-12-25 13:59 ` Alejandro Colomar
  -- strict thread matches above, loose matches on Subject: below --
2025-12-24 14:38 Helge Kreutzmann
2025-12-25 21:06 ` Alejandro Colomar
2025-12-24 14:38 Helge Kreutzmann
2025-12-24 14:38 Helge Kreutzmann
2025-12-24 15:52 ` Alejandro Colomar
2025-12-24 14:38 Helge Kreutzmann
2025-12-25 21:03 ` Alejandro Colomar
2025-12-24 14:38 Helge Kreutzmann

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