<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sys/arch/alpha/include/cpu.h, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sys/arch/alpha/include/cpu.h?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sys/arch/alpha/include/cpu.h?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-06-05T14:25:05Z</updated>
<entry>
<title>Implement cpu_rnd_messybits() as a read of the cycle counter register.</title>
<updated>2020-06-05T14:25:05Z</updated>
<author>
<name>naddy</name>
<email>naddy@openbsd.org</email>
</author>
<published>2020-06-05T14:25:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4f1155a8e1b8d56b62802304c62b79d4e918eb9a'/>
<id>urn:sha1:4f1155a8e1b8d56b62802304c62b79d4e918eb9a</id>
<content type='text'>
ok dlg@, powerpc/sparc64 ok kettenis@, sparc64/alpha tested by deraadt@
</content>
</entry>
<entry>
<title>introduce "cpu_rnd_messybits" for use instead of nanotime in dev/rnd.c.</title>
<updated>2020-05-31T06:23:56Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2020-05-31T06:23:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=01802d2cc63d886227ab3b39e923ff13cf516166'/>
<id>urn:sha1:01802d2cc63d886227ab3b39e923ff13cf516166</id>
<content type='text'>
rnd.c uses nanotime to get access to some bits that change quickly
between events that it can mix into the entropy pool. it doesn't
use nanotime to get a monotonically increasing set or ordered and
accurate timestamps, it just wants something with bits that change.

there's been discussions for years about letting rnd use a clock
that's super fast to read, but not necessarily accurate, but it
wasn't until recently that i figured out it wasn't interested in
time at all, so things like keeping a fast clock coherent between
cpu cores or correct according to ntp is unecessary. this means we
can just let rnd read the cycle counters on cpus and things will
be fine.  cpus with cycle counters that vary in their speed and
arent kept consistent between cores may even be desirable in this
context.

so this is the first step in converting rnd.c to reading cycle
counter. it copies the nanotime backend to each arch, and they can
replace it with something MD as a second step later on.

djm@ suggested rnd_messybytes, but we landed on cpu_rnd_messybits.
thanks to visa for his eyes.
ok deraadt@ visa@
deraadt@ says he will help handle any MD fallout that occurs.
</content>
</entry>
<entry>
<title>Add intr_{disable,restore}() for alpha.</title>
<updated>2019-03-24T06:19:26Z</updated>
<author>
<name>visa</name>
<email>visa@openbsd.org</email>
</author>
<published>2019-03-24T06:19:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=a7f4c0eaa5a9c1b02cf8b788f1a2165abcf9ece2'/>
<id>urn:sha1:a7f4c0eaa5a9c1b02cf8b788f1a2165abcf9ece2</id>
<content type='text'>
Reminded by deraadt@
</content>
</entry>
<entry>
<title>Include srp.h where struct cpu_info uses srp to avoid erroring out when</title>
<updated>2018-12-05T10:28:21Z</updated>
<author>
<name>jsg</name>
<email>jsg@openbsd.org</email>
</author>
<published>2018-12-05T10:28:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=1a1181a966226532433438cb3741ae7cdc0727d4'/>
<id>urn:sha1:1a1181a966226532433438cb3741ae7cdc0727d4</id>
<content type='text'>
including cpu.h machine/intr.h etc without first including param.h when
MULTIPROCESSOR is defined.

ok visa@
</content>
</entry>
<entry>
<title>Fill in FRAME_PS after the fact.  What a ridiculous design decision.</title>
<updated>2018-04-09T04:11:02Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2018-04-09T04:11:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=96dac833713356961e8a4ffe4b6f17726581cebc'/>
<id>urn:sha1:96dac833713356961e8a4ffe4b6f17726581cebc</id>
<content type='text'>
It would be better if this was filled in at trap time.
ok guenther
</content>
</entry>
<entry>
<title>Kill SPINLOCK_SPIN_HOOK, use CPU_BUSY_CYCLE() instead.</title>
<updated>2017-05-29T14:19:49Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2017-05-29T14:19:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=275e6a2f73daf87c4fca2936430979b529d958cc'/>
<id>urn:sha1:275e6a2f73daf87c4fca2936430979b529d958cc</id>
<content type='text'>
ok visa@, kettenis@
</content>
</entry>
<entry>
<title>Better support for alphas without all IEEE-mode instructions</title>
<updated>2016-03-30T15:39:46Z</updated>
<author>
<name>afresh1</name>
<email>afresh1@openbsd.org</email>
</author>
<published>2016-03-30T15:39:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=baa60ee8e48204039a56b1beaf34f6f63891aa5d'/>
<id>urn:sha1:baa60ee8e48204039a56b1beaf34f6f63891aa5d</id>
<content type='text'>
From Miod Vallat

I trust miod deraadt@
</content>
</entry>
<entry>
<title>guard macro args with parens</title>
<updated>2016-03-01T19:17:37Z</updated>
<author>
<name>mmcc</name>
<email>mmcc@openbsd.org</email>
</author>
<published>2016-03-01T19:17:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3870118e4f70869b1aafe836d1f30fbf296da65b'/>
<id>urn:sha1:3870118e4f70869b1aafe836d1f30fbf296da65b</id>
<content type='text'>
from Michal Mazurek, ok deraadt@
</content>
</entry>
<entry>
<title>introduce srp, which according to the manpage i wrote is short for</title>
<updated>2015-07-02T01:33:59Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2015-07-02T01:33:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=52776b7dd171c092a35f86a9ed8bd1c22cac9fb8'/>
<id>urn:sha1:52776b7dd171c092a35f86a9ed8bd1c22cac9fb8</id>
<content type='text'>
"shared reference pointers".

srp allows concurrent access to a data structure by multiple cpus
while avoiding interlocking cpu opcodes. it manages its own reference
counts and the garbage collection of those data structure to avoid
use after frees.

internally srp is a twisted version of hazard pointers, which are
a relative of RCU.

jmatthew wrote the bulk of a hazard pointer implementation and
changed bpf to use it to allow mpsafe access to bpfilters. however,
at s2k15 we were trying to apply it to other data structures but
the memory overhead of every hazard pointer would have blown out
significantly in several uses cases. a bulk of our time at s2k15
was spent reworking hazard pointers into srp.

this diff adds the srp api and adds the necessary metadata to struct
cpuinfo on our MP architectures. srp on uniprocessor platforms has
alternate code that is optimised because it knows there'll be no
concurrent access to data by multiple cpus.

srp is made available to the system via param.h, so it should be
available everywhere in the kernel.

the docs likely need improvement cos im too close to the implementation.

ok mpi@
</content>
</entry>
<entry>
<title>remove simplelocks</title>
<updated>2014-12-17T15:23:40Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2014-12-17T15:23:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d3bbf02a7a302c79f935e42646e7e992804fa54a'/>
<id>urn:sha1:d3bbf02a7a302c79f935e42646e7e992804fa54a</id>
<content type='text'>
ok tedu
</content>
</entry>
</feed>
