summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Now that the Adaptec 2842 has its own probe routine, no need to haveimp2005-03-171-3/+1
| | | | a comment saying its probe routine needs to be fixed.
* Style(9) pass before some planned larger changes.imp2005-03-171-91/+61
| | | | | | | o return (foo); o if (a == NULL) in preference to if (!a) o () and {} reduction o minor indentation fixes
* A further step on the journey of meaking panics and debugging more reliable:rwatson2005-03-171-2/+3
| | | | | | | | | | | | | | | in the window between the beginning of panic() and entering the debugger, it's possible to receive interrupts. If we receive an interrupt, don't preempt if panicstr != NULL, as the system is in the process of failing, and the preempting thread is likely to stumble over the failure. The typical scenario is during the printf() in panic() prior to entering the debugger, but when running with a slower console type such as serial console. It could be that the panic string should be passed to the debugger to print, so that it can run from the debugger's environment rather than a regular kernel printf. Glanced at by: jhb
* Also remember to set the fsid here.phk2005-03-171-0/+1
|
* Forgot to replace code to set fsid in vop_getattr.phk2005-03-172-0/+2
|
* Do not try to free non allocated memory in error case.bz2005-03-174-26/+122
| | | | | | | | | | | | | | | | Do our best to plug some memory leaks (VPD data, jumbo memory buffer,...). Log if we cannot free because memory still in use[1]. Change locking to avoid ''acquiring duplicate lock of same type: "network driver"'' and potential deadlock. Also seems to fix LOR #063. [1] This change does not solve problems if buffers are still in use when unloading if_sk.ko. There is ongoing work which will address jumbogram allocations in a more general way. PR: kern/75677 (with changes, no mii fixes in here) Tested by: net, Antoine Brodin (slightly different version) Approved by: rwatson (mentor) MFC after: 5 days
* * Lower interrupt moderation timer 200->100.bz2005-03-174-2/+130
| | | | | | | | Obtained from: NetBSD if_sk.c rev. 1.11 * Make interrupt moderation configurable via sysctl/tuneable. PR: kern/41220 Approved by: rwatson (mentor)
* * Improve chip identification.bz2005-03-174-64/+284
| | | | | | | | | | | Obtained from: NetBSD if_sk.c rev. 1.11 * Take PHY out of reset for Yukon Lite Rev. A3. Submitted by: postings on net@ in thread "skc0: no PHY found", 2005-02-22 Tested by: net Approved by: rwatson (mentor) MFC after: 5 days
* * When adding/deleting multicast addresses, only whack the address filterbz2005-03-172-12/+30
| | | | | | | | | | | | | | | | if the interface is marked RUNNING. Obtained from: NetBSD if_sk.c rev. 1.12 * Don't initialize the card (and start an autonegotiation) every time the IP address changes. Makes 'dhclient sk0' invocations way faster and more consistant. i.e. one DHCPREQUEST elicits the DHCPACK. Obtained from: OpenBSD if_sk.c rev. 1.56 * Additional locking changes in sk_ioctl. PR: kern/61296 should see improvements by the last two. Approved by: rwatson (mentor) MFC after: 5 days
* Releasing TX/RX descriptor dmamaps during device detachment instead ofavatar2005-03-171-5/+4
| | | | | | | | | | | | | | | | doing that in bfe_stop(). This should fix a panic recently reported on -current occuring when taking device down then up. In the original implementation, an "ifconfig bfe0 down" triggers bfe_stop(), which also destroys all TX/RX descriptor dmamaps. Hence the subsequent "ifconfig bfe0 up" would force the device to use those already-released dmamap and thus panic the kernel. PR: kern/77804 Submitted by: Frank Mayhar <frank at exit dot com> Reviewed by: dmlb, sam (mentor) Tested by: Phil <pcasidy at casidy dot com>, myself MFC after: 1 week
* Kill MAJOR_AUTOphk2005-03-173-11/+3
|
* Prepare for the final onslaught on devices:phk2005-03-174-13/+19
| | | | | | | | Move uid/gid/mode from cdev to cdevsw. Add kind field to use for devd(8) later. Bump both D_VERSION and __FreeBSD_version
* - Don't lock the vnode interlock in vm_object_set_writeable_dirty() ifjeff2005-03-171-2/+4
| | | | | | we've already set the object flags. Reviewed by: alc
* - Lock the clearing of v_data so it is safe to inspect it with thejeff2005-03-171-1/+7
| | | | | | interlock. Sponsored by: Isilon Systems, Inc.
* - Lock the clearing of v_data in ufs_reclaim() to prevent a pagefaultjeff2005-03-171-1/+7
| | | | | | in ffs_lock() when it acesses v_data without the vnlock. Sponsored by: Isilon Systems, Inc.
* Remove unused variable.phk2005-03-171-6/+0
| | | | Detected by: Coverity (ID#704)
* In stange circumstances we may end up being the last reference to aphk2005-03-173-18/+21
| | | | | | | | | | | session in tprintf(). SESSRELE() needs to properly dispose of the sessions mutex. Add sessrele() which does the proper cleanup and have SESSRELE() call it. Use SESSRELE also in pgdelete(). Found by: Coverity (ID:526)
* Bring back some of the ioctl junk that was removed in rev 1.59 as acognet2005-03-173-2/+126
| | | | | | | i386-only kernel option, ASR_COMPAT, and under BURN_BRIDGES. It is really ugly, but raidutils depends on it. Discussed with: scottl
* Use PCIR_BARS instead of PCIR_MAPS.cognet2005-03-172-16/+17
|
* Introduce a new function, pmap_wb_page(), which check all userland mappings forcognet2005-03-161-1/+10
| | | | | | | a given page and, if the pmap is the current pmap, write back the associated cache line. Use pmap_wb_page in pmap_qenter() instead of inconditionally write back/invalidating the data cache.
* Remove comments relevant only to pc98 as there are no amd64 pc98 machines.imp2005-03-161-11/+1
|
* Customize this for the alpha by removing pc98 defines (unused on alpha)imp2005-03-161-17/+1
| | | | as well as saying that the alpha is wired up in a certain way.
* Plug memory leak.pjd2005-03-161-2/+1
| | | | | | | Submitted by: Ted Unangst Found by: Coverity Prevent analysis tool Approved by: phk MFC after: 3 days
* Eleminate 3 PC98 ifdefs:imp2005-03-161-17/+5
| | | | | | | | o Use IP_NPX in preference to hard coded value to write 0 to clear busy# o Use md macro for a full reset of the npx o Use IRQ_NPX in preference to hard coded value for each platform. # The other two ifdefs in this file are hard to remove
* Define IRQ_NPX for the irq used for the npx. Define macro for a fullimp2005-03-163-0/+33
| | | | reset of of npx, as appropriate for the platform.
* correct comparison for null ptrsam2005-03-161-1/+1
| | | | Noticed by: Coverity Prevent analysis tool
* avoid potential array index by -1sam2005-03-161-1/+2
| | | | Noticed by: Coverity Prevent analysis tool
* eliminate use after free in debug codesam2005-03-161-3/+3
| | | | Noticed by: Coverity Prevent analysis tool
* kill dead codesam2005-03-161-2/+1
| | | | Noticed by: Coverity Prevent analysis tool
* bus_alloc_resource must obey the same rules asimp2005-03-161-1/+1
| | | | | | rman_resource_resournce_bound wrt end parameter. The end parameter here was the same as the start. However, it should be start + count - 1, so make it that instead.
* Make it clear nve needs mii, and shorten long comment line.obrien2005-03-162-4/+4
|
* Unload and destroy the TX DMA maps before destroying the DMA tagmux2005-03-161-4/+3
| | | | | | they're attached to, not after. Spotted by: Coverity via sam
* Use vfs_hash.phk2005-03-162-155/+42
|
* Add two arguments to the vfs_hash() KPI so that filesystems which dophk2005-03-1610-20/+27
| | | | not have unique hashes (NFS) can also use it.
* Remove unused filephk2005-03-161-183/+0
|
* Fix a memoryleak in case of failed root filesystem mount.phk2005-03-161-1/+4
| | | | Spotted by: Coverity via sam
* MFp4: use the function to fix the packet header length instead of rollingjmg2005-03-161-7/+1
| | | | our own...
* Remove inode fields previously used for private inode hash tables.phk2005-03-165-5/+0
|
* MFp4: print a more useful error when we don't have a /dev to mount devfsjmg2005-03-161-1/+1
| | | | on..
* MFp4: add in making fiq's work by coping to the correct page incase we havejmg2005-03-161-1/+2
| | | | the vectors relocated high..
* fix up white space, I had a simple comment fix, but I might as well do thejmg2005-03-161-12/+12
| | | | rest while I'm here...
* Add mnt_hashseed to struct mount and initialize it witn PRNG bits, usephk2005-03-164-16/+19
| | | | | | | | | | it to get better hashing in vfs_hash. In case of an insert collision in vfs_hash_insert(), put the loosing vnode on a special list so that vfs_hash_remove() can just assume that it is on a list. Drop the VI_HASHED flag.
* XXX: unnecessary pointer in inode.phk2005-03-161-1/+1
|
* Don't store the disk cdev in all inodes.phk2005-03-166-6/+0
|
* Don't hold a reference to the disk vnode for each inode.phk2005-03-1610-38/+14
| | | | | Don't store the disk cdev in all inodes, it's only used for debugging printfs.
* plug resource leaksam2005-03-161-1/+3
| | | | Noticed by: Coverity Prevent analysis tool
* correct bounds checksam2005-03-161-1/+1
| | | | Noticed by: Coverity Prevent analysis tool
* Enable ehci by default on i386 and amd64. It had got to the stageiedowse2005-03-162-0/+2
| | | | | | where having this disabled was actually hurting us, since so many BIOSes include legacy USB emulation that takes control of all usb ports and only the ehci driver knows how to disable it.
* make bus_dmamem_alloc always allocate a new map like we are suppose to..jmg2005-03-161-11/+11
| | | | | | This was found when I tried to run the usb code on my arm board... Approved by: cognet
* If bus_generic_susped returns an error, devlist is not freed. Free it.imp2005-03-151-1/+3
| | | | Submitted by: Ted Unangst (using the Coverity Prevent analysis tool)
OpenPOWER on IntegriCloud