History log of /netbsd-src/sys/sys/pcu.h (Results 1 – 14 of 14)
Revision Date Author Comments
# ff22bcd2 26-Oct-2022 riastradh <riastradh@NetBSD.org>

sys/pcu.h: New home for extern pcu_ops_md_defs.

XXX Should split sys/pcu.h up into the part that sys/lwp.h needs,
which triggers rebuild of entire kernel, and the parts needed only by
subr_pcu.c and

sys/pcu.h: New home for extern pcu_ops_md_defs.

XXX Should split sys/pcu.h up into the part that sys/lwp.h needs,
which triggers rebuild of entire kernel, and the parts needed only by
subr_pcu.c and by MD FP/SIMD state management logic.

show more ...


# 877a3ccf 16-Mar-2017 chs <chs@NetBSD.org>

allow pcu_save() and pcu_discard() to be called on other threads,
ptrace needs to use it that way.


# d67ab12c 16-May-2014 rmind <rmind@NetBSD.org>

pcu(9):
- Remove PCU_KERNEL (hi matt!) and significantly simplify the code.
This experimental feature was tried on ARM did not meet the expectations.
It may be revived one day, but it should be d

pcu(9):
- Remove PCU_KERNEL (hi matt!) and significantly simplify the code.
This experimental feature was tried on ARM did not meet the expectations.
It may be revived one day, but it should be done in a much simpler way.
- Add a message structure for xcall function, pass the LWP ower and thus
optimise a race condition: if LWP is discarding its state on a remote CPU,
but another LWP already did it - do not cause an unecessary re-faulting.
- Reduce the variety of flags for PCU operations (only PCU_VALID and
PCU_REENABLE are used now), pass them only to the pcu_state_load().
- Rename pcu_used_p() to pcu_valid_p(); hopefully it is less confusing.
- pcu_save_all_on_cpu: SPL ought to be used here.
- Update and improve the pcu(9) man page; it needs wizd(8) though.

show more ...


# 69aeb16c 22-Aug-2013 drochner <drochner@NetBSD.org>

-extend the pcu(9) API by a function which saves all context on the
current CPU, and use it if a CPU is taken offline
-add a bool argument to pcu_discard which tells whether the internal
"LWP has u

-extend the pcu(9) API by a function which saves all context on the
current CPU, and use it if a CPU is taken offline
-add a bool argument to pcu_discard which tells whether the internal
"LWP has used the coprocessor" flag should be set or reset. The flag
is reported by pcu_used_p(). If set, future accesses should use the
state stored in the PCB. If reset, it should be reset to default.
The former case is useful for setmcontext().
With that, it should not be necessary anymore to manage the "FPU used"
state by an additional MD variable.

approved by matt

show more ...


# 09ae87cf 26-Dec-2012 matt <matt@NetBSD.org>

Add support for kernel-based code to use a PCU. (for memory to memory
copies or in_cksum or ...)


# 673662ef 18-Apr-2012 yamt <yamt@NetBSD.org>

comment


# f3c47d39 06-Jun-2011 matt <matt@NetBSD.org>

Add some more MI hook points for PCU. Discard the PCU state at lwp_exit and
at exec time. Before forking, save the PCU state so that cpu_lwp_fork
doesn't have. Remove MD code which did that before.


# 50bbbe7f 02-May-2011 martin <martin@NetBSD.org>

Make it self-contained (add missing stdbool.h include when used for libkvm)


# 1391a530 02-May-2011 rmind <rmind@NetBSD.org>

Limit sys/pcu.h inclusion within _KERNEL scope, plus _KMEMUSER.


# 38d699a2 02-May-2011 rmind <rmind@NetBSD.org>

Extend PCU:
- Add pcu_ops_t::pcu_state_release() operation for PCU_RELEASE case.
- Add pcu_switchpoint() to perform release operation on context switch.
- Sprinkle const, misc. Also, sync MIPS with

Extend PCU:
- Add pcu_ops_t::pcu_state_release() operation for PCU_RELEASE case.
- Add pcu_switchpoint() to perform release operation on context switch.
- Sprinkle const, misc. Also, sync MIPS with changes.

Per discussions with matt@.

show more ...


# 7cefbb60 19-Feb-2011 matt <matt@NetBSD.org>

Default PCU_UNIT_COUNT to 0. If 0, don't compile the contents of subr_pcu.c
and don't include the pcu related members into struct lwp.


# 6146ba63 17-Feb-2011 rmind <rmind@NetBSD.org>

Fix sys/pcu.h build breakage.


# 69e6dfca 17-Feb-2011 matt <matt@NetBSD.org>

Add a bool to pcu_state_save which indicates whether the PCU is going to be
released after the save is done.


# bc16d8a4 17-Feb-2011 rmind <rmind@NetBSD.org>

Add PCU (Per-CPU Unit) - an interface to manage synchronization of any
per CPU context tied with an LWP. Main use - lazy FPU handling on SMP.

Requested by matt@, will be used on mips64. Note: impl

Add PCU (Per-CPU Unit) - an interface to manage synchronization of any
per CPU context tied with an LWP. Main use - lazy FPU handling on SMP.

Requested by matt@, will be used on mips64. Note: implementation will
be improved to use IPIs before adopting on x86. OK ad@.

show more ...