summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Cross-reference sem_getvalue(3) from several other semaphore-relatedrwatson2005-07-133-0/+3
| | | | | | functions. MFC after: 3 days
* MFi386: revision 1.617.nyan2005-07-131-1/+1
|
* Use an interrupt gate for the NMI handler and prevent too-earlyjkoshy2005-07-133-31/+7
| | | | | | | | | | 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
* Better memory handling:delphij2005-07-131-4/+7
| | | | | | | | | | | | - 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
* mdoc cleanup and whitespace removal after the last commit.brueffer2005-07-131-10/+9
| | | | Submitted by: ru
* Don't forget to initialize 'id' field.pjd2005-07-131-0/+1
| | | | MFC after: 3 days
* MLINK firewire.4 to ieee1394.4brueffer2005-07-131-0/+1
| | | | MFC after: 3 days
* Spelling and grammar fixes.brueffer2005-07-132-12/+12
| | | | MFC after: 3 days
* Information about the capability flags in 'ifconfig foo0 scan' output.brueffer2005-07-121-1/+30
| | | | | | | Most content by: avatar Reviewed by: sam Approved by: re (hrs) MFC after: 3 days
* Fix an oops on FBSD-version for packages-5-stable I made in previouskensmith2005-07-111-1/+1
| | | | | | | commit. Pointy hat: kensmith Approved by: re (implicit)
* Prepare for packages-7-current. While here retro-fit packages-5.4-releasekensmith2005-07-111-1/+3
| | | | | | which probably should have been done a while ago. Approved by: re (implicit)
* Adjust for HEAD being 7.0 now.kensmith2005-07-112-4/+5
| | | | Approved by: re (implicit)
* Note RELENG_6 branch and minor related tweaks.kensmith2005-07-111-2/+5
| | | | Approved by: re (implicit)
* Make the RELENG_6 branch operation official by moving HEAD to 7.0-CURRENT.scottl2005-07-112-2/+2
| | | | Approved by: re
* update for v3.9.1 (releaes)sam2005-07-112-1/+4
| | | | Approved by: re (scottl)
* resolve merge conflictssam2005-07-1122-492/+1013
| | | | Approved by: re (scottl)
* Adapt the mfsroot environment of sysinstall to the needs of the new dhclient.scottl2005-07-111-1/+4
| | | | | | | | | 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
* Adapt sysinstall to the new dhclient. This includes explicitely tellingscottl2005-07-111-3/+9
| | | | | | | | | 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
* This commit was generated by cvs2svn to compensate for changes in r147899,sam2005-07-1159-818/+3330
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of tcpdump v3.9.1 (release) from tcpdump.orgsam2005-07-1182-1358/+4379
| | | | | | | | Approved by: re (scottl)
* | bump for libpcap importsam2005-07-111-1/+1
| | | | | | | | Approved by: re (scottl)
* | resolve merge conflictssam2005-07-1110-544/+1556
| | | | | | | | Approved by: re (scottl)
* | This commit was generated by cvs2svn to compensate for changes in r147894,sam2005-07-1128-282/+1239
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Virgin import of libpcap v0.9.1 (release) from tcpdump.orgsam2005-07-1138-730/+2803
| | | | | | | | | | | | Approved by: re (scottl)
* | | additions from libpcap 0.9.1 releasesam2005-07-111-1/+14
| | | | | | | | | | | | Approved by: re (scottl)
* | | Handle encrypt of arbitarily fragmented mbuf chains: previouslysam2005-07-111-18/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | nuke assert that duplicates real checksam2005-07-111-3/+0
| | | | | | | | | | | | | | | Reviewed by: avatar Approved by: re (scottl)
* | | Correct a minor typo.delphij2005-07-111-1/+1
| | | | | | | | | | | | | | | Pointed out by: Xuefeng DENG <dengxf at dengh com> Approved by: re (scottl)
* | | Validate if the value written into {FS,GS}.base is a canonicaldavidxu2005-07-1011-22/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | remove local mods that snuck into rev 1.6sam2005-07-101-4/+1
| | | | | | | | | | | | Approved by: re (scottl implicit)
* | | Force commit to note that ggate rewrite was...pjd2005-07-100-0/+0
| | | | | | | | | | | | | | | | | | Sponsored by: Wheel Sp. z o.o. http://www.wheel.pl Approved by: re (scottl (implicit))
* | | Don't compile ggatec/ggated in NO_LIBPTHREAD case.pjd2005-07-101-1/+8
| | | | | | | | | | | | | | | Reported by: Andrea Campi <andrea+freebsd_cvs_all@webcom.it> Approved by: re (scottl)
* | | Update for the new and removed MPT driver files.scottl2005-07-102-2/+3
| | | | | | | | | | | | | | | Submitted by: gibbs Approved by: re
* | | Massive overhaul of MPT Fusion driver:scottl2005-07-1021-2966/+7130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Build blank_saver.ko, fade_saver.ko and green_saver.ko on sparc64marius2005-07-102-13/+21
| | | | | | | | | | | | | | | | | | | | | now that they work with creator(4) and machfb(4). Reviewed by: ru (style) Approved by: re (scottl)
* | | - Declare lookup tables etc. const. [1]marius2005-07-101-68/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
* | | - Declare lookup tables etc. const.marius2005-07-104-93/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
* | | - Add missing opt_isa.h. This fixes the standalone build of sound.komarius2005-07-101-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | Add a missing mtx_destroy() in hme_pci_detach().marius2005-07-101-0/+1
| | | | | | | | | | | | | | | Reviewed by: yongari Approved by: re (scottl)
* | | Switch from trying to allocate up to 8 register banks for the EBusmarius2005-07-101-19/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | MFC:hrs2005-07-102-4/+6
| | | | | | | | | | | | | | | | | | | | | $jail_<name>_flags for rc.d/jail, and pkg_version(1) -I flag. Approved by: re (implicitly)
* | | Add the ability to match the on a media type of the device in question.imp2005-07-105-1/+101
| | | | | | | | | | | | | | | Submitted by: sam Approved by: re (scottl)
* | | Update release notes:hrs2005-07-102-2/+2
| | | | | | | | | | | | | | | | | | | | | pc98 also supports ELF kernel crash dump now. Pointed out by: nyan Approved by: re (implicitly)
* | | Add a boatload of new device ids, gleaned from the pcmcia-cs-3.2.8imp2005-07-1011-18/+125
| | | | | | | | | | | | | | | | | | | | | distribution. Add the appropriate devices to the man pages. Obtained from: pcmcia-cs Approved by: re (scottl)
* | | remove driver-private key allocators; use the default one insteadsam2005-07-103-36/+0
| | | | | | | | | | | | | | | | | | | | | so wpa keys are handled properly Reviewed by: avatar Approved by: re (scottl)
* | | Change default key allocation method to do the right thing forsam2005-07-091-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | - Grammar fixesmarkus2005-07-091-12/+12
| | | | | | | | | | | | | | | | | | | | | - s/spdcontrol/sdpcontrol/ Approved by: re (hrs, rwatson), brueffer MFC after: 3 days
* | | Repair this:cracauer2005-07-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>)
* | | sys/dev/hwpmc/hwpmc_{amd,piv,ppro}.c:jkoshy2005-07-096-36/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
* | | New release notes:hrs2005-07-092-8/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
OpenPOWER on IntegriCloud