summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Use __FBSDID() for $FreeBSD$ version strings in .c files.rwatson2009-01-242-4/+6
| | | | | Obtained from: TrustedBSD Project MFC after: 3 days
* Begin to add SDT tracing of the MAC Framework: add policy modevent,rwatson2009-01-241-1/+24
| | | | | | | | register, and unregister hooks that give access to the mac_policy_conf for the policy. Obtained from: TrustedBSD Project MFC after: 3 days
* Add explicit static DTrace tracing to the callout mechanism, capturingrwatson2009-01-241-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | pointers to the callout handler just before and just after the callout it invoked. I attempted to do this in a manner congruent to tracing in Solaris's callout mechanism, but couldn't quite use the same names due to convention and syntax differences. Example DTrace script to generate a distribution graph of callout execution times: callout_execute:::callout_start { self->cstart = timestamp; } callout_execute:::callout_end { @length = quantize(timestamp - self->cstart); } Reviewed by: jb MFC after: 3 days
* - Mark all standalone INT/LONG/QUAD sysctl's MPSAFE. This is donejhb2009-01-233-77/+79
| | | | | | | | | | inside the SYSCTL() macros and thus does not need to be done for all of the nodes scattered across the source tree. - Mark the name-cache related sysctl's (including debug.hashstat.*) MPSAFE. - Mark vm.loadavg MPSAFE. - Remove GIANT_REQUIRED from vmtotal() (everything in this routine already has sufficient locking) and mark vm.vmtotal MPSAFE. - Mark the vm.stats.(sys|vm).* sysctls MPSAFE.
* - Add conditional Giant locking around the vrele() injhb2009-01-231-33/+38
| | | | | | | sysctl_kern_proc_pathname(). - Mark all the kern.proc.* sysctls as MPSAFE. Submitted by: csjp (2)
* Add a flag to tag individual sysctl leaf nodes as MPSAFE and thus notjhb2009-01-232-4/+5
| | | | | | needing Giant. Submitted by: csjp (an older version)
* Use shared vnode locks for fchdir().jhb2009-01-231-2/+2
| | | | Submitted by: ups
* Tweak the wording for vfs_mark_atime() since the I/O it is avoiding by notjhb2009-01-231-3/+3
| | | | | | | updating va_atime via VOP_SETATTR() isn't always synchronous. For some filesystems it is asynchronous. Suggested by: bde
* Push down Giant in the vlnru kproc main loop so that it is only acquiredjhb2009-01-231-11/+3
| | | | | | | | around calls to vlrureclaim() on non-MPSAFE filesystems. Specifically, vnlru no longer needs Giant for the common case of waking up and deciding there is nothing for it to do. MFC after: 2 weeks
* Protect against NULL pointer dereference.trasz2009-01-231-0/+5
| | | | | | Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation
* Don't leak memory when alloc fails.trasz2009-01-231-3/+3
| | | | | | | | Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 2908
* Guard against NULL pointer dereference.trasz2009-01-231-1/+4
| | | | | | | | Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 1847
* Guard against NULL pointer dereference.trasz2009-01-231-0/+4
| | | | | | | | Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID: 130
* Only start the if_slowtimo timer (which drives the if_watchdog methods ofjhb2009-01-231-2/+25
| | | | | | | network interfaces) if we have at least one interface with an if_watchdog routine. MFC after: 2 weeks
* fix regulatory state check for all vaps' being down; it must be donesam2009-01-231-7/+7
| | | | before calling the ic_setregdomain callback
* add defines for driver-private bits to eliminate use of constantssam2009-01-231-1/+4
|
* - Add few VIA bridges to agp_via.c and connect it to amd64 buildjkim2009-01-235-18/+28
| | | | | as they support Intel Core/Core 2 and VIA Nano processors. - Align "optional agp" in conf/files.* for consistency while I am here.
* Use the correct type for the timeout parameter to the 32-bitjhb2009-01-231-1/+1
| | | | | | | | compat version aio_waitcomplete(). Reminded by: bz Submitted by: jamie MFC after: 3 days
* urtw(4) works also on amd64.weongyo2009-01-231-0/+1
| | | | Tested by: kevlo
* Add an entry for the urtw(4) module.weongyo2009-01-231-0/+1
|
* Connect urtw(4) to the i386 build only because it's not tested on amd64weongyo2009-01-231-0/+2
| | | | | architecture but expect it'd work. In cases on other architectures it'd not work yet.
* fix return status handling by ar5XXXReset; this is the reason thesam2009-01-235-10/+10
| | | | driver sometimes reports reset failed w/ status 0
* Add a new USB wireless driver, urtw(4) for supporting Realtek's 8187Lweongyo2009-01-235-0/+3742
| | | | chipset.
* don't run the calibration code if scanning, we won't be on the home channelsam2009-01-231-0/+4
|
* Move to having a caps flag. Newer versions of the AT91 family don'timp2009-01-231-13/+21
| | | | | need the bouncing, so save a few copies in that case. Also convert 4-bit code selection to using it.
* Don't over-commit the DMA. Use the passed in size of the transferimp2009-01-221-2/+1
| | | | | | rather than a fixed 512... This fixes the mount root problem on at91. Prior to the SD card reorg, all data transfers were 512 bytes, so we didn't notice.
* Migrate towards using at91_master_clock. Initialize the clocks forimp2009-01-223-5/+12
| | | | | | the serial port class when we set the devclass since it is now no-longer a compile time constant. Eliminate the pci include, as it isn't relevant or necessary.
* Use at91_master_clock instead of AT91C_MASTER_CLOCK.imp2009-01-222-2/+3
|
* Remove now-redundant declaration.imp2009-01-221-1/+0
|
* Store at91_master_clock in a global variable as opposed to a compileimp2009-01-222-0/+4
| | | | | | time constant. This allows us to potentially change it at runtime or autodetect it early in the boot (the latter being much more likely to have a good outcome).
* VIA Nano processor has a special MSR (CENT_HARDWARECTRL3) bit 32 to determinejkim2009-01-222-2/+4
| | | | | whether TSC is P-state invariant or not. In fact, this MSR is writable but we just leave it at the BIOS default for now.
* Include a missing header file.jkim2009-01-221-0/+1
| | | | Reported by: thompsa, "build universe"
* Replace couple of strcmp(cpu_vendor, "foo") with cpu_vendor_id for i386jkim2009-01-222-4/+10
| | | | and hide i386-specific code under #ifdef.
* Add a comment explaining what ARM_KERN_DIRECTMAP is all about.cognet2009-01-221-0/+7
| | | | Suggested by: raj
* Fix a compile bogon. 'ppbus' is used by two different sets of debug codejhb2009-01-221-0/+2
| | | | | | in lptout(). Reported by: several
* Add externs to fix build with VIMAGE_GLOBALS after r187289.bz2009-01-221-0/+2
|
* Rename sc_is_pseudo to sc_nobulk member in ufoma_softc.takawata2009-01-221-13/+13
| | | | | | That was pseudo ucom because it used home brew tty interface. Now, it is integrated to usb serial framework, so it is not pseudo ucom any more.
* Add locking to ppc and ppbus and mark the whole lot MPSAFE:jhb2009-01-2121-497/+830
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - To avoid having a bunch of locks that end up always getting acquired as a group, give each ppc(4) device a mutex which it shares with all the child devices including ppbus(4), lpt(4), plip(4), etc. This mutex is then used for all the locking. - Rework the interrupt handling stuff yet again. Now ppbus drivers setup their interrupt handler during attach and tear it down during detach like most other drivers. ppbus(4) only invokes the interrupt handler of the device that currently owns the bus (if any) when an interrupt occurs, however. Also, interrupt handlers in general now accept their softc pointers as their argument rather than the device_t. Another feature of the ppbus interrupt handlers is that they are called with the parent ppc device's lock already held. This minimizes the number of lock operations during an interrupt. - Mark plip(4), lpt(4), pcfclock(4), ppi(4), vpo(4) MPSAFE. - lpbb(4) uses the ppc lock instead of Giant. - Other plip(4) changes: - Add a mutex to protect the global tables in plip(4) and free them on module unload. - Add a detach routine. - Split out the init/stop code from the ioctl routine into separate functions. - Other lpt(4) changes: - Use device_printf(). - Use a dedicated callout for the lptout timer. - Allocate the I/O buffers at attach and detach rather than during open and close as this simplifies the locking at the cost of 1024+32 bytes when the driver is attached. - Other ppi(4) changes: - Use an sx lock to serialize open and close. - Remove unused HADBUS flag. - Add a detach routine. - Use a malloc'd buffer for each read and write to avoid races with concurrent read/write. - Other pps(4) changes: - Use a callout rather than a callout handle with timeout(). - Conform to the new ppbus requirements (regular mutex, non-filter interrupt handler). pps(4) is probably going to have to become a standalone driver that doesn't use ppbus(4) to satisfy it's requirements for low latency as a result. - Use an sx lock to serialize open and close. - Other vpo(4) changes: - Use the parent ppc device's lock to create the CAM sim instead of Giant. - Other ppc(4) changes: - Fix ppc_isa's detach method to detach instead of calling attach. Tested by: no one :-(
* Add the dresden elektronik SensorTerminalBoard which uses an FT245.joerg2009-01-212-0/+19
|
* Change __FreeBSD_version to prepare for merging r184102.jkim2009-01-211-1/+1
|
* Fix a few style bogons.jhb2009-01-212-4/+3
| | | | Submitted by: bde
* Add Unicode rendering to the teken demo application.ed2009-01-212-11/+32
| | | | | | | | | Some time ago I tried adding Unicode rendering to the teken demo application, but I didn't get it working. It seems I forgot to call setlocale(). Polish this code and make sure it doesn't get lost. Also a small fix for my previous commit: all Unicode characters in teken_boxdrawing are below 0x10000, so store them as 16-bit values.
* Default to normal bus timing mode on SD cards. In practice, mostimp2009-01-211-0/+1
| | | | | | cards people have today support high speed mode, so the timing field would be initialized to bus_timing_hs, but there are some slow cards...
* o The f_max is really at91_master_clock / 2, not 30MHz, so compute it as such.imp2009-01-211-3/+6
| | | | | | | | | | o Only set 4-bit caps on those boards that have 4-bit caps (this means that because we don't set wire4 yet, this forces us to always use 1-bit bus). o Don't test wire4 when setting up the bus width, since bad things will happen if we do. # This likely won't fix the busted at91 sd card support, but these are # needful changes for correctness.
* Fix minor style nit for file consistency.imp2009-01-211-5/+4
|
* Make the command reporting be under boot verbose.imp2009-01-211-6/+10
| | | | | Also, report a few other things under boot verbose. Small style nit to make new code look like old code in this file.
* Move the code from ufs_lookup.c used to do dotdot lookup, intokib2009-01-213-22/+36
| | | | | | | | | the helper function. It is supposed to be useful for any filesystem that has to unlock dvp to walk to the ".." entry in lookup routine. Requested by: jhb Tested by: pho MFC after: 1 month
* Now that vfs_markatime() no longer requires an exclusive lock due tojhb2009-01-211-2/+2
| | | | | | the VOP_MARKATIME() changes, use a shared vnode lock for mmap(). Submitted by: ups
* Move the VA_MARKATIME flag for VOP_SETATTR() out into its own VOP:jhb2009-01-214-18/+31
| | | | | | | | | | | | VOP_MARKATIME() since unlike the rest of VOP_SETATTR(), VA_MARKATIME can be performed while holding a shared vnode lock (the same functionality is done internally by VOP_READ which can run with a shared vnode lock). Add missing locking of the vnode interlock to the ufs implementation and remove a special note and test from the NFS client about not supporting the feature. Inspired by: ups Tested by: pho
* Fix copy/paste mistake in variable name. This could lead to using incorrectmav2009-01-211-1/+1
| | | | bus frequency.
OpenPOWER on IntegriCloud