summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove some spurious debugging, and use more complete error handling forscottl2006-10-191-10/+20
| | | | tx load and fragmentation problems.
* Add missing acpi_wakecode.o: assym.s dependency, so that if assym.sru2006-10-191-1/+1
| | | | | | is newer than acpi_wakecode.h, the latter is rebuilt. Reported by: bde
* tweak comments about OLDCARD workaroundsimp2006-10-191-2/+1
|
* tweak commentimp2006-10-191-1/+2
|
* Remove references to pccard.confimp2006-10-193-5/+5
|
* Use a different task queue for host controller and peripheral driveriedowse2006-10-198-39/+74
| | | | | | | | | | | | tasks. Since the host controllers rely on tasks to process transfer timeouts, if a synchronous transfer from a driver was invoked from a task and timed out, it would never complete because the single task thread was stuck performing the synchronous transfer so couldn't process the timeout. This affected the axe, udav and ural drivers. Problem hardware provided by: guido
* Fix previous revision:marcel2006-10-191-2/+2
| | | | | | o day and mday are the same. No need to subtract 1 from mday. o Set dow to -1 as clock_ct_to_ts() checks this field and returns EINVAL on any day of the week but Sunday.
* Fix remaining compile error.grehan2006-10-182-2/+2
|
* Properly lock the vnode around vgone() calls.kib2006-10-184-25/+113
| | | | | | | | | | | Unlock the vnode in devfs_close() while calling into the driver d_close() routine. devfs_revoke() changes by: ups Reviewed and bugfixes by: tegge Tested by: mbr, Peter Holm Approved by: pjd (mentor) MFC after: 1 week
* Check pointer before dereferencing.glebius2006-10-181-1/+2
| | | | | Reported by: Coverity CID: 1556
* kern_intr.c:bde2006-10-182-3/+3
| | | | | | | | | | | | | | | | | | | | | | - Count (scheduling of) software interrupts (SWIs) as SWIs, not as hardware interrupts. - Don't count (scheduling of) delayed SWIs as interrupts at all, since in the delayed case it is expected that there are many more scheduling calls than handling calls. Perhaps all interrupts should be counted only when they are handled, but it is only counts of delayed SWIs that shouldn never be combined with the other counts. subr_trap.c: - Count (handling of) Asynchronous System Traps (ASTs) as traps, not as software interrupts. Before these changes, the counter for SWIs only counted ASTs, and SWIs weren't counted separately, but a subcounter for ASTs alone is less needed than for most other exception sources. 4.4BSD-Lite uses the counters for similar things (actually matching their names) on its main arches (hp300, ..., !i386) where more of the exceptions are in hardware.
* Attempt to fix compiling problem.davidxu2006-10-182-2/+2
| | | | Noticed by: tinderbox
* Fixed some style bugs (especially ones involving long lines and usebde2006-10-171-17/+19
| | | | of __P(())). There are many more.
* Collapse the two identical emu10k1-alsa%diked.h creation rules forimp2006-10-171-6/+1
| | | | | | | | | | snd_emu10k1 and snd_emu10kx into one line. The 'pci' dependency here adds no value, so I eliminted it (we don't have a snd.all file that might make it mildly useful, and even then it wouldn't be that useful). With the pci optional component eliminated, I could use the '|' operator. I could have also include pci on both sides of the | operator, but since it isn't a value add at all, it was better to eliminate it.
* Some clenaup of ngs_rcvmsg():glebius2006-10-171-60/+46
| | | | | | | - Inline ship_msg() into ngs_rcvmsg(). - Plug memory leak in case if no control socket present. - Remove malloc() and allocate the sockaddr on stack. - style(9).
* Fix a driver bug which could result in frames MHLEN or (MHLEN - 1) bytesgallatin2006-10-171-2/+2
| | | | | | | | long being DMA'ed 2 (or 1) bytes past the end of the mbuf and corrupting random kernel memory. I had forgotten about the 2 bytes of implict padding the firmware assumes. Sponsored by: Myricom Inc.
* Some cleanup and small changes:glebius2006-10-171-121/+74
| | | | | | | | | | - Use malloc() and free() instead of MALLOC() and FREE() macros. - Do not check malloc results if M_WAITOK was used. - Remove linked list of all netgraph sockets. It isn't needed. - Use ng_findhook() instead of searching the list ourselves. - Use NG_WAITOK in syscalls. - Remove unneeded includes. - style(9)
* Make the sg_len and sg_family members of the sockaddr_ng the same typeglebius2006-10-171-5/+3
| | | | as the corresponding values in sockaddr are.
* Make ng_ID_t fixed size, so that its maximum value is platform independent.glebius2006-10-171-2/+2
| | | | This will be important in future.
* - ng_address_ID() has already freed the message, don't do double free.glebius2006-10-171-6/+2
| | | | | | - Get error from ng_address_ID(). Reported by: Coverity via pjd
* Older incarnations of the device used non-standard BARs.ru2006-10-171-4/+16
| | | | | | Reported by: Andriy Gapon Confirmed by: many (including lm-sensors-2.10.1) MFC after: 3 days
* Convert types 'Elf{32,64}_Nhdr' into aliases of the generic 'Elf_Note'jkoshy2006-10-172-10/+2
| | | | | | type. Reviewed by: jb
* Comment out a debug entry which doesn't compile. Needed to fix LINT.jb2006-10-171-1/+1
|
* rename casuptr to casuword.davidxu2006-10-171-2/+2
|
* Regenerate.davidxu2006-10-1710-12/+12
|
* Sync with master.davidxu2006-10-171-1/+1
|
* o Add keyword volatile for user mutex owner field.davidxu2006-10-1711-78/+68
| | | | | | o Fix type consistent problem by using type long for old umtx and wait channel. o Rename casuptr to casuword.
* In sun4v, use the sparc64 version. We haven't used the serial port onjb2006-10-161-1/+6
| | | | sun4v yet, so this is a 'best-guess'.
* Add a .PATH entry to search for sources in the ${MACHINE}/${MACHINE}jb2006-10-161-0/+1
| | | | | | | | | | directory before the ${MACHINE_ARCH}/${MACHINE_ARCH} directory so that machine-specific files take precedence of architecture-specific ones. This fixes the build on sun4v which doesn't use the sparc64 version of mem.c. Tested by: make universe
* Comment out 'device isa'.jb2006-10-161-16/+32
| | | | | Add a lot of nodevice entries for things that depend on isa, kbd and other PC-centric things.
* Add one more include to fix the case of !DDB and !atpic.jhb2006-10-161-0/+1
|
* Correct the WOL magic value.obrien2006-10-161-1/+1
| | | | Submitted by: Peer Chen at nVIDIA
* Try to be more precise in identifying the various nForce networking adapters.obrien2006-10-161-14/+14
|
* - Inverted EAPD quirk for ASUS A8Jc.ariff2006-10-161-17/+17
| | | | | | | - Take the literal meaning of eapdbtl, but do the inversion during write. Tested by: Chung-liang Wei <idreamer@gmail.com>
* Remove some debugging code that accidentally crept in.scottl2006-10-161-3/+1
|
* - Add a command validator for use in debugging.scottl2006-10-165-53/+425
| | | | | | | | - Fix the locking protocol to eliminate races between normal I/O and AENs. - Various small improvements and usability tweaks. Sponsored by: IronPort Portions Submitted by: Doug Ambrisko
* MFi386: revision 1.567 (add linux_aio.c).nyan2006-10-161-0/+1
|
* Overhaul the transmit and dma paths:scottl2006-10-152-219/+121
| | | | | | | | | | | | | | | | | | - Use bus_dmamap_load_mbuf_sg() to eliminate the need for the callback and all of the extra bookkeeping associated with it. - Eliminate the bce_dmamap_arg structure and streamline the memory allocation routines to not need it. This does change some of the debugging messages. - Refactor the loop that fills the buffer descriptor so that it can be done with a single set of logic in a single loop instead of two sets of logic. - Eliminate the need to cache and pass descriptor indexes between the start loop and the encap function. - Change the start loop to always check the ifnet sendq for more work. This significantly helps the driver withstand large UDP workloads, though it's still not perfect. I suspect the remaining work lies with handling the OACTIVE flag, and also in possibly streamlining the interrupt handler some. It is, however, nearly on par with the other popular gigabit drivers in terms of stability now.
* Add a newline to the printf().hrs2006-10-152-2/+2
| | | | | Spotted by: Peter Carah <pete@altadena.net> MFC after: 3 days
* Fix compile (use the right variable name).netchild2006-10-151-1/+1
|
* regen (linux AIO stuff)netchild2006-10-156-16/+94
|
* MFP4 (with some minor changes):netchild2006-10-1511-19/+1476
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the linux_io_* syscalls (AIO). They are only enabled if the native AIO code is available (either compiled in to the kernel or as a module) at the time the functions are used. If the AIO stuff is not available there will be a ENOSYS. From the submitter: ---snip--- DESIGN NOTES: 1. Linux permits a process to own multiple AIO queues (distinguished by "context"), but FreeBSD creates only one single AIO queue per process. My code maintains a request queue (STAILQ of queue(3)) per "context", and throws all AIO requests of all contexts owned by a process into the single FreeBSD per-process AIO queue. When the process calls io_destroy(2), io_getevents(2), io_submit(2) and io_cancel(2), my code can pick out requests owned by the specified context from the single FreeBSD per-process AIO queue according to the per-context request queues maintained by my code. 2. The request queue maintained by my code stores contrast information between Linux IO control blocks (struct linux_iocb) and FreeBSD IO control blocks (struct aiocb). FreeBSD IO control block actually exists in userland memory space, required by FreeBSD native aio_XXXXXX(2). 3. It is quite troubling that the function io_getevents() of libaio-0.3.105 needs to use Linux-specific "struct aio_ring", which is a partial mirror of context in user space. I would rather take the address of context in kernel as the context ID, but the io_getevents() of libaio forces me to take the address of the "ring" in user space as the context ID. To my surprise, one comment line in the file "io_getevents.c" of libaio-0.3.105 reads: Ben will hate me for this REFERENCE: 1. Linux kernel source code: http://www.kernel.org/pub/linux/kernel/v2.6/ (include/linux/aio_abi.h, fs/aio.c) 2. Linux manual pages: http://www.kernel.org/pub/linux/docs/manpages/ (io_setup(2), io_destroy(2), io_getevents(2), io_submit(2), io_cancel(2)) 3. Linux Scalability Effort: http://lse.sourceforge.net/io/aio.html The design notes: http://lse.sourceforge.net/io/aionotes.txt 4. The package libaio, both source and binary: http://rpmfind.net/linux/rpm2html/search.php?query=libaio Simple transparent interface to Linux AIO system calls. 5. Libaio-oracle: http://oss.oracle.com/projects/libaio-oracle/ POSIX AIO implementation based on Linux AIO system calls (depending on libaio). ---snip--- Submitted by: Li, Xiao <intron@intron.ac>
* MFP4 (106538 + 106541):netchild2006-10-154-0/+22
| | | | | | Implement CLONE_VFORK. This fixes the clone05 LTP test. Submitted by: rdivacky
* Revert my previous commit, I mismerged this to the wrong place.netchild2006-10-152-2/+0
| | | | Pointy hat to: netchild
* MFP4 (106541): Fix the clone05 test in the LTP.netchild2006-10-152-0/+2
| | | | Submitted by: rdivacky
* MFP4 (107144[1]): Implement CLONE_FS on i386[1] and amd64.netchild2006-10-152-2/+14
| | | | Submitted by: rdivacky [1]
* MFP4 (107868 - 107870):netchild2006-10-153-3/+5
| | | | | | Use a macro to test for a valid signal instead of doing it my hand everywhere. Submitted by: rdivacky
* Wrap debug printfs into SEQ_DEBUG() to avoid kernel messages clutterariff2006-10-151-19/+19
| | | | during module unload.
* Fix the wraparound of memsize >=2GB.tanimura2006-10-152-4/+6
|
* Long ago, revision 1.22 of vm/vm_pager.h introduced a bug. Specifically,alc2006-10-141-3/+1
| | | | | | | | | | | | | | | | | it introduced a check after the call to file system's get pages method that assumes that the get pages method does not change the array of pages that is passed to it. In the case of vnode_pager_generic_getpages(), this assumption has been incorrect. The contents of the array of pages may be shifted by vnode_pager_generic_getpages(). Likely, the problem has been hidden by vnode_pager_haspage() limiting the set of pages that are passed to vnode_pager_generic_getpages() such that a shift never occurs. The fix implemented herein is to adjust the pointer to the array of pages rather than shifting the pages within the array. MFC after: 3 weeks Fix suggested by: tegge
OpenPOWER on IntegriCloud