<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sys/arch/arm/include/bus.h, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sys/arch/arm/include/bus.h?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sys/arch/arm/include/bus.h?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-04-29T15:25:07Z</updated>
<entry>
<title>Let the armv7 bus_dma layer and simplebus(4) implementation deal with</title>
<updated>2020-04-29T15:25:07Z</updated>
<author>
<name>kettenis</name>
<email>kettenis@openbsd.org</email>
</author>
<published>2020-04-29T15:25:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=37084e1e34e6eafe959b14d27c905d6c5ddf0888'/>
<id>urn:sha1:37084e1e34e6eafe959b14d27c905d6c5ddf0888</id>
<content type='text'>
DMA remapping in the same way as arm64.  This relies on the dma-ranges
property in the device tree and allows us to get rid of the hack for
the Raspberry Pi in the dwctwo(4) driver.

Note that this does not include the hack in simplebus(4) that we have on
arm64 since firmware that has the dma-ranges is in widespread use now.

ok patrick@
</content>
</entry>
<entry>
<title>add a BUS_DMA_64BIT flag to bus_dma on all our archs.</title>
<updated>2017-05-08T00:27:45Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2017-05-08T00:27:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=b0002153e68e19a4277a3f21e84cea855054f754'/>
<id>urn:sha1:b0002153e68e19a4277a3f21e84cea855054f754</id>
<content type='text'>
this is so drivers can advertise that they can handle 64 dma addresses
to the platform. it may choose to handle dmamaps differently based
on this flag.

tweaks and ok tom@
ok kettenis@
</content>
</entry>
<entry>
<title>Some device trees use 64-bit intermediate virtual addresses.  This</title>
<updated>2016-10-05T07:44:24Z</updated>
<author>
<name>patrick</name>
<email>patrick@openbsd.org</email>
</author>
<published>2016-10-05T07:44:24Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=ed541e3a3388d9d16c92bacf4e996fbd317100a0'/>
<id>urn:sha1:ed541e3a3388d9d16c92bacf4e996fbd317100a0</id>
<content type='text'>
means that even though the hardware in the end never leaves the 32-bit
address space, some addresses used solely in the device tree can be
bigger than 32-bit.  As bus_space_map(9) takes addresses of size
bus_addr_t, which is 32-bit on ARMv7, we cannot pass those virtual
addresses to the parent bus, even though it will be mapped back into a
32-bit address in the end.  To work around this, make bus_space_map(9)
take a 64-bit address.  Since this is implemented as a macro and
function pointer we can safely do that without harming any other
architecture.

ok kettenis@ deraadt@
</content>
</entry>
<entry>
<title>Implement bus dma support for loading raw mappings so that we can use</title>
<updated>2016-08-26T21:50:42Z</updated>
<author>
<name>patrick</name>
<email>patrick@openbsd.org</email>
</author>
<published>2016-08-26T21:50:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=fe41f3e965f7e1d764381606ed277831af4100f2'/>
<id>urn:sha1:fe41f3e965f7e1d764381606ed277831af4100f2</id>
<content type='text'>
xhci(4) on ARM.  The only way the load raw operation can get to know
about the coherent flag is via the segments.  Store it there when the
memory is initially mapped.  Also store the virtual address which we
need to know when we have to flush the caches on a non-coherent mapping.

ok kettenis@
</content>
</entry>
<entry>
<title>Normalize sentinel. Use _MACHINE_*_H_ and _&lt;ARCH&gt;_*_H_ properly and consitently.</title>
<updated>2011-03-23T16:54:33Z</updated>
<author>
<name>pirofti</name>
<email>pirofti@openbsd.org</email>
</author>
<published>2011-03-23T16:54:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2fa72412907ae78c4787a4a8f888c5f0486e225c'/>
<id>urn:sha1:2fa72412907ae78c4787a4a8f888c5f0486e225c</id>
<content type='text'>
Discussed and okay drahn@. Okay deraadt@.
</content>
</entry>
<entry>
<title>OpenBSD uses bus_space_copy_#, not bus_space_copy_region_#. Make sure only the</title>
<updated>2010-04-04T12:49:27Z</updated>
<author>
<name>miod</name>
<email>miod@openbsd.org</email>
</author>
<published>2010-04-04T12:49:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=0cda87aaf2d1dba3156afe1362b9e680d14fa20e'/>
<id>urn:sha1:0cda87aaf2d1dba3156afe1362b9e680d14fa20e</id>
<content type='text'>
first name is used, and remove any #define foo_region foo compatibility
defines.
Also, on sparc64, do not provide a `raw' version of bus_space_copy.
</content>
</entry>
<entry>
<title>Make sure all platforms understand the flags argument of bus_space_map() and</title>
<updated>2009-07-26T18:48:53Z</updated>
<author>
<name>miod</name>
<email>miod@openbsd.org</email>
</author>
<published>2009-07-26T18:48:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2ab138fd07f9495743be1d801fa5f60c606ab698'/>
<id>urn:sha1:2ab138fd07f9495743be1d801fa5f60c606ab698</id>
<content type='text'>
bus_space_alloc() as a bitmask of flags, and not a boolean controlling
cacheability; and make sure the three MI BUS_SPACE_MAP_xxx values documented
in the manual page are defined on all platforms as well.
</content>
</entry>
<entry>
<title>Add a BUS_DMA_ZERO flag for bus_dmamem_alloc() to return zeroed memory.</title>
<updated>2009-04-20T00:42:05Z</updated>
<author>
<name>oga</name>
<email>oga@openbsd.org</email>
</author>
<published>2009-04-20T00:42:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=471ccd185285af4568b3f0ff1eafabf82d4028ed'/>
<id>urn:sha1:471ccd185285af4568b3f0ff1eafabf82d4028ed</id>
<content type='text'>
Saves every damned driver calling bzero(), and continues the M_ZERO,
PR_ZERO symmetry.
</content>
</entry>
<entry>
<title>First pass at removing clauses 3 and 4 from NetBSD licenses.</title>
<updated>2008-06-26T05:42:03Z</updated>
<author>
<name>ray</name>
<email>ray@openbsd.org</email>
</author>
<published>2008-06-26T05:42:03Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d874cce4b1d9fe6b41c9e4f2117a77d8a4a37b92'/>
<id>urn:sha1:d874cce4b1d9fe6b41c9e4f2117a77d8a4a37b92</id>
<content type='text'>
Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@
</content>
</entry>
<entry>
<title>We will never use __BUS_SPACE_HAS_STREAM_METHODS so remove all the code</title>
<updated>2008-05-05T22:58:58Z</updated>
<author>
<name>claudio</name>
<email>claudio@openbsd.org</email>
</author>
<published>2008-05-05T22:58:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=a5b5fc5554211928414dd5f221abe7123efeb42f'/>
<id>urn:sha1:a5b5fc5554211928414dd5f221abe7123efeb42f</id>
<content type='text'>
behind it. OK miod@, drahn@
</content>
</entry>
</feed>
