]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoCommit firmware that the xilinx on the Ositech Seven of Diamonds and a
imp [Wed, 13 Jul 2005 14:49:06 +0000 (14:49 +0000)]
Commit firmware that the xilinx on the Ositech Seven of Diamonds and a
few other cards need.  This firmware was obtained from the Linux
pcmica-cs project, but Ositech Communications, Inc has been kind
enough to grant permission to change the license to a pure BSDL type.

19 years agoNET_LOCK_GIANT() when entering network code.
glebius [Wed, 13 Jul 2005 14:06:13 +0000 (14:06 +0000)]
NET_LOCK_GIANT() when entering network code.

Pointy hat to: glebius
Reported by: rodrigc

19 years agoFix spelling error in sample command.
rwatson [Wed, 13 Jul 2005 13:18:17 +0000 (13:18 +0000)]
Fix spelling error in sample command.

MFC after: 3 days

19 years agoCross-reference sem_getvalue(3) from several other semaphore-related
rwatson [Wed, 13 Jul 2005 13:15:22 +0000 (13:15 +0000)]
Cross-reference sem_getvalue(3) from several other semaphore-related
functions.

MFC after: 3 days

19 years agoMFi386: revision 1.617.
nyan [Wed, 13 Jul 2005 12:06:57 +0000 (12:06 +0000)]
MFi386: revision 1.617.

19 years agoUse an interrupt gate for the NMI handler and prevent too-early
jkoshy [Wed, 13 Jul 2005 11:32:10 +0000 (11:32 +0000)]
Use an interrupt gate for the NMI handler and prevent too-early
enabling of interrupts inside of trap().  Fix a typo in a comment.

Revert rev 1.113 of "sys/i386/i386/exception.s" as it is no longer
needed.

Reviewed by: bde
MFC after: 3 days

19 years agoBetter memory handling:
delphij [Wed, 13 Jul 2005 10:40:07 +0000 (10:40 +0000)]
Better memory handling:

 - It is acceptable to call free(3) when the given pointer itself
   is NULL, so we do not need to determine NULL before passing
   a pointer to free(3)
 - Handle failure of malloc(3)

MT6/5 Candidate

Submitted by: Dan Lukes <dan at obluda cz>
PR: bin/83352

19 years agomdoc cleanup and whitespace removal after the last commit.
brueffer [Wed, 13 Jul 2005 09:35:35 +0000 (09:35 +0000)]
mdoc cleanup and whitespace removal after the last commit.

Submitted by: ru

19 years agoDon't forget to initialize 'id' field.
pjd [Wed, 13 Jul 2005 07:46:55 +0000 (07:46 +0000)]
Don't forget to initialize 'id' field.

MFC after: 3 days

19 years agoMLINK firewire.4 to ieee1394.4
brueffer [Wed, 13 Jul 2005 06:08:26 +0000 (06:08 +0000)]
MLINK firewire.4 to ieee1394.4

MFC after: 3 days

19 years agoSpelling and grammar fixes.
brueffer [Wed, 13 Jul 2005 05:39:47 +0000 (05:39 +0000)]
Spelling and grammar fixes.

MFC after: 3 days

19 years agoInformation about the capability flags in 'ifconfig foo0 scan' output.
brueffer [Tue, 12 Jul 2005 06:22:02 +0000 (06:22 +0000)]
Information about the capability flags in 'ifconfig foo0 scan' output.

Most content by: avatar
Reviewed by: sam
Approved by: re (hrs)
MFC after: 3 days

19 years agoFix an oops on FBSD-version for packages-5-stable I made in previous
kensmith [Mon, 11 Jul 2005 16:16:24 +0000 (16:16 +0000)]
Fix an oops on FBSD-version for packages-5-stable I made in previous
commit.

Pointy hat: kensmith
Approved by: re (implicit)

19 years agoPrepare for packages-7-current. While here retro-fit packages-5.4-release
kensmith [Mon, 11 Jul 2005 15:56:25 +0000 (15:56 +0000)]
Prepare for packages-7-current.  While here retro-fit packages-5.4-release
which probably should have been done a while ago.

Approved by: re (implicit)

19 years agoAdjust for HEAD being 7.0 now.
kensmith [Mon, 11 Jul 2005 15:50:29 +0000 (15:50 +0000)]
Adjust for HEAD being 7.0 now.

Approved by: re (implicit)

19 years agoNote RELENG_6 branch and minor related tweaks.
kensmith [Mon, 11 Jul 2005 15:46:45 +0000 (15:46 +0000)]
Note RELENG_6 branch and minor related tweaks.

Approved by: re (implicit)

19 years agoMake the RELENG_6 branch operation official by moving HEAD to 7.0-CURRENT.
scottl [Mon, 11 Jul 2005 08:34:49 +0000 (08:34 +0000)]
Make the RELENG_6 branch operation official by moving HEAD to 7.0-CURRENT.

Approved by: re

19 years agoupdate for v3.9.1 (releaes)
sam [Mon, 11 Jul 2005 04:14:42 +0000 (04:14 +0000)]
update for v3.9.1 (releaes)

Approved by: re (scottl)

19 years agoresolve merge conflicts
sam [Mon, 11 Jul 2005 04:14:02 +0000 (04:14 +0000)]
resolve merge conflicts

Approved by: re (scottl)

19 years agoAdapt the mfsroot environment of sysinstall to the needs of the new dhclient.
scottl [Mon, 11 Jul 2005 03:59:25 +0000 (03:59 +0000)]
Adapt the mfsroot environment of sysinstall to the needs of the new dhclient.
This involves having passwd bits available so that seteuid("_dhcp") work,
and creating /var/empty so that chroot(_VAR_EMPTY) works.  My gut feeling
is that the better solution is to make privsep and chroot optional in
dhclient, but this works well for now and is low-risk.

Approved by: re

19 years agoAdapt sysinstall to the new dhclient. This includes explicitely telling
scottl [Mon, 11 Jul 2005 03:57:04 +0000 (03:57 +0000)]
Adapt sysinstall to the new dhclient.  This includes explicitely telling
it about the lease file location and not invoking it with the (non-existant)
'-r' option.  Releasing leases works vastly different now, so this isn't
needed.

Submitted by: sam
Approved by: re

19 years agoThis commit was generated by cvs2svn to compensate for changes in r147899,
sam [Mon, 11 Jul 2005 03:54:22 +0000 (03:54 +0000)]
This commit was generated by cvs2svn to compensate for changes in r147899,
which included commits to RCS files with non-trunk default branches.

19 years agoVirgin import of tcpdump v3.9.1 (release) from tcpdump.org
sam [Mon, 11 Jul 2005 03:54:22 +0000 (03:54 +0000)]
Virgin import of tcpdump v3.9.1 (release) from tcpdump.org

Approved by: re (scottl)

19 years agobump for libpcap import
sam [Mon, 11 Jul 2005 03:47:11 +0000 (03:47 +0000)]
bump for libpcap import

Approved by: re (scottl)

19 years agoresolve merge conflicts
sam [Mon, 11 Jul 2005 03:43:25 +0000 (03:43 +0000)]
resolve merge conflicts

Approved by: re (scottl)

19 years agoThis commit was generated by cvs2svn to compensate for changes in r147894,
sam [Mon, 11 Jul 2005 03:24:53 +0000 (03:24 +0000)]
This commit was generated by cvs2svn to compensate for changes in r147894,
which included commits to RCS files with non-trunk default branches.

19 years agoVirgin import of libpcap v0.9.1 (release) from tcpdump.org
sam [Mon, 11 Jul 2005 03:24:53 +0000 (03:24 +0000)]
Virgin import of libpcap v0.9.1 (release) from tcpdump.org

Approved by: re (scottl)

19 years agoadditions from libpcap 0.9.1 release
sam [Mon, 11 Jul 2005 03:16:23 +0000 (03:16 +0000)]
additions from libpcap 0.9.1 release

Approved by: re (scottl)

19 years agoHandle encrypt of arbitarily fragmented mbuf chains: previously
sam [Mon, 11 Jul 2005 03:06:23 +0000 (03:06 +0000)]
Handle encrypt of arbitarily fragmented mbuf chains: previously
we bailed if we couldn't collect the 16-bytes of data required
for an aes block cipher in 2 mbufs; now we deal with it.  While
here make space accounting signed so a sanity check does the
right thing for malformed mbuf chains.

Approved by: re (scottl)

19 years agonuke assert that duplicates real check
sam [Mon, 11 Jul 2005 03:00:20 +0000 (03:00 +0000)]
nuke assert that duplicates real check

Reviewed by: avatar
Approved by: re (scottl)

19 years agoCorrect a minor typo.
delphij [Mon, 11 Jul 2005 02:33:25 +0000 (02:33 +0000)]
Correct a minor typo.

Pointed out by: Xuefeng DENG <dengxf at dengh com>
Approved by: re (scottl)

19 years agoValidate if the value written into {FS,GS}.base is a canonical
davidxu [Sun, 10 Jul 2005 23:31:11 +0000 (23:31 +0000)]
Validate if the value written into {FS,GS}.base is a canonical
address, writting non-canonical address can cause kernel a panic,
by restricting base values to 0..VM_MAXUSER_ADDRESS, ensuring
only canonical values get written to the registers.

Reviewed by: peter, Josepha Koshy < joseph.koshy at gmail dot com >
Approved by: re (scottl)

19 years agoremove local mods that snuck into rev 1.6
sam [Sun, 10 Jul 2005 22:25:44 +0000 (22:25 +0000)]
remove local mods that snuck into rev 1.6

Approved by: re (scottl implicit)

19 years agoForce commit to note that ggate rewrite was...
pjd [Sun, 10 Jul 2005 21:10:20 +0000 (21:10 +0000)]
Force commit to note that ggate rewrite was...

Sponsored by: Wheel Sp. z o.o.
http://www.wheel.pl
Approved by: re (scottl (implicit))

19 years agoDon't compile ggatec/ggated in NO_LIBPTHREAD case.
pjd [Sun, 10 Jul 2005 15:16:49 +0000 (15:16 +0000)]
Don't compile ggatec/ggated in NO_LIBPTHREAD case.

Reported by: Andrea Campi <andrea+freebsd_cvs_all@webcom.it>
Approved by: re (scottl)

19 years agoUpdate for the new and removed MPT driver files.
scottl [Sun, 10 Jul 2005 15:07:57 +0000 (15:07 +0000)]
Update for the new and removed MPT driver files.

Submitted by: gibbs
Approved by: re

19 years agoMassive overhaul of MPT Fusion driver:
scottl [Sun, 10 Jul 2005 15:05:39 +0000 (15:05 +0000)]
Massive overhaul of MPT Fusion driver:

o Add timeout error recovery (from a thread context to avoid
  the deferral of other critical interrupts).
o Properly recover commands across controller reset events.
o Update the driver to handle events and status codes that
  have been added to the MPI spec since the driver was
  originally written.
o Make the driver more modular to improve maintainability and
  support dynamic "personality" registration (e.g. SCSI Initiator,
  RAID, SAS, FC, etc).
o Shorten and simplify the common I/O path to improve driver
  performance.
o Add RAID volume and RAID member state/settings reporting.
o Add periodic volume resynchronization status reporting.
o Add support for sysctl tunable resync rate, member write cache
  enable, and volume transaction queue depth.

Sponsored by
----------------
Avid Technologies Inc:
SCSI error recovery, driver re-organization, update of MPI library
headers, portions of dynamic personality registration, and misc bug
fixes.

Wheel Open Technologies:
RAID event notification, RAID member pass-thru support, firmware
upload/download support, enhanced RAID resync speed, portions
of dynamic personality registration, and misc bug fixes.

Detailed Changes
================
mpt.c mpt_cam.c mpt_raid.c mpt_pci.c:
o Add support for personality modules.  Each module exports
  load, and unload module scope methods as well as probe, attach,
  event, reset, shutdown, and detach  per-device instance
  methods

mpt.c mpt.h mpt_pci.c:
o The driver now associates a callback function (via an
  index) with every transaction submitted to the controller.
  This allows the main interrupt handler to absolve itself
  of any knowledge of individual transaction/response types
  by simply calling the callback function "registered" for
  the transaction.  We use a callback index instead of a
  callback function pointer in each requests so we can
  properly handle responses (e.g. event notifications)
  that are not associated with a transaction.  Personality
  modules dynamically register their callbacks with the
  driver core to receive the callback index to use for their
  handlers.

o Move the interrupt handler into mpt.c.  The ISR algorithm
  is bus transport and OS independent and thus had no reason
  to be in mpt_pci.c.

o Simplify configuration message reply handling by copying
  reply frame data for the requester and storing completion
  status in the original request structure.

o Add the mpt_complete_request_chain() helper method and use
  it to implement reset handlers that must abort transactions.

o Keep track of all pending requests on the new
  requests_pending_list in the softc.

o Add default handlers to mpt.c to handle generic event
  notifications and controller reset activities.  The event
  handler code is largely the same as in the original driver.
  The reset handler is new and terminates any pending transactions
  with a status code indicating the controller needs to be
  re-initialized.

o Add some endian support to the driver.  A complete audit is
  still required for this driver to have any hope of operating
  in a big-endian environment.

o Use inttypes.h and __inline.  Come closer to being style(9)
  compliant.

o Remove extraneous use of typedefs.

o Convert request state from a strict enumeration to a series
  of flags.  This allows us to, for example, tag transactions
  that have timed-out while retaining the state that the
  transaction is still in-flight on the controller.

o Add mpt_wait_req() which allows a caller to poll or sleep
  for the completion of a request.  Use this to simplify
  and factor code out from many initialization routines.
  We also use this to sleep for task management request
  completions in our CAM timeout handler.

mpt.c:
o Correct a bug in the event handler where request structures were
  freed even if the request reply was marked as a continuation
  reply. Continuation replies indicate that the controller still owns
  the request and freeing these replies prematurely corrupted
  controller state.

o Implement firmware upload and download. On controllers that do
  not have dedicated NVRAM (as in the Sun v20/v40z), the firmware
  image is downloaded to the controller by the system BIOS. This
  image occupies precious controller RAM space until the host driver
  fetches the image, reducing the number of concurrent I/Os the
  controller can processes. The uploaded image is used to
  re-program the controller during hard reset events since the
  controller cannot fetch the firmware on its own. Implementing this
  feature allows much higher queue depths when RAID volumes
  are configured.

o Changed configuration page accessors to allow threads to sleep
  rather than busy wait for completion.

o Removed hard coded data transfer sizes from configuration page
  routines so that RAID configuration page processing is possible.

mpt_reg.h:
o Move controller register definitions into a separate file.

mpt.h:
o Re-arrange includes to allow inlined functions to be
  defined in mpt.h.

o Add reply, event, and reset handler definitions.

o Add softc fields for handling timeout and controller
  reset recovery.

mpt_cam.c:
o Move mpt_freebsd.c to mpt_cam.c.  Move all core functionality,
  such as event handling, into mpt.c leaving only CAM SCSI
  support here.

o Revamp completion handler to provide correct CAM status for
  all currently defined SCSI MPI message result codes.

o Register event and reset handlers with the MPT core.  Modify
  the event handler to notify CAM of bus reset events.  The
  controller reset handler will abort any transactions that
  have timed out.  All other pending CAM transactions are
  correctly aborted by the core driver's reset handler.

o Allocate a single request up front to perform task management
  operations.  This guarantees that we can always perform a
  TMF operation even when the controller is saturated with other
  operations.  The single request also serves as a perfect
  mechanism of guaranteeing that only a single TMF is in flight
  at a time - something that is required according to the MPT
  Fusion documentation.

o Add a helper function for issuing task management requests
  to the controller.  This is used to abort individual requests
  or perform a bus reset.

o Modify the CAM XPT_BUS_RESET ccb handler to wait for and
  properly handle the status of the bus reset task management
  frame used to reset the bus.  The previous code assumed that
  the reset request would always succeed.

o Add timeout recovery support.  When a timeout occurs, the
  timed-out request is added to a queue to be processed by
  our recovery thread and the thread is woken up.  The recovery
  thread processes timed-out command serially, attempting first
  to abort them and then falling back to a bus reset if an
  abort fails.

o Add calls to mpt_reset() to reset the controller if any
  handshake command, bus reset attempt or abort attempt
  fails due to a timeout.

o Export a secondary "bus" to CAM that exposes all volume drive
  members as pass-thru devices, allowing CAM to perform proper
  speed negotiation to hidden devices.

o Add a CAM async event handler tracking the AC_FOUND_DEVICE event.
  Use this to trigger calls to set the per-volume queue depth once
  the volume is fully registered with CAM. This is required to avoid
  hitting firmware limits on volume queue depth.  Exceeding the
  limit causes the firmware to hang.

mpt_cam.h:
o Add several helper functions for interfacing to CAM and
  performing timeout recovery.

mpt_pci.c:
o Disable interrupts on the controller before registering and
  enabling interrupt delivery to the OS.  Otherwise we risk
  receiving interrupts before the driver is ready to receive
  them.

o Make use of compatibility macros that allow the driver to
  be compiled under 4.x and 5.x.

mpt_raid.c:
o Add a per-controller instance RAID thread to perform settings
   changes and query status (minimizes CPU busy wait loops).

o Use a shutdown handler to disable "Member Write Cache Enable"
  (MWCE) setting for RAID arrays set to enable MWCE During Rebuild.

o Change reply handler function signature to allow handlers to defer
  the deletion of reply frames. Use this to allow the event reply
  handler to queue up events that need to be acked if no resources
  are available to immediately ack an event. Queued events are
  processed in mpt_free_request() where resources are freed. This
  avoids a panic on resource shortage.

o Parse and print out RAID controller capabilities during driver probe.

o Define, allocate, and maintain RAID data structures for volumes,
  hidden member physical disks and spare disks.

o Add dynamic sysctls for per-instance setting of the log level, array
  resync rate, array member cache enable, and volume queue depth.

mpt_debug.c:
o Add mpt_lprt and mpt_lprtc for printing diagnostics conditioned on
  a particular log level to aid in tracking down driver issues.

o Add mpt_decode_value() which parses the bits in an integer
  value based on a parsing table (mask, value, name string, tuples).

mpilib/*:
o Update mpi library header files to latest distribution from LSI.

Submitted by: gibbs
Approved by: re

19 years agoBuild blank_saver.ko, fade_saver.ko and green_saver.ko on sparc64
marius [Sun, 10 Jul 2005 11:47:04 +0000 (11:47 +0000)]
Build blank_saver.ko, fade_saver.ko and green_saver.ko on sparc64
now that they work with creator(4) and machfb(4).

Reviewed by: ru (style)
Approved by: re (scottl)

19 years ago- Declare lookup tables etc. const. [1]
marius [Sun, 10 Jul 2005 11:43:20 +0000 (11:43 +0000)]
- Declare lookup tables etc. const. [1]
- Add a missing "ATI" in one of the device descriptions.
- In machfb_init_engine() adjust a wait_for_fifo() call to the
  actual number of operations.
- As a speed optimization cache setting the foreground and back-
  ground colors.
- I got the meaning of V_DISPLAY_BLANK wrong, it's blank like turn
  off and not blank like turn on and clear the screen. So move
  clearing the screen to machfb_clear() were it hopefully belongs.
- Properly implement V_DISPLAY_BLANK, V_DISPLAY_STAND_BY and
  V_DISPLAY_SUSPEND. This makes blank_saver.ko and green_saver.ko
  work. [1]
- Implement machfb_load_palette() and machfb_save_palette() and
  set the V_ADP_PALETTE flag. This makes fade_saver.ko work. [2]
- Install our 16-color color map only once and with an offset of
  16 as the OBP driver expects white to be at index 0 and black at
  255. This fixes the inversion of the colors back at the boot
  prompt after shutting down FreeBSD. This will also be handy if
  we ever want to implement breaking into OFW. Unfortunately there
  doesn't seem to be a better way to achieve this as e.g. bypassing
  the color map isn't supported by all Mach64 chips.
- Move invalidating the cache variables to machfb_set_mode() and
  set the V_ADP_MODECHANGE flag. This causes machfb_set_mode() to
  be called when the X server shuts down. This hopefully will fix
  the screen corruption happening occasionally when shutting down
  the X server and which is present until switching to another VTY.

Inspired by: NetBSD [1]
Based on: Xorg [2]
Approved by: re (scottl)

19 years ago- Declare lookup tables etc. const.
marius [Sun, 10 Jul 2005 11:16:34 +0000 (11:16 +0000)]
- Declare lookup tables etc. const.
- Let creator_bitblt() return ENODEV as it's not implemented (missed
  in sys/dev/fb/creator.c rev. 1.6).
- As a speed optimization inline the creator_ras_wait() etc. helper
  functions and also cache setting the font increment, font width
  and plane mask. [1]
- I got the meaning of V_DISPLAY_BLANK wrong, it's blank like turn
  off and not blank like turn on and clear the screen. So move
  clearing the screen to creator_clear() were it hopefully belongs.
- Properly implement V_DISPLAY_BLANK, V_DISPLAY_STAND_BY and
  V_DISPLAY_SUSPEND. This makes blank_saver.ko and green_saver.ko
  work. [1]
- Change the order of operations in creator_fill_rect(), i.e. write
  y before x and cy before cx. This fixes drawing the top part of
  the border with Elite3D cards when switching from Xorg to a VTY.
- Move setting the chip configuration we use and invalidating the
  cache variables to creator_set_mode() and set the V_ADP_MODECHANGE
  flag. This causes creator_set_mode() to be called when the X server
  shuts down which fixes the screen corruption caused most of the
  time by Xorg not restoring the original configuration present at
  startup.

Inspired by/based on: Xorg [1]
Approved by: re (scottl)

19 years ago- Add missing opt_isa.h. This fixes the standalone build of sound.ko
marius [Sun, 10 Jul 2005 10:43:59 +0000 (10:43 +0000)]
- Add missing opt_isa.h. This fixes the standalone build of sound.ko
  after sys/dev/sound/pcm/channel.c rev. 1.99, i.e. when there's no
  existing KERNBUILDDIR with an opt_isa.h defined.
- Sync with sys/dev/sound/pcm/channel.c rev. 1.99 (sort of), i.e.
  never compile in isadma support on sparc64 as we just never need
  it there. This allows to use the "generic" module with a custom
  kernel that is built without isa(4).

Reviewed by: ru
Approved by: re (scottl)

19 years agoAdd a missing mtx_destroy() in hme_pci_detach().
marius [Sun, 10 Jul 2005 10:36:45 +0000 (10:36 +0000)]
Add a missing mtx_destroy() in hme_pci_detach().

Reviewed by: yongari
Approved by: re (scottl)

19 years agoSwitch from trying to allocate up to 8 register banks for the EBus
marius [Sun, 10 Jul 2005 10:33:00 +0000 (10:33 +0000)]
Switch from trying to allocate up to 8 register banks for the EBus
variant to allocating a fixed set of 5 banks that the EBus variant
is documented to have (and also has in reality). Trying to allocate
up to 8 banks is a remnant from experiments during the development
of this driver.

Discussed with: joerg, yongari
Reviewed by: yongari
Approved by: re (scottl)

19 years agoMFC:
hrs [Sun, 10 Jul 2005 03:47:00 +0000 (03:47 +0000)]
MFC:
$jail_<name>_flags for rc.d/jail, and
pkg_version(1) -I flag.

Approved by: re (implicitly)

19 years agoAdd the ability to match the on a media type of the device in question.
imp [Sun, 10 Jul 2005 03:37:15 +0000 (03:37 +0000)]
Add the ability to match the on a media type of the device in question.

Submitted by: sam
Approved by: re (scottl)

19 years agoUpdate release notes:
hrs [Sun, 10 Jul 2005 03:33:00 +0000 (03:33 +0000)]
Update release notes:
pc98 also supports ELF kernel crash dump now.

Pointed out by: nyan
Approved by: re (implicitly)

19 years agoAdd a boatload of new device ids, gleaned from the pcmcia-cs-3.2.8
imp [Sun, 10 Jul 2005 02:00:35 +0000 (02:00 +0000)]
Add a boatload of new device ids, gleaned from the pcmcia-cs-3.2.8
distribution.  Add the appropriate devices to the man pages.

Obtained from: pcmcia-cs
Approved by: re (scottl)

19 years agoremove driver-private key allocators; use the default one instead
sam [Sun, 10 Jul 2005 00:17:05 +0000 (00:17 +0000)]
remove driver-private  key allocators; use the default one instead
so wpa keys are handled properly

Reviewed by: avatar
Approved by: re (scottl)

19 years agoChange default key allocation method to do the right thing for
sam [Sat, 9 Jul 2005 23:15:30 +0000 (23:15 +0000)]
Change default key allocation method to do the right thing for
legacy parts (i.e. those that have 4 global key slots).  We
blindly assign unicast keys to key slot 0.  Devices that need
alternate allocation logic must override this method.

Reviewed by: avatar
Approved by: re (scottl)

19 years ago- Grammar fixes
markus [Sat, 9 Jul 2005 19:04:43 +0000 (19:04 +0000)]
- Grammar fixes
- s/spdcontrol/sdpcontrol/

Approved by: re (hrs, rwatson), brueffer
MFC after: 3 days

19 years agoRepair this:
cracauer [Sat, 9 Jul 2005 18:30:31 +0000 (18:30 +0000)]
Repair this:

ext2fs fails to set the device in the stat(2) system call.

Subsequently, that makes fts(3) fail, which goes as far as make ls(1)
fail (which uses fts) on ext2fs.

Approved by: re (Robert Watson <rwatson@FreeBSD.org>)

19 years agosys/dev/hwpmc/hwpmc_{amd,piv,ppro}.c:
jkoshy [Sat, 9 Jul 2005 17:29:36 +0000 (17:29 +0000)]
sys/dev/hwpmc/hwpmc_{amd,piv,ppro}.c:
- Update driver interrupt statistics correctly.

sys/sys/pmc.h, sys/dev/hwpmc/hwpmc_mod.c:
- Fix a bug affecting debug printfs.
- Move the 'stalled' flag from being in a bit in the
  'pm_flags' field of a 'struct pmc' to a field of its own in the
  same structure.  This flag is updated from the NMI handler and
  keeping it separate makes it easier to avoid races with other
  parts of the code.

sys/dev/hwpmc/hwpmc_logging.c:
- Do arithmetic with 'uintptr_t' types rather that casting
  to and from 'char *'.

Approved by: re (scottl)

19 years agoNew release notes:
hrs [Sat, 9 Jul 2005 17:26:10 +0000 (17:26 +0000)]
New release notes:
amd64/i386 ELF kernel crash dump,
snd_csa(4) suspend/resume support,
ste(4) ALTQ support,
address family check of routing table added,
env(1) -v, -S, and -P options added,
libkvm crash dump support improvement:
ELF format, >4GB on 32-bit arch, and PAE,
$jail_<name>_flags for rc.d/jail added, and
new manual pages: central(4), clkbrd(4), creator(4),
ebus(4), eeprom(4), fhc(4),  machfb(4), ofw.console(4),
openfirm(4), openprom(4), rtc(4), and sbus(4).

Update release notes:
Use &man.ofw.console.4;.

Approved by: re (implicitly)

19 years agoHave the NMI handler call the C language trap() routine and directly
jkoshy [Sat, 9 Jul 2005 17:19:46 +0000 (17:19 +0000)]
Have the NMI handler call the C language trap() routine and directly
exit via 'doreti_exit'.

Since the NMI interrupt may be taken at any time, including when
the processor has masked external interrupts, it is not safe to
call ast() as is done for normal interrupts.

Approved by: re (scottl)

19 years agoFix a bug in pmclog_read() that causes it to return with a false
jkoshy [Sat, 9 Jul 2005 17:12:30 +0000 (17:12 +0000)]
Fix a bug in pmclog_read() that causes it to return with a false
error when a log record crosses an internal buffer boundary.

Approved by: re (scottl)

19 years agoFix a bug that affected on-the-fly gmon.out file generation.
jkoshy [Sat, 9 Jul 2005 17:08:46 +0000 (17:08 +0000)]
Fix a bug that affected on-the-fly gmon.out file generation.

Approved by: re (scottl)

19 years agoUse m_length (m, NULL) instead of m->m_pkthdr.len.
rik [Sat, 9 Jul 2005 16:14:05 +0000 (16:14 +0000)]
Use m_length (m, NULL) instead of m->m_pkthdr.len.

Problems reported by: strijar at urai dot ru
Approved by: re (scottl)

19 years agoLost cx_mpsafenet check.
rik [Sat, 9 Jul 2005 14:31:48 +0000 (14:31 +0000)]
Lost cx_mpsafenet check.

Pointy hat: me
Approved by: re (scottl)

19 years agoLost t_oproc() callback assignment.
rik [Sat, 9 Jul 2005 14:27:35 +0000 (14:27 +0000)]
Lost t_oproc() callback assignment.

Pointyhats: phk (who lost it), me (who didn't notice that)
Approved by: re (scottl)

19 years agoLost CX_UNLOCK().
rik [Sat, 9 Jul 2005 14:23:42 +0000 (14:23 +0000)]
Lost CX_UNLOCK().

Pointy hat: me
Approved by: re (scottl)

19 years agoProtect from partially initialized channels.
rik [Sat, 9 Jul 2005 14:03:02 +0000 (14:03 +0000)]
Protect from partially initialized channels.

Approved by: re (scottl)

19 years agoRegrab dvp only when ISDOTDOT.
tanimura [Sat, 9 Jul 2005 13:52:49 +0000 (13:52 +0000)]
Regrab dvp only when ISDOTDOT.

Approved by: re (scottl)

19 years agoSpace & alignment nits.
rik [Sat, 9 Jul 2005 13:44:36 +0000 (13:44 +0000)]
Space & alignment nits.

Approved by: re (scottl)

19 years agoSome cleanups and tweaks to some of the atomic.h files in preparation for
jhb [Sat, 9 Jul 2005 12:38:53 +0000 (12:38 +0000)]
Some cleanups and tweaks to some of the atomic.h files in preparation for
further changes and fixes in the future:
- Use aliases via macros rather than duplicated inlines wherever possible.
- Move all the aliases to the bottom of these files and the inline
  functions to the top.
- Add various comments.
- On alpha, drop atomic_{load_acq,store_rel}_{8,char,16,short}().
- On i386 and amd64, don't duplicate the extern declarations for functions
  in the two non-inline cases (KLD_MODULE and compiler doesn't do inlines),
  instead, consolidate those two cases.
- Some whitespace fixes.

Approved by: re (scottl)

19 years agoAdd Giant around linux_getcwd_common() in linux_getcwd().
jhb [Sat, 9 Jul 2005 12:34:49 +0000 (12:34 +0000)]
Add Giant around linux_getcwd_common() in linux_getcwd().

Approved by: re (scottl)

19 years agoAdd missing locking to linux_connect() so that it can be marked MP safe:
jhb [Sat, 9 Jul 2005 12:26:22 +0000 (12:26 +0000)]
Add missing locking to linux_connect() so that it can be marked MP safe:
- Conditionally grab Giant around the EISCONN hack at the end based on
  debug.mpsafenet.
- Protect access to so_emuldata via SOCK_LOCK.

Reviewed by: rwatson
Approved by: re (scottl)

19 years agoDocument that SOCK_LOCK is used to protect so_emuldata.
jhb [Sat, 9 Jul 2005 12:24:40 +0000 (12:24 +0000)]
Document that SOCK_LOCK is used to protect so_emuldata.

Approved by: re (scottl)

19 years ago The nsegs parameter to bus_dmamap_load_mbuf_sg is not required to
grehan [Sat, 9 Jul 2005 06:53:52 +0000 (06:53 +0000)]
 The nsegs parameter to bus_dmamap_load_mbuf_sg is not required to
be set to 0 on input. This caused a panic in an an MP test version
of the GEM driver from Marius, and from inspection of other PCI
drivers, the same problem would happen there.
 Fix by explicitly setting to 0.

Approved by:   re

19 years agoFix the build. The SMC_8020BT define doesn't exist yet.
scottl [Sat, 9 Jul 2005 05:14:32 +0000 (05:14 +0000)]
Fix the build.  The SMC_8020BT define doesn't exist yet.

Approved by: re (implicit)

19 years agoAdd Farrallon EtherMac PC Card to the list of supported cards.
imp [Sat, 9 Jul 2005 01:44:54 +0000 (01:44 +0000)]
Add Farrallon EtherMac PC Card to the list of supported cards.
Fix XJack card description to reflect the actual model that we support
(I've never seen a CC-10BT and I've been looking).
List the specific chipsets supported.
Bump date.

Approved by: re (scottl, indirectly due to driver approval)

19 years agoNoticed that NetBSD's sm driver has the PSION GOLDCARD listed, so list
imp [Sat, 9 Jul 2005 01:30:32 +0000 (01:30 +0000)]
Noticed that NetBSD's sm driver has the PSION GOLDCARD listed, so list
that since I can't test it directly.  The driver also lists the EM1144
as being supported, but in reality it isn't.  The EM1144-T,
{XJ,CC}{3288,3336} have the SMC chips in them, but aren't conformant MFC
cards, so they need their own driver.

Also, it does little harm to list the 8020BT, so remove #if 0.

Approved by: re (scottl)

19 years agocorrect check for high priority wme traffic
sam [Fri, 8 Jul 2005 22:49:26 +0000 (22:49 +0000)]
correct check for high priority wme traffic

Noticed by: Ralf Assmann
Reviewed by: apatti
Approved by: re (scottl)

19 years agoSync which ggate changes.
pjd [Fri, 8 Jul 2005 21:29:17 +0000 (21:29 +0000)]
Sync which ggate changes.

Approved by: re (scottl)

19 years agoReimplement ggatec/ggated applications.
pjd [Fri, 8 Jul 2005 21:28:26 +0000 (21:28 +0000)]
Reimplement ggatec/ggated applications.

Change communication protocol to be much more resistant on network
problems and to allow for much better performance.

Better performance is achieved by creating two connections between
ggatec and ggated one for sending the data and one for receiving it.
Every connection is handled by separeted thread, so there is no more
synchronous data flow (send and wait for response), now one threads
sends all requests and another receives the data.

Use two threads in ggatec(8):
- sendtd, which takes I/O requests from the kernel and sends them to the
  ggated daemon on the other end;
- recvtd, which waits for ggated responses and forwards them to the kernel.

Use three threads in ggated(8):
- recvtd, which waits for I/O requests and puts them onto incoming queue;
- disktd, which takes requests from the incoming queue, does disk operations
  and puts finished requests onto outgoing queue;
- sendtd, which takes finished requests from the outgoing queue and sends
  responses back to ggatec.

Because there were major changes in communication protocol, there is no
backward compatibility, from now on, both client and server has to run
on 5.x or 6.x (or at least ggated should be from the same FreeBSD version
on which ggatec is running).

For Gbit networks some buffers need to be increased. I use those settings:
kern.ipc.maxsockbuf=16777216
net.inet.tcp.sendspace=8388608
net.inet.tcp.recvspace=8388608
and I use '-S 4194304 -R 4194304' options for both, ggatec and ggated.

Approved by: re (scottl)

19 years agoAdd CANCEL command which allows to remove one request from the queue or
pjd [Fri, 8 Jul 2005 21:08:53 +0000 (21:08 +0000)]
Add CANCEL command which allows to remove one request from the queue or
all requests from the queue if request number is not given.

Bump version number.

Approved by: re (scottl)

19 years agooops ... forgot to declare sc in my previous commit. unbreak build.
damien [Fri, 8 Jul 2005 19:33:42 +0000 (19:33 +0000)]
oops ... forgot to declare sc in my previous commit.  unbreak build.

Approved by: re (scottl)

19 years agofix allocation of rx dma buffers. buffers must be contiguous.
damien [Fri, 8 Jul 2005 19:30:29 +0000 (19:30 +0000)]
fix allocation of rx dma buffers.  buffers must be contiguous.

Approved by: re (scottl)

19 years agodocument ENABLE_WPA_SUPPLICANT_EAPOL
sam [Fri, 8 Jul 2005 19:26:55 +0000 (19:26 +0000)]
document ENABLE_WPA_SUPPLICANT_EAPOL

Approved by: re (scottl)

19 years agoMake sure that all the necessary USB endpoints are found during device
damien [Fri, 8 Jul 2005 19:19:06 +0000 (19:19 +0000)]
Make sure that all the necessary USB endpoints are found during device
attachment.

Reviewed by: silby (mentor)
Approved by: re (scottl)

19 years agoral_init() takes a struct ral_softc as parameter not a struct ifnet.
damien [Fri, 8 Jul 2005 19:13:49 +0000 (19:13 +0000)]
ral_init() takes a struct ral_softc as parameter not a struct ifnet.
Fixes a panic that occured when setting the interface parameters while
the interface was associated.

Approved by: re (scottl)

19 years agoUse implicit type cast for ->k_lock to fix compilation of ndis
rik [Fri, 8 Jul 2005 18:36:59 +0000 (18:36 +0000)]
Use implicit type cast for ->k_lock to fix compilation of ndis
as a part of the GENERIC kernel with INVARIANT* and WITNESS*
turned off.
(For non GENERIC kernel KTR and MUTEX_PROFILING should be also
off).

Submitted by: Eygene A. Ryabinkin <rea at rea dot mbslab dot kiae dot ru>
Approved by: re (scottl)
PR: 81767

19 years agofix another instance of the MORE_DATA bit handling for frames on the
sam [Fri, 8 Jul 2005 16:36:02 +0000 (16:36 +0000)]
fix another instance of the MORE_DATA bit handling for frames on the
power save queue (missed in previous commit)

Submitted by: Bruno Randolf
Approved by: re (scottl)

19 years agohandle RTM_IFINFO events so we terminate when an interface is
sam [Fri, 8 Jul 2005 16:33:52 +0000 (16:33 +0000)]
handle RTM_IFINFO events so we terminate when an interface is
marked down

Reviewed by: brooks, avatar
Approved by: re (scottl)

19 years agoreclaim node reference when ieee80211_encap fails
sam [Fri, 8 Jul 2005 16:31:19 +0000 (16:31 +0000)]
reclaim node reference when ieee80211_encap fails

Reviewed by: avatar
Approved by: re (scottl)

19 years agoupdate ural ids
sam [Fri, 8 Jul 2005 16:28:24 +0000 (16:28 +0000)]
update ural ids

Reviewed by: damien
Approved by: re (scottl)
Obtained from: openbsd

19 years agoRegen.
jhb [Fri, 8 Jul 2005 15:06:58 +0000 (15:06 +0000)]
Regen.

Approved by: re (scottl)

19 years agoMark second instance of lchown() MP safe just like the first.
jhb [Fri, 8 Jul 2005 15:01:13 +0000 (15:01 +0000)]
Mark second instance of lchown() MP safe just like the first.

Approved by: re (scottl)

19 years agoMissed one piece of the cluster's quirk. Need to override WARNS because
kensmith [Fri, 8 Jul 2005 14:53:45 +0000 (14:53 +0000)]
Missed one piece of the cluster's quirk.  Need to override WARNS because
if _FREEFALL_CONFIG is set gcc bails since pam_sm_setcred() in pam_krb5.c
no longer uses any of its parameters.

Pointy hat: kensmith
Approved by: re (scottl)

19 years agoMerge the following from the English version:
den [Fri, 8 Jul 2005 14:34:10 +0000 (14:34 +0000)]
Merge the following from the English version:

   1.879 -> 1.880 new.sgml

Obtained from:  The FreeBSD Russian Documentation Project
Approved by:    re (scottl)

19 years agoALTQify ste(4).
mlaier [Fri, 8 Jul 2005 13:05:59 +0000 (13:05 +0000)]
ALTQify ste(4).

Requested and tested by: <nike_d at cytexbg dot com>
Approved by: re (scottl)

19 years agoThis commit was generated by cvs2svn to compensate for changes in r147824,
obrien [Thu, 7 Jul 2005 22:06:54 +0000 (22:06 +0000)]
This commit was generated by cvs2svn to compensate for changes in r147824,
which included commits to RCS files with non-trunk default branches.

19 years agoFix bogus fmov* SPARC opcodes.
obrien [Thu, 7 Jul 2005 22:06:54 +0000 (22:06 +0000)]
Fix bogus fmov* SPARC opcodes.
(Note this makes the vendor branch not represent Binutils in the vendor's
CVS repository at any point in time.  Portmgr did not like the state of
Binutils on Sparc that represented the point in time the vendor fixed this
issue.  I'd rather have fixed this on RELENG_6.)

Approved by: re

19 years agoPatch the freebsd spec file for PowerPC so that PIC code builds correctly.
scottl [Thu, 7 Jul 2005 21:40:37 +0000 (21:40 +0000)]
Patch the freebsd spec file for PowerPC so that PIC code builds correctly.
This allows FreeBSD/PPC to build and run out of stock CVS sources.  This
also takes the file off of the vendor branch.

Submitted by: kan, grehan
Approved by: re, kan

19 years agoLock Giant around a call to userland_sysctl() in ibcs2_sysi86().
jhb [Thu, 7 Jul 2005 19:30:30 +0000 (19:30 +0000)]
Lock Giant around a call to userland_sysctl() in ibcs2_sysi86().

Approved by: re (scottl)

19 years agoRemove an extra call to read() in ibcs2_read() that can never be reached.
jhb [Thu, 7 Jul 2005 19:29:42 +0000 (19:29 +0000)]
Remove an extra call to read() in ibcs2_read() that can never be reached.
(It's already called a few lines earlier.)

Approved by: re (scottl)

19 years agoConditionally acquire Giant around the ISC and Xenix system calls based
jhb [Thu, 7 Jul 2005 19:28:55 +0000 (19:28 +0000)]
Conditionally acquire Giant around the ISC and Xenix system calls based
on the SYF_MPSAFE flag in the wrapper system calls for the ISC and Xenix
system call vectors.

Approved by: re (scottl)

19 years agoLock Giant in svr4_add_socket() so that the various svr4_*stat() calls
jhb [Thu, 7 Jul 2005 19:27:29 +0000 (19:27 +0000)]
Lock Giant in svr4_add_socket() so that the various svr4_*stat() calls
can be marked MP safe as this is the only part of them that is not
already MP safe.

Approved by: re (scottl)

19 years agoRemove an unused syscallarg() macro leftover from this code's origins in
jhb [Thu, 7 Jul 2005 19:26:43 +0000 (19:26 +0000)]
Remove an unused syscallarg() macro leftover from this code's origins in
NetBSD.

Approved by: re (scottl)

19 years agoRototill this file so that it actually compiles. It doesn't do anything
jhb [Thu, 7 Jul 2005 19:25:47 +0000 (19:25 +0000)]
Rototill this file so that it actually compiles.  It doesn't do anything
in the build still due to some #undef's in svr4.h, but if you hack around
that and add some missing entries to syscalls.master, then this file will
now compile.  The changes involved proc -> thread, using FreeBSD syscall
names instead of NetBSD, and axeing syscallarg() and retval arguments.

Approved by: re (scottl)

19 years agoFix the computation of uptime for linux_sysinfo(). Before it was returning
jhb [Thu, 7 Jul 2005 19:17:55 +0000 (19:17 +0000)]
Fix the computation of uptime for linux_sysinfo().  Before it was returning
the uptime in seconds mod 60 which wasn't very useful.

Approved by: re (scottl)