summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Drop the proc lock around SYSCTL_OUT in the no-threads case.scottl2003-06-171-0/+2
| | | | Submitted by: truckman
* This is a driver for Fore/Marconi HE155 and HE622 ATM cards. It is fullharti2003-06-1712-0/+6049
| | | | busdma and has extensively been tested on i386 and sparc64.
* Fix bge at 10Mbit. The defines for 10-Half and 10-Full were swapped.ps2003-06-171-2/+2
| | | | Shamed into fixing by: John Cagle <john.cagle@hp.com>
* Send the close request to the SMB server in smbfs_inactive(), instead oftjr2003-06-174-66/+34
| | | | | | | | smbfs_close(). This fixes paging to and from mmap()'d regions of smbfs files after the descriptor has been closed, and makes thttpd, GNU ld, and perhaps more things work that depend on being able to do this. PR: 48291
* Add FREECOM PCCARD-IDE to the mix. It doesn't have a manufacturer orimp2003-06-171-0/+1
| | | | | | product ID, so we have to use the CIS strings to ID it. dmesg by: Christian Laursen
* Sync to 1.53imp2003-06-171-1/+5
|
* Add FREECOM PCCARD-IDEimp2003-06-171-0/+2
|
* Add definitions for the ioctls that are used by netgraph and harp to openharti2003-06-171-0/+18
| | | | and close VCCs.
* - Temporarily patch a problem where the interact score could be negativejeff2003-06-171-1/+2
| | | | | | | because the run time exceeds the largest value a signed int can hold. The real solution involves calculating how far we are over the limit. To quickly solve this problem we loop removing 1/5th of the current value until it falls below the limit. The common case requires no passes.
* Set f_mntfromname[] to "fdescfs" instead of "fdesc" for consistencytjr2003-06-171-1/+1
| | | | | with other synthetic filesystems, which have f_mntfromname the same as f_fstypename. Noticed by Sean Kelly on -current.
* MFp4: Fix two bugs causing possible deadlocks or panics, and one nit:tjr2003-06-173-13/+95
| | | | | | | | | | | | | | | | | | - Emulate lock draining (LK_DRAIN) in null_lock() to avoid deadlocks when the vnode is being recycled. - Don't allow null_nodeget() to return a nullfs vnode from the wrong mount when multiple nullfs's are mounted. It's unclear why these checks were removed in null_subr.c 1.35, but they are definitely necessary. Without the checks, trying to unmount a nullfs mount will erroneously return EBUSY, and forcibly unmounting with -f will cause a panic. - Bump LOG2_SIZEVNODE up to 8, since vnodes are >256 bytes now. The old value (7) didn't cause any problems, but made the hash algorithm suboptimal. These changes fix nullfs enough that a parallel buildworld succeeds. Submitted by: tegge (partially; LK_DRAIN) Tested by: kris
* - Add a new function "sched_interact_update()" that scales back the sleepjeff2003-06-171-23/+20
| | | | | | | | | | | | | | | | | | and run time. - Scale the sleep and run time back via sched_interact_update() in more places. This is to keep the statistic more accurate. - Charge a parent one tick for forking a child. - Add only the run time and not the sleep time to the parents kg when a thread exits. This allows us to give a penalty for having an expensive thread exit but does not give a bonus for having an interactive thread exit. - Change the SLP_RUN_THROTTLE to limit us to 4/5th and not 1/2. - Change the SLP_RUN_MAX to two seconds. This keeps bursty interactive applications like mozilla and openoffice in the interactive range even through expensive tasks. - Recalculate the slice after every sleep. This ensures that once a task has been marked interactive it only has a slice of 1 at the risk of giving tasks that sleep for a very brief period a longer time slice.
* Map icmp time exceeded responses to EHOSTUNREACH rather than 0 (no error);silby2003-06-171-1/+1
| | | | | | | | | this makes connect act more sensibly in these cases. PR: 50839 Submitted by: Barney Wolff <barney@pit.databus.com> Patch delayed by laziness of: silby MFC after: 1 week
* Lock the vm object when freeing a page.alc2003-06-171-1/+9
|
* Hide the m_defrag* statistics under MBUF_STRESS_TEST, there seemssilby2003-06-171-2/+8
| | | | | | | | to be no need to see them in the general case (and they aren't smp-safe anyway.) Suggested by: hmp MFC after: 1 week
* Re-introduction of the matcd CD driver.uhclem2003-06-176-0/+4127
| | | | | | | | | | This version of the driver code is compatible with near-release FreeBSD 5.1 kernel/driver interfaces. modules/Makefile, man page and other bindings to follow shortly, once I get this part of the check-in right. Approved by: markm(mentor)
* Do not attempt to access to inp_socket fields if the socket is in the TIME_WAITcognet2003-06-171-13/+38
| | | | | | state, as inp_socket will then be NULL. This fixes a panic that occurs when one tries to bind a port that was previously binded with remaining TIME_WAIT sockets.
* Forgot to commit code to disable creating a bound thread in samedavidxu2003-06-162-0/+4
| | | | | | group again except first kse_create syscall. Noticed by: julian
* When looking for the ':' separator in the root path, don't go pastiedowse2003-06-161-2/+2
| | | | | | | | | | the terminating '\0'. Since the initialisation of rootpath in libstand/bootp.c may copy junk into the rest of the buffer, it was possible for the code to find a ':' after the '\0' and do the wrong thing. Reviewed by: ps MFC after: 1 week
* free type too if we can't add the child.jmg2003-06-161-1/+3
|
* fix misspelling of ORIR_NOTFOUNDjmg2003-06-161-1/+1
|
* Partially back out rev 1.87 by nuking fifo_inactive() and moving thetruckman2003-06-161-20/+4
| | | | | | | | resource deallocation back to fifo_close(). This eliminates any stale data that might be stuck in the socket buffers after all the readers and writers have closed the fifo. Tested by: Thorsten Schroeder <ths@katjusha.de>
* Repo-copy of sys/pci/if_en_pci.c to the rest of the midway driver (sys/dev/en)harti2003-06-163-487/+2
| | | | | so that all of the driver sources are in one place. Adjust the configuration files and the module build.
* Fix the breakage introduced by rev. 1.43 of sys/dev/midway.c (don't commitharti2003-06-162-17/+93
| | | | | | | | on friday 13th and without making a universe). This adds struct and constant definitions for ATM traffic parameters and re-enables the build of the midway driver. Tested by: make universe
* Reset ncpus to 1 for bound thread group since there is only onedavidxu2003-06-162-2/+6
| | | | | | thread in such group. Change message text from kse_rel to kserel, it is better displayed in top.
* This file was ignored by CVS in my last commit for some reason:phk2003-06-161-1/+0
| | | | | Remove pointless initialization of b_spc field, which now no longer exists.
* Bound check for broken Configuration ROM.simokawa2003-06-161-5/+19
|
* Force media autodetection if the device has lost its parameter table.yar2003-06-162-2/+14
| | | | | | | | | Previously, any normal I/O on an fdc(4) device would fail with ENXIO if the device had been opened in non-blocking mode and then closed prior to the conventional access; that would last until the floppy disk was ejected and re-inserted to raise the unit attention condition. Add a clarifying comment.
* Fix for big endian.simokawa2003-06-161-2/+1
|
* If in non-blocking mode, return EAGAIN instead of ENXIOyar2003-06-162-2/+8
| | | | | | | on an I/O attempt. This is needed for consistency with the concept of the half-opened state of fdc(4). PR: kern/52338
* Replace evil abuse of geteblk() with malloc(9).phk2003-06-162-12/+10
|
* Get rid of the b_spc specialty field in struct buf by using an alreadyphk2003-06-162-5/+3
| | | | available caller private field.
* Revert previos change for prior release/branch.simokawa2003-06-161-0/+21
|
* Lock the vm object when freeing pages.alc2003-06-151-0/+8
|
* In the device attach routine, don't depend on uaa->iface beingwpaul2003-06-152-4/+24
| | | | | | | | | | | | | | populated. Apparently, if you use an ehci controller, it's not. Use usbd_device2interface_handle() to retrieve the interface handle. NOTE: uaa->iface is populated in the probe routine, so I suspect the fact that it's NULL in the attach routine is a bug in the ehci driver. Also, don't depend on the PHY addresses returned by the AXE_CMD_READ_PHYID command. The address is correct for my LinkSys NIC, but a user has reported that with a D-Link NIC, the PHYID command returns address 4 while the attached Broadcom PHY is in fact strapped for address 0. Instead, latch onto the first PHY address that returns valid data during a readreg operation.
* The page queue lock is already held in pmap_remove, change acquire/releasejake2003-06-151-2/+2
| | | | | to assertion of ownership. Serves me right for not booting a witness kernel.
* Remove the evil BIOTOBUF macro, it is no longer used anywhere.phk2003-06-151-3/+0
| | | | | Retain b_bio as the first element of struct buf for now in case some code somewhere still do the evil cast thing.
* In specfs::vop_specstratey(), assert that the vnode and buffer agree aboutphk2003-06-151-0/+4
| | | | the device.
* - Mirror vm_page_queue_mtx assertions added to the i386 pmap.jake2003-06-152-1/+20
| | | | | | | | | - Add vm page queue locking in certain places that are only needed on sparc64. This should make pmap_qenter and pmap_qremove MP-safe. Discussed with: alc
* I have not had any reports of trouble for a long time, so remove thephk2003-06-152-51/+4
| | | | | gentle versions of the vop_strategy()/vop_specstrategy() mismatch methods and use vop_panic() instead.
* Remember to release the loader's heap.jake2003-06-151-1/+7
| | | | Reviewed by: tmm
* Take 2: Remove _both_ KASSERTS.phk2003-06-151-2/+0
|
* Duh! I misread my handwritte notes: We do _not_ want to asser thatphk2003-06-151-2/+0
| | | | vp == bp->b_vp in specfs, that was the entire point of VOP_SPECSTRATEGY().
* Add the same KASSERT to all VOP_STRATEGY and VOP_SPECSTRATEGY implementationsphk2003-06-1516-0/+34
| | | | to check that the buffer points to the correct vnode.
* Remove in toto coda_strategy which incorrectly implemented vop_panic();phk2003-06-152-46/+0
|
* Always set bio_resid properly in fdstrategy(),yar2003-06-152-6/+4
| | | | | | | | | | as should every block device strategy routine. There was at least one evil consequence of not doing so: Some errors returned by fdstrategy() could be lost (EAGAIN, in particular.) PR: kern/52338 (in the audit-trail) Discussed with: bde
* Check whether the floppy type pointer has been set before tryingyar2003-06-152-0/+8
| | | | | | | | | | | | to access floppy parameters through it. Note: The DIOCGSECTORSIZE and DIOCGMEDIASIZE handlers withing fdioctl() couldn't be just moved to below the existing check for blocking mode because fd->ft can be non-NULL while still in non-blocking mode (fd->ft can be set with the FD_STYPE ioctl.) PR: kern/52338 No MFC: Not applicable to STABLE
* Various cr*() calls believed to be MPSAFE, since the uidinforwatson2003-06-151-0/+8
| | | | code is locked down.
* 1. Add code to support bound thread. when blocked, a bound thread neverdavidxu2003-06-155-112/+129
| | | | | | | schedules an upcall. Signal delivering to a bound thread is same as non-threaded process. This is intended to be used by libpthread to implement PTHREAD_SCOPE_SYSTEM thread. 2. Simplify kse_release() a bit, remove sleep loop.
* If the device goes away during ulpt_reset(), make sure not to calliedowse2003-06-151-1/+7
| | | | | | | | | ulpt_status() afterwards. This fixes a crash that can occur if a USB printer is power-cycled when printing is just starting. The problem is similar to that fixed in revision 1.33, but it is much less likely to occur. MFC after: 1 week
OpenPOWER on IntegriCloud