Commit Graph

84734 Commits

Author SHA1 Message Date
trhodes
ef408d5a3a Remove redundant documenation.
PR:		46253
Submitted by:	Jeroen Ruigrok van der Werven <asmodai@wxs.nl>
2003-01-06 23:20:55 +00:00
trhodes
ca133c7f11 Correct order of alignment in EXAMPLES.
PR:		42760
Submitted by:	Christian Brueffer <chris@unixpages.org>
2003-01-06 22:52:57 +00:00
gioria
c1be09a683 Happy new year 2003 ! 2003-01-06 22:17:27 +00:00
tmm
73e52f587c Convert to use bus_dmamap_load_mbuf(); decouple software TX descriptors
from the hardware descriptors to avoid the overhead of having a DMA
map for each of them. Bump the number of hardware descriptors to 128,
and use half as many software descriptors for now.
Some minor cleanups.
2003-01-06 22:12:57 +00:00
sam
f0f8069fbc more crypto test stuff:
o cryptotest can now run multiple threads with -t option
o cryptotest can now "profile" time spent doing symmetric ops with -p
o cryptostats dumps the crypto statistics block
o cryptokeystat is an openbsd app that tests public key ops
2003-01-06 22:11:56 +00:00
tmm
d110043285 - Convert to use bus_dmamap_load_mbuf().
- remove DPRINTF(), there is a CTR*() for any of them, and KTR is
  far more useful to debug this driver.
- some cleanups; remove some unused code and definitions.
2003-01-06 22:09:01 +00:00
tmm
64ef30fddd Change the iommu code to be able to handle more than one DVMA area per
map. Use this new feature to implement iommu_dvmamap_load_mbuf() and
iommu_dvmamap_load_uio() functions in terms of a new helper function,
iommu_dvmamap_load_buffer(). Reimplement the iommu_dvmamap_load()
to use it, too.
This requires some changes to the map format; in addition to that,
remove unused or redundant members.
Add SBus and Psycho wrappers for the new functions, and make them
available through the respective DMA tags.
2003-01-06 21:59:54 +00:00
bmah
eabf06862c Update release documentation copyright dates. 2003-01-06 21:59:16 +00:00
trhodes
d20afd4a08 Major update to the refuse file.
PR:		44164
Submitted by:	Sergei Kolobov <sergei@kolobov.com>
2003-01-06 21:56:10 +00:00
sam
01e5d3cdfd don't reference a pkthdr after M_MOVE_PKTHDR has "remove it"; instead
reference the pkthdr now in the destination of the move

Sponsored by:	Vernier Networks
2003-01-06 21:33:54 +00:00
sam
8a8e425d5f purge extraneous clears of M_PKTHDR since M_MOVE_PKTHDR does this already 2003-01-06 21:29:27 +00:00
sam
d73f1fda2f fix memory allocation problems and collateral damage:
o create a separate tag for each object allocated with bus_dmamem_alloc so
  the tag's maxsize is setup appropriately; this reduces memory allocation
  for the queue descriptors from 16M to what it should be and also fixes
  memory allocation for public key operands
o release bus dma resources on detach so module usage doesn't leak
o remove public key op disable now that bus dma memory allocation is fixed
o collect attach error handling in one place

Sponsored by:	Vernier Networks
2003-01-06 21:23:06 +00:00
tmm
ab84f2048c - remove the unused parent DMA tag argument from
_nexus_dmamap_load_buffer()
- implement nexus_dmamap_load() in terms of _nexus_dmamap_load_buffer().
  Note that this is untested, as this code is not currently used (but
  might be later for UPA devices).
- move BUS_DMAMAP_NSEGS to bus_private.h
- disable the ecache flushing in nexus_dmamap_sync(); it should not be
  needed, although the docs are not entirely clear on that.
2003-01-06 20:54:07 +00:00
phk
dd794eda3b geom_bsd need -lmd to link now. 2003-01-06 20:11:32 +00:00
phk
158843e06d BSD disklabels expose the controling label though the 'c' partition, and
some trick is necessary to prevent further BSD geoms from attaching to
that.  Our old trick was to make sure we don't attach to a geom from
the "BSD" class, but this doesn't work if an intermediary geom obscures
this fact.  Instead, calculate the MD5 checksum of the label we target
and ask if anybody below us loves that label.  If they do we don't.

Coded by:       gordon.
2003-01-06 20:10:41 +00:00
phk
d68eff9b1b In userland case include <errno.h>, not <err.h>. This is needed to make
the src/tools/regression/geom stuff compile.
2003-01-06 20:05:45 +00:00
tmm
0575c37f18 Bump the IOMMU TSB size to 32kB, to match the default size on PCI
systems.
2003-01-06 19:48:31 +00:00
tmm
665e1e20a4 Prefix the members of struct bus_space_tag and struct bus_dma_tag with
a uniqifier. No functional changes.
2003-01-06 19:43:10 +00:00
peter
5ac3ac6c2a Back out last commit. 2003-01-06 19:30:21 +00:00
sam
380f542199 correct flags passed when allocation crypto request structures so we
don't block and the returned data is zero'd
2003-01-06 18:52:05 +00:00
hrs
3b775624bb Update the supported systems section.
Reviewed by:	nyan
References:	[FreeBSD98-doc 637]
2003-01-06 18:26:46 +00:00
hrs
3f672f566a Merge the following from the English version:
1.119 -> 1.122	hardware/common/dev.sgml

	1.344 -> 1.424	relnotes/common/new.sgml

Submitted by:	Hideyuki KURASHINA <rushani@jp.FreeBSD.org>
References:	[doc-jp-work 560]
2003-01-06 17:51:59 +00:00
tmm
ba24b6317a Style and comment fixes, no functional changes. 2003-01-06 17:35:40 +00:00
trhodes
30e159b219 Back out revisions 1.45 && 1.46, they are incorrect.
Noticed by:	schweikh
2003-01-06 17:28:46 +00:00
tmm
0a1436cdc4 Look for the correct method in sparc64_dmamap_load_mbuf() and
sparc64_dmamap_load_uio().
2003-01-06 17:17:26 +00:00
obrien
9043c08e47 Compare pointers to NULL rather than make it look like they are ints. 2003-01-06 17:15:35 +00:00
trhodes
3d3d365329 Document what .jcr and .eh_frame is.
PR:		46638
Submitted by:	Tim Kientzle <tim@kientzle.com>
2003-01-06 17:12:45 +00:00
tmm
6baab88147 Initialize the cache line size register of all PCI devices in the
initial setup pass.
2003-01-06 17:12:23 +00:00
obrien
77b391761d save_realloc() should use reallocf() to close memory leaks.
item_add() should use safe_realloc() as it does no error checking itself.
2003-01-06 17:11:46 +00:00
tmm
9f25f73de6 Some cleanup:
- move some constants into iommureg.h
- correct some comments
- use KASSERT() in one place instead of rolling our own
- take a sanity check out of #ifdef DIAGNOSTIC
- fix a syntax error in normally #ifdef'ed out debug code
2003-01-06 17:10:07 +00:00
tmm
10a0c5eb2d - remove some outdated comments
- tweak the announce message a bit
- remove '\n's from a few panic() calls
- don't use the DVMA base adress the firmware reports; instead, figure
  it out from the appropriate register on Sabres and let the IOMMU code
  choose it on Psychos. This also makes the IOMMU TSB size freely
  selectable.
2003-01-06 16:51:06 +00:00
imp
624cac54fa Terminate the usage message with \n.
Submitted by: joe
2003-01-06 16:46:25 +00:00
tmm
64efc269b1 1.) fix a copy-and-paste-o in a panic() message
2.) pass the requesting child device (instead of the bus one) up when
    handling interrupt resources
3.) remeber to mark the resource list entry as unused in
    sbus_release_resource().

Reported by:	scottl (3)
2003-01-06 16:36:05 +00:00
mike
ff4487d8fc Bah, just use %zu for printing size_t. 2003-01-06 16:31:39 +00:00
des
a4e8ea55e1 This commit was generated by cvs2svn to compensate for changes in r108794,
which included commits to RCS files with non-trunk default branches.
2003-01-06 16:07:51 +00:00
des
99ec0b3f5a Vendor import of OpenPAM Daffodil. 2003-01-06 16:07:51 +00:00
trhodes
147b305001 Fix a type that crept in during my last commit here.
Noticed by:	Stefan Farfeleder <stefan@fafoe.dyndns.org>
Pointy hat:	trhodes
2003-01-06 15:30:55 +00:00
nyan
1eceeaf8c6 Add SCSI MO device support.
Submitted by:	Kawanobe Koh <kawanobe@st.rim.or.jp>
2003-01-06 13:43:15 +00:00
nectar
266526442d Correct file descriptor leaks in lseek and do_dup.
The leak in lseek was introduced in vfs_syscalls.c revision 1.218.
The leak in do_dup was introduced in kern_descrip.c revision 1.158.

Submitted by:	iedowse
2003-01-06 13:19:05 +00:00
mux
a7aae2379c Fix warnings on 64bits architectures.
Noticed by:	alpha tinderbox
2003-01-06 12:07:38 +00:00
peter
7bdf343d0c Move dashutdown from SHUTDOWN_PRI_DEFAULT to SHUTDOWN_PRI_FIRST.
Otherwise, the scsi devices that it is trying to issue commands to may
have gone away.  This is what caused shutdown to hang on ia64 systems
with mpt scsi controllers.  The bus system has torn down the device tree
and reset the mpt controller etc, and suddenly along comes dashutdown
and wants to issue a few more scsi commands....  <HANG!>

This shouldn't work on i386 either, but it seems to work solely due
to luck.
2003-01-06 08:28:15 +00:00
imp
150f6d2e0e MFp4: make it work
o Expand variables correctly.
o Set variables for each event.
o rewrite event loop to execute the commands in the config file, rather
  than the hard wired generic command
o better(?) debug when running -d
o sort vectors of actions so that we just have to search for the first
  one to match rather than the best one that matches.
o better attempts to clear all resources used on 'restart'
o Remove now bogus comments

MFC After: 1 centiyear
2003-01-06 08:09:41 +00:00
simokawa
7d45be69e1 Use device_printf() and s/fc->dev/fc->bdev/. 2003-01-06 08:07:20 +00:00
imp
292b14851c devd not devdd
submitted by: joe
2003-01-06 08:03:00 +00:00
phk
cf4805ac14 Update kernbb(8) to deal with GCC's new way of doing things. 2003-01-06 07:46:26 +00:00
phk
0023d24674 This is all "#if defined(__i386__) && __GNUC__ >= 2":
Add support for GCC's --test-coverage --profile-arcs options.

Add code to call the functions listed in the .ctors section, these are
used to string the per .o file counter blocks into a linked list.

Add empty __bb_fork_func() to cope with GCC magic gandling of exec*()
named functions.

To add support for other platforms should be trivial, but involves
determining the exact data-types gcc uses on that platform.
2003-01-06 07:40:49 +00:00
jkh
99a8dbd2ab Prevent buffer overflow in format_cmd() by properly tracking maximum
buffer size.
Reported by:	Lionnel CHAPTAL <Lionnel.Chaptal@IPricot.com>
MFC after:	1 week
2003-01-06 07:39:02 +00:00
phk
a1b0e44458 Add two symbols start_ctors and stop_ctors to allow us to find the
.ctors section so we can call the constructors.
2003-01-06 07:37:15 +00:00
tjr
3d36ec8575 strfmon(3) does not correctly handle multibyte characters in the
format string.
2003-01-06 06:21:25 +00:00
tjr
0c0f5aecab Note that the printf(3) and scanf(3) family of functions don't deal with
multibyte characters in the format string correctly.
2003-01-06 06:19:19 +00:00