History log of /openbsd-current/sys/kern/dma_alloc.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.13 15-Sep-2016 dlg

all pools have their ipl set via pool_setipl, so fold it into pool_init.

the ioff argument to pool_init() is unused and has been for many
years, so this replaces it with an ipl argument. because the ipl
will be set on init we no longer need pool_setipl.

most of these changes have been done with coccinelle using the spatch
below. cocci sucks at formatting code though, so i fixed that by hand.

the manpage and subr_pool.c bits i did myself.

ok tedu@ jmatthew@

@ipl@
expression pp;
expression ipl;
expression s, a, o, f, m, p;
@@
-pool_init(pp, s, a, o, f, m, p);
-pool_setipl(pp, ipl);
+pool_init(pp, s, a, ipl, f, m, p);


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.12 08-Jul-2014 deraadt

decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.h
don't need to be married.
ok guenther miod beck jsing kettenis


# 1.11 15-Jun-2014 sf

Fix a few format string bugs with -DDEBUG


# 1.10 28-Mar-2014 mpi

Reduce uvm include madness. Use <uvm/uvm_extern.h> instead of
<uvm/uvm.h> if possible and remove double inclusions.

ok beck@, mlarkin@, deraadt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.9 23-Jun-2011 ariane

Make mbufs and dma_alloc be contig allocations.
Requested by dlg@

ok oga@


# 1.8 18-Apr-2011 art

Put back the change of pool and malloc into the new km_alloc(9) api.
The problems during the hackathon were not caused by this (most likely).

prodded by deraadt@ and beck@


# 1.7 06-Apr-2011 art

Backout the uvm_km_getpage -> km_alloc conversion. Weird things are happening
and we aren't sure what's causing them.

shouted oks by many before I even built a kernel with the diff.


# 1.6 05-Apr-2011 art

- Change pool constraints to use kmem_pa_mode instead of uvm_constraint_range
- Use km_alloc for all backend allocations in pools.
- Use km_alloc for the emergmency kentry allocations in uvm_mapent_alloc
- Garbage collect uvm_km_getpage, uvm_km_getpage_pla and uvm_km_putpage

ariane@ ok


# 1.5 02-Apr-2011 deraadt

The dma pools need to be IPL_VM
ok dlg


# 1.4 17-Mar-2011 deraadt

make more dma pools -- all the way up to 64K. at least the scsi
SCIOCCOMMAND wants a dma'able object that big. should we handle
this another way, by handling that data in a buf?
ok krw


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.3 15-Jul-2010 deraadt

limit the pools from 14 bits down. We cannot use PAGE_SIZE because it
is a variable on sparc. This should be revisited... after the arguments
for pagesize vs 4K complete :)


# 1.2 14-Jul-2010 deraadt

oops; Fred Crowson


# 1.1 13-Jul-2010 deraadt

dma_alloc() and dma_free(). This is a thin shim on top of a bag of
pools, sized by powers of 2, which are constrained to dma memory.
ok matthew tedu thib