summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add a comment explaining why we call dmu_write() unconditionally, even ifpjd2007-05-012-0/+18
| | | | | | | uiomove() fails, especially that it is different from what OpenSolaris does (I'm not entirely sure they are right). Suggested by: darrenr
* Remove invalid BUS_DMA_ALLOCNOW when creating a tag which is used formarius2007-05-011-1/+1
| | | | a "static" memory allocation only.
* Remove pre-5.0 compat cruft.brueffer2007-05-012-25/+0
| | | | | Approved by: rwatson (mentor) MFC after: 1 week
* Remove unneeded include files.alc2007-05-011-2/+0
|
* MPSAFE ciss driverscottl2007-05-012-20/+46
|
* If we've got watchdog timeouts try to get more packets going afteryongari2007-05-011-0/+2
| | | | resetting the hardware.
* Honor link up/down state in stge_start().yongari2007-05-012-24/+20
| | | | | While I'm here move MAC control settings to stge_link_task, a task queue which handles link state and duplex/flow controls.
* Use our own timer for watchdog instead of if_watchdog/if_timeryongari2007-05-012-11/+17
| | | | interface.
* Synchronize vm map and object accesses.alc2007-05-011-8/+26
| | | | Approved by: des@
* Rename some fields of struct inpcbinfo to have the ipi_ prefix,rwatson2007-04-309-91/+127
| | | | | | consistent with the naming of other structure field members, and reducing improper grep matches. Clean up and comment structure fields in structure definition.
* - Take advantage of mii_phy_add_media() for adding media and settingmarius2007-04-301-65/+13
| | | | | | | | | | | | | | | | | | | | sc->mii_anegticks according to whether the respective BGE chip supports Fast Ethernet only or also Gigabit Ethernet. - At least the BGE chips I've tested with wedge when isolating them so document this as the reason for setting MIIF_NOISOLATE and remove the unused (and partially even #ifdef'ed out) isolation related code. Add code that panics if we encounter a non-zero MII instance as generally there's no way a PHY requiring MIIF_NOISOLATE can be handled gracefully in a multi-PHY configuration (it's ok for the internal PHY of single-PHY-only-NIC to not support isolation though). - Additionally set MIIF_NOLOOP as loopback doesn't seem to work either and remove the #ifdef'ed out code for adding respective media. The MIIF_NOLOOP flag currently triggers nothing but hopefully will be respected by mii_phy_setmedia() later on. Reviewed by: jkim, yongari MFC after: 1 month
* - Add support/quirks for the on-board BGEs found in Sun Blade 1500marius2007-04-302-34/+98
| | | | | | | | | | | | | | | | | Blade 2500, Fire V210 and probably some other sparc64 machines. These chips are typically not fitted with an EEPROM which means that we have to obtain the MAC address via OFW and that some chip tests will just always fail. These changes are based on the respective code found in OpenBSD with some additional info obtained from OpenSolaris and some style suggestions by jkim@. They also have the desired side-effect of respecting the 'local-mac-address?' system configuration variable for the affected BGEs. - In bge_attach() factor out calling bge_release_resources() before going to the fail label into the fail label as well as replace a magic 6 with ETHER_ADDR_LEN. Reviewed by: yongari (before style changes), jkim
* Bump __FreeBSD_version after making setenv(), putenv(), getenv() andache2007-04-301-1/+1
| | | | unsetenv() POSIXed
* o Kill EOLWS while I'm here.maxim2007-04-301-2/+2
|
* o Fix strtoul() error conditions check.maxim2007-04-301-1/+1
| | | | | | PR: kern/108211 Submitted by: Yong Tang MFC after: 2 weeks
* Add MELCO PC-OP-RS Universal remote ID.takawata2007-04-302-0/+16
|
* MFp4: Improve asynchronous packet receive process.simokawa2007-04-302-32/+73
| | | | | | | | - Wake up DMA engine after adding a new receive buffer. - Skip buffers which have unknown state after error. - More rigid error detection. MFC after: 1 week
* MFp4:simokawa2007-04-301-9/+11
| | | | | | | - Update state in fw_xferq_dorain() after removed from the send queue. - Remove unnecessary 'goto err;". MFC after: 1 week
* MFp4: Fix broken userland API for async packets.simokawa2007-04-306-197/+247
| | | | | | | | - Introduce fw_xferlist_add/remove(). - Introduce fw_read/write_async(). - Remove unused FWACT_CH. MFC after: 1 week
* MFp4: Fix typo in recv spd.simokawa2007-04-301-1/+1
| | | | MFC after: 1 week
* MFp4: Add a sysctl knob to disable cycle master mode and add some comments.simokawa2007-04-301-1/+9
| | | | MFC after: 1 week
* MFp4: remove unused fw_asybusy().simokawa2007-04-302-15/+0
| | | | MFC after: 1 week
* MFp4: Simplify tlabel handlingsimokawa2007-04-302-40/+30
| | | | | | | | - Remove struct tl_label and runtime malloc() for it. - Include tl_lable list in struct fw_xfer. - Don't free unallocated tlabel. MFC after: 1 week
* Initialize configuration ROM before a bus reset.simokawa2007-04-303-4/+5
| | | | MFC: after 3 days
* (atapi_action, case XPT_SCSI_IO): Enable DMA only for READ and WRITE commandsthomas2007-04-301-4/+19
| | | | | | | | as some combinations of chipset, controller and target do not behave correctly when DMA is enabled for other commands. PR: kern/103602 MFC after: 2 weeks
* (atapi_cb): Fix test for the presence of sense data. An incorrect conditionthomas2007-04-301-2/+2
| | | | | | | | was being tested, which would result in a system hang in some configurations. PR: kern/112119 Reviewed by: scottl MFC after: 3 days
* - Define d_type for ".", ".." and ".zfs" directories.pjd2007-04-294-0/+10
| | | | - Add a TODO comment where d_type is still noe defined.
* Oops, correct important typo in last commit.pjd2007-04-292-2/+2
|
* Avoid freeing NULL pointer in case of an error.pjd2007-04-292-2/+2
|
* Don't expose #ifdef NOTYET parts to userspace via audit_ioctl.h, justrwatson2007-04-291-3/+0
| | | | | | | remove them, since the functionality they are associated with isn't there yet. MFC after: 3 days
* Fix two use-after-free cases.pjd2007-04-292-4/+4
|
* Complete removal of restriction about overlaps to rman_manage_region:jmg2007-04-281-4/+0
| | | | | | | | remove comment and man page verbage... Document return values for rman_init and rman_manage_region.. MFC after: 1 week
* Only schedule the xpt_finishconfig_task once. This fixes some potentialscottl2007-04-271-4/+6
| | | | panics on boot.
* -Fix an mbuf leak caused by a cut&paste bug where the small ring's mbufsgallatin2007-04-271-19/+35
| | | | | | | | | were never freed, but the big ring was freed twice. -Don't supply rx hw csums for frames which are padded beyond the length specified in the ip header. If the padding is non-zero, the hw csum will be incorrect for such frames. Sponsored by: Myricom
* Increase the verbosity of the warning given when this file is used asbenjsc2007-04-271-1/+1
| | | | | | | | | part of the old tty system - helping the user to know how to transition to the new tty api. Approved by: mlaier (Mentor) PR: kern/110667
* Put the scheme (APM, GPT, etc) in the XML.marcel2007-04-271-1/+3
|
* Avoid a lot of code duplication by using kern_open() to open /dev/nulljhb2007-04-261-45/+9
| | | | | | | in fdcheckstd() instead of a stripped down version of kern_open()'s code. MFC after: 1 week Reviewed by: cperciva
* MFp4: Optimize mappedwrite() and mappedread() functions to write/read as muchpjd2007-04-262-62/+116
| | | | | | | | | non-mapped data as possible at once and not page-by-page. Which this change we combain I/Os, but also saves many VM_OBJECT_UNLOCK()/VM_OBJECT_LOCK() operations. Simple 'fsx -l 33554432 -o 524288 -N 10000 /tank/fsx' test shows ~23% performance increase.
* Use the same timeout parameters for BIO_FLUSH as with the other commands.roberto2007-04-261-2/+0
| | | | | | | | This workaround the problem in Parallels/VMWare where the emulated drivers are slower, especially with ATA_FLUSHCACHE. The problem appears much more frequently with ZFS which use it a lot more. Approved: sos, pjd
* - Always try to write one whole page at a time.pjd2007-04-262-14/+18
| | | | | | | | | | - vm_page_undirty() is enough (instead of vm_page_set_validclean()), but it has to be called before we write the data in case someone makes page dirty after our write, but before our vm_page_undirty() call. - Always dmu_write, not matter if uiomove() succeeded, because it could partially be ok and we would lose some changes. All good ideas from: ups
* MFV: Free znodes immediatelly, allowing the ARC to hold onto less memory.pjd2007-04-262-2/+2
| | | | Full description at: http://bugs.opensolaris.org/view_bug.do?bug_id=6543706
* MFV: Functions name change.pjd2007-04-262-8/+8
|
* Allow the dounmount() to proceed even for doomed coveredvp.kib2007-04-261-3/+1
| | | | | | | | | | | | | In dounmount(), before or while vn_lock(coveredvp) is called, coveredvp vnode may be VI_DOOMED due to one of the following: - other thread finished unmount and vput()ed it, and vnode was chosen for recycling, while vn_lock() slept; - forced unmount of the coveredvp->v_mount fs. In the first case, next check for changed v_mountedhere or mnt_gen counter would be successfull. In the second case, the unmount shall be allowed. Submitted by: sobomax MFC after: 2 weeks
* Default to using a single queue as this is currently the only way to achievekmacy2007-04-261-1/+6
| | | | line rate
* Disable mbuf chain collapsing - it is currently causing an mbuf leakkmacy2007-04-261-1/+1
|
* Remove some code from vmspace_fork() that became redundant afteralc2007-04-261-4/+0
| | | | | revision 1.334 modified _vm_map_init() to initialize the new vm map's flags to zero.
* Various fixes to the NFS Directio support.jhb2007-04-252-6/+11
| | | | | | | | | | | | - Fix for a bug where a close would not wait for all (directio) dirty buffers to drain. The nfsnode was not marked NMODIFIED when there were directio dirtied buffers pending, causing this. - No reason to vhold/vrele the vp when enqueueing DirectIO requests for the nfsiods. The vnode can't really go way since the close has to wait for these requests to drain. MFC after: 1 week Submitted by: mohans
* Disable C1 Enhanced mode on AMD K8 Family Revision F and above to keepariff2007-04-252-0/+46
| | | | | | | | local APIC timer alive. Reviewed by: jhb PR: i386/104678 MFC after: 3 days
* Use a tighter check to see if a resource allocation request is for ajhb2007-04-251-1/+1
| | | | | | | | | | specific request and thus should first try to be allocated from the sys_resource pool. This avoids using the sys_resource pool for wildcard requests that have bounded ranges coming from cbb(4) and Host-PCI pcib(4) drivers. Tested by: Andrea Bittau <a.bittau of cs.ucl.ac.uk fame> Sleuthing by: Andrea Bittau as well
* Add static build depends for ng_deflate, ng_nat and ng_sppp.mav2007-04-251-9/+10
| | | | Approved by: glebius (mentor)
OpenPOWER on IntegriCloud